@tsmodule/tsmodule 40.0.8 → 40.0.11

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/README.md CHANGED
@@ -25,6 +25,7 @@ modules** that target any platform.
25
25
  * [React component library (using Next.js)](#react-component-library-using-nextjs)
26
26
  - [Footnotes](#footnotes)
27
27
  * [Module configuration](#module-configuration)
28
+ + [Index exports](#index-exports)
28
29
  + [Package.json export](#packagejson-export)
29
30
  - [License](#license)
30
31
 
@@ -200,23 +201,32 @@ type-check and declaration emit:
200
201
  }
201
202
  ```
202
203
 
203
- And conditional exports in package.json will be configured like so, such that
204
- "index modules" at e.g. `src/test/index.ts` will be available at
205
- `my-package/test`:
204
+ #### Index exports
206
205
 
207
- ```json
208
- {
209
- "files": ["dist/"],
210
- "exports": {
211
- "./package.json": "./package.json",
212
- "./": "./dist/index.js",
213
- "./*": "./dist/*/index.js"
214
- },
215
- }
206
+ Conditional exports in package.json are configured such that "index
207
+ exports" are available at a subpath. For example:
208
+
209
+ ```
210
+ src/a/b/c/index.ts
216
211
  ```
217
212
 
218
- This has no restriction on internal imports between files, only the default
219
- configuration for how downstream consumers can import from module subpaths.
213
+ Will be available downstream via:
214
+
215
+ ```ts
216
+ import { c } from "your-package/a/b/c"
217
+ ```
218
+
219
+ **Notes:**
220
+
221
+ - Index exports are the only entry points available for import, are ones located
222
+ at `src/**/index.ts(x?)`.<sup>1</sup>
223
+
224
+ - The default package entry point for `your-package` is `src/index.ts`.
225
+
226
+ <sub><sup>1</sup> This has no restriction on internal imports between files,
227
+ which can import from each other freely, including at runtime.
228
+ However, consumers of your package will only be able to import from index
229
+ exports as shown.<sub>
220
230
 
221
231
  #### Package.json export
222
232
 
@@ -1,4 +1,4 @@
1
-
1
+ "use strict";
2
2
  typeof document>"u"&&await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
3
3
 
4
4
  var hc=Object.create;var fo=Object.defineProperty;var pc=Object.getOwnPropertyDescriptor;var dc=Object.getOwnPropertyNames;var gc=Object.getPrototypeOf,_c=Object.prototype.hasOwnProperty;var T=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var g=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ec=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of dc(t))!_c.call(e,i)&&i!==r&&fo(e,i,{get:()=>t[i],enumerable:!(n=pc(t,i))||n.enumerable});return e};var Ve=(e,t,r)=>(r=e!=null?hc(gc(e)):{},Ec(t||!e||!e.__esModule?fo(r,"default",{value:e,enumerable:!0}):r,e));var Bo=g(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.splitWhen=pt.flatten=void 0;function Oc(e){return e.reduce((t,r)=>[].concat(t,r),[])}pt.flatten=Oc;function Dc(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}pt.splitWhen=Dc});var So=g(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.isEnoentCodeError=void 0;function Lc(e){return e.code==="ENOENT"}Ar.isEnoentCodeError=Lc});var xo=g(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.createDirentFromStats=void 0;var Bn=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function kc(e,t){return new Bn(e,t)}hr.createDirentFromStats=kc});var vo=g(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.removeLeadingDotSegment=Be.escape=Be.makeAbsolute=Be.unixify=void 0;var Pc=T("path"),Nc=2,Mc=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function Fc(e){return e.replace(/\\/g,"/")}Be.unixify=Fc;function qc(e,t){return Pc.resolve(e,t)}Be.makeAbsolute=qc;function Hc(e){return e.replace(Mc,"\\$2")}Be.escape=Hc;function jc(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(Nc)}return e}Be.removeLeadingDotSegment=jc});var Ro=g((hE,wo)=>{wo.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var To=g((pE,Io)=>{var $c=Ro(),Qo={"{":"}","(":")","[":"]"},Gc=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,i=-2,s=-2,o=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(o===-1||o>n||(o=e.indexOf("\\",t),o===-1||o>n)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(o=e.indexOf("\\",t),o===-1||o>i))||s!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(s=e.indexOf(")",t),s>t&&(o=e.indexOf("\\",t),o===-1||o>s))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(s=e.indexOf(")",r),s>r&&(o=e.indexOf("\\",r),o===-1||o>s))))return!0;if(e[t]==="\\"){var a=e[t+1];t+=2;var l=Qo[a];if(l){var f=e.indexOf(l,t);f!==-1&&(t=f+1)}if(e[t]==="!")return!0}else t++}return!1},Uc=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=Qo[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};Io.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if($c(t))return!0;var n=Gc;return r&&r.strict===!1&&(n=Uc),n(t)}});var Do=g((dE,Oo)=>{"use strict";var Kc=To(),Jc=T("path").posix.dirname,Yc=T("os").platform()==="win32",Sn="/",Wc=/\\/g,Vc=/[\{\[].*[\}\]]$/,Xc=/(^|[^\\])([\{\[]|\([^\)]+$)/,Zc=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Oo.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&Yc&&t.indexOf(Sn)<0&&(t=t.replace(Wc,Sn)),Vc.test(t)&&(t+=Sn),t+="a";do t=Jc(t);while(Kc(t)||Xc.test(t));return t.replace(Zc,"$1")}});var pr=g(Ae=>{"use strict";Ae.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;Ae.find=(e,t)=>e.nodes.find(r=>r.type===t);Ae.exceedsLimit=(e,t,r=1,n)=>n===!1||!Ae.isInteger(e)||!Ae.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;Ae.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];!n||(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};Ae.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;Ae.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;Ae.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;Ae.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);Ae.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?r(s,t):s!==void 0&&t.push(s)}return t};return r(e),t}});var dr=g((_E,ko)=>{"use strict";var Lo=pr();ko.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&Lo.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||o)&&Lo.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let l of n.nodes)a+=r(l);return a};return r(e)}});var No=g((EE,Po)=>{"use strict";Po.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var Ko=g((mE,Uo)=>{"use strict";var Mo=No(),Xe=(e,t,r)=>{if(Mo(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(Mo(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),a=String(n.wrap),l=e+":"+t+"="+i+s+o+a;if(Xe.cache.hasOwnProperty(l))return Xe.cache[l].result;let f=Math.min(e,t),u=Math.max(e,t);if(Math.abs(f-u)===1){let _=e+"|"+t;return n.capture?`(${_})`:n.wrap===!1?_:`(?:${_})`}let h=Go(e)||Go(t),A={min:e,max:t,a:f,b:u},C=[],E=[];if(h&&(A.isPadded=h,A.maxLen=String(A.max).length),f<0){let _=u<0?Math.abs(u):1;E=Fo(_,Math.abs(f),A,n),f=A.a=0}return u>=0&&(C=Fo(f,u,A,n)),A.negatives=E,A.positives=C,A.result=zc(E,C,n),n.capture===!0?A.result=`(${A.result})`:n.wrap!==!1&&C.length+E.length>1&&(A.result=`(?:${A.result})`),Xe.cache[l]=A,A.result};function zc(e,t,r){let n=xn(e,t,"-",!1,r)||[],i=xn(t,e,"",!1,r)||[],s=xn(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function eA(e,t){let r=1,n=1,i=Ho(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=Ho(e,r);for(i=jo(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=jo(t+1,n)-1;return s=[...s],s.sort(nA),s}function tA(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=rA(e,t),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[l,f]=n[a];l===f?s+=l:l!=="0"||f!=="9"?s+=iA(l,f,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function Fo(e,t,r,n){let i=eA(e,t),s=[],o=e,a;for(let l=0;l<i.length;l++){let f=i[l],u=tA(String(o),String(f),n),h="";if(!r.isPadded&&a&&a.pattern===u.pattern){a.count.length>1&&a.count.pop(),a.count.push(u.count[0]),a.string=a.pattern+$o(a.count),o=f+1;continue}r.isPadded&&(h=sA(f,r,n)),u.string=h+u.pattern+$o(u.count),s.push(u),o=f+1,a=u}return s}function xn(e,t,r,n,i){let s=[];for(let o of e){let{string:a}=o;!n&&!qo(t,"string",a)&&s.push(r+a),n&&qo(t,"string",a)&&s.push(r+a)}return s}function rA(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function nA(e,t){return e>t?1:t>e?-1:0}function qo(e,t,r){return e.some(n=>n[t]===r)}function Ho(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function jo(e,t){return e-e%Math.pow(10,t)}function $o(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function iA(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function Go(e){return/^-?(0+)\d/.test(e)}function sA(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}Xe.cache={};Xe.clearCache=()=>Xe.cache={};Uo.exports=Xe});var Rn=g((yE,ea)=>{"use strict";var oA=T("util"),Wo=Ko(),Jo=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),aA=e=>t=>e===!0?Number(t):String(t),vn=e=>typeof e=="number"||typeof e=="string"&&e!=="",Mt=e=>Number.isInteger(+e),wn=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},lA=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,uA=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},Yo=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},fA=(e,t)=>{e.negatives.sort((o,a)=>o<a?-1:o>a?1:0),e.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=t.capture?"":"?:",n="",i="",s;return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(i=`-(${r}${e.negatives.join("|")})`),n&&i?s=`${n}|${i}`:s=n||i,t.wrap?`(${r}${s})`:s},Vo=(e,t,r,n)=>{if(r)return Wo(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},Xo=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return Wo(e,t,r)},Zo=(...e)=>new RangeError("Invalid range arguments: "+oA.inspect(...e)),zo=(e,t,r)=>{if(r.strictRanges===!0)throw Zo([e,t]);return[]},cA=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},AA=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw Zo([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(e),l=String(t),f=String(r);r=Math.max(Math.abs(r),1);let u=wn(a)||wn(l)||wn(f),h=u?Math.max(a.length,l.length,f.length):0,A=u===!1&&lA(e,t,n)===!1,C=n.transform||aA(A);if(n.toRegex&&r===1)return Vo(Yo(e,h),Yo(t,h),!0,n);let E={negatives:[],positives:[]},_=O=>E[O<0?"negatives":"positives"].push(Math.abs(O)),B=[],b=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?_(i):B.push(uA(C(i,b),h,A)),i=o?i-r:i+r,b++;return n.toRegex===!0?r>1?fA(E,n):Xo(B,null,{wrap:!1,...n}):B},hA=(e,t,r=1,n={})=>{if(!Mt(e)&&e.length>1||!Mt(t)&&t.length>1)return zo(e,t,n);let i=n.transform||(A=>String.fromCharCode(A)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),a=s>o,l=Math.min(s,o),f=Math.max(s,o);if(n.toRegex&&r===1)return Vo(l,f,!1,n);let u=[],h=0;for(;a?s>=o:s<=o;)u.push(i(s,h)),s=a?s-r:s+r,h++;return n.toRegex===!0?Xo(u,null,{wrap:!1,options:n}):u},gr=(e,t,r,n={})=>{if(t==null&&vn(e))return[e];if(!vn(e)||!vn(t))return zo(e,t,n);if(typeof r=="function")return gr(e,t,1,{transform:r});if(Jo(r))return gr(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Mt(r)?Mt(e)&&Mt(t)?AA(e,t,r,i):hA(e,t,Math.max(Math.abs(r),1),i):r!=null&&!Jo(r)?cA(r,i):gr(e,t,1,r)};ea.exports=gr});var na=g((CE,ra)=>{"use strict";var pA=Rn(),ta=pr(),dA=(e,t={})=>{let r=(n,i={})=>{let s=ta.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a=s===!0||o===!0,l=t.escapeInvalid===!0?"\\":"",f="";if(n.isOpen===!0||n.isClose===!0)return l+n.value;if(n.type==="open")return a?l+n.value:"(";if(n.type==="close")return a?l+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let u=ta.reduce(n.nodes),h=pA(...u,{...t,wrap:!1,toRegex:!0});if(h.length!==0)return u.length>1&&h.length>1?`(${h})`:h}if(n.nodes)for(let u of n.nodes)f+=r(u,n);return f};return r(e)};ra.exports=dA});var oa=g((bE,sa)=>{"use strict";var gA=Rn(),ia=dr(),dt=pr(),Ze=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?dt.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(Ze(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?Ze(i,s,r):i+s);return dt.flatten(n)},_A=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(Ze(a.pop(),ia(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(Ze(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let h=dt.reduce(i.nodes);if(dt.exceedsLimit(...h,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let A=gA(...h,t);A.length===0&&(A=ia(i,t)),a.push(Ze(a.pop(),A)),i.nodes=[];return}let l=dt.encloseBrace(i),f=i.queue,u=i;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,f=u.queue;for(let h=0;h<i.nodes.length;h++){let A=i.nodes[h];if(A.type==="comma"&&i.type==="brace"){h===1&&f.push(""),f.push("");continue}if(A.type==="close"){a.push(Ze(a.pop(),f,l));continue}if(A.value&&A.type!=="open"){f.push(Ze(f.pop(),A.value));continue}A.nodes&&n(A,i)}return f};return dt.flatten(n(e))};sa.exports=_A});var la=g((BE,aa)=>{"use strict";aa.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
@@ -1,4 +1,4 @@
1
-
1
+ "use strict";
2
2
  typeof document>"u"&&await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
3
3
 
4
4
  var K={NODE_ENV:"production"};try{let{env:r}=await import("process");r.NODE_ENV&&(K.NODE_ENV=r.NODE_ENV)}catch{}var S=K.NODE_ENV==="development";import{Console as Ae}from"console";var q=(r=0)=>e=>`\x1B[${e+r}m`,H=(r=0)=>e=>`\x1B[${38+r};5;${e}m`,J=(r=0)=>(e,t,o)=>`\x1B[${38+r};2;${e};${t};${o}m`;function pe(){let r=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[t,o]of Object.entries(e)){for(let[n,l]of Object.entries(o))e[n]={open:`\x1B[${l[0]}m`,close:`\x1B[${l[1]}m`},o[n]=e[n],r.set(l[0],l[1]);Object.defineProperty(e,t,{value:o,enumerable:!1})}return Object.defineProperty(e,"codes",{value:r,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi=q(),e.color.ansi256=H(),e.color.ansi16m=J(),e.bgColor.ansi=q(10),e.bgColor.ansi256=H(10),e.bgColor.ansi16m=J(10),Object.defineProperties(e,{rgbToAnsi256:{value:(t,o,n)=>t===o&&o===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(o/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:t=>{let o=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(t.toString(16));if(!o)return[0,0,0];let{colorString:n}=o.groups;n.length===3&&(n=[...n].map(i=>i+i).join(""));let l=Number.parseInt(n,16);return[l>>16&255,l>>8&255,l&255]},enumerable:!1},hexToAnsi256:{value:t=>e.rgbToAnsi256(...e.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value:t=>{if(t<8)return 30+t;if(t<16)return 90+(t-8);let o,n,l;if(t>=232)o=((t-232)*10+8)/255,n=o,l=o;else{t-=16;let u=t%36;o=Math.floor(t/36)/5,n=Math.floor(u/6)/5,l=u%6/5}let i=Math.max(o,n,l)*2;if(i===0)return 30;let c=30+(Math.round(l)<<2|Math.round(n)<<1|Math.round(o));return i===2&&(c+=60),c},enumerable:!1},rgbToAnsi:{value:(t,o,n)=>e.ansi256ToAnsi(e.rgbToAnsi256(t,o,n)),enumerable:!1},hexToAnsi:{value:t=>e.ansi256ToAnsi(e.hexToAnsi256(t)),enumerable:!1}}),e}var be=pe(),p=be;import j from"node:process";import he from"node:os";import Q from"node:tty";function f(r,e=j.argv){let t=r.startsWith("-")?"":r.length===1?"-":"--",o=e.indexOf(t+r),n=e.indexOf("--");return o!==-1&&(n===-1||o<n)}var{env:s}=j,I;f("no-color")||f("no-colors")||f("color=false")||f("color=never")?I=0:(f("color")||f("colors")||f("color=true")||f("color=always"))&&(I=1);function me(){if("FORCE_COLOR"in s)return s.FORCE_COLOR==="true"?1:s.FORCE_COLOR==="false"?0:s.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(s.FORCE_COLOR,10),3)}function de(r){return r===0?!1:{level:r,hasBasic:!0,has256:r>=2,has16m:r>=3}}function Oe(r,{streamIsTTY:e,sniffFlags:t=!0}={}){let o=me();o!==void 0&&(I=o);let n=t?I:o;if(n===0)return 0;if(t){if(f("color=16m")||f("color=full")||f("color=truecolor"))return 3;if(f("color=256"))return 2}if(r&&!e&&n===void 0)return 0;let l=n||0;if(s.TERM==="dumb")return l;if(j.platform==="win32"){let i=he.release().split(".");return Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in s)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(i=>i in s)||s.CI_NAME==="codeship"?1:l;if("TEAMCITY_VERSION"in s)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in s&&"AGENT_NAME"in s)return 1;if(s.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in s){let i=Number.parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(s.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)||"COLORTERM"in s?1:l}function z(r,e={}){let t=Oe(r,{streamIsTTY:r&&r.isTTY,...e});return de(t)}var Te={stdout:z({isTTY:Q.isatty(1)}),stderr:z({isTTY:Q.isatty(2)})},X=Te;function Z(r,e,t){let o=r.indexOf(e);if(o===-1)return r;let n=e.length,l=0,i="";do i+=r.substr(l,o-l)+e+t,l=o+n,o=r.indexOf(e,l);while(o!==-1);return i+=r.slice(l),i}function ee(r,e,t,o){let n=0,l="";do{let i=r[o-1]==="\r";l+=r.substr(n,(i?o-1:o)-n)+e+(i?`\r
@@ -1,4 +1,4 @@
1
-
1
+ "use strict";
2
2
  typeof document>"u"&&await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
3
3
 
4
4
  var Jo=Object.create;var Ln=Object.defineProperty;var Zo=Object.getOwnPropertyDescriptor;var zo=Object.getOwnPropertyNames;var ea=Object.getPrototypeOf,ta=Object.prototype.hasOwnProperty;var F=(t=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(t,{get:(e,r)=>(typeof require!="undefined"?require:e)[r]}):t)(function(t){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var ra=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of zo(e))!ta.call(t,s)&&s!==r&&Ln(t,s,{get:()=>e[s],enumerable:!(n=Zo(e,s))||n.enumerable});return t};var na=(t,e,r)=>(r=t!=null?Jo(ea(t)):{},ra(e||!t||!t.__esModule?Ln(r,"default",{value:t,enumerable:!0}):r,t));var Mn=m(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.splitWhen=Le.flatten=void 0;function sa(t){return t.reduce((e,r)=>[].concat(e,r),[])}Le.flatten=sa;function ia(t,e){let r=[[]],n=0;for(let s of t)e(s)?(n++,r[n]=[]):r[n].push(s);return r}Le.splitWhen=ia});var Nn=m(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.isEnoentCodeError=void 0;function oa(t){return t.code==="ENOENT"}it.isEnoentCodeError=oa});var In=m(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.createDirentFromStats=void 0;var Bt=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function aa(t,e){return new Bt(t,e)}ot.createDirentFromStats=aa});var Bn=m(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.removeLeadingDotSegment=ue.escape=ue.makeAbsolute=ue.unixify=void 0;var ua=F("path"),la=2,ca=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function fa(t){return t.replace(/\\/g,"/")}ue.unixify=fa;function pa(t,e){return ua.resolve(t,e)}ue.makeAbsolute=pa;function ha(t){return t.replace(ca,"\\$2")}ue.escape=ha;function da(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(la)}return t}ue.removeLeadingDotSegment=da});var $n=m((sp,Dn)=>{Dn.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var qn=m((ip,Fn)=>{var ga=$n(),Hn={"{":"}","(":")","[":"]"},_a=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,n=-2,s=-2,i=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||n!==-1&&t[e]==="["&&t[e+1]!=="]"&&(n<e&&(n=t.indexOf("]",e)),n>e&&(o===-1||o>n||(o=t.indexOf("\\",e),o===-1||o>n)))||s!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(s=t.indexOf("}",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||i!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(i=t.indexOf(")",e),i>e&&(o=t.indexOf("\\",e),o===-1||o>i))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(i=t.indexOf(")",r),i>r&&(o=t.indexOf("\\",r),o===-1||o>i))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var u=Hn[a];if(u){var d=t.indexOf(u,e);d!==-1&&(e=d+1)}if(t[e]==="!")return!0}else e++}return!1},ma=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var n=Hn[r];if(n){var s=t.indexOf(n,e);s!==-1&&(e=s+1)}if(t[e]==="!")return!0}else e++}return!1};Fn.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(ga(e))return!0;var n=_a;return r&&r.strict===!1&&(n=ma),n(e)}});var Gn=m((op,jn)=>{"use strict";var ya=qn(),Sa=F("path").posix.dirname,ba=F("os").platform()==="win32",Dt="/",Ea=/\\/g,Aa=/[\{\[].*[\}\]]$/,Ra=/(^|[^\\])([\{\[]|\([^\)]+$)/,va=/\\([\!\*\?\|\[\]\(\)\{\}])/g;jn.exports=function(e,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&ba&&e.indexOf(Dt)<0&&(e=e.replace(Ea,Dt)),Aa.test(e)&&(e+=Dt),e+="a";do e=Sa(e);while(ya(e)||Ra.test(e));return e.replace(va,"$1")}});var at=m(te=>{"use strict";te.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;te.find=(t,e)=>t.nodes.find(r=>r.type===e);te.exceedsLimit=(t,e,r=1,n)=>n===!1||!te.isInteger(t)||!te.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=n;te.escapeNode=(t,e=0,r)=>{let n=t.nodes[e];!n||(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};te.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1;te.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:t.commas>>0+t.ranges>>0===0||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;te.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;te.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);te.flatten=(...t)=>{let e=[],r=n=>{for(let s=0;s<n.length;s++){let i=n[s];Array.isArray(i)?r(i,e):i!==void 0&&e.push(i)}return e};return r(t),e}});var ut=m((up,Vn)=>{"use strict";var Un=at();Vn.exports=(t,e={})=>{let r=(n,s={})=>{let i=e.escapeInvalid&&Un.isInvalidBrace(s),o=n.invalid===!0&&e.escapeInvalid===!0,a="";if(n.value)return(i||o)&&Un.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let u of n.nodes)a+=r(u);return a};return r(t)}});var Yn=m((lp,Wn)=>{"use strict";Wn.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var rs=m((cp,ts)=>{"use strict";var Kn=Yn(),xe=(t,e,r)=>{if(Kn(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Kn(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let s=String(n.relaxZeros),i=String(n.shorthand),o=String(n.capture),a=String(n.wrap),u=t+":"+e+"="+s+i+o+a;if(xe.cache.hasOwnProperty(u))return xe.cache[u].result;let d=Math.min(t,e),l=Math.max(t,e);if(Math.abs(d-l)===1){let b=t+"|"+e;return n.capture?`(${b})`:n.wrap===!1?b:`(?:${b})`}let g=es(t)||es(e),p={min:t,max:e,a:d,b:l},R=[],y=[];if(g&&(p.isPadded=g,p.maxLen=String(p.max).length),d<0){let b=l<0?Math.abs(l):1;y=Qn(b,Math.abs(d),p,n),d=p.a=0}return l>=0&&(R=Qn(d,l,p,n)),p.negatives=y,p.positives=R,p.result=xa(y,R,n),n.capture===!0?p.result=`(${p.result})`:n.wrap!==!1&&R.length+y.length>1&&(p.result=`(?:${p.result})`),xe.cache[u]=p,p.result};function xa(t,e,r){let n=$t(t,e,"-",!1,r)||[],s=$t(e,t,"",!1,r)||[],i=$t(t,e,"-?",!0,r)||[];return n.concat(i).concat(s).join("|")}function Ta(t,e){let r=1,n=1,s=Jn(t,r),i=new Set([e]);for(;t<=s&&s<=e;)i.add(s),r+=1,s=Jn(t,r);for(s=Zn(e+1,n)-1;t<s&&s<=e;)i.add(s),n+=1,s=Zn(e+1,n)-1;return i=[...i],i.sort(Pa),i}function Oa(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let n=Ca(t,e),s=n.length,i="",o=0;for(let a=0;a<s;a++){let[u,d]=n[a];u===d?i+=u:u!=="0"||d!=="9"?i+=wa(u,d,r):o++}return o&&(i+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:i,count:[o],digits:s}}function Qn(t,e,r,n){let s=Ta(t,e),i=[],o=t,a;for(let u=0;u<s.length;u++){let d=s[u],l=Oa(String(o),String(d),n),g="";if(!r.isPadded&&a&&a.pattern===l.pattern){a.count.length>1&&a.count.pop(),a.count.push(l.count[0]),a.string=a.pattern+zn(a.count),o=d+1;continue}r.isPadded&&(g=ka(d,r,n)),l.string=g+l.pattern+zn(l.count),i.push(l),o=d+1,a=l}return i}function $t(t,e,r,n,s){let i=[];for(let o of t){let{string:a}=o;!n&&!Xn(e,"string",a)&&i.push(r+a),n&&Xn(e,"string",a)&&i.push(r+a)}return i}function Ca(t,e){let r=[];for(let n=0;n<t.length;n++)r.push([t[n],e[n]]);return r}function Pa(t,e){return t>e?1:e>t?-1:0}function Xn(t,e,r){return t.some(n=>n[e]===r)}function Jn(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Zn(t,e){return t-t%Math.pow(10,e)}function zn(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function wa(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function es(t){return/^-?(0+)\d/.test(t)}function ka(t,e,r){if(!e.isPadded)return t;let n=Math.abs(e.maxLen-String(t).length),s=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return s?"0?":"0";case 2:return s?"0{0,2}":"00";default:return s?`0{0,${n}}`:`0{${n}}`}}xe.cache={};xe.clearCache=()=>xe.cache={};ts.exports=xe});var qt=m((fp,cs)=>{"use strict";var La=F("util"),is=rs(),ns=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),Ma=t=>e=>t===!0?Number(e):String(e),Ht=t=>typeof t=="number"||typeof t=="string"&&t!=="",We=t=>Number.isInteger(+t),Ft=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},Na=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,Ia=(t,e,r)=>{if(e>0){let n=t[0]==="-"?"-":"";n&&(t=t.slice(1)),t=n+t.padStart(n?e-1:e,"0")}return r===!1?String(t):t},ss=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},Ba=(t,e)=>{t.negatives.sort((o,a)=>o<a?-1:o>a?1:0),t.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=e.capture?"":"?:",n="",s="",i;return t.positives.length&&(n=t.positives.join("|")),t.negatives.length&&(s=`-(${r}${t.negatives.join("|")})`),n&&s?i=`${n}|${s}`:i=n||s,e.wrap?`(${r}${i})`:i},os=(t,e,r,n)=>{if(r)return is(t,e,{wrap:!1,...n});let s=String.fromCharCode(t);if(t===e)return s;let i=String.fromCharCode(e);return`[${s}-${i}]`},as=(t,e,r)=>{if(Array.isArray(t)){let n=r.wrap===!0,s=r.capture?"":"?:";return n?`(${s}${t.join("|")})`:t.join("|")}return is(t,e,r)},us=(...t)=>new RangeError("Invalid range arguments: "+La.inspect(...t)),ls=(t,e,r)=>{if(r.strictRanges===!0)throw us([t,e]);return[]},Da=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},$a=(t,e,r=1,n={})=>{let s=Number(t),i=Number(e);if(!Number.isInteger(s)||!Number.isInteger(i)){if(n.strictRanges===!0)throw us([t,e]);return[]}s===0&&(s=0),i===0&&(i=0);let o=s>i,a=String(t),u=String(e),d=String(r);r=Math.max(Math.abs(r),1);let l=Ft(a)||Ft(u)||Ft(d),g=l?Math.max(a.length,u.length,d.length):0,p=l===!1&&Na(t,e,n)===!1,R=n.transform||Ma(p);if(n.toRegex&&r===1)return os(ss(t,g),ss(e,g),!0,n);let y={negatives:[],positives:[]},b=L=>y[L<0?"negatives":"positives"].push(Math.abs(L)),v=[],x=0;for(;o?s>=i:s<=i;)n.toRegex===!0&&r>1?b(s):v.push(Ia(R(s,x),g,p)),s=o?s-r:s+r,x++;return n.toRegex===!0?r>1?Ba(y,n):as(v,null,{wrap:!1,...n}):v},Ha=(t,e,r=1,n={})=>{if(!We(t)&&t.length>1||!We(e)&&e.length>1)return ls(t,e,n);let s=n.transform||(p=>String.fromCharCode(p)),i=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=i>o,u=Math.min(i,o),d=Math.max(i,o);if(n.toRegex&&r===1)return os(u,d,!1,n);let l=[],g=0;for(;a?i>=o:i<=o;)l.push(s(i,g)),i=a?i-r:i+r,g++;return n.toRegex===!0?as(l,null,{wrap:!1,options:n}):l},lt=(t,e,r,n={})=>{if(e==null&&Ht(t))return[t];if(!Ht(t)||!Ht(e))return ls(t,e,n);if(typeof r=="function")return lt(t,e,1,{transform:r});if(ns(r))return lt(t,e,0,r);let s={...n};return s.capture===!0&&(s.wrap=!0),r=r||s.step||1,We(r)?We(t)&&We(e)?$a(t,e,r,s):Ha(t,e,Math.max(Math.abs(r),1),s):r!=null&&!ns(r)?Da(r,s):lt(t,e,1,r)};cs.exports=lt});var hs=m((pp,ps)=>{"use strict";var Fa=qt(),fs=at(),qa=(t,e={})=>{let r=(n,s={})=>{let i=fs.isInvalidBrace(s),o=n.invalid===!0&&e.escapeInvalid===!0,a=i===!0||o===!0,u=e.escapeInvalid===!0?"\\":"",d="";if(n.isOpen===!0||n.isClose===!0)return u+n.value;if(n.type==="open")return a?u+n.value:"(";if(n.type==="close")return a?u+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let l=fs.reduce(n.nodes),g=Fa(...l,{...e,wrap:!1,toRegex:!0});if(g.length!==0)return l.length>1&&g.length>1?`(${g})`:g}if(n.nodes)for(let l of n.nodes)d+=r(l,n);return d};return r(t)};ps.exports=qa});var _s=m((hp,gs)=>{"use strict";var ja=qt(),ds=ut(),Me=at(),Te=(t="",e="",r=!1)=>{let n=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?Me.flatten(e).map(s=>`{${s}}`):e;for(let s of t)if(Array.isArray(s))for(let i of s)n.push(Te(i,e,r));else for(let i of e)r===!0&&typeof i=="string"&&(i=`{${i}}`),n.push(Array.isArray(i)?Te(s,i,r):s+i);return Me.flatten(n)},Ga=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,n=(s,i={})=>{s.queue=[];let o=i,a=i.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(s.invalid||s.dollar){a.push(Te(a.pop(),ds(s,e)));return}if(s.type==="brace"&&s.invalid!==!0&&s.nodes.length===2){a.push(Te(a.pop(),["{}"]));return}if(s.nodes&&s.ranges>0){let g=Me.reduce(s.nodes);if(Me.exceedsLimit(...g,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let p=ja(...g,e);p.length===0&&(p=ds(s,e)),a.push(Te(a.pop(),p)),s.nodes=[];return}let u=Me.encloseBrace(s),d=s.queue,l=s;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,d=l.queue;for(let g=0;g<s.nodes.length;g++){let p=s.nodes[g];if(p.type==="comma"&&s.type==="brace"){g===1&&d.push(""),d.push("");continue}if(p.type==="close"){a.push(Te(a.pop(),d,u));continue}if(p.value&&p.type!=="open"){d.push(Te(d.pop(),p.value));continue}p.nodes&&n(p,s)}return d};return Me.flatten(n(t))};gs.exports=Ga});var ys=m((dp,ms)=>{"use strict";ms.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
@@ -16,7 +16,7 @@ var Jo=Object.create;var Ln=Object.defineProperty;var Zo=Object.getOwnPropertyDe
16
16
  `,s)}while(n!==-1);return i+=t.slice(s),i}var{stdout:Do,stderr:$o}=Of,xn=Symbol("GENERATOR"),Ue=Symbol("STYLER"),Ze=Symbol("IS_EMPTY"),Ho=["ansi","ansi","ansi256","ansi16m"],Ve=Object.create(null),wf=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Do?Do.level:0;t.level=e.level===void 0?r:e.level},kf=t=>{let e=(...r)=>r.join(" ");return wf(e,t),Object.setPrototypeOf(e,ze.prototype),e};function ze(t){return kf(t)}Object.setPrototypeOf(ze.prototype,Function.prototype);for(let[t,e]of Object.entries(he))Ve[t]={get(){let r=Nt(this,On(e.open,e.close,this[Ue]),this[Ze]);return Object.defineProperty(this,t,{value:r}),r}};Ve.visible={get(){let t=Nt(this,this[Ue],!0);return Object.defineProperty(this,"visible",{value:t}),t}};var Tn=(t,e,r,...n)=>t==="rgb"?e==="ansi16m"?he[r].ansi16m(...n):e==="ansi256"?he[r].ansi256(he.rgbToAnsi256(...n)):he[r].ansi(he.rgbToAnsi(...n)):t==="hex"?Tn("rgb",e,r,...he.hexToRgb(...n)):he[r][t](...n),Lf=["rgb","hex","ansi256"];for(let t of Lf){Ve[t]={get(){let{level:r}=this;return function(...n){let s=On(Tn(t,Ho[r],"color",...n),he.color.close,this[Ue]);return Nt(this,s,this[Ze])}}};let e="bg"+t[0].toUpperCase()+t.slice(1);Ve[e]={get(){let{level:r}=this;return function(...n){let s=On(Tn(t,Ho[r],"bgColor",...n),he.bgColor.close,this[Ue]);return Nt(this,s,this[Ze])}}}}var Mf=Object.defineProperties(()=>{},{...Ve,level:{enumerable:!0,get(){return this[xn].level},set(t){this[xn].level=t}}}),On=(t,e,r)=>{let n,s;return r===void 0?(n=t,s=e):(n=r.openAll+t,s=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:s,parent:r}},Nt=(t,e,r)=>{let n=(...s)=>Nf(n,s.length===1?""+s[0]:s.join(" "));return Object.setPrototypeOf(n,Mf),n[xn]=t,n[Ue]=e,n[Ze]=r,n},Nf=(t,e)=>{if(t.level<=0||!e)return t[Ze]?"":e;let r=t[Ue];if(r===void 0)return e;let{openAll:n,closeAll:s}=r;if(e.includes("\x1B"))for(;r!==void 0;)e=Cf(e,r.close,r.open),r=r.parent;let i=e.indexOf(`
17
17
  `);return i!==-1&&(e=Pf(e,s,n,i)),n+e+s};Object.defineProperties(ze.prototype,Ve);var If=ze(),Gh=ze({level:$o?$o.level:0}),Bf=If,Df={win32:t=>({cmd:"cmd.exe",args:["/d","/s","/c",t]})},$f={"cp -rf":{win32:t=>{let e="xcopy /E /S /G /Q /Y",r=t.map(n=>n.endsWith("\\")?n:`${n}\\`).map(n=>n.replace(/\*\\$/,""));return`${e} ${r.join(" ")}`}},ln:{win32:t=>`mklink /D ${t.join(" ")}`},pkill:{win32:t=>`taskkill /T /F /pid ${t.join(" ")}`}},Hf=(t,e,r)=>{let n={...Df,...e},s={...$f,...r},i=a=>{let u=process.platform,d=n[u];if(d)return d(a);let[l,...g]=a.split(" ");return{cmd:l,args:g}},o=(a=>{let u=Object.entries(s);for(let[d,l]of u)if(a.startsWith(d)){let g=process.platform,p=l[g];if(!p)break;let R=a.slice(d.length).trim().split(" ");return p(R)}return a})(t);return i(o)},Ff=process.platform==="linux"||process.platform==="darwin",Cn=process.platform==="win32",qf={stdio:"pipe",shell:!0,detached:!Cn,env:process.env},jf={log:!0,commandTranslations:{},shellTranslations:{},...qf},Fo=({log:t=!0,commandTranslations:e={},shellTranslations:r={},...n}=jf)=>{let s=null;return{childProcess:s,async run(i){if(s)throw new Error("Only one command per shell.");if(typeof i=="object"){let u=process.platform;i.posix&&Ff&&(u="posix");let d=i[u];if(!d)throw new Error("No command found for platform: "+JSON.stringify({platform:process.platform,command:i}));i=d}let{cmd:o,args:a}=Hf(i,r,e);return t&&console.log(Bf.dim(`
18
18
  $ ${o} ${a.join(" ")}
19
- `)),await new Promise((u,d)=>{s=yf(o,a,n);let l="",g="";if(!s)throw new Error("Child process was not set.");let p=R=>{s=null;let y={code:R,stdout:l,stderr:g};R===0||R===1&&!Cn?u(y):d(y)};s.stdout?.on("data",R=>{l+=R.toString()}),s.stderr?.on("data",R=>{g+=R.toString()}),s.on("close",p),s.on("exit",p),s.on("error",p),s.stdout?.pipe(process.stdout),s.stderr?.pipe(process.stderr)})},kill(i="SIGKILL"){if(s?.pid)if(Cn)Sf(`taskkill /t /f /pid ${s.pid}`);else return process.kill(-s.pid,i);return!0}}};var qo={packageJson:{type:"module",platform:"node",types:"dist/index.d.ts",files:["dist"],exports:{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},scripts:{dev:"tsmodule dev",build:"tsmodule build",test:"ava",pretest:"tsmodule build --runtime-only",prepublishOnly:"yarn build && yarn test",lint:"eslint src --fix"},ava:{timeout:24e4,files:["test/**/*.test.ts"],extensions:{ts:"module"},nodeArguments:["--no-warnings","--loader=@tsmodule/tsmodule"]}},files:["tsconfig.json",".eslintrc"],dependencies:[],devDependencies:["@types/node","@tsmodule/tsmodule","@typescript-eslint/eslint-plugin","@typescript-eslint/parser","ava","eslint","typescript"]},ke={default:qo,react:{packageJson:{platform:"browser",style:"dist/bundle.css",exports:{"./package.json":"./package.json",".":"./dist/index.js","./styles":"./dist/bundle.css","./styles/*":"./dist/components/*/index.css","./*":"./dist/components/*/index.js"},scripts:{export:"tsmodule build",dev:"next dev",build:"next build",start:"next start",lint:"next lint --fix",pretest:"tsmodule build --runtime-only",test:"ava",prepublishOnly:"yarn export && yarn test"},resolutions:{"@types/react":"^17.0.38","@types/react-dom":"^17.0.11"}},files:[".eslintrc","next-env.d.ts","next.config.js","postcss.config.js","tailwind.config.js"],dependencies:["react@^17.0.2","react-dom@^17.0.2"],devDependencies:[...qo.devDependencies,"@types/react@^17.0.39","@types/react-dom@^17.0.11","eslint-config-next","@tsmodule/react","next","tailwindcss","autoprefixer","cssnano","postcss","postcss-import"]}};import{dirname as Gf,resolve as Uf}from"path";import{fileURLToPath as Vf}from"url";var jo=Uf(Gf(Vf(import.meta.url)),"..");import{readFile as Wf,writeFile as Yf}from"fs/promises";import{resolve as Go}from"path";var Kf=async(t=process.cwd())=>{let e=Go(t,"package.json");return await Wf(e,"utf-8")},wn=async(t=process.cwd())=>{let e=await Kf(t);return JSON.parse(e)},Uo=async(t=process.cwd(),e)=>{let r=Go(t,"package.json"),n=await wn(t);return Object.assign(n,e),await Yf(r,JSON.stringify(n,null,2),"utf-8"),n};var Jf=t=>et(jo,`./templates/${t}`);var kn=async({template:t,targetDir:e=process.cwd()})=>{let r=vn(kn);r.log("Copying template files",{template:t,targetDir:e});let n=Jf(t),s=et(e);await Vo(s,{recursive:!0});let i=await(0,Yo.default)(ke[t].files,{cwd:n,dot:!0});if(i.length)for(let o of i){let a=et(n,o),u=et(s,o);r.log({sourcePath:a,replacementPath:u}),await Vo(Xf(u),{recursive:!0}),await Qf(a,u)}},Wo=async({template:t,targetDir:e=process.cwd()})=>{let r=et(e),n=ke[t].packageJson;return await Uo(r,n)},Zf=async({template:t,targetDir:e=process.cwd()})=>{let r=Fo({cwd:e}),n=[...ke.default.dependencies],s=[...ke.default.devDependencies];switch(t){case"react":n.push(...ke.react.dependencies),s.push(...ke.react.devDependencies);break}n.length&&await r.run(`yarn add ${n.join(" ")}`),s.length&&await r.run(`yarn add -D ${s.join(" ")}`)},Ko=async({template:t,targetDir:e=process.cwd()})=>{let r={template:"default",targetDir:e};if(await kn(r),await Wo(r),t!=="default"){let n={template:t,targetDir:e};await kn(n),await Wo(n)}await Zf({template:t,targetDir:e})};var cd=async()=>{let t="default";(await wn())?.dependencies?.react&&(t="react"),await Ko({template:t,targetDir:process.cwd()})};export{cd as convert};
19
+ `)),await new Promise((u,d)=>{s=yf(o,a,n);let l="",g="";if(!s)throw new Error("Child process was not set.");let p=R=>{s=null;let y={code:R,stdout:l,stderr:g};R===0||R===1&&!Cn?u(y):d(y)};s.stdout?.on("data",R=>{l+=R.toString()}),s.stderr?.on("data",R=>{g+=R.toString()}),s.on("close",p),s.on("exit",p),s.on("error",p),s.stdout?.pipe(process.stdout),s.stderr?.pipe(process.stderr)})},kill(i="SIGKILL"){if(s?.pid)if(Cn)Sf(`taskkill /t /f /pid ${s.pid}`);else return process.kill(-s.pid,i);return!0}}};var qo={packageJson:{type:"module",platform:"node",types:"dist/index.d.ts",files:["dist"],exports:{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},scripts:{dev:"tsmodule dev",build:"tsmodule build",test:"ava",pretest:"tsmodule build --runtime-only",prepublishOnly:"yarn build && yarn test",lint:"eslint src --fix"},ava:{timeout:"10m",files:["test/**/*.test.ts"],extensions:{ts:"module"},nodeArguments:["--no-warnings","--loader=@tsmodule/tsmodule"]}},files:["tsconfig.json",".eslintrc"],dependencies:[],devDependencies:["@types/node","@tsmodule/tsmodule","@typescript-eslint/eslint-plugin","@typescript-eslint/parser","ava","eslint","typescript"]},ke={default:qo,react:{packageJson:{platform:"browser",style:"dist/bundle.css",exports:{"./package.json":"./package.json",".":"./dist/index.js","./styles":"./dist/bundle.css","./styles/*":"./dist/components/*/index.css","./*":"./dist/components/*/index.js"},scripts:{export:"tsmodule build",dev:"next dev",build:"next build",start:"next start",lint:"next lint --fix",pretest:"tsmodule build --runtime-only",test:"ava",prepublishOnly:"yarn export && yarn test"},resolutions:{"@types/react":"^17.0.38","@types/react-dom":"^17.0.11"}},files:[".eslintrc","next-env.d.ts","next.config.js","postcss.config.js","tailwind.config.js"],dependencies:["react@^17.0.2","react-dom@^17.0.2"],devDependencies:[...qo.devDependencies,"@types/react@^17.0.39","@types/react-dom@^17.0.11","eslint-config-next","@tsmodule/react","next","tailwindcss","autoprefixer","cssnano","postcss","postcss-import"]}};import{dirname as Gf,resolve as Uf}from"path";import{fileURLToPath as Vf}from"url";var jo=Uf(Gf(Vf(import.meta.url)),"..");import{readFile as Wf,writeFile as Yf}from"fs/promises";import{resolve as Go}from"path";var Kf=async(t=process.cwd())=>{let e=Go(t,"package.json");return await Wf(e,"utf-8")},wn=async(t=process.cwd())=>{let e=await Kf(t);return JSON.parse(e)},Uo=async(t=process.cwd(),e)=>{let r=Go(t,"package.json"),n=await wn(t);return Object.assign(n,e),await Yf(r,JSON.stringify(n,null,2),"utf-8"),n};var Jf=t=>et(jo,`./templates/${t}`);var kn=async({template:t,targetDir:e=process.cwd()})=>{let r=vn(kn);r.log("Copying template files",{template:t,targetDir:e});let n=Jf(t),s=et(e);await Vo(s,{recursive:!0});let i=await(0,Yo.default)(ke[t].files,{cwd:n,dot:!0});if(i.length)for(let o of i){let a=et(n,o),u=et(s,o);r.log({sourcePath:a,replacementPath:u}),await Vo(Xf(u),{recursive:!0}),await Qf(a,u)}},Wo=async({template:t,targetDir:e=process.cwd()})=>{let r=et(e),n=ke[t].packageJson;return await Uo(r,n)},Zf=async({template:t,targetDir:e=process.cwd()})=>{let r=Fo({cwd:e}),n=[...ke.default.dependencies],s=[...ke.default.devDependencies];switch(t){case"react":n.push(...ke.react.dependencies),s.push(...ke.react.devDependencies);break}n.length&&await r.run(`yarn add ${n.join(" ")}`),s.length&&await r.run(`yarn add -D ${s.join(" ")}`)},Ko=async({template:t,targetDir:e=process.cwd()})=>{let r={template:"default",targetDir:e};if(await kn(r),await Wo(r),t!=="default"){let n={template:t,targetDir:e};await kn(n),await Wo(n)}await Zf({template:t,targetDir:e})};var cd=async()=>{let t="default";(await wn())?.dependencies?.react&&(t="react"),await Ko({template:t,targetDir:process.cwd()})};export{cd as convert};
20
20
  /*!
21
21
  * fill-range <https://github.com/jonschlinkert/fill-range>
22
22
  *
@@ -1,4 +1,4 @@
1
-
1
+ "use strict";
2
2
  typeof document>"u"&&await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
3
3
 
4
4
  var $f=Object.create;var Ws=Object.defineProperty;var Gf=Object.getOwnPropertyDescriptor;var Uf=Object.getOwnPropertyNames;var Wf=Object.getPrototypeOf,Vf=Object.prototype.hasOwnProperty;var L=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var g=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Yf=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Uf(t))!Vf.call(e,i)&&i!==r&&Ws(e,i,{get:()=>t[i],enumerable:!(n=Gf(t,i))||n.enumerable});return e};var st=(e,t,r)=>(r=e!=null?$f(Wf(e)):{},Yf(t||!e||!e.__esModule?Ws(r,"default",{value:e,enumerable:!0}):r,e));var ho=g((Ey,bn)=>{"use strict";var co=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};bn.exports=co;bn.exports.default=co});var _o=g((Ry,lr)=>{"use strict";var Mc=ho(),ar=new WeakMap,po=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0,i=e.displayName||e.name||"<anonymous>",s=function(...o){if(ar.set(s,++n),n===1)r=e.apply(this,o),e=null;else if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return Mc(s,e),ar.set(s,n),s};lr.exports=po;lr.exports.default=po;lr.exports.callCount=e=>{if(!ar.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return ar.get(e)}});var go=g((Ay,ur)=>{ur.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&ur.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&ur.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var xo=g((wy,ht)=>{var $=global.process,Ve=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};Ve($)?(yo=L("assert"),ft=go(),mo=/^win/i.test($.platform),Dt=L("events"),typeof Dt!="function"&&(Dt=Dt.EventEmitter),$.__signal_exit_emitter__?X=$.__signal_exit_emitter__:(X=$.__signal_exit_emitter__=new Dt,X.count=0,X.emitted={}),X.infinite||(X.setMaxListeners(1/0),X.infinite=!0),ht.exports=function(e,t){if(!Ve(global.process))return function(){};yo.equal(typeof e,"function","a callback must be provided for exit handler"),ct===!1&&vn();var r="exit";t&&t.alwaysLast&&(r="afterexit");var n=function(){X.removeListener(r,e),X.listeners("exit").length===0&&X.listeners("afterexit").length===0&&fr()};return X.on(r,e),n},fr=function(){!ct||!Ve(global.process)||(ct=!1,ft.forEach(function(t){try{$.removeListener(t,cr[t])}catch{}}),$.emit=hr,$.reallyExit=xn,X.count-=1)},ht.exports.unload=fr,Ye=function(t,r,n){X.emitted[t]||(X.emitted[t]=!0,X.emit(t,r,n))},cr={},ft.forEach(function(e){cr[e]=function(){if(!!Ve(global.process)){var r=$.listeners(e);r.length===X.count&&(fr(),Ye("exit",null,e),Ye("afterexit",null,e),mo&&e==="SIGHUP"&&(e="SIGINT"),$.kill($.pid,e))}}}),ht.exports.signals=function(){return ft},ct=!1,vn=function(){ct||!Ve(global.process)||(ct=!0,X.count+=1,ft=ft.filter(function(t){try{return $.on(t,cr[t]),!0}catch{return!1}}),$.emit=vo,$.reallyExit=bo)},ht.exports.load=vn,xn=$.reallyExit,bo=function(t){!Ve(global.process)||($.exitCode=t||0,Ye("exit",$.exitCode,null),Ye("afterexit",$.exitCode,null),xn.call($,$.exitCode))},hr=$.emit,vo=function(t,r){if(t==="exit"&&Ve(global.process)){r!==void 0&&($.exitCode=r);var n=hr.apply(this,arguments);return Ye("exit",$.exitCode,null),Ye("afterexit",$.exitCode,null),n}else return hr.apply(this,arguments)}):ht.exports=function(){return function(){}};var yo,ft,mo,Dt,X,fr,Ye,cr,ct,vn,xn,bo,hr,vo});var wo=g((My,Ic)=>{Ic.exports={dots:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},dots2:{interval:80,frames:["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},dots3:{interval:80,frames:["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},dots4:{interval:80,frames:["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},dots5:{interval:80,frames:["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},dots6:{interval:80,frames:["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},dots7:{interval:80,frames:["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},dots8:{interval:80,frames:["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},dots9:{interval:80,frames:["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},dots10:{interval:80,frames:["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},dots11:{interval:100,frames:["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},dots12:{interval:80,frames:["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},dots8Bit:{interval:80,frames:["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["⠂","-","–","—","–","-"]},pipe:{interval:100,frames:["┤","┘","┴","└","├","┌","┬","┐"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["✶","✸","✹","✺","✹","✷"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","´","-","_","_","_"]},hamburger:{interval:100,frames:["☱","☲","☴"]},growVertical:{interval:120,frames:["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},growHorizontal:{interval:120,frames:["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","°","O","o","."]},noise:{interval:100,frames:["▓","▒","░"]},bounce:{interval:120,frames:["⠁","⠂","⠄","⠂"]},boxBounce:{interval:120,frames:["▖","▘","▝","▗"]},boxBounce2:{interval:100,frames:["▌","▀","▐","▄"]},triangle:{interval:50,frames:["◢","◣","◤","◥"]},arc:{interval:100,frames:["◜","◠","◝","◞","◡","◟"]},circle:{interval:120,frames:["◡","⊙","◠"]},squareCorners:{interval:180,frames:["◰","◳","◲","◱"]},circleQuarters:{interval:120,frames:["◴","◷","◶","◵"]},circleHalves:{interval:50,frames:["◐","◓","◑","◒"]},squish:{interval:100,frames:["╫","╪"]},toggle:{interval:250,frames:["⊶","⊷"]},toggle2:{interval:80,frames:["▫","▪"]},toggle3:{interval:120,frames:["□","■"]},toggle4:{interval:100,frames:["■","□","▪","▫"]},toggle5:{interval:100,frames:["▮","▯"]},toggle6:{interval:300,frames:["ဝ","၀"]},toggle7:{interval:80,frames:["⦾","⦿"]},toggle8:{interval:100,frames:["◍","◌"]},toggle9:{interval:100,frames:["◉","◎"]},toggle10:{interval:100,frames:["㊂","㊀","㊁"]},toggle11:{interval:50,frames:["⧇","⧆"]},toggle12:{interval:120,frames:["☗","☖"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["←","↖","↑","↗","→","↘","↓","↙"]},arrow2:{interval:80,frames:["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},arrow3:{interval:120,frames:["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},smiley:{interval:200,frames:["😄 ","😝 "]},monkey:{interval:300,frames:["🙈 ","🙈 ","🙉 ","🙊 "]},hearts:{interval:100,frames:["💛 ","💙 ","💜 ","💚 ","❤️ "]},clock:{interval:100,frames:["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},earth:{interval:180,frames:["🌍 ","🌎 ","🌏 "]},material:{interval:17,frames:["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},moon:{interval:80,frames:["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},runner:{interval:140,frames:["🚶 ","🏃 "]},pong:{interval:80,frames:["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},shark:{interval:120,frames:["▐|\\____________▌","▐_|\\___________▌","▐__|\\__________▌","▐___|\\_________▌","▐____|\\________▌","▐_____|\\_______▌","▐______|\\______▌","▐_______|\\_____▌","▐________|\\____▌","▐_________|\\___▌","▐__________|\\__▌","▐___________|\\_▌","▐____________|\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},christmas:{interval:400,frames:["🌲","🎄"]},grenade:{interval:80,frames:["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},point:{interval:125,frames:["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},layer:{interval:150,frames:["-","=","≡"]},betaWave:{interval:80,frames:["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},fingerDance:{interval:160,frames:["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},fistBump:{interval:80,frames:["🤜    🤛 ","🤜    🤛 ","🤜    🤛 "," 🤜  🤛  ","  🤜🤛   "," 🤜✨🤛   ","🤜 ✨ 🤛  "]},soccerHeader:{interval:80,frames:[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},mindblown:{interval:160,frames:["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ ","  ","  ","  "]},speaker:{interval:160,frames:["🔈 ","🔉 ","🔊 ","🔉 "]},orangePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},bluePulse:{interval:100,frames:["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},orangeBluePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},timeTravel:{interval:100,frames:["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},aesthetic:{interval:80,frames:["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]}}});var Oo=g((By,Co)=>{"use strict";var dr=Object.assign({},wo()),To=Object.keys(dr);Object.defineProperty(dr,"random",{get(){let e=Math.floor(Math.random()*To.length),t=To[e];return dr[t]}});Co.exports=dr});var Po=g(($y,_r)=>{var qc=function(){"use strict";function e(o,a,l,c){var u;typeof a=="object"&&(l=a.depth,c=a.prototype,u=a.filter,a=a.circular);var d=[],f=[],S=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0);function m(y,E){if(y===null)return null;if(E==0)return y;var x,D;if(typeof y!="object")return y;if(e.__isArray(y))x=[];else if(e.__isRegExp(y))x=new RegExp(y.source,s(y)),y.lastIndex&&(x.lastIndex=y.lastIndex);else if(e.__isDate(y))x=new Date(y.getTime());else{if(S&&Buffer.isBuffer(y))return Buffer.allocUnsafe?x=Buffer.allocUnsafe(y.length):x=new Buffer(y.length),y.copy(x),x;typeof c>"u"?(D=Object.getPrototypeOf(y),x=Object.create(D)):(x=Object.create(c),D=c)}if(a){var k=d.indexOf(y);if(k!=-1)return f[k];d.push(y),f.push(x)}for(var Z in y){var w;D&&(w=Object.getOwnPropertyDescriptor(D,Z)),!(w&&w.set==null)&&(x[Z]=m(y[Z],E-1))}return x}return m(o,l)}e.clonePrototype=function(a){if(a===null)return null;var l=function(){};return l.prototype=a,new l};function t(o){return Object.prototype.toString.call(o)}e.__objToStr=t;function r(o){return typeof o=="object"&&t(o)==="[object Date]"}e.__isDate=r;function n(o){return typeof o=="object"&&t(o)==="[object Array]"}e.__isArray=n;function i(o){return typeof o=="object"&&t(o)==="[object RegExp]"}e.__isRegExp=i;function s(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return e.__getRegExpFlags=s,e}();typeof _r=="object"&&_r.exports&&(_r.exports=qc)});var Mo=g((Gy,Lo)=>{var jc=Po();Lo.exports=function(e,t){return e=e||{},Object.keys(t).forEach(function(r){typeof e[r]>"u"&&(e[r]=jc(t[r]))}),e}});var Do=g((Uy,Bo)=>{Bo.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var Fo=g((Wy,An)=>{"use strict";var Hc=Mo(),Nt=Do(),ko={nul:0,control:0};An.exports=function(t){return No(t,ko)};An.exports.config=function(e){return e=Hc(e||{},ko),function(r){return No(r,e)}};function No(e,t){if(typeof e!="string")return Io(e,t);for(var r=0,n=0;n<e.length;n++){var i=Io(e.charCodeAt(n),t);if(i<0)return-1;r+=i}return r}function Io(e,t){return e===0?t.nul:e<32||e>=127&&e<160?t.control:$c(e)?0:1+(e>=4352&&(e<=4447||e==9001||e==9002||e>=11904&&e<=42191&&e!=12351||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141))}function $c(e){var t=0,r=Nt.length-1,n;if(e<Nt[0][0]||e>Nt[r][1])return!1;for(;r>=t;)if(n=Math.floor((t+r)/2),e>Nt[n][1])t=n+1;else if(e<Nt[n][0])r=n-1;else return!0;return!1}});var Tn=g((Yy,qo)=>{qo.exports=L("stream")});var Go=g((Ky,$o)=>{"use strict";function jo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jo(Object(r),!0).forEach(function(n){Uc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jo(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Uc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ho(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Vc(e,t,r){return t&&Ho(e.prototype,t),r&&Ho(e,r),e}var Yc=L("buffer"),gr=Yc.Buffer,Kc=L("util"),Cn=Kc.inspect,Qc=Cn&&Cn.custom||"inspect";function Xc(e,t,r){gr.prototype.copy.call(e,t,r)}$o.exports=function(){function e(){Wc(this,e),this.head=null,this.tail=null,this.length=0}return Vc(e,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return gr.alloc(0);for(var n=gr.allocUnsafe(r>>>0),i=this.head,s=0;i;)Xc(i.data,n,s),s+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,s=n.data;for(r-=s.length;n=n.next;){var o=n.data,a=r>o.length?o.length:r;if(a===o.length?s+=o:s+=o.slice(0,r),r-=a,r===0){a===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++i}return this.length-=i,s}},{key:"_getBuffer",value:function(r){var n=gr.allocUnsafe(r),i=this.head,s=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,a=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,a),r-=a,r===0){a===o.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++s}return this.length-=s,n}},{key:Qc,value:function(r,n){return Cn(this,Gc({},n,{depth:0,customInspect:!1}))}}]),e}()});var Pn=g((Qy,Wo)=>{"use strict";function Jc(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(On,this,e)):process.nextTick(On,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(s){!t&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(yr,r):(r._writableState.errorEmitted=!0,process.nextTick(Uo,r,s)):process.nextTick(Uo,r,s):t?(process.nextTick(yr,r),t(s)):process.nextTick(yr,r)}),this)}function Uo(e,t){On(e,t),yr(e)}function yr(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function Zc(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function On(e,t){e.emit("error",t)}function zc(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}Wo.exports={destroy:Jc,undestroy:Zc,errorOrDestroy:zc}});var De=g((Xy,Ko)=>{"use strict";var Yo={};function ce(e,t,r){r||(r=Error);function n(s,o,a){return typeof t=="string"?t:t(s,o,a)}class i extends r{constructor(o,a,l){super(n(o,a,l))}}i.prototype.name=r.name,i.prototype.code=e,Yo[e]=i}function Vo(e,t){if(Array.isArray(e)){let r=e.length;return e=e.map(n=>String(n)),r>2?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:r===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function eh(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function th(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function rh(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}ce("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);ce("ERR_INVALID_ARG_TYPE",function(e,t,r){let n;typeof t=="string"&&eh(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";let i;if(th(e," argument"))i=`The ${e} ${n} ${Vo(t,"type")}`;else{let s=rh(e,".")?"property":"argument";i=`The "${e}" ${s} ${n} ${Vo(t,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);ce("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");ce("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});ce("ERR_STREAM_PREMATURE_CLOSE","Premature close");ce("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});ce("ERR_MULTIPLE_CALLBACK","Callback called multiple times");ce("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");ce("ERR_STREAM_WRITE_AFTER_END","write after end");ce("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);ce("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);ce("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Ko.exports.codes=Yo});var Ln=g((Jy,Qo)=>{"use strict";var nh=De().codes.ERR_INVALID_OPT_VALUE;function ih(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function sh(e,t,r,n){var i=ih(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new nh(s,i)}return Math.floor(i)}return e.objectMode?16:16*1024}Qo.exports={getHighWaterMark:sh}});var Xo=g((Zy,Mn)=>{typeof Object.create=="function"?Mn.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Mn.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var Ke=g((zy,Dn)=>{try{if(Bn=L("util"),typeof Bn.inherits!="function")throw"";Dn.exports=Bn.inherits}catch{Dn.exports=Xo()}var Bn});var Zo=g((em,Jo)=>{Jo.exports=L("util").deprecate});var Nn=g((tm,ia)=>{"use strict";ia.exports=W;function ea(e){var t=this;this.next=null,this.entry=null,this.finish=function(){Mh(t,e)}}var dt;W.WritableState=qt;var oh={deprecate:Zo()},ta=Tn(),br=L("buffer").Buffer,ah=global.Uint8Array||function(){};function lh(e){return br.from(e)}function uh(e){return br.isBuffer(e)||e instanceof ah}var kn=Pn(),fh=Ln(),ch=fh.getHighWaterMark,Ie=De().codes,hh=Ie.ERR_INVALID_ARG_TYPE,ph=Ie.ERR_METHOD_NOT_IMPLEMENTED,dh=Ie.ERR_MULTIPLE_CALLBACK,_h=Ie.ERR_STREAM_CANNOT_PIPE,gh=Ie.ERR_STREAM_DESTROYED,yh=Ie.ERR_STREAM_NULL_VALUES,mh=Ie.ERR_STREAM_WRITE_AFTER_END,bh=Ie.ERR_UNKNOWN_ENCODING,_t=kn.errorOrDestroy;Ke()(W,ta);function vh(){}function qt(e,t,r){dt=dt||Qe(),e=e||{},typeof r!="boolean"&&(r=t instanceof dt),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=ch(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){Th(t,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new ea(this)}qt.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(qt.prototype,"buffer",{get:oh.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var mr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(mr=Function.prototype[Symbol.hasInstance],Object.defineProperty(W,Symbol.hasInstance,{value:function(t){return mr.call(this,t)?!0:this!==W?!1:t&&t._writableState instanceof qt}})):mr=function(t){return t instanceof this};function W(e){dt=dt||Qe();var t=this instanceof dt;if(!t&&!mr.call(W,this))return new W(e);this._writableState=new qt(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),ta.call(this)}W.prototype.pipe=function(){_t(this,new _h)};function xh(e,t){var r=new mh;_t(e,r),process.nextTick(t,r)}function Sh(e,t,r,n){var i;return r===null?i=new yh:typeof r!="string"&&!t.objectMode&&(i=new hh("chunk",["string","Buffer"],r)),i?(_t(e,i),process.nextTick(n,i),!1):!0}W.prototype.write=function(e,t,r){var n=this._writableState,i=!1,s=!n.objectMode&&uh(e);return s&&!br.isBuffer(e)&&(e=lh(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=vh),n.ending?xh(this,r):(s||Sh(this,n,e,r))&&(n.pendingcb++,i=Rh(this,n,s,e,t,r)),i};W.prototype.cork=function(){this._writableState.corked++};W.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&ra(this,e))};W.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new bh(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(W.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Eh(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=br.from(t,r)),t}Object.defineProperty(W.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Rh(e,t,r,n,i,s){if(!r){var o=Eh(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var a=t.objectMode?1:n.length;t.length+=a;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else In(e,t,!1,a,n,i,s);return l}function In(e,t,r,n,i,s,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new gh("write")):r?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function Ah(e,t,r,n,i){--t.pendingcb,r?(process.nextTick(i,n),process.nextTick(Ft,e,t),e._writableState.errorEmitted=!0,_t(e,n)):(i(n),e._writableState.errorEmitted=!0,_t(e,n),Ft(e,t))}function wh(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function Th(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new dh;if(wh(r),t)Ah(e,r,n,t,i);else{var s=na(r)||e.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&ra(e,r),n?process.nextTick(zo,e,r,s,i):zo(e,r,s,i)}}function zo(e,t,r,n){r||Ch(e,t),t.pendingcb--,n(),Ft(e,t)}function Ch(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function ra(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),s=t.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)i[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;i.allBuffers=a,In(e,t,!0,t.length,i,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new ea(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,u=r.callback,d=t.objectMode?1:l.length;if(In(e,t,!1,d,l,c,u),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}W.prototype._write=function(e,t,r){r(new ph("_write()"))};W.prototype._writev=null;W.prototype.end=function(e,t,r){var n=this._writableState;return typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||Lh(this,n,r),this};Object.defineProperty(W.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function na(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function Oh(e,t){e._final(function(r){t.pendingcb--,r&&_t(e,r),t.prefinished=!0,e.emit("prefinish"),Ft(e,t)})}function Ph(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(Oh,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function Ft(e,t){var r=na(t);if(r&&(Ph(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function Lh(e,t,r){t.ending=!0,Ft(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function Mh(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty(W.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){!this._writableState||(this._writableState.destroyed=t)}});W.prototype.destroy=kn.destroy;W.prototype._undestroy=kn.undestroy;W.prototype._destroy=function(e,t){t(e)}});var Qe=g((rm,oa)=>{"use strict";var Bh=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};oa.exports=xe;var sa=jn(),qn=Nn();Ke()(xe,sa);for(Fn=Bh(qn.prototype),vr=0;vr<Fn.length;vr++)xr=Fn[vr],xe.prototype[xr]||(xe.prototype[xr]=qn.prototype[xr]);var Fn,xr,vr;function xe(e){if(!(this instanceof xe))return new xe(e);sa.call(this,e),qn.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",Dh)))}Object.defineProperty(xe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(xe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(xe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Dh(){this._writableState.ended||process.nextTick(Ih,this)}function Ih(e){e.end()}Object.defineProperty(xe.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}})});var ua=g((Hn,la)=>{var Sr=L("buffer"),Se=Sr.Buffer;function aa(e,t){for(var r in e)t[r]=e[r]}Se.from&&Se.alloc&&Se.allocUnsafe&&Se.allocUnsafeSlow?la.exports=Sr:(aa(Sr,Hn),Hn.Buffer=Xe);function Xe(e,t,r){return Se(e,t,r)}Xe.prototype=Object.create(Se.prototype);aa(Se,Xe);Xe.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Se(e,t,r)};Xe.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=Se(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};Xe.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Se(e)};Xe.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Sr.SlowBuffer(e)}});var Un=g(ca=>{"use strict";var Gn=ua().Buffer,fa=Gn.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function kh(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function Nh(e){var t=kh(e);if(typeof t!="string"&&(Gn.isEncoding===fa||!fa(e)))throw new Error("Unknown encoding: "+e);return t||e}ca.StringDecoder=jt;function jt(e){this.encoding=Nh(e);var t;switch(this.encoding){case"utf16le":this.text=Gh,this.end=Uh,t=4;break;case"utf8":this.fillLast=jh,t=4;break;case"base64":this.text=Wh,this.end=Vh,t=3;break;default:this.write=Yh,this.end=Kh;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Gn.allocUnsafe(t)}jt.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};jt.prototype.end=$h;jt.prototype.text=Hh;jt.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function $n(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function Fh(e,t,r){var n=t.length-1;if(n<r)return 0;var i=$n(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=$n(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=$n(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function qh(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"�"}}function jh(e){var t=this.lastTotal-this.lastNeed,r=qh(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function Hh(e,t){var r=Fh(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function $h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function Gh(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function Uh(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function Wh(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function Vh(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function Yh(e){return e.toString(this.encoding)}function Kh(e){return e&&e.length?this.write(e):""}});var Er=g((im,da)=>{"use strict";var ha=De().codes.ERR_STREAM_PREMATURE_CLOSE;function Qh(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function Xh(){}function Jh(e){return e.setHeader&&typeof e.abort=="function"}function pa(e,t,r){if(typeof t=="function")return pa(e,null,t);t||(t={}),r=Qh(r||Xh);var n=t.readable||t.readable!==!1&&e.readable,i=t.writable||t.writable!==!1&&e.writable,s=function(){e.writable||a()},o=e._writableState&&e._writableState.finished,a=function(){i=!1,o=!0,n||r.call(e)},l=e._readableState&&e._readableState.endEmitted,c=function(){n=!1,l=!0,i||r.call(e)},u=function(m){r.call(e,m)},d=function(){var m;if(n&&!l)return(!e._readableState||!e._readableState.ended)&&(m=new ha),r.call(e,m);if(i&&!o)return(!e._writableState||!e._writableState.ended)&&(m=new ha),r.call(e,m)},f=function(){e.req.on("finish",a)};return Jh(e)?(e.on("complete",a),e.on("abort",d),e.req?f():e.on("request",f)):i&&!e._writableState&&(e.on("end",s),e.on("close",s)),e.on("end",c),e.on("finish",a),t.error!==!1&&e.on("error",u),e.on("close",d),function(){e.removeListener("complete",a),e.removeListener("abort",d),e.removeListener("request",f),e.req&&e.req.removeListener("finish",a),e.removeListener("end",s),e.removeListener("close",s),e.removeListener("finish",a),e.removeListener("end",c),e.removeListener("error",u),e.removeListener("close",d)}}da.exports=pa});var ga=g((sm,_a)=>{"use strict";var Rr;function ke(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Zh=Er(),Ne=Symbol("lastResolve"),Je=Symbol("lastReject"),Ht=Symbol("error"),Ar=Symbol("ended"),Ze=Symbol("lastPromise"),Wn=Symbol("handlePromise"),ze=Symbol("stream");function Fe(e,t){return{value:e,done:t}}function zh(e){var t=e[Ne];if(t!==null){var r=e[ze].read();r!==null&&(e[Ze]=null,e[Ne]=null,e[Je]=null,t(Fe(r,!1)))}}function ep(e){process.nextTick(zh,e)}function tp(e,t){return function(r,n){e.then(function(){if(t[Ar]){r(Fe(void 0,!0));return}t[Wn](r,n)},n)}}var rp=Object.getPrototypeOf(function(){}),np=Object.setPrototypeOf((Rr={get stream(){return this[ze]},next:function(){var t=this,r=this[Ht];if(r!==null)return Promise.reject(r);if(this[Ar])return Promise.resolve(Fe(void 0,!0));if(this[ze].destroyed)return new Promise(function(o,a){process.nextTick(function(){t[Ht]?a(t[Ht]):o(Fe(void 0,!0))})});var n=this[Ze],i;if(n)i=new Promise(tp(n,this));else{var s=this[ze].read();if(s!==null)return Promise.resolve(Fe(s,!1));i=new Promise(this[Wn])}return this[Ze]=i,i}},ke(Rr,Symbol.asyncIterator,function(){return this}),ke(Rr,"return",function(){var t=this;return new Promise(function(r,n){t[ze].destroy(null,function(i){if(i){n(i);return}r(Fe(void 0,!0))})})}),Rr),rp),ip=function(t){var r,n=Object.create(np,(r={},ke(r,ze,{value:t,writable:!0}),ke(r,Ne,{value:null,writable:!0}),ke(r,Je,{value:null,writable:!0}),ke(r,Ht,{value:null,writable:!0}),ke(r,Ar,{value:t._readableState.endEmitted,writable:!0}),ke(r,Wn,{value:function(s,o){var a=n[ze].read();a?(n[Ze]=null,n[Ne]=null,n[Je]=null,s(Fe(a,!1))):(n[Ne]=s,n[Je]=o)},writable:!0}),r));return n[Ze]=null,Zh(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=n[Je];s!==null&&(n[Ze]=null,n[Ne]=null,n[Je]=null,s(i)),n[Ht]=i;return}var o=n[Ne];o!==null&&(n[Ze]=null,n[Ne]=null,n[Je]=null,o(Fe(void 0,!0))),n[Ar]=!0}),t.on("readable",ep.bind(null,n)),n};_a.exports=ip});var va=g((om,ba)=>{"use strict";function ya(e,t,r,n,i,s,o){try{var a=e[s](o),l=a.value}catch(c){r(c);return}a.done?t(l):Promise.resolve(l).then(n,i)}function sp(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function o(l){ya(s,n,i,o,a,"next",l)}function a(l){ya(s,n,i,o,a,"throw",l)}o(void 0)})}}function ma(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function op(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ma(Object(r),!0).forEach(function(n){ap(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ma(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ap(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var lp=De().codes.ERR_INVALID_ARG_TYPE;function up(e,t,r){var n;if(t&&typeof t.next=="function")n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new lp("iterable",["Iterable"],t);var i=new e(op({objectMode:!0},r)),s=!1;i._read=function(){s||(s=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=sp(function*(){try{var l=yield n.next(),c=l.value,u=l.done;u?i.push(null):i.push(yield c)?o():s=!1}catch(d){i.destroy(d)}}),a.apply(this,arguments)}return i}ba.exports=up});var jn=g((lm,Pa)=>{"use strict";Pa.exports=M;var gt;M.ReadableState=Ra;var am=L("events").EventEmitter,Ea=function(t,r){return t.listeners(r).length},Gt=Tn(),wr=L("buffer").Buffer,fp=global.Uint8Array||function(){};function cp(e){return wr.from(e)}function hp(e){return wr.isBuffer(e)||e instanceof fp}var Vn=L("util"),O;Vn&&Vn.debuglog?O=Vn.debuglog("stream"):O=function(){};var pp=Go(),zn=Pn(),dp=Ln(),_p=dp.getHighWaterMark,Tr=De().codes,gp=Tr.ERR_INVALID_ARG_TYPE,yp=Tr.ERR_STREAM_PUSH_AFTER_EOF,mp=Tr.ERR_METHOD_NOT_IMPLEMENTED,bp=Tr.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,yt,Yn,Kn;Ke()(M,Gt);var $t=zn.errorOrDestroy,Qn=["error","close","destroy","pause","resume"];function vp(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function Ra(e,t,r){gt=gt||Qe(),e=e||{},typeof r!="boolean"&&(r=t instanceof gt),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=_p(this,e,"readableHighWaterMark",r),this.buffer=new pp,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(yt||(yt=Un().StringDecoder),this.decoder=new yt(e.encoding),this.encoding=e.encoding)}function M(e){if(gt=gt||Qe(),!(this instanceof M))return new M(e);var t=this instanceof gt;this._readableState=new Ra(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Gt.call(this)}Object.defineProperty(M.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){!this._readableState||(this._readableState.destroyed=t)}});M.prototype.destroy=zn.destroy;M.prototype._undestroy=zn.undestroy;M.prototype._destroy=function(e,t){t(e)};M.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=wr.from(e,t),t=""),n=!0),Aa(this,e,t,!1,n)};M.prototype.unshift=function(e){return Aa(this,e,null,!0,!1)};function Aa(e,t,r,n,i){O("readableAddChunk",t);var s=e._readableState;if(t===null)s.reading=!1,Ep(e,s);else{var o;if(i||(o=xp(s,t)),o)$t(e,o);else if(s.objectMode||t&&t.length>0)if(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==wr.prototype&&(t=cp(t)),n)s.endEmitted?$t(e,new bp):Xn(e,s,t,!0);else if(s.ended)$t(e,new yp);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||t.length!==0?Xn(e,s,t,!1):Zn(e,s)):Xn(e,s,t,!1)}else n||(s.reading=!1,Zn(e,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function Xn(e,t,r,n){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&Cr(e)),Zn(e,t)}function xp(e,t){var r;return!hp(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new gp("chunk",["string","Buffer","Uint8Array"],t)),r}M.prototype.isPaused=function(){return this._readableState.flowing===!1};M.prototype.setEncoding=function(e){yt||(yt=Un().StringDecoder);var t=new yt(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";r!==null;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var xa=1073741824;function Sp(e){return e>=xa?e=xa:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function Sa(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=Sp(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}M.prototype.read=function(e){O("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return O("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Jn(this):Cr(this),null;if(e=Sa(e,t),e===0&&t.ended)return t.length===0&&Jn(this),null;var n=t.needReadable;O("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,O("length less than watermark",n)),t.ended||t.reading?(n=!1,O("reading or ended",n)):n&&(O("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=Sa(r,t)));var i;return e>0?i=Ca(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Jn(this)),i!==null&&this.emit("data",i),i};function Ep(e,t){if(O("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?Cr(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,wa(e)))}}function Cr(e){var t=e._readableState;O("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(O("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(wa,e))}function wa(e){var t=e._readableState;O("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,ei(e)}function Zn(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(Rp,e,t))}function Rp(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(O("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}M.prototype._read=function(e){$t(this,new mp("_read()"))};M.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,O("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,s=i?a:y;n.endEmitted?process.nextTick(s):r.once("end",s),e.on("unpipe",o);function o(E,x){O("onunpipe"),E===r&&x&&x.hasUnpiped===!1&&(x.hasUnpiped=!0,u())}function a(){O("onend"),e.end()}var l=Ap(r);e.on("drain",l);var c=!1;function u(){O("cleanup"),e.removeListener("close",S),e.removeListener("finish",m),e.removeListener("drain",l),e.removeListener("error",f),e.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",y),r.removeListener("data",d),c=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l()}r.on("data",d);function d(E){O("ondata");var x=e.write(E);O("dest.write",x),x===!1&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&Oa(n.pipes,e)!==-1)&&!c&&(O("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function f(E){O("onerror",E),y(),e.removeListener("error",f),Ea(e,"error")===0&&$t(e,E)}vp(e,"error",f);function S(){e.removeListener("finish",m),y()}e.once("close",S);function m(){O("onfinish"),e.removeListener("close",S),y()}e.once("finish",m);function y(){O("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(O("pipe resume"),r.resume()),e};function Ap(e){return function(){var r=e._readableState;O("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Ea(e,"data")&&(r.flowing=!0,ei(e))}}M.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Oa(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};M.prototype.on=function(e,t){var r=Gt.prototype.on.call(this,e,t),n=this._readableState;return e==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,O("on readable",n.length,n.reading),n.length?Cr(this):n.reading||process.nextTick(wp,this)),r};M.prototype.addListener=M.prototype.on;M.prototype.removeListener=function(e,t){var r=Gt.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(Ta,this),r};M.prototype.removeAllListeners=function(e){var t=Gt.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(Ta,this),t};function Ta(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function wp(e){O("readable nexttick read 0"),e.read(0)}M.prototype.resume=function(){var e=this._readableState;return e.flowing||(O("resume"),e.flowing=!e.readableListening,Tp(this,e)),e.paused=!1,this};function Tp(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(Cp,e,t))}function Cp(e,t){O("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),ei(e),t.flowing&&!t.reading&&e.read(0)}M.prototype.pause=function(){return O("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(O("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function ei(e){var t=e._readableState;for(O("flow",t.flowing);t.flowing&&e.read()!==null;);}M.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(O("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(O("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=t.push(o);a||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(a){return function(){return e[a].apply(e,arguments)}}(i));for(var s=0;s<Qn.length;s++)e.on(Qn[s],this.emit.bind(this,Qn[s]));return this._read=function(o){O("wrapped _read",o),n&&(n=!1,e.resume())},this};typeof Symbol=="function"&&(M.prototype[Symbol.asyncIterator]=function(){return Yn===void 0&&(Yn=ga()),Yn(this)});Object.defineProperty(M.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(M.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(M.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});M._fromList=Ca;Object.defineProperty(M.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Ca(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function Jn(e){var t=e._readableState;O("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(Op,t,e))}function Op(e,t){if(O("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(M.from=function(e,t){return Kn===void 0&&(Kn=va()),Kn(M,e,t)});function Oa(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var ti=g((um,Ma)=>{"use strict";Ma.exports=Oe;var Or=De().codes,Pp=Or.ERR_METHOD_NOT_IMPLEMENTED,Lp=Or.ERR_MULTIPLE_CALLBACK,Mp=Or.ERR_TRANSFORM_ALREADY_TRANSFORMING,Bp=Or.ERR_TRANSFORM_WITH_LENGTH_0,Pr=Qe();Ke()(Oe,Pr);function Dp(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new Lp);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function Oe(e){if(!(this instanceof Oe))return new Oe(e);Pr.call(this,e),this._transformState={afterTransform:Dp.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",Ip)}function Ip(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){La(e,t,r)}):La(this,null,null)}Oe.prototype.push=function(e,t){return this._transformState.needTransform=!1,Pr.prototype.push.call(this,e,t)};Oe.prototype._transform=function(e,t,r){r(new Pp("_transform()"))};Oe.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};Oe.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};Oe.prototype._destroy=function(e,t){Pr.prototype._destroy.call(this,e,function(r){t(r)})};function La(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new Bp;if(e._transformState.transforming)throw new Mp;return e.push(null)}});var Ia=g((fm,Da)=>{"use strict";Da.exports=Ut;var Ba=ti();Ke()(Ut,Ba);function Ut(e){if(!(this instanceof Ut))return new Ut(e);Ba.call(this,e)}Ut.prototype._transform=function(e,t,r){r(null,e)}});var ja=g((cm,qa)=>{"use strict";var ri;function kp(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var Fa=De().codes,Np=Fa.ERR_MISSING_ARGS,Fp=Fa.ERR_STREAM_DESTROYED;function ka(e){if(e)throw e}function qp(e){return e.setHeader&&typeof e.abort=="function"}function jp(e,t,r,n){n=kp(n);var i=!1;e.on("close",function(){i=!0}),ri===void 0&&(ri=Er()),ri(e,{readable:t,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,qp(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new Fp("pipe"))}}}function Na(e){e()}function Hp(e,t){return e.pipe(t)}function $p(e){return!e.length||typeof e[e.length-1]!="function"?ka:e.pop()}function Gp(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=$p(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Np("streams");var i,s=t.map(function(o,a){var l=a<t.length-1,c=a>0;return jp(o,l,c,function(u){i||(i=u),u&&s.forEach(Na),!l&&(s.forEach(Na),n(i))})});return t.reduce(Hp)}qa.exports=Gp});var Ha=g((he,Vt)=>{var Wt=L("stream");process.env.READABLE_STREAM==="disable"&&Wt?(Vt.exports=Wt.Readable,Object.assign(Vt.exports,Wt),Vt.exports.Stream=Wt):(he=Vt.exports=jn(),he.Stream=Wt||he,he.Readable=he,he.Writable=Nn(),he.Duplex=Qe(),he.Transform=ti(),he.PassThrough=Ia(),he.finished=Er(),he.pipeline=ja())});var Ua=g((hm,Ga)=>{"use strict";var{Buffer:ge}=L("buffer"),$a=Symbol.for("BufferList");function N(e){if(!(this instanceof N))return new N(e);N._init.call(this,e)}N._init=function(t){Object.defineProperty(this,$a,{value:!0}),this._bufs=[],this.length=0,t&&this.append(t)};N.prototype._new=function(t){return new N(t)};N.prototype._offset=function(t){if(t===0)return[0,0];let r=0;for(let n=0;n<this._bufs.length;n++){let i=r+this._bufs[n].length;if(t<i||n===this._bufs.length-1)return[n,t-r];r=i}};N.prototype._reverseOffset=function(e){let t=e[0],r=e[1];for(let n=0;n<t;n++)r+=this._bufs[n].length;return r};N.prototype.get=function(t){if(t>this.length||t<0)return;let r=this._offset(t);return this._bufs[r[0]][r[1]]};N.prototype.slice=function(t,r){return typeof t=="number"&&t<0&&(t+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,t,r)};N.prototype.copy=function(t,r,n,i){if((typeof n!="number"||n<0)&&(n=0),(typeof i!="number"||i>this.length)&&(i=this.length),n>=this.length||i<=0)return t||ge.alloc(0);let s=!!t,o=this._offset(n),a=i-n,l=a,c=s&&r||0,u=o[1];if(n===0&&i===this.length){if(!s)return this._bufs.length===1?this._bufs[0]:ge.concat(this._bufs,this.length);for(let d=0;d<this._bufs.length;d++)this._bufs[d].copy(t,c),c+=this._bufs[d].length;return t}if(l<=this._bufs[o[0]].length-u)return s?this._bufs[o[0]].copy(t,r,u,u+l):this._bufs[o[0]].slice(u,u+l);s||(t=ge.allocUnsafe(a));for(let d=o[0];d<this._bufs.length;d++){let f=this._bufs[d].length-u;if(l>f)this._bufs[d].copy(t,c,u),c+=f;else{this._bufs[d].copy(t,c,u,u+l),c+=f;break}l-=f,u&&(u=0)}return t.length>c?t.slice(0,c):t};N.prototype.shallowSlice=function(t,r){if(t=t||0,r=typeof r!="number"?this.length:r,t<0&&(t+=this.length),r<0&&(r+=this.length),t===r)return this._new();let n=this._offset(t),i=this._offset(r),s=this._bufs.slice(n[0],i[0]+1);return i[1]===0?s.pop():s[s.length-1]=s[s.length-1].slice(0,i[1]),n[1]!==0&&(s[0]=s[0].slice(n[1])),this._new(s)};N.prototype.toString=function(t,r,n){return this.slice(r,n).toString(t)};N.prototype.consume=function(t){if(t=Math.trunc(t),Number.isNaN(t)||t<=0)return this;for(;this._bufs.length;)if(t>=this._bufs[0].length)t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}return this};N.prototype.duplicate=function(){let t=this._new();for(let r=0;r<this._bufs.length;r++)t.append(this._bufs[r]);return t};N.prototype.append=function(t){if(t==null)return this;if(t.buffer)this._appendBuffer(ge.from(t.buffer,t.byteOffset,t.byteLength));else if(Array.isArray(t))for(let r=0;r<t.length;r++)this.append(t[r]);else if(this._isBufferList(t))for(let r=0;r<t._bufs.length;r++)this.append(t._bufs[r]);else typeof t=="number"&&(t=t.toString()),this._appendBuffer(ge.from(t));return this};N.prototype._appendBuffer=function(t){this._bufs.push(t),this.length+=t.length};N.prototype.indexOf=function(e,t,r){if(r===void 0&&typeof t=="string"&&(r=t,t=void 0),typeof e=="function"||Array.isArray(e))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof e=="number"?e=ge.from([e]):typeof e=="string"?e=ge.from(e,r):this._isBufferList(e)?e=e.slice():Array.isArray(e.buffer)?e=ge.from(e.buffer,e.byteOffset,e.byteLength):ge.isBuffer(e)||(e=ge.from(e)),t=Number(t||0),isNaN(t)&&(t=0),t<0&&(t=this.length+t),t<0&&(t=0),e.length===0)return t>this.length?this.length:t;let n=this._offset(t),i=n[0],s=n[1];for(;i<this._bufs.length;i++){let o=this._bufs[i];for(;s<o.length;)if(o.length-s>=e.length){let l=o.indexOf(e,s);if(l!==-1)return this._reverseOffset([i,l]);s=o.length-e.length+1}else{let l=this._reverseOffset([i,s]);if(this._match(l,e))return l;s++}s=0}return-1};N.prototype._match=function(e,t){if(this.length-e<t.length)return!1;for(let r=0;r<t.length;r++)if(this.get(e+r)!==t[r])return!1;return!0};(function(){let e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let t in e)(function(r){e[r]===null?N.prototype[r]=function(n,i){return this.slice(n,n+i)[r](0,i)}:N.prototype[r]=function(n=0){return this.slice(n,n+e[r])[r](0)}})(t)})();N.prototype._isBufferList=function(t){return t instanceof N||N.isBufferList(t)};N.isBufferList=function(t){return t!=null&&t[$a]};Ga.exports=N});var Wa=g((pm,Lr)=>{"use strict";var ni=Ha().Duplex,Up=Ke(),Yt=Ua();function z(e){if(!(this instanceof z))return new z(e);if(typeof e=="function"){this._callback=e;let t=function(n){this._callback&&(this._callback(n),this._callback=null)}.bind(this);this.on("pipe",function(n){n.on("error",t)}),this.on("unpipe",function(n){n.removeListener("error",t)}),e=null}Yt._init.call(this,e),ni.call(this)}Up(z,ni);Object.assign(z.prototype,Yt.prototype);z.prototype._new=function(t){return new z(t)};z.prototype._write=function(t,r,n){this._appendBuffer(t),typeof n=="function"&&n()};z.prototype._read=function(t){if(!this.length)return this.push(null);t=Math.min(t,this.length),this.push(this.slice(0,t)),this.consume(t)};z.prototype.end=function(t){ni.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)};z.prototype._destroy=function(t,r){this._bufs.length=0,this.length=0,r(t)};z.prototype._isBufferList=function(t){return t instanceof z||t instanceof Yt||z.isBufferList(t)};z.isBufferList=Yt.isBufferList;Lr.exports=z;Lr.exports.BufferListStream=z;Lr.exports.BufferList=Yt});var Ka=g(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.splitWhen=mt.flatten=void 0;function Yp(e){return e.reduce((t,r)=>[].concat(t,r),[])}mt.flatten=Yp;function Kp(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}mt.splitWhen=Kp});var Qa=g(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.isEnoentCodeError=void 0;function Qp(e){return e.code==="ENOENT"}Ir.isEnoentCodeError=Qp});var Xa=g(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.createDirentFromStats=void 0;var oi=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function Xp(e,t){return new oi(e,t)}kr.createDirentFromStats=Xp});var Ja=g(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.removeLeadingDotSegment=Ee.escape=Ee.makeAbsolute=Ee.unixify=void 0;var Jp=L("path"),Zp=2,zp=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function ed(e){return e.replace(/\\/g,"/")}Ee.unixify=ed;function td(e,t){return Jp.resolve(e,t)}Ee.makeAbsolute=td;function rd(e){return e.replace(zp,"\\$2")}Ee.escape=rd;function nd(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(Zp)}return e}Ee.removeLeadingDotSegment=nd});var za=g((Pm,Za)=>{Za.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var rl=g((Lm,tl)=>{var id=za(),el={"{":"}","(":")","[":"]"},sd=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,i=-2,s=-2,o=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(o===-1||o>n||(o=e.indexOf("\\",t),o===-1||o>n)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(o=e.indexOf("\\",t),o===-1||o>i))||s!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(s=e.indexOf(")",t),s>t&&(o=e.indexOf("\\",t),o===-1||o>s))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(s=e.indexOf(")",r),s>r&&(o=e.indexOf("\\",r),o===-1||o>s))))return!0;if(e[t]==="\\"){var a=e[t+1];t+=2;var l=el[a];if(l){var c=e.indexOf(l,t);c!==-1&&(t=c+1)}if(e[t]==="!")return!0}else t++}return!1},od=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=el[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};tl.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(id(t))return!0;var n=sd;return r&&r.strict===!1&&(n=od),n(t)}});var il=g((Mm,nl)=>{"use strict";var ad=rl(),ld=L("path").posix.dirname,ud=L("os").platform()==="win32",ai="/",fd=/\\/g,cd=/[\{\[].*[\}\]]$/,hd=/(^|[^\\])([\{\[]|\([^\)]+$)/,pd=/\\([\!\*\?\|\[\]\(\)\{\}])/g;nl.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&ud&&t.indexOf(ai)<0&&(t=t.replace(fd,ai)),cd.test(t)&&(t+=ai),t+="a";do t=ld(t);while(ad(t)||hd.test(t));return t.replace(pd,"$1")}});var Nr=g(pe=>{"use strict";pe.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;pe.find=(e,t)=>e.nodes.find(r=>r.type===t);pe.exceedsLimit=(e,t,r=1,n)=>n===!1||!pe.isInteger(e)||!pe.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;pe.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];!n||(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};pe.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;pe.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;pe.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;pe.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);pe.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?r(s,t):s!==void 0&&t.push(s)}return t};return r(e),t}});var Fr=g((Dm,ol)=>{"use strict";var sl=Nr();ol.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&sl.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||o)&&sl.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let l of n.nodes)a+=r(l);return a};return r(e)}});var ll=g((Im,al)=>{"use strict";al.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var yl=g((km,gl)=>{"use strict";var ul=ll(),et=(e,t,r)=>{if(ul(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(ul(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),a=String(n.wrap),l=e+":"+t+"="+i+s+o+a;if(et.cache.hasOwnProperty(l))return et.cache[l].result;let c=Math.min(e,t),u=Math.max(e,t);if(Math.abs(c-u)===1){let y=e+"|"+t;return n.capture?`(${y})`:n.wrap===!1?y:`(?:${y})`}let d=_l(e)||_l(t),f={min:e,max:t,a:c,b:u},S=[],m=[];if(d&&(f.isPadded=d,f.maxLen=String(f.max).length),c<0){let y=u<0?Math.abs(u):1;m=fl(y,Math.abs(c),f,n),c=f.a=0}return u>=0&&(S=fl(c,u,f,n)),f.negatives=m,f.positives=S,f.result=dd(m,S,n),n.capture===!0?f.result=`(${f.result})`:n.wrap!==!1&&S.length+m.length>1&&(f.result=`(?:${f.result})`),et.cache[l]=f,f.result};function dd(e,t,r){let n=li(e,t,"-",!1,r)||[],i=li(t,e,"",!1,r)||[],s=li(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function _d(e,t){let r=1,n=1,i=hl(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=hl(e,r);for(i=pl(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=pl(t+1,n)-1;return s=[...s],s.sort(md),s}function gd(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=yd(e,t),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[l,c]=n[a];l===c?s+=l:l!=="0"||c!=="9"?s+=bd(l,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function fl(e,t,r,n){let i=_d(e,t),s=[],o=e,a;for(let l=0;l<i.length;l++){let c=i[l],u=gd(String(o),String(c),n),d="";if(!r.isPadded&&a&&a.pattern===u.pattern){a.count.length>1&&a.count.pop(),a.count.push(u.count[0]),a.string=a.pattern+dl(a.count),o=c+1;continue}r.isPadded&&(d=vd(c,r,n)),u.string=d+u.pattern+dl(u.count),s.push(u),o=c+1,a=u}return s}function li(e,t,r,n,i){let s=[];for(let o of e){let{string:a}=o;!n&&!cl(t,"string",a)&&s.push(r+a),n&&cl(t,"string",a)&&s.push(r+a)}return s}function yd(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function md(e,t){return e>t?1:t>e?-1:0}function cl(e,t,r){return e.some(n=>n[t]===r)}function hl(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function pl(e,t){return e-e%Math.pow(10,t)}function dl(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function bd(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function _l(e){return/^-?(0+)\d/.test(e)}function vd(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}et.cache={};et.clearCache=()=>et.cache={};gl.exports=et});var ci=g((Nm,Al)=>{"use strict";var xd=L("util"),vl=yl(),ml=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Sd=e=>t=>e===!0?Number(t):String(t),ui=e=>typeof e=="number"||typeof e=="string"&&e!=="",Qt=e=>Number.isInteger(+e),fi=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},Ed=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,Rd=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},bl=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},Ad=(e,t)=>{e.negatives.sort((o,a)=>o<a?-1:o>a?1:0),e.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=t.capture?"":"?:",n="",i="",s;return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(i=`-(${r}${e.negatives.join("|")})`),n&&i?s=`${n}|${i}`:s=n||i,t.wrap?`(${r}${s})`:s},xl=(e,t,r,n)=>{if(r)return vl(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},Sl=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return vl(e,t,r)},El=(...e)=>new RangeError("Invalid range arguments: "+xd.inspect(...e)),Rl=(e,t,r)=>{if(r.strictRanges===!0)throw El([e,t]);return[]},wd=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},Td=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw El([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(e),l=String(t),c=String(r);r=Math.max(Math.abs(r),1);let u=fi(a)||fi(l)||fi(c),d=u?Math.max(a.length,l.length,c.length):0,f=u===!1&&Ed(e,t,n)===!1,S=n.transform||Sd(f);if(n.toRegex&&r===1)return xl(bl(e,d),bl(t,d),!0,n);let m={negatives:[],positives:[]},y=D=>m[D<0?"negatives":"positives"].push(Math.abs(D)),E=[],x=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?y(i):E.push(Rd(S(i,x),d,f)),i=o?i-r:i+r,x++;return n.toRegex===!0?r>1?Ad(m,n):Sl(E,null,{wrap:!1,...n}):E},Cd=(e,t,r=1,n={})=>{if(!Qt(e)&&e.length>1||!Qt(t)&&t.length>1)return Rl(e,t,n);let i=n.transform||(f=>String.fromCharCode(f)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),a=s>o,l=Math.min(s,o),c=Math.max(s,o);if(n.toRegex&&r===1)return xl(l,c,!1,n);let u=[],d=0;for(;a?s>=o:s<=o;)u.push(i(s,d)),s=a?s-r:s+r,d++;return n.toRegex===!0?Sl(u,null,{wrap:!1,options:n}):u},qr=(e,t,r,n={})=>{if(t==null&&ui(e))return[e];if(!ui(e)||!ui(t))return Rl(e,t,n);if(typeof r=="function")return qr(e,t,1,{transform:r});if(ml(r))return qr(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Qt(r)?Qt(e)&&Qt(t)?Td(e,t,r,i):Cd(e,t,Math.max(Math.abs(r),1),i):r!=null&&!ml(r)?wd(r,i):qr(e,t,1,r)};Al.exports=qr});var Cl=g((Fm,Tl)=>{"use strict";var Od=ci(),wl=Nr(),Pd=(e,t={})=>{let r=(n,i={})=>{let s=wl.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a=s===!0||o===!0,l=t.escapeInvalid===!0?"\\":"",c="";if(n.isOpen===!0||n.isClose===!0)return l+n.value;if(n.type==="open")return a?l+n.value:"(";if(n.type==="close")return a?l+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let u=wl.reduce(n.nodes),d=Od(...u,{...t,wrap:!1,toRegex:!0});if(d.length!==0)return u.length>1&&d.length>1?`(${d})`:d}if(n.nodes)for(let u of n.nodes)c+=r(u,n);return c};return r(e)};Tl.exports=Pd});var Ll=g((qm,Pl)=>{"use strict";var Ld=ci(),Ol=Fr(),bt=Nr(),tt=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?bt.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(tt(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?tt(i,s,r):i+s);return bt.flatten(n)},Md=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(tt(a.pop(),Ol(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(tt(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let d=bt.reduce(i.nodes);if(bt.exceedsLimit(...d,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let f=Ld(...d,t);f.length===0&&(f=Ol(i,t)),a.push(tt(a.pop(),f)),i.nodes=[];return}let l=bt.encloseBrace(i),c=i.queue,u=i;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,c=u.queue;for(let d=0;d<i.nodes.length;d++){let f=i.nodes[d];if(f.type==="comma"&&i.type==="brace"){d===1&&c.push(""),c.push("");continue}if(f.type==="close"){a.push(tt(a.pop(),c,l));continue}if(f.value&&f.type!=="open"){c.push(tt(c.pop(),f.value));continue}f.nodes&&n(f,i)}return c};return bt.flatten(n(e))};Pl.exports=Md});var Bl=g((jm,Ml)=>{"use strict";Ml.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
@@ -15,7 +15,7 @@ $ ${o} ${a.join(" ")}
15
15
  `)),await new Promise((l,c)=>{i=ac(o,a,n);let u="",d="";if(!i)throw new Error("Child process was not set.");let f=S=>{i=null;let m={code:S,stdout:u,stderr:d};S===0||S===1&&!yn?l(m):c(m)};i.stdout?.on("data",S=>{u+=S.toString()}),i.stderr?.on("data",S=>{d+=S.toString()}),i.on("close",f),i.on("exit",f),i.on("error",f),i.stdout?.pipe(process.stdout),i.stderr?.pipe(process.stderr)})},kill(s="SIGKILL"){if(i?.pid)if(yn)lc(`taskkill /t /f /pid ${i.pid}`);else return process.kill(-i.pid,s);return!0}}};import Br from"node:process";import Ao from"node:process";var So=st(_o(),1),Eo=st(xo(),1);import Bc from"node:process";var Dc=(0,So.default)(()=>{(0,Eo.default)(()=>{Bc.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),Ro=Dc;var pr=!1,pt={};pt.show=(e=Ao.stderr)=>{!e.isTTY||(pr=!1,e.write("\x1B[?25h"))};pt.hide=(e=Ao.stderr)=>{!e.isTTY||(Ro(),pr=!0,e.write("\x1B[?25l"))};pt.toggle=(e,t)=>{e!==void 0&&(pr=e),pr?pt.show(t):pt.hide(t)};var Sn=pt;var Kt=st(Oo(),1);import Ce from"node:process";function It(){return Ce.platform!=="win32"?Ce.env.TERM!=="linux":Boolean(Ce.env.CI)||Boolean(Ce.env.WT_SESSION)||Ce.env.ConEmuTask==="{cmd::Cmder}"||Ce.env.TERM_PROGRAM==="vscode"||Ce.env.TERM==="xterm-256color"||Ce.env.TERM==="alacritty"||Ce.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var kc={info:ie.blue("ℹ"),success:ie.green("✔"),warning:ie.yellow("⚠"),error:ie.red("✖")},Nc={info:ie.blue("i"),success:ie.green("√"),warning:ie.yellow("‼"),error:ie.red("×")},Fc=It()?kc:Nc,kt=Fc;function En({onlyFirst:e=!1}={}){let t=["[\\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(t,e?void 0:"g")}function Rn(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(En(),"")}var Ya=st(Fo(),1);function wn({stream:e=process.stdout}={}){return Boolean(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var Va=st(Wa(),1);import ye from"node:process";import Wp from"node:readline";var Vp=3,Mr=class{#r=0;#f=new Va.BufferListStream;#i;#n;constructor(){this.#f.pipe(ye.stdout);let t=this;this.#i=function(r,n,...i){let{stdin:s}=ye;if(t.#r>0||s.emit===t.#i){if(r==="keypress")return;r==="data"&&n.includes(Vp)&&ye.emit("SIGINT"),Reflect.apply(t.#i,this,[r,n,...i])}else Reflect.apply(ye.stdin.emit,this,[r,n,...i])}}start(){this.#r++,this.#r===1&&this._realStart()}stop(){if(this.#r<=0)throw new Error("`stop` called more times than `start`");this.#r--,this.#r===0&&this._realStop()}_realStart(){ye.platform!=="win32"&&(this.#n=Wp.createInterface({input:ye.stdin,output:this.#f}),this.#n.on("SIGINT",()=>{ye.listenerCount("SIGINT")===0?ye.emit("SIGINT"):(this.#n.close(),ye.kill(ye.pid,"SIGINT"))}))}_realStop(){ye.platform!=="win32"&&(this.#n.close(),this.#n=void 0)}};var Dr,ii=class{#r=0;#f=!1;#i=0;#n=0;#e;#o;#t;#c;#h;#a;#l;#u;#p;#s;color;constructor(t){Dr||(Dr=new Mr),typeof t=="string"&&(t={text:t}),this.#e={color:"cyan",stream:Br.stderr,discardStdin:!0,hideCursor:!0,...t},this.color=this.#e.color,this.spinner=this.#e.spinner,this.#h=this.#e.interval,this.#t=this.#e.stream,this.#a=typeof this.#e.isEnabled=="boolean"?this.#e.isEnabled:wn({stream:this.#t}),this.#l=typeof this.#e.isSilent=="boolean"?this.#e.isSilent:!1,this.text=this.#e.text,this.prefixText=this.#e.prefixText,this.indent=this.#e.indent,Br.env.NODE_ENV==="test"&&(this._stream=this.#t,this._isEnabled=this.#a,Object.defineProperty(this,"_linesToClear",{get(){return this.#r},set(r){this.#r=r}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#n}}),Object.defineProperty(this,"_lineCount",{get(){return this.#i}}))}get indent(){return this.#u}set indent(t=0){if(!(t>=0&&Number.isInteger(t)))throw new Error("The `indent` option must be an integer from 0 and up");this.#u=t,this.updateLineCount()}get interval(){return this.#h||this.#o.interval||100}get spinner(){return this.#o}set spinner(t){if(this.#n=0,this.#h=void 0,typeof t=="object"){if(t.frames===void 0)throw new Error("The given spinner must have a `frames` property");this.#o=t}else if(!It())this.#o=Kt.default.line;else if(t===void 0)this.#o=Kt.default.dots;else if(t!=="default"&&Kt.default[t])this.#o=Kt.default[t];else throw new Error(`There is no built-in spinner named '${t}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}get text(){return this.#p}set text(t){this.#p=t||"",this.updateLineCount()}get prefixText(){return this.#s}set prefixText(t){this.#s=t||"",this.updateLineCount()}get isSpinning(){return this.#c!==void 0}getFullPrefixText(t=this.#s,r=" "){return typeof t=="string"&&t!==""?t+r:typeof t=="function"?t()+r:""}updateLineCount(){let t=this.#t.columns||80,r=this.getFullPrefixText(this.#s,"-");this.#i=0;for(let n of Rn(" ".repeat(this.#u)+r+"--"+this.#p).split(`
16
16
  `))this.#i+=Math.max(1,Math.ceil((0,Ya.default)(n)/t))}get isEnabled(){return this.#a&&!this.#l}set isEnabled(t){if(typeof t!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this.#a=t}get isSilent(){return this.#l}set isSilent(t){if(typeof t!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this.#l=t}frame(){let{frames:t}=this.#o,r=t[this.#n];this.color&&(r=ie[this.color](r)),this.#n=++this.#n%t.length;let n=typeof this.#s=="string"&&this.#s!==""?this.#s+" ":"",i=typeof this.text=="string"?" "+this.text:"";return n+r+i}clear(){if(!this.#a||!this.#t.isTTY)return this;this.#t.cursorTo(0);for(let t=0;t<this.#r;t++)t>0&&this.#t.moveCursor(0,-1),this.#t.clearLine(1);return(this.#u||this.lastIndent!==this.#u)&&this.#t.cursorTo(this.#u),this.lastIndent=this.#u,this.#r=0,this}render(){return this.#l?this:(this.clear(),this.#t.write(this.frame()),this.#r=this.#i,this)}start(t){return t&&(this.text=t),this.#l?this:this.#a?this.isSpinning?this:(this.#e.hideCursor&&Sn.hide(this.#t),this.#e.discardStdin&&Br.stdin.isTTY&&(this.#f=!0,Dr.start()),this.render(),this.#c=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.#t.write(`- ${this.text}
17
17
  `),this)}stop(){return this.#a?(clearInterval(this.#c),this.#c=void 0,this.#n=0,this.clear(),this.#e.hideCursor&&Sn.show(this.#t),this.#e.discardStdin&&Br.stdin.isTTY&&this.#f&&(Dr.stop(),this.#f=!1),this):this}succeed(t){return this.stopAndPersist({symbol:kt.success,text:t})}fail(t){return this.stopAndPersist({symbol:kt.error,text:t})}warn(t){return this.stopAndPersist({symbol:kt.warning,text:t})}info(t){return this.stopAndPersist({symbol:kt.info,text:t})}stopAndPersist(t={}){if(this.#l)return this;let r=t.prefixText||this.#s,n=t.text||this.text,i=typeof n=="string"?" "+n:"";return this.stop(),this.#t.write(`${this.getFullPrefixText(r," ")}${t.symbol||" "}${i}
18
- `),this}};function si(e){return new ii(e)}import{resolve as iy}from"path";var ty=st(Df(),1);import{copyFile as fv,mkdir as ry}from"fs/promises";import{dirname as hv,resolve as Hs}from"path";var If={NODE_ENV:"production"};try{let{env:e}=await import("process");e.NODE_ENV&&(If.NODE_ENV=e.NODE_ENV)}catch{}var kf=If.NODE_ENV==="development";import{Console as V0}from"console";var Qb=new V0({stdout:process.stdout,stderr:process.stderr,groupIndentation:4});var Nf={packageJson:{type:"module",platform:"node",types:"dist/index.d.ts",files:["dist"],exports:{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},scripts:{dev:"tsmodule dev",build:"tsmodule build",test:"ava",pretest:"tsmodule build --runtime-only",prepublishOnly:"yarn build && yarn test",lint:"eslint src --fix"},ava:{timeout:24e4,files:["test/**/*.test.ts"],extensions:{ts:"module"},nodeArguments:["--no-warnings","--loader=@tsmodule/tsmodule"]}},files:["tsconfig.json",".eslintrc"],dependencies:[],devDependencies:["@types/node","@tsmodule/tsmodule","@typescript-eslint/eslint-plugin","@typescript-eslint/parser","ava","eslint","typescript"]},Ct={default:Nf,react:{packageJson:{platform:"browser",style:"dist/bundle.css",exports:{"./package.json":"./package.json",".":"./dist/index.js","./styles":"./dist/bundle.css","./styles/*":"./dist/components/*/index.css","./*":"./dist/components/*/index.js"},scripts:{export:"tsmodule build",dev:"next dev",build:"next build",start:"next start",lint:"next lint --fix",pretest:"tsmodule build --runtime-only",test:"ava",prepublishOnly:"yarn export && yarn test"},resolutions:{"@types/react":"^17.0.38","@types/react-dom":"^17.0.11"}},files:[".eslintrc","next-env.d.ts","next.config.js","postcss.config.js","tailwind.config.js"],dependencies:["react@^17.0.2","react-dom@^17.0.2"],devDependencies:[...Nf.devDependencies,"@types/react@^17.0.39","@types/react-dom@^17.0.11","eslint-config-next","@tsmodule/react","next","tailwindcss","autoprefixer","cssnano","postcss","postcss-import"]}};import{dirname as K0,resolve as Q0}from"path";import{fileURLToPath as X0}from"url";var Ff=Q0(K0(X0(import.meta.url)),"..");import{readFile as J0,writeFile as Z0}from"fs/promises";import{resolve as qf}from"path";var z0=async(e=process.cwd())=>{let t=qf(e,"package.json");return await J0(t,"utf-8")},ey=async(e=process.cwd())=>{let t=await z0(e);return JSON.parse(t)},ln=async(e=process.cwd(),t)=>{let r=qf(e,"package.json"),n=await ey(e);return Object.assign(n,t),await Z0(r,JSON.stringify(n,null,2),"utf-8"),n};var ny=e=>Hs(Ff,`./templates/${e}`),$s=async({template:e,targetDir:t=process.cwd()})=>{let r=Bt(),n=ny(e),i=Hs(t);await ry(i,{recursive:!0}),await r.run({posix:`cp -rf ${n}/. ${i}`,win32:`xcopy /E /I /Q /Y ${n}\\ ${i}\\`})};var Gs=async({template:e,targetDir:t=process.cwd()})=>{let r=Hs(t),n=Ct[e].packageJson;return await ln(r,n)},Us=async({template:e,targetDir:t=process.cwd()})=>{let r=Bt({cwd:t}),n=[...Ct.default.dependencies],i=[...Ct.default.devDependencies];switch(e){case"react":n.push(...Ct.react.dependencies),i.push(...Ct.react.devDependencies);break}n.length&&await r.run(`yarn add ${n.join(" ")}`),i.length&&await r.run(`yarn add -D ${i.join(" ")}`)};globalThis.SHELL_OPTIONS={stdio:["ignore","ignore","inherit"]};var Tv=async(e,{react:t=!1})=>{let r=Bt(),n=si(`Creating new module ${ie.blueBright(e)}.`).start(),i={template:"default",targetDir:e};if(await $s(i),await Gs(i),t){let s={template:"react",targetDir:e};await $s(s),await Gs(s)}await ln(iy(process.cwd(),e),{name:e}),n.succeed("Project created."),await Us({template:"default",targetDir:e}),t&&await Us({template:"react",targetDir:e}),n.succeed("Dependencies installed."),await r.run("git init"),n.succeed("Set up as Git repository.")};export{Tv as create};
18
+ `),this}};function si(e){return new ii(e)}import{resolve as iy}from"path";var ty=st(Df(),1);import{copyFile as fv,mkdir as ry}from"fs/promises";import{dirname as hv,resolve as Hs}from"path";var If={NODE_ENV:"production"};try{let{env:e}=await import("process");e.NODE_ENV&&(If.NODE_ENV=e.NODE_ENV)}catch{}var kf=If.NODE_ENV==="development";import{Console as V0}from"console";var Qb=new V0({stdout:process.stdout,stderr:process.stderr,groupIndentation:4});var Nf={packageJson:{type:"module",platform:"node",types:"dist/index.d.ts",files:["dist"],exports:{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},scripts:{dev:"tsmodule dev",build:"tsmodule build",test:"ava",pretest:"tsmodule build --runtime-only",prepublishOnly:"yarn build && yarn test",lint:"eslint src --fix"},ava:{timeout:"10m",files:["test/**/*.test.ts"],extensions:{ts:"module"},nodeArguments:["--no-warnings","--loader=@tsmodule/tsmodule"]}},files:["tsconfig.json",".eslintrc"],dependencies:[],devDependencies:["@types/node","@tsmodule/tsmodule","@typescript-eslint/eslint-plugin","@typescript-eslint/parser","ava","eslint","typescript"]},Ct={default:Nf,react:{packageJson:{platform:"browser",style:"dist/bundle.css",exports:{"./package.json":"./package.json",".":"./dist/index.js","./styles":"./dist/bundle.css","./styles/*":"./dist/components/*/index.css","./*":"./dist/components/*/index.js"},scripts:{export:"tsmodule build",dev:"next dev",build:"next build",start:"next start",lint:"next lint --fix",pretest:"tsmodule build --runtime-only",test:"ava",prepublishOnly:"yarn export && yarn test"},resolutions:{"@types/react":"^17.0.38","@types/react-dom":"^17.0.11"}},files:[".eslintrc","next-env.d.ts","next.config.js","postcss.config.js","tailwind.config.js"],dependencies:["react@^17.0.2","react-dom@^17.0.2"],devDependencies:[...Nf.devDependencies,"@types/react@^17.0.39","@types/react-dom@^17.0.11","eslint-config-next","@tsmodule/react","next","tailwindcss","autoprefixer","cssnano","postcss","postcss-import"]}};import{dirname as K0,resolve as Q0}from"path";import{fileURLToPath as X0}from"url";var Ff=Q0(K0(X0(import.meta.url)),"..");import{readFile as J0,writeFile as Z0}from"fs/promises";import{resolve as qf}from"path";var z0=async(e=process.cwd())=>{let t=qf(e,"package.json");return await J0(t,"utf-8")},ey=async(e=process.cwd())=>{let t=await z0(e);return JSON.parse(t)},ln=async(e=process.cwd(),t)=>{let r=qf(e,"package.json"),n=await ey(e);return Object.assign(n,t),await Z0(r,JSON.stringify(n,null,2),"utf-8"),n};var ny=e=>Hs(Ff,`./templates/${e}`),$s=async({template:e,targetDir:t=process.cwd()})=>{let r=Bt(),n=ny(e),i=Hs(t);await ry(i,{recursive:!0}),await r.run({posix:`cp -rf ${n}/. ${i}`,win32:`xcopy /E /I /Q /Y ${n}\\ ${i}\\`})};var Gs=async({template:e,targetDir:t=process.cwd()})=>{let r=Hs(t),n=Ct[e].packageJson;return await ln(r,n)},Us=async({template:e,targetDir:t=process.cwd()})=>{let r=Bt({cwd:t}),n=[...Ct.default.dependencies],i=[...Ct.default.devDependencies];switch(e){case"react":n.push(...Ct.react.dependencies),i.push(...Ct.react.devDependencies);break}n.length&&await r.run(`yarn add ${n.join(" ")}`),i.length&&await r.run(`yarn add -D ${i.join(" ")}`)};globalThis.SHELL_OPTIONS={stdio:["ignore","ignore","inherit"]};var Tv=async(e,{react:t=!1})=>{let r=Bt(),n=si(`Creating new module ${ie.blueBright(e)}.`).start(),i={template:"default",targetDir:e};if(await $s(i),await Gs(i),t){let s={template:"react",targetDir:e};await $s(s),await Gs(s)}await ln(iy(process.cwd(),e),{name:e}),n.succeed("Project created."),await Us({template:"default",targetDir:e}),t&&await Us({template:"react",targetDir:e}),n.succeed("Dependencies installed."),await r.run("git init"),n.succeed("Set up as Git repository.")};export{Tv as create};
19
19
  /*!
20
20
  * fill-range <https://github.com/jonschlinkert/fill-range>
21
21
  *
@@ -1,4 +1,4 @@
1
-
1
+ "use strict";
2
2
  typeof document>"u"&&await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
3
3
 
4
4
  var Xo=Object.create;var Mn=Object.defineProperty;var Jo=Object.getOwnPropertyDescriptor;var Zo=Object.getOwnPropertyNames;var zo=Object.getPrototypeOf,ea=Object.prototype.hasOwnProperty;var F=(t=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(t,{get:(e,r)=>(typeof require!="undefined"?require:e)[r]}):t)(function(t){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var ta=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Zo(e))!ea.call(t,s)&&s!==r&&Mn(t,s,{get:()=>e[s],enumerable:!(n=Jo(e,s))||n.enumerable});return t};var ra=(t,e,r)=>(r=t!=null?Xo(zo(t)):{},ta(e||!t||!t.__esModule?Mn(r,"default",{value:t,enumerable:!0}):r,t));var Nn=m(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.splitWhen=ke.flatten=void 0;function na(t){return t.reduce((e,r)=>[].concat(e,r),[])}ke.flatten=na;function sa(t,e){let r=[[]],n=0;for(let s of t)e(s)?(n++,r[n]=[]):r[n].push(s);return r}ke.splitWhen=sa});var In=m(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.isEnoentCodeError=void 0;function ia(t){return t.code==="ENOENT"}it.isEnoentCodeError=ia});var Bn=m(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.createDirentFromStats=void 0;var Bt=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function oa(t,e){return new Bt(t,e)}ot.createDirentFromStats=oa});var Dn=m(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.removeLeadingDotSegment=ue.escape=ue.makeAbsolute=ue.unixify=void 0;var aa=F("path"),ua=2,la=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function ca(t){return t.replace(/\\/g,"/")}ue.unixify=ca;function fa(t,e){return aa.resolve(t,e)}ue.makeAbsolute=fa;function pa(t){return t.replace(la,"\\$2")}ue.escape=pa;function ha(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(ua)}return t}ue.removeLeadingDotSegment=ha});var Hn=m((np,$n)=>{$n.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var jn=m((sp,qn)=>{var da=Hn(),Fn={"{":"}","(":")","[":"]"},ga=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,n=-2,s=-2,i=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||n!==-1&&t[e]==="["&&t[e+1]!=="]"&&(n<e&&(n=t.indexOf("]",e)),n>e&&(o===-1||o>n||(o=t.indexOf("\\",e),o===-1||o>n)))||s!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(s=t.indexOf("}",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||i!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(i=t.indexOf(")",e),i>e&&(o=t.indexOf("\\",e),o===-1||o>i))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(i=t.indexOf(")",r),i>r&&(o=t.indexOf("\\",r),o===-1||o>i))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var u=Fn[a];if(u){var d=t.indexOf(u,e);d!==-1&&(e=d+1)}if(t[e]==="!")return!0}else e++}return!1},_a=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var n=Fn[r];if(n){var s=t.indexOf(n,e);s!==-1&&(e=s+1)}if(t[e]==="!")return!0}else e++}return!1};qn.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(da(e))return!0;var n=ga;return r&&r.strict===!1&&(n=_a),n(e)}});var Un=m((ip,Gn)=>{"use strict";var ma=jn(),ya=F("path").posix.dirname,Sa=F("os").platform()==="win32",Dt="/",ba=/\\/g,Ea=/[\{\[].*[\}\]]$/,Aa=/(^|[^\\])([\{\[]|\([^\)]+$)/,Ra=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Gn.exports=function(e,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&Sa&&e.indexOf(Dt)<0&&(e=e.replace(ba,Dt)),Ea.test(e)&&(e+=Dt),e+="a";do e=ya(e);while(ma(e)||Aa.test(e));return e.replace(Ra,"$1")}});var at=m(te=>{"use strict";te.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;te.find=(t,e)=>t.nodes.find(r=>r.type===e);te.exceedsLimit=(t,e,r=1,n)=>n===!1||!te.isInteger(t)||!te.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=n;te.escapeNode=(t,e=0,r)=>{let n=t.nodes[e];!n||(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};te.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1;te.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:t.commas>>0+t.ranges>>0===0||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;te.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;te.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);te.flatten=(...t)=>{let e=[],r=n=>{for(let s=0;s<n.length;s++){let i=n[s];Array.isArray(i)?r(i,e):i!==void 0&&e.push(i)}return e};return r(t),e}});var ut=m((ap,Wn)=>{"use strict";var Vn=at();Wn.exports=(t,e={})=>{let r=(n,s={})=>{let i=e.escapeInvalid&&Vn.isInvalidBrace(s),o=n.invalid===!0&&e.escapeInvalid===!0,a="";if(n.value)return(i||o)&&Vn.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let u of n.nodes)a+=r(u);return a};return r(t)}});var Kn=m((up,Yn)=>{"use strict";Yn.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var ns=m((lp,rs)=>{"use strict";var Qn=Kn(),xe=(t,e,r)=>{if(Qn(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Qn(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let s=String(n.relaxZeros),i=String(n.shorthand),o=String(n.capture),a=String(n.wrap),u=t+":"+e+"="+s+i+o+a;if(xe.cache.hasOwnProperty(u))return xe.cache[u].result;let d=Math.min(t,e),l=Math.max(t,e);if(Math.abs(d-l)===1){let b=t+"|"+e;return n.capture?`(${b})`:n.wrap===!1?b:`(?:${b})`}let g=ts(t)||ts(e),p={min:t,max:e,a:d,b:l},R=[],y=[];if(g&&(p.isPadded=g,p.maxLen=String(p.max).length),d<0){let b=l<0?Math.abs(l):1;y=Xn(b,Math.abs(d),p,n),d=p.a=0}return l>=0&&(R=Xn(d,l,p,n)),p.negatives=y,p.positives=R,p.result=va(y,R,n),n.capture===!0?p.result=`(${p.result})`:n.wrap!==!1&&R.length+y.length>1&&(p.result=`(?:${p.result})`),xe.cache[u]=p,p.result};function va(t,e,r){let n=$t(t,e,"-",!1,r)||[],s=$t(e,t,"",!1,r)||[],i=$t(t,e,"-?",!0,r)||[];return n.concat(i).concat(s).join("|")}function xa(t,e){let r=1,n=1,s=Zn(t,r),i=new Set([e]);for(;t<=s&&s<=e;)i.add(s),r+=1,s=Zn(t,r);for(s=zn(e+1,n)-1;t<s&&s<=e;)i.add(s),n+=1,s=zn(e+1,n)-1;return i=[...i],i.sort(Ca),i}function Ta(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let n=Oa(t,e),s=n.length,i="",o=0;for(let a=0;a<s;a++){let[u,d]=n[a];u===d?i+=u:u!=="0"||d!=="9"?i+=Pa(u,d,r):o++}return o&&(i+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:i,count:[o],digits:s}}function Xn(t,e,r,n){let s=xa(t,e),i=[],o=t,a;for(let u=0;u<s.length;u++){let d=s[u],l=Ta(String(o),String(d),n),g="";if(!r.isPadded&&a&&a.pattern===l.pattern){a.count.length>1&&a.count.pop(),a.count.push(l.count[0]),a.string=a.pattern+es(a.count),o=d+1;continue}r.isPadded&&(g=wa(d,r,n)),l.string=g+l.pattern+es(l.count),i.push(l),o=d+1,a=l}return i}function $t(t,e,r,n,s){let i=[];for(let o of t){let{string:a}=o;!n&&!Jn(e,"string",a)&&i.push(r+a),n&&Jn(e,"string",a)&&i.push(r+a)}return i}function Oa(t,e){let r=[];for(let n=0;n<t.length;n++)r.push([t[n],e[n]]);return r}function Ca(t,e){return t>e?1:e>t?-1:0}function Jn(t,e,r){return t.some(n=>n[e]===r)}function Zn(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function zn(t,e){return t-t%Math.pow(10,e)}function es(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function Pa(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function ts(t){return/^-?(0+)\d/.test(t)}function wa(t,e,r){if(!e.isPadded)return t;let n=Math.abs(e.maxLen-String(t).length),s=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return s?"0?":"0";case 2:return s?"0{0,2}":"00";default:return s?`0{0,${n}}`:`0{${n}}`}}xe.cache={};xe.clearCache=()=>xe.cache={};rs.exports=xe});var qt=m((cp,fs)=>{"use strict";var La=F("util"),os=ns(),ss=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),ka=t=>e=>t===!0?Number(e):String(e),Ht=t=>typeof t=="number"||typeof t=="string"&&t!=="",Ye=t=>Number.isInteger(+t),Ft=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},Ma=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,Na=(t,e,r)=>{if(e>0){let n=t[0]==="-"?"-":"";n&&(t=t.slice(1)),t=n+t.padStart(n?e-1:e,"0")}return r===!1?String(t):t},is=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},Ia=(t,e)=>{t.negatives.sort((o,a)=>o<a?-1:o>a?1:0),t.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=e.capture?"":"?:",n="",s="",i;return t.positives.length&&(n=t.positives.join("|")),t.negatives.length&&(s=`-(${r}${t.negatives.join("|")})`),n&&s?i=`${n}|${s}`:i=n||s,e.wrap?`(${r}${i})`:i},as=(t,e,r,n)=>{if(r)return os(t,e,{wrap:!1,...n});let s=String.fromCharCode(t);if(t===e)return s;let i=String.fromCharCode(e);return`[${s}-${i}]`},us=(t,e,r)=>{if(Array.isArray(t)){let n=r.wrap===!0,s=r.capture?"":"?:";return n?`(${s}${t.join("|")})`:t.join("|")}return os(t,e,r)},ls=(...t)=>new RangeError("Invalid range arguments: "+La.inspect(...t)),cs=(t,e,r)=>{if(r.strictRanges===!0)throw ls([t,e]);return[]},Ba=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},Da=(t,e,r=1,n={})=>{let s=Number(t),i=Number(e);if(!Number.isInteger(s)||!Number.isInteger(i)){if(n.strictRanges===!0)throw ls([t,e]);return[]}s===0&&(s=0),i===0&&(i=0);let o=s>i,a=String(t),u=String(e),d=String(r);r=Math.max(Math.abs(r),1);let l=Ft(a)||Ft(u)||Ft(d),g=l?Math.max(a.length,u.length,d.length):0,p=l===!1&&Ma(t,e,n)===!1,R=n.transform||ka(p);if(n.toRegex&&r===1)return as(is(t,g),is(e,g),!0,n);let y={negatives:[],positives:[]},b=k=>y[k<0?"negatives":"positives"].push(Math.abs(k)),v=[],x=0;for(;o?s>=i:s<=i;)n.toRegex===!0&&r>1?b(s):v.push(Na(R(s,x),g,p)),s=o?s-r:s+r,x++;return n.toRegex===!0?r>1?Ia(y,n):us(v,null,{wrap:!1,...n}):v},$a=(t,e,r=1,n={})=>{if(!Ye(t)&&t.length>1||!Ye(e)&&e.length>1)return cs(t,e,n);let s=n.transform||(p=>String.fromCharCode(p)),i=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=i>o,u=Math.min(i,o),d=Math.max(i,o);if(n.toRegex&&r===1)return as(u,d,!1,n);let l=[],g=0;for(;a?i>=o:i<=o;)l.push(s(i,g)),i=a?i-r:i+r,g++;return n.toRegex===!0?us(l,null,{wrap:!1,options:n}):l},lt=(t,e,r,n={})=>{if(e==null&&Ht(t))return[t];if(!Ht(t)||!Ht(e))return cs(t,e,n);if(typeof r=="function")return lt(t,e,1,{transform:r});if(ss(r))return lt(t,e,0,r);let s={...n};return s.capture===!0&&(s.wrap=!0),r=r||s.step||1,Ye(r)?Ye(t)&&Ye(e)?Da(t,e,r,s):$a(t,e,Math.max(Math.abs(r),1),s):r!=null&&!ss(r)?Ba(r,s):lt(t,e,1,r)};fs.exports=lt});var ds=m((fp,hs)=>{"use strict";var Ha=qt(),ps=at(),Fa=(t,e={})=>{let r=(n,s={})=>{let i=ps.isInvalidBrace(s),o=n.invalid===!0&&e.escapeInvalid===!0,a=i===!0||o===!0,u=e.escapeInvalid===!0?"\\":"",d="";if(n.isOpen===!0||n.isClose===!0)return u+n.value;if(n.type==="open")return a?u+n.value:"(";if(n.type==="close")return a?u+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let l=ps.reduce(n.nodes),g=Ha(...l,{...e,wrap:!1,toRegex:!0});if(g.length!==0)return l.length>1&&g.length>1?`(${g})`:g}if(n.nodes)for(let l of n.nodes)d+=r(l,n);return d};return r(t)};hs.exports=Fa});var ms=m((pp,_s)=>{"use strict";var qa=qt(),gs=ut(),Me=at(),Te=(t="",e="",r=!1)=>{let n=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?Me.flatten(e).map(s=>`{${s}}`):e;for(let s of t)if(Array.isArray(s))for(let i of s)n.push(Te(i,e,r));else for(let i of e)r===!0&&typeof i=="string"&&(i=`{${i}}`),n.push(Array.isArray(i)?Te(s,i,r):s+i);return Me.flatten(n)},ja=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,n=(s,i={})=>{s.queue=[];let o=i,a=i.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(s.invalid||s.dollar){a.push(Te(a.pop(),gs(s,e)));return}if(s.type==="brace"&&s.invalid!==!0&&s.nodes.length===2){a.push(Te(a.pop(),["{}"]));return}if(s.nodes&&s.ranges>0){let g=Me.reduce(s.nodes);if(Me.exceedsLimit(...g,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let p=qa(...g,e);p.length===0&&(p=gs(s,e)),a.push(Te(a.pop(),p)),s.nodes=[];return}let u=Me.encloseBrace(s),d=s.queue,l=s;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,d=l.queue;for(let g=0;g<s.nodes.length;g++){let p=s.nodes[g];if(p.type==="comma"&&s.type==="brace"){g===1&&d.push(""),d.push("");continue}if(p.type==="close"){a.push(Te(a.pop(),d,u));continue}if(p.value&&p.type!=="open"){d.push(Te(d.pop(),p.value));continue}p.nodes&&n(p,s)}return d};return Me.flatten(n(t))};_s.exports=ja});var Ss=m((hp,ys)=>{"use strict";ys.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
@@ -16,7 +16,7 @@ var Xo=Object.create;var Mn=Object.defineProperty;var Jo=Object.getOwnPropertyDe
16
16
  `,s)}while(n!==-1);return i+=t.slice(s),i}var{stdout:$o,stderr:Ho}=Tf,xn=Symbol("GENERATOR"),Ue=Symbol("STYLER"),ze=Symbol("IS_EMPTY"),Fo=["ansi","ansi","ansi256","ansi16m"],Ve=Object.create(null),Pf=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=$o?$o.level:0;t.level=e.level===void 0?r:e.level},wf=t=>{let e=(...r)=>r.join(" ");return Pf(e,t),Object.setPrototypeOf(e,et.prototype),e};function et(t){return wf(t)}Object.setPrototypeOf(et.prototype,Function.prototype);for(let[t,e]of Object.entries(he))Ve[t]={get(){let r=Nt(this,On(e.open,e.close,this[Ue]),this[ze]);return Object.defineProperty(this,t,{value:r}),r}};Ve.visible={get(){let t=Nt(this,this[Ue],!0);return Object.defineProperty(this,"visible",{value:t}),t}};var Tn=(t,e,r,...n)=>t==="rgb"?e==="ansi16m"?he[r].ansi16m(...n):e==="ansi256"?he[r].ansi256(he.rgbToAnsi256(...n)):he[r].ansi(he.rgbToAnsi(...n)):t==="hex"?Tn("rgb",e,r,...he.hexToRgb(...n)):he[r][t](...n),Lf=["rgb","hex","ansi256"];for(let t of Lf){Ve[t]={get(){let{level:r}=this;return function(...n){let s=On(Tn(t,Fo[r],"color",...n),he.color.close,this[Ue]);return Nt(this,s,this[ze])}}};let e="bg"+t[0].toUpperCase()+t.slice(1);Ve[e]={get(){let{level:r}=this;return function(...n){let s=On(Tn(t,Fo[r],"bgColor",...n),he.bgColor.close,this[Ue]);return Nt(this,s,this[ze])}}}}var kf=Object.defineProperties(()=>{},{...Ve,level:{enumerable:!0,get(){return this[xn].level},set(t){this[xn].level=t}}}),On=(t,e,r)=>{let n,s;return r===void 0?(n=t,s=e):(n=r.openAll+t,s=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:s,parent:r}},Nt=(t,e,r)=>{let n=(...s)=>Mf(n,s.length===1?""+s[0]:s.join(" "));return Object.setPrototypeOf(n,kf),n[xn]=t,n[Ue]=e,n[ze]=r,n},Mf=(t,e)=>{if(t.level<=0||!e)return t[ze]?"":e;let r=t[Ue];if(r===void 0)return e;let{openAll:n,closeAll:s}=r;if(e.includes("\x1B"))for(;r!==void 0;)e=Of(e,r.close,r.open),r=r.parent;let i=e.indexOf(`
17
17
  `);return i!==-1&&(e=Cf(e,s,n,i)),n+e+s};Object.defineProperties(et.prototype,Ve);var Nf=et(),jh=et({level:Ho?Ho.level:0}),If=Nf,Bf={win32:t=>({cmd:"cmd.exe",args:["/d","/s","/c",t]})},Df={"cp -rf":{win32:t=>{let e="xcopy /E /S /G /Q /Y",r=t.map(n=>n.endsWith("\\")?n:`${n}\\`).map(n=>n.replace(/\*\\$/,""));return`${e} ${r.join(" ")}`}},ln:{win32:t=>`mklink /D ${t.join(" ")}`},pkill:{win32:t=>`taskkill /T /F /pid ${t.join(" ")}`}},$f=(t,e,r)=>{let n={...Bf,...e},s={...Df,...r},i=a=>{let u=process.platform,d=n[u];if(d)return d(a);let[l,...g]=a.split(" ");return{cmd:l,args:g}},o=(a=>{let u=Object.entries(s);for(let[d,l]of u)if(a.startsWith(d)){let g=process.platform,p=l[g];if(!p)break;let R=a.slice(d.length).trim().split(" ");return p(R)}return a})(t);return i(o)},Hf=process.platform==="linux"||process.platform==="darwin",Cn=process.platform==="win32",Ff={stdio:"pipe",shell:!0,detached:!Cn,env:process.env},qf={log:!0,commandTranslations:{},shellTranslations:{},...Ff},wn=({log:t=!0,commandTranslations:e={},shellTranslations:r={},...n}=qf)=>{let s=null;return{childProcess:s,async run(i){if(s)throw new Error("Only one command per shell.");if(typeof i=="object"){let u=process.platform;i.posix&&Hf&&(u="posix");let d=i[u];if(!d)throw new Error("No command found for platform: "+JSON.stringify({platform:process.platform,command:i}));i=d}let{cmd:o,args:a}=$f(i,r,e);return t&&console.log(If.dim(`
18
18
  $ ${o} ${a.join(" ")}
19
- `)),await new Promise((u,d)=>{s=mf(o,a,n);let l="",g="";if(!s)throw new Error("Child process was not set.");let p=R=>{s=null;let y={code:R,stdout:l,stderr:g};R===0||R===1&&!Cn?u(y):d(y)};s.stdout?.on("data",R=>{l+=R.toString()}),s.stderr?.on("data",R=>{g+=R.toString()}),s.on("close",p),s.on("exit",p),s.on("error",p),s.stdout?.pipe(process.stdout),s.stderr?.pipe(process.stderr)})},kill(i="SIGKILL"){if(s?.pid)if(Cn)yf(`taskkill /t /f /pid ${s.pid}`);else return process.kill(-s.pid,i);return!0}}};var qo={packageJson:{type:"module",platform:"node",types:"dist/index.d.ts",files:["dist"],exports:{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},scripts:{dev:"tsmodule dev",build:"tsmodule build",test:"ava",pretest:"tsmodule build --runtime-only",prepublishOnly:"yarn build && yarn test",lint:"eslint src --fix"},ava:{timeout:24e4,files:["test/**/*.test.ts"],extensions:{ts:"module"},nodeArguments:["--no-warnings","--loader=@tsmodule/tsmodule"]}},files:["tsconfig.json",".eslintrc"],dependencies:[],devDependencies:["@types/node","@tsmodule/tsmodule","@typescript-eslint/eslint-plugin","@typescript-eslint/parser","ava","eslint","typescript"]},Le={default:qo,react:{packageJson:{platform:"browser",style:"dist/bundle.css",exports:{"./package.json":"./package.json",".":"./dist/index.js","./styles":"./dist/bundle.css","./styles/*":"./dist/components/*/index.css","./*":"./dist/components/*/index.js"},scripts:{export:"tsmodule build",dev:"next dev",build:"next build",start:"next start",lint:"next lint --fix",pretest:"tsmodule build --runtime-only",test:"ava",prepublishOnly:"yarn export && yarn test"},resolutions:{"@types/react":"^17.0.38","@types/react-dom":"^17.0.11"}},files:[".eslintrc","next-env.d.ts","next.config.js","postcss.config.js","tailwind.config.js"],dependencies:["react@^17.0.2","react-dom@^17.0.2"],devDependencies:[...qo.devDependencies,"@types/react@^17.0.39","@types/react-dom@^17.0.11","eslint-config-next","@tsmodule/react","next","tailwindcss","autoprefixer","cssnano","postcss","postcss-import"]}};import{dirname as jf,resolve as Gf}from"path";import{fileURLToPath as Uf}from"url";var jo=Gf(jf(Uf(import.meta.url)),"..");import{readFile as Vf,writeFile as Wf}from"fs/promises";import{resolve as Go}from"path";var Yf=async(t=process.cwd())=>{let e=Go(t,"package.json");return await Vf(e,"utf-8")},Kf=async(t=process.cwd())=>{let e=await Yf(t);return JSON.parse(e)},Uo=async(t=process.cwd(),e)=>{let r=Go(t,"package.json"),n=await Kf(t);return Object.assign(n,e),await Wf(r,JSON.stringify(n,null,2),"utf-8"),n};var Yo=t=>We(jo,`./templates/${t}`),od=async({template:t,targetDir:e=process.cwd()})=>{let r=wn(),n=Yo(t),s=We(e);await Ln(s,{recursive:!0}),await r.run({posix:`cp -rf ${n}/. ${s}`,win32:`xcopy /E /I /Q /Y ${n}\\ ${s}\\`})},kn=async({template:t,targetDir:e=process.cwd()})=>{let r=vn(kn);r.log("Copying template files",{template:t,targetDir:e});let n=Yo(t),s=We(e);await Ln(s,{recursive:!0});let i=await(0,Wo.default)(Le[t].files,{cwd:n,dot:!0});if(i.length)for(let o of i){let a=We(n,o),u=We(s,o);r.log({sourcePath:a,replacementPath:u}),await Ln(Xf(u),{recursive:!0}),await Qf(a,u)}},Vo=async({template:t,targetDir:e=process.cwd()})=>{let r=We(e),n=Le[t].packageJson;return await Uo(r,n)},Jf=async({template:t,targetDir:e=process.cwd()})=>{let r=wn({cwd:e}),n=[...Le.default.dependencies],s=[...Le.default.devDependencies];switch(t){case"react":n.push(...Le.react.dependencies),s.push(...Le.react.devDependencies);break}n.length&&await r.run(`yarn add ${n.join(" ")}`),s.length&&await r.run(`yarn add -D ${s.join(" ")}`)},ad=async({template:t,targetDir:e=process.cwd()})=>{let r={template:"default",targetDir:e};if(await kn(r),await Vo(r),t!=="default"){let n={template:t,targetDir:e};await kn(n),await Vo(n)}await Jf({template:t,targetDir:e})};export{Jf as applyDependenciesSpec,Vo as applyPackageJsonSpec,ad as applySpecification,kn as applyTemplateFileSpec,od as copyTemplate};
19
+ `)),await new Promise((u,d)=>{s=mf(o,a,n);let l="",g="";if(!s)throw new Error("Child process was not set.");let p=R=>{s=null;let y={code:R,stdout:l,stderr:g};R===0||R===1&&!Cn?u(y):d(y)};s.stdout?.on("data",R=>{l+=R.toString()}),s.stderr?.on("data",R=>{g+=R.toString()}),s.on("close",p),s.on("exit",p),s.on("error",p),s.stdout?.pipe(process.stdout),s.stderr?.pipe(process.stderr)})},kill(i="SIGKILL"){if(s?.pid)if(Cn)yf(`taskkill /t /f /pid ${s.pid}`);else return process.kill(-s.pid,i);return!0}}};var qo={packageJson:{type:"module",platform:"node",types:"dist/index.d.ts",files:["dist"],exports:{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},scripts:{dev:"tsmodule dev",build:"tsmodule build",test:"ava",pretest:"tsmodule build --runtime-only",prepublishOnly:"yarn build && yarn test",lint:"eslint src --fix"},ava:{timeout:"10m",files:["test/**/*.test.ts"],extensions:{ts:"module"},nodeArguments:["--no-warnings","--loader=@tsmodule/tsmodule"]}},files:["tsconfig.json",".eslintrc"],dependencies:[],devDependencies:["@types/node","@tsmodule/tsmodule","@typescript-eslint/eslint-plugin","@typescript-eslint/parser","ava","eslint","typescript"]},Le={default:qo,react:{packageJson:{platform:"browser",style:"dist/bundle.css",exports:{"./package.json":"./package.json",".":"./dist/index.js","./styles":"./dist/bundle.css","./styles/*":"./dist/components/*/index.css","./*":"./dist/components/*/index.js"},scripts:{export:"tsmodule build",dev:"next dev",build:"next build",start:"next start",lint:"next lint --fix",pretest:"tsmodule build --runtime-only",test:"ava",prepublishOnly:"yarn export && yarn test"},resolutions:{"@types/react":"^17.0.38","@types/react-dom":"^17.0.11"}},files:[".eslintrc","next-env.d.ts","next.config.js","postcss.config.js","tailwind.config.js"],dependencies:["react@^17.0.2","react-dom@^17.0.2"],devDependencies:[...qo.devDependencies,"@types/react@^17.0.39","@types/react-dom@^17.0.11","eslint-config-next","@tsmodule/react","next","tailwindcss","autoprefixer","cssnano","postcss","postcss-import"]}};import{dirname as jf,resolve as Gf}from"path";import{fileURLToPath as Uf}from"url";var jo=Gf(jf(Uf(import.meta.url)),"..");import{readFile as Vf,writeFile as Wf}from"fs/promises";import{resolve as Go}from"path";var Yf=async(t=process.cwd())=>{let e=Go(t,"package.json");return await Vf(e,"utf-8")},Kf=async(t=process.cwd())=>{let e=await Yf(t);return JSON.parse(e)},Uo=async(t=process.cwd(),e)=>{let r=Go(t,"package.json"),n=await Kf(t);return Object.assign(n,e),await Wf(r,JSON.stringify(n,null,2),"utf-8"),n};var Yo=t=>We(jo,`./templates/${t}`),od=async({template:t,targetDir:e=process.cwd()})=>{let r=wn(),n=Yo(t),s=We(e);await Ln(s,{recursive:!0}),await r.run({posix:`cp -rf ${n}/. ${s}`,win32:`xcopy /E /I /Q /Y ${n}\\ ${s}\\`})},kn=async({template:t,targetDir:e=process.cwd()})=>{let r=vn(kn);r.log("Copying template files",{template:t,targetDir:e});let n=Yo(t),s=We(e);await Ln(s,{recursive:!0});let i=await(0,Wo.default)(Le[t].files,{cwd:n,dot:!0});if(i.length)for(let o of i){let a=We(n,o),u=We(s,o);r.log({sourcePath:a,replacementPath:u}),await Ln(Xf(u),{recursive:!0}),await Qf(a,u)}},Vo=async({template:t,targetDir:e=process.cwd()})=>{let r=We(e),n=Le[t].packageJson;return await Uo(r,n)},Jf=async({template:t,targetDir:e=process.cwd()})=>{let r=wn({cwd:e}),n=[...Le.default.dependencies],s=[...Le.default.devDependencies];switch(t){case"react":n.push(...Le.react.dependencies),s.push(...Le.react.devDependencies);break}n.length&&await r.run(`yarn add ${n.join(" ")}`),s.length&&await r.run(`yarn add -D ${s.join(" ")}`)},ad=async({template:t,targetDir:e=process.cwd()})=>{let r={template:"default",targetDir:e};if(await kn(r),await Vo(r),t!=="default"){let n={template:t,targetDir:e};await kn(n),await Vo(n)}await Jf({template:t,targetDir:e})};export{Jf as applyDependenciesSpec,Vo as applyPackageJsonSpec,ad as applySpecification,kn as applyTemplateFileSpec,od as copyTemplate};
20
20
  /*!
21
21
  * fill-range <https://github.com/jonschlinkert/fill-range>
22
22
  *