@umijs/utils 4.0.52 → 4.0.54
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/compiled/@ampproject/remapping/@jridgewell/gen-mapping/dist/types/gen-mapping.d.ts +70 -0
- package/compiled/@ampproject/remapping/@jridgewell/gen-mapping/dist/types/sourcemap-segment.d.ts +12 -0
- package/compiled/@ampproject/remapping/@jridgewell/gen-mapping/dist/types/types.d.ts +35 -0
- package/compiled/@ampproject/remapping/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts +16 -0
- package/compiled/@ampproject/remapping/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts +74 -0
- package/compiled/@ampproject/remapping/@jridgewell/trace-mapping/dist/types/types.d.ts +92 -0
- package/compiled/@ampproject/remapping/LICENSE +202 -0
- package/compiled/@ampproject/remapping/dist/types/remapping.d.ts +19 -0
- package/compiled/@ampproject/remapping/dist/types/source-map.d.ts +17 -0
- package/compiled/@ampproject/remapping/dist/types/types.d.ts +14 -0
- package/compiled/@ampproject/remapping/index.js +1 -0
- package/compiled/@ampproject/remapping/package.json +1 -0
- package/compiled/magic-string/LICENSE +7 -0
- package/compiled/magic-string/index.d.ts +250 -0
- package/compiled/magic-string/index.js +1 -0
- package/compiled/magic-string/package.json +1 -0
- package/compiled/tsconfig-paths/LICENSE +21 -0
- package/compiled/tsconfig-paths/index.js +1 -0
- package/compiled/tsconfig-paths/lib/index.d.ts +5 -0
- package/compiled/tsconfig-paths/package.json +1 -0
- package/dist/BaseGenerator/BaseGenerator.js +0 -4
- package/dist/BaseGenerator/generateFile.js +4 -1
- package/dist/Generator/Generator.js +0 -4
- package/dist/getDevBanner.js +22 -11
- package/dist/getGitInfo.js +4 -1
- package/dist/importLazy.js +7 -2
- package/dist/index.d.ts +5 -1
- package/dist/index.js +10 -0
- package/dist/installDeps.js +16 -10
- package/dist/logger.js +8 -3
- package/dist/npmClient.js +0 -4
- package/dist/printHelp.js +7 -2
- package/dist/randomColor/randomColor.js +4 -1
- package/dist/readDirFiles.d.ts +9 -0
- package/dist/readDirFiles.js +62 -0
- package/dist/register.js +10 -5
- package/dist/updatePackageJSON.js +14 -5
- package/package.json +11 -4
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
export interface BundleOptions {
|
|
2
|
+
intro?: string;
|
|
3
|
+
separator?: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export interface SourceMapOptions {
|
|
7
|
+
/**
|
|
8
|
+
* Whether the mapping should be high-resolution.
|
|
9
|
+
* Hi-res mappings map every single character, meaning (for example) your devtools will always
|
|
10
|
+
* be able to pinpoint the exact location of function calls and so on.
|
|
11
|
+
* With lo-res mappings, devtools may only be able to identify the correct
|
|
12
|
+
* line - but they're quicker to generate and less bulky.
|
|
13
|
+
* If sourcemap locations have been specified with s.addSourceMapLocation(), they will be used here.
|
|
14
|
+
*/
|
|
15
|
+
hires?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The filename where you plan to write the sourcemap.
|
|
18
|
+
*/
|
|
19
|
+
file?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The filename of the file containing the original source.
|
|
22
|
+
*/
|
|
23
|
+
source?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Whether to include the original content in the map's sourcesContent array.
|
|
26
|
+
*/
|
|
27
|
+
includeContent?: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type SourceMapSegment =
|
|
31
|
+
| [number]
|
|
32
|
+
| [number, number, number, number]
|
|
33
|
+
| [number, number, number, number, number];
|
|
34
|
+
|
|
35
|
+
export interface DecodedSourceMap {
|
|
36
|
+
file: string;
|
|
37
|
+
sources: string[];
|
|
38
|
+
sourcesContent: string[];
|
|
39
|
+
names: string[];
|
|
40
|
+
mappings: SourceMapSegment[][];
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export class SourceMap {
|
|
44
|
+
constructor(properties: DecodedSourceMap);
|
|
45
|
+
|
|
46
|
+
version: number;
|
|
47
|
+
file: string;
|
|
48
|
+
sources: string[];
|
|
49
|
+
sourcesContent: string[];
|
|
50
|
+
names: string[];
|
|
51
|
+
mappings: string;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Returns the equivalent of `JSON.stringify(map)`
|
|
55
|
+
*/
|
|
56
|
+
toString(): string;
|
|
57
|
+
/**
|
|
58
|
+
* Returns a DataURI containing the sourcemap. Useful for doing this sort of thing:
|
|
59
|
+
* `generateMap(options?: SourceMapOptions): SourceMap;`
|
|
60
|
+
*/
|
|
61
|
+
toUrl(): string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export class Bundle {
|
|
65
|
+
constructor(options?: BundleOptions);
|
|
66
|
+
addSource(source: MagicString | { filename?: string, content: MagicString }): Bundle;
|
|
67
|
+
append(str: string, options?: BundleOptions): Bundle;
|
|
68
|
+
clone(): Bundle;
|
|
69
|
+
generateMap(options?: SourceMapOptions): SourceMap;
|
|
70
|
+
generateDecodedMap(options?: SourceMapOptions): DecodedSourceMap;
|
|
71
|
+
getIndentString(): string;
|
|
72
|
+
indent(indentStr?: string): Bundle;
|
|
73
|
+
indentExclusionRanges: ExclusionRange | Array<ExclusionRange>;
|
|
74
|
+
prepend(str: string): Bundle;
|
|
75
|
+
toString(): string;
|
|
76
|
+
trimLines(): Bundle;
|
|
77
|
+
trim(charType?: string): Bundle;
|
|
78
|
+
trimStart(charType?: string): Bundle;
|
|
79
|
+
trimEnd(charType?: string): Bundle;
|
|
80
|
+
isEmpty(): boolean;
|
|
81
|
+
length(): number;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export type ExclusionRange = [ number, number ];
|
|
85
|
+
|
|
86
|
+
export interface MagicStringOptions {
|
|
87
|
+
filename?: string,
|
|
88
|
+
indentExclusionRanges?: ExclusionRange | Array<ExclusionRange>;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export interface IndentOptions {
|
|
92
|
+
exclude?: ExclusionRange | Array<ExclusionRange>;
|
|
93
|
+
indentStart?: boolean;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export interface OverwriteOptions {
|
|
97
|
+
storeName?: boolean;
|
|
98
|
+
contentOnly?: boolean;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface UpdateOptions {
|
|
102
|
+
storeName?: boolean;
|
|
103
|
+
overwrite?: boolean;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export default class MagicString {
|
|
107
|
+
constructor(str: string, options?: MagicStringOptions);
|
|
108
|
+
/**
|
|
109
|
+
* Adds the specified character index (with respect to the original string) to sourcemap mappings, if `hires` is false.
|
|
110
|
+
*/
|
|
111
|
+
addSourcemapLocation(char: number): void;
|
|
112
|
+
/**
|
|
113
|
+
* Appends the specified content to the end of the string.
|
|
114
|
+
*/
|
|
115
|
+
append(content: string): MagicString;
|
|
116
|
+
/**
|
|
117
|
+
* Appends the specified content at the index in the original string.
|
|
118
|
+
* If a range *ending* with index is subsequently moved, the insert will be moved with it.
|
|
119
|
+
* See also `s.prependLeft(...)`.
|
|
120
|
+
*/
|
|
121
|
+
appendLeft(index: number, content: string): MagicString;
|
|
122
|
+
/**
|
|
123
|
+
* Appends the specified content at the index in the original string.
|
|
124
|
+
* If a range *starting* with index is subsequently moved, the insert will be moved with it.
|
|
125
|
+
* See also `s.prependRight(...)`.
|
|
126
|
+
*/
|
|
127
|
+
appendRight(index: number, content: string): MagicString;
|
|
128
|
+
/**
|
|
129
|
+
* Does what you'd expect.
|
|
130
|
+
*/
|
|
131
|
+
clone(): MagicString;
|
|
132
|
+
/**
|
|
133
|
+
* Generates a version 3 sourcemap.
|
|
134
|
+
*/
|
|
135
|
+
generateMap(options?: SourceMapOptions): SourceMap;
|
|
136
|
+
/**
|
|
137
|
+
* Generates a sourcemap object with raw mappings in array form, rather than encoded as a string.
|
|
138
|
+
* Useful if you need to manipulate the sourcemap further, but most of the time you will use `generateMap` instead.
|
|
139
|
+
*/
|
|
140
|
+
generateDecodedMap(options?: SourceMapOptions): DecodedSourceMap;
|
|
141
|
+
getIndentString(): string;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Prefixes each line of the string with prefix.
|
|
145
|
+
* If prefix is not supplied, the indentation will be guessed from the original content, falling back to a single tab character.
|
|
146
|
+
*/
|
|
147
|
+
indent(options?: IndentOptions): MagicString;
|
|
148
|
+
/**
|
|
149
|
+
* Prefixes each line of the string with prefix.
|
|
150
|
+
* If prefix is not supplied, the indentation will be guessed from the original content, falling back to a single tab character.
|
|
151
|
+
*
|
|
152
|
+
* The options argument can have an exclude property, which is an array of [start, end] character ranges.
|
|
153
|
+
* These ranges will be excluded from the indentation - useful for (e.g.) multiline strings.
|
|
154
|
+
*/
|
|
155
|
+
indent(indentStr?: string, options?: IndentOptions): MagicString;
|
|
156
|
+
indentExclusionRanges: ExclusionRange | Array<ExclusionRange>;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Moves the characters from `start and `end` to `index`.
|
|
160
|
+
*/
|
|
161
|
+
move(start: number, end: number, index: number): MagicString;
|
|
162
|
+
/**
|
|
163
|
+
* Replaces the characters from `start` to `end` with `content`, along with the appended/prepended content in
|
|
164
|
+
* that range. The same restrictions as `s.remove()` apply.
|
|
165
|
+
*
|
|
166
|
+
* The fourth argument is optional. It can have a storeName property — if true, the original name will be stored
|
|
167
|
+
* for later inclusion in a sourcemap's names array — and a contentOnly property which determines whether only
|
|
168
|
+
* the content is overwritten, or anything that was appended/prepended to the range as well.
|
|
169
|
+
*
|
|
170
|
+
* It may be preferred to use `s.update(...)` instead if you wish to avoid overwriting the appended/prepended content.
|
|
171
|
+
*/
|
|
172
|
+
overwrite(start: number, end: number, content: string, options?: boolean | OverwriteOptions): MagicString;
|
|
173
|
+
/**
|
|
174
|
+
* Replaces the characters from `start` to `end` with `content`. The same restrictions as `s.remove()` apply.
|
|
175
|
+
*
|
|
176
|
+
* The fourth argument is optional. It can have a storeName property — if true, the original name will be stored
|
|
177
|
+
* for later inclusion in a sourcemap's names array — and an overwrite property which determines whether only
|
|
178
|
+
* the content is overwritten, or anything that was appended/prepended to the range as well.
|
|
179
|
+
*/
|
|
180
|
+
update(start: number, end: number, content: string, options?: boolean | UpdateOptions): MagicString;
|
|
181
|
+
/**
|
|
182
|
+
* Prepends the string with the specified content.
|
|
183
|
+
*/
|
|
184
|
+
prepend(content: string): MagicString;
|
|
185
|
+
/**
|
|
186
|
+
* Same as `s.appendLeft(...)`, except that the inserted content will go *before* any previous appends or prepends at index
|
|
187
|
+
*/
|
|
188
|
+
prependLeft(index: number, content: string): MagicString;
|
|
189
|
+
/**
|
|
190
|
+
* Same as `s.appendRight(...)`, except that the inserted content will go *before* any previous appends or prepends at `index`
|
|
191
|
+
*/
|
|
192
|
+
prependRight(index: number, content: string): MagicString;
|
|
193
|
+
/**
|
|
194
|
+
* Removes the characters from `start` to `end` (of the original string, **not** the generated string).
|
|
195
|
+
* Removing the same content twice, or making removals that partially overlap, will cause an error.
|
|
196
|
+
*/
|
|
197
|
+
remove(start: number, end: number): MagicString;
|
|
198
|
+
/**
|
|
199
|
+
* Returns the content of the generated string that corresponds to the slice between `start` and `end` of the original string.
|
|
200
|
+
* Throws error if the indices are for characters that were already removed.
|
|
201
|
+
*/
|
|
202
|
+
slice(start: number, end: number): string;
|
|
203
|
+
/**
|
|
204
|
+
* Returns a clone of `s`, with all content before the `start` and `end` characters of the original string removed.
|
|
205
|
+
*/
|
|
206
|
+
snip(start: number, end: number): MagicString;
|
|
207
|
+
/**
|
|
208
|
+
* Trims content matching `charType` (defaults to `\s`, i.e. whitespace) from the start and end.
|
|
209
|
+
*/
|
|
210
|
+
trim(charType?: string): MagicString;
|
|
211
|
+
/**
|
|
212
|
+
* Trims content matching `charType` (defaults to `\s`, i.e. whitespace) from the start.
|
|
213
|
+
*/
|
|
214
|
+
trimStart(charType?: string): MagicString;
|
|
215
|
+
/**
|
|
216
|
+
* Trims content matching `charType` (defaults to `\s`, i.e. whitespace) from the end.
|
|
217
|
+
*/
|
|
218
|
+
trimEnd(charType?: string): MagicString;
|
|
219
|
+
/**
|
|
220
|
+
* Removes empty lines from the start and end.
|
|
221
|
+
*/
|
|
222
|
+
trimLines(): MagicString;
|
|
223
|
+
/**
|
|
224
|
+
* String replacement with RegExp or string.
|
|
225
|
+
*/
|
|
226
|
+
replace(regex: RegExp | string, replacement: string | ((substring: string, ...args: any[]) => string)): MagicString;
|
|
227
|
+
/**
|
|
228
|
+
* Same as `s.replace`, but replace all matched strings instead of just one.
|
|
229
|
+
*/
|
|
230
|
+
replaceAll(regex: RegExp | string, replacement: string | ((substring: string, ...args: any[]) => string)): MagicString;
|
|
231
|
+
|
|
232
|
+
lastChar(): string;
|
|
233
|
+
lastLine(): string;
|
|
234
|
+
/**
|
|
235
|
+
* Returns true if the resulting source is empty (disregarding white space).
|
|
236
|
+
*/
|
|
237
|
+
isEmpty(): boolean;
|
|
238
|
+
length(): number;
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Indicates if the string has been changed.
|
|
242
|
+
*/
|
|
243
|
+
hasChanged(): boolean;
|
|
244
|
+
|
|
245
|
+
original: string;
|
|
246
|
+
/**
|
|
247
|
+
* Returns the generated string.
|
|
248
|
+
*/
|
|
249
|
+
toString(): string;
|
|
250
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(){var t={961:function(t,e){(function(t,n){true?n(e):0})(this,(function(t){"use strict";const e=",".charCodeAt(0);const n=";".charCodeAt(0);const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";const r=new Uint8Array(64);const s=new Uint8Array(128);for(let t=0;t<i.length;t++){const e=i.charCodeAt(t);r[t]=e;s[e]=t}const o=typeof TextDecoder!=="undefined"?new TextDecoder:typeof Buffer!=="undefined"?{decode(t){const e=Buffer.from(t.buffer,t.byteOffset,t.byteLength);return e.toString()}}:{decode(t){let e="";for(let n=0;n<t.length;n++){e+=String.fromCharCode(t[n])}return e}};function decode(t){const e=new Int32Array(5);const n=[];let i=0;do{const r=indexOf(t,i);const s=[];let o=true;let h=0;e[0]=0;for(let n=i;n<r;n++){let i;n=decodeInteger(t,n,e,0);const a=e[0];if(a<h)o=false;h=a;if(hasMoreVlq(t,n,r)){n=decodeInteger(t,n,e,1);n=decodeInteger(t,n,e,2);n=decodeInteger(t,n,e,3);if(hasMoreVlq(t,n,r)){n=decodeInteger(t,n,e,4);i=[a,e[1],e[2],e[3],e[4]]}else{i=[a,e[1],e[2],e[3]]}}else{i=[a]}s.push(i)}if(!o)sort(s);n.push(s);i=r+1}while(i<=t.length);return n}function indexOf(t,e){const n=t.indexOf(";",e);return n===-1?t.length:n}function decodeInteger(t,e,n,i){let r=0;let o=0;let h=0;do{const n=t.charCodeAt(e++);h=s[n];r|=(h&31)<<o;o+=5}while(h&32);const a=r&1;r>>>=1;if(a){r=-2147483648|-r}n[i]+=r;return e}function hasMoreVlq(t,n,i){if(n>=i)return false;return t.charCodeAt(n)!==e}function sort(t){t.sort(sortComparator)}function sortComparator(t,e){return t[0]-e[0]}function encode(t){const i=new Int32Array(5);const r=1024*16;const s=r-36;const h=new Uint8Array(r);const a=h.subarray(0,s);let l=0;let u="";for(let c=0;c<t.length;c++){const d=t[c];if(c>0){if(l===r){u+=o.decode(h);l=0}h[l++]=n}if(d.length===0)continue;i[0]=0;for(let t=0;t<d.length;t++){const n=d[t];if(l>s){u+=o.decode(a);h.copyWithin(0,s,l);l-=s}if(t>0)h[l++]=e;l=encodeInteger(h,l,i,n,0);if(n.length===1)continue;l=encodeInteger(h,l,i,n,1);l=encodeInteger(h,l,i,n,2);l=encodeInteger(h,l,i,n,3);if(n.length===4)continue;l=encodeInteger(h,l,i,n,4)}}return u+o.decode(h.subarray(0,l))}function encodeInteger(t,e,n,i,s){const o=i[s];let h=o-n[s];n[s]=o;h=h<0?-h<<1|1:h<<1;do{let n=h&31;h>>>=5;if(h>0)n|=32;t[e++]=r[n]}while(h>0);return e}t.decode=decode;t.encode=encode;Object.defineProperty(t,"__esModule",{value:true})}))},712:function(t,e,n){"use strict";var i=n(961);class BitSet{constructor(t){this.bits=t instanceof BitSet?t.bits.slice():[]}add(t){this.bits[t>>5]|=1<<(t&31)}has(t){return!!(this.bits[t>>5]&1<<(t&31))}}class Chunk{constructor(t,e,n){this.start=t;this.end=e;this.original=n;this.intro="";this.outro="";this.content=n;this.storeName=false;this.edited=false;{this.previous=null;this.next=null}}appendLeft(t){this.outro+=t}appendRight(t){this.intro=this.intro+t}clone(){const t=new Chunk(this.start,this.end,this.original);t.intro=this.intro;t.outro=this.outro;t.content=this.content;t.storeName=this.storeName;t.edited=this.edited;return t}contains(t){return this.start<t&&t<this.end}eachNext(t){let e=this;while(e){t(e);e=e.next}}eachPrevious(t){let e=this;while(e){t(e);e=e.previous}}edit(t,e,n){this.content=t;if(!n){this.intro="";this.outro=""}this.storeName=e;this.edited=true;return this}prependLeft(t){this.outro=t+this.outro}prependRight(t){this.intro=t+this.intro}split(t){const e=t-this.start;const n=this.original.slice(0,e);const i=this.original.slice(e);this.original=n;const r=new Chunk(t,this.end,i);r.outro=this.outro;this.outro="";this.end=t;if(this.edited){r.edit("",false);this.content=""}else{this.content=n}r.next=this.next;if(r.next)r.next.previous=r;r.previous=this;this.next=r;return r}toString(){return this.intro+this.content+this.outro}trimEnd(t){this.outro=this.outro.replace(t,"");if(this.outro.length)return true;const e=this.content.replace(t,"");if(e.length){if(e!==this.content){this.split(this.start+e.length).edit("",undefined,true)}return true}else{this.edit("",undefined,true);this.intro=this.intro.replace(t,"");if(this.intro.length)return true}}trimStart(t){this.intro=this.intro.replace(t,"");if(this.intro.length)return true;const e=this.content.replace(t,"");if(e.length){if(e!==this.content){this.split(this.end-e.length);this.edit("",undefined,true)}return true}else{this.edit("",undefined,true);this.outro=this.outro.replace(t,"");if(this.outro.length)return true}}}function getBtoa(){if(typeof window!=="undefined"&&typeof window.btoa==="function"){return t=>window.btoa(unescape(encodeURIComponent(t)))}else if(typeof Buffer==="function"){return t=>Buffer.from(t,"utf-8").toString("base64")}else{return()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}}const r=getBtoa();class SourceMap{constructor(t){this.version=3;this.file=t.file;this.sources=t.sources;this.sourcesContent=t.sourcesContent;this.names=t.names;this.mappings=i.encode(t.mappings)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+r(this.toString())}}function guessIndent(t){const e=t.split("\n");const n=e.filter((t=>/^\t+/.test(t)));const i=e.filter((t=>/^ {2,}/.test(t)));if(n.length===0&&i.length===0){return null}if(n.length>=i.length){return"\t"}const r=i.reduce(((t,e)=>{const n=/^ +/.exec(e)[0].length;return Math.min(n,t)}),Infinity);return new Array(r+1).join(" ")}function getRelativePath(t,e){const n=t.split(/[/\\]/);const i=e.split(/[/\\]/);n.pop();while(n[0]===i[0]){n.shift();i.shift()}if(n.length){let t=n.length;while(t--)n[t]=".."}return n.concat(i).join("/")}const s=Object.prototype.toString;function isObject(t){return s.call(t)==="[object Object]"}function getLocator(t){const e=t.split("\n");const n=[];for(let t=0,i=0;t<e.length;t++){n.push(i);i+=e[t].length+1}return function locate(t){let e=0;let i=n.length;while(e<i){const r=e+i>>1;if(t<n[r]){i=r}else{e=r+1}}const r=e-1;const s=t-n[r];return{line:r,column:s}}}class Mappings{constructor(t){this.hires=t;this.generatedCodeLine=0;this.generatedCodeColumn=0;this.raw=[];this.rawSegments=this.raw[this.generatedCodeLine]=[];this.pending=null}addEdit(t,e,n,i){if(e.length){const e=[this.generatedCodeColumn,t,n.line,n.column];if(i>=0){e.push(i)}this.rawSegments.push(e)}else if(this.pending){this.rawSegments.push(this.pending)}this.advance(e);this.pending=null}addUneditedChunk(t,e,n,i,r){let s=e.start;let o=true;while(s<e.end){if(this.hires||o||r.has(s)){this.rawSegments.push([this.generatedCodeColumn,t,i.line,i.column])}if(n[s]==="\n"){i.line+=1;i.column=0;this.generatedCodeLine+=1;this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0;o=true}else{i.column+=1;this.generatedCodeColumn+=1;o=false}s+=1}this.pending=null}advance(t){if(!t)return;const e=t.split("\n");if(e.length>1){for(let t=0;t<e.length-1;t++){this.generatedCodeLine++;this.raw[this.generatedCodeLine]=this.rawSegments=[]}this.generatedCodeColumn=0}this.generatedCodeColumn+=e[e.length-1].length}}const o="\n";const h={insertLeft:false,insertRight:false,storeName:false};class MagicString{constructor(t,e={}){const n=new Chunk(0,t.length,t);Object.defineProperties(this,{original:{writable:true,value:t},outro:{writable:true,value:""},intro:{writable:true,value:""},firstChunk:{writable:true,value:n},lastChunk:{writable:true,value:n},lastSearchedChunk:{writable:true,value:n},byStart:{writable:true,value:{}},byEnd:{writable:true,value:{}},filename:{writable:true,value:e.filename},indentExclusionRanges:{writable:true,value:e.indentExclusionRanges},sourcemapLocations:{writable:true,value:new BitSet},storedNames:{writable:true,value:{}},indentStr:{writable:true,value:undefined}});this.byStart[0]=n;this.byEnd[t.length]=n}addSourcemapLocation(t){this.sourcemapLocations.add(t)}append(t){if(typeof t!=="string")throw new TypeError("outro content must be a string");this.outro+=t;return this}appendLeft(t,e){if(typeof e!=="string")throw new TypeError("inserted content must be a string");this._split(t);const n=this.byEnd[t];if(n){n.appendLeft(e)}else{this.intro+=e}return this}appendRight(t,e){if(typeof e!=="string")throw new TypeError("inserted content must be a string");this._split(t);const n=this.byStart[t];if(n){n.appendRight(e)}else{this.outro+=e}return this}clone(){const t=new MagicString(this.original,{filename:this.filename});let e=this.firstChunk;let n=t.firstChunk=t.lastSearchedChunk=e.clone();while(e){t.byStart[n.start]=n;t.byEnd[n.end]=n;const i=e.next;const r=i&&i.clone();if(r){n.next=r;r.previous=n;n=r}e=i}t.lastChunk=n;if(this.indentExclusionRanges){t.indentExclusionRanges=this.indentExclusionRanges.slice()}t.sourcemapLocations=new BitSet(this.sourcemapLocations);t.intro=this.intro;t.outro=this.outro;return t}generateDecodedMap(t){t=t||{};const e=0;const n=Object.keys(this.storedNames);const i=new Mappings(t.hires);const r=getLocator(this.original);if(this.intro){i.advance(this.intro)}this.firstChunk.eachNext((t=>{const s=r(t.start);if(t.intro.length)i.advance(t.intro);if(t.edited){i.addEdit(e,t.content,s,t.storeName?n.indexOf(t.original):-1)}else{i.addUneditedChunk(e,t,this.original,s,this.sourcemapLocations)}if(t.outro.length)i.advance(t.outro)}));return{file:t.file?t.file.split(/[/\\]/).pop():null,sources:[t.source?getRelativePath(t.file||"",t.source):null],sourcesContent:t.includeContent?[this.original]:[null],names:n,mappings:i.raw}}generateMap(t){return new SourceMap(this.generateDecodedMap(t))}_ensureindentStr(){if(this.indentStr===undefined){this.indentStr=guessIndent(this.original)}}_getRawIndentString(){this._ensureindentStr();return this.indentStr}getIndentString(){this._ensureindentStr();return this.indentStr===null?"\t":this.indentStr}indent(t,e){const n=/^[^\r\n]/gm;if(isObject(t)){e=t;t=undefined}if(t===undefined){this._ensureindentStr();t=this.indentStr||"\t"}if(t==="")return this;e=e||{};const i={};if(e.exclude){const t=typeof e.exclude[0]==="number"?[e.exclude]:e.exclude;t.forEach((t=>{for(let e=t[0];e<t[1];e+=1){i[e]=true}}))}let r=e.indentStart!==false;const replacer=e=>{if(r)return`${t}${e}`;r=true;return e};this.intro=this.intro.replace(n,replacer);let s=0;let o=this.firstChunk;while(o){const e=o.end;if(o.edited){if(!i[s]){o.content=o.content.replace(n,replacer);if(o.content.length){r=o.content[o.content.length-1]==="\n"}}}else{s=o.start;while(s<e){if(!i[s]){const e=this.original[s];if(e==="\n"){r=true}else if(e!=="\r"&&r){r=false;if(s===o.start){o.prependRight(t)}else{this._splitChunk(o,s);o=o.next;o.prependRight(t)}}}s+=1}}s=o.end;o=o.next}this.outro=this.outro.replace(n,replacer);return this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(t,e){if(!h.insertLeft){console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead");h.insertLeft=true}return this.appendLeft(t,e)}insertRight(t,e){if(!h.insertRight){console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead");h.insertRight=true}return this.prependRight(t,e)}move(t,e,n){if(n>=t&&n<=e)throw new Error("Cannot move a selection inside itself");this._split(t);this._split(e);this._split(n);const i=this.byStart[t];const r=this.byEnd[e];const s=i.previous;const o=r.next;const h=this.byStart[n];if(!h&&r===this.lastChunk)return this;const a=h?h.previous:this.lastChunk;if(s)s.next=o;if(o)o.previous=s;if(a)a.next=i;if(h)h.previous=r;if(!i.previous)this.firstChunk=r.next;if(!r.next){this.lastChunk=i.previous;this.lastChunk.next=null}i.previous=a;r.next=h||null;if(!a)this.firstChunk=i;if(!h)this.lastChunk=r;return this}overwrite(t,e,n,i){i=i||{};return this.update(t,e,n,{...i,overwrite:!i.contentOnly})}update(t,e,n,i){if(typeof n!=="string")throw new TypeError("replacement content must be a string");while(t<0)t+=this.original.length;while(e<0)e+=this.original.length;if(e>this.original.length)throw new Error("end is out of bounds");if(t===e)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(t);this._split(e);if(i===true){if(!h.storeName){console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string");h.storeName=true}i={storeName:true}}const r=i!==undefined?i.storeName:false;const s=i!==undefined?i.overwrite:false;if(r){const n=this.original.slice(t,e);Object.defineProperty(this.storedNames,n,{writable:true,value:true,enumerable:true})}const o=this.byStart[t];const a=this.byEnd[e];if(o){let t=o;while(t!==a){if(t.next!==this.byStart[t.end]){throw new Error("Cannot overwrite across a split point")}t=t.next;t.edit("",false)}o.edit(n,r,!s)}else{const i=new Chunk(t,e,"").edit(n,r);a.next=i;i.previous=a}return this}prepend(t){if(typeof t!=="string")throw new TypeError("outro content must be a string");this.intro=t+this.intro;return this}prependLeft(t,e){if(typeof e!=="string")throw new TypeError("inserted content must be a string");this._split(t);const n=this.byEnd[t];if(n){n.prependLeft(e)}else{this.intro=e+this.intro}return this}prependRight(t,e){if(typeof e!=="string")throw new TypeError("inserted content must be a string");this._split(t);const n=this.byStart[t];if(n){n.prependRight(e)}else{this.outro=e+this.outro}return this}remove(t,e){while(t<0)t+=this.original.length;while(e<0)e+=this.original.length;if(t===e)return this;if(t<0||e>this.original.length)throw new Error("Character is out of bounds");if(t>e)throw new Error("end must be greater than start");this._split(t);this._split(e);let n=this.byStart[t];while(n){n.intro="";n.outro="";n.edit("");n=e>n.end?this.byStart[n.end]:null}return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let t=this.lastChunk;do{if(t.outro.length)return t.outro[t.outro.length-1];if(t.content.length)return t.content[t.content.length-1];if(t.intro.length)return t.intro[t.intro.length-1]}while(t=t.previous);if(this.intro.length)return this.intro[this.intro.length-1];return""}lastLine(){let t=this.outro.lastIndexOf(o);if(t!==-1)return this.outro.substr(t+1);let e=this.outro;let n=this.lastChunk;do{if(n.outro.length>0){t=n.outro.lastIndexOf(o);if(t!==-1)return n.outro.substr(t+1)+e;e=n.outro+e}if(n.content.length>0){t=n.content.lastIndexOf(o);if(t!==-1)return n.content.substr(t+1)+e;e=n.content+e}if(n.intro.length>0){t=n.intro.lastIndexOf(o);if(t!==-1)return n.intro.substr(t+1)+e;e=n.intro+e}}while(n=n.previous);t=this.intro.lastIndexOf(o);if(t!==-1)return this.intro.substr(t+1)+e;return this.intro+e}slice(t=0,e=this.original.length){while(t<0)t+=this.original.length;while(e<0)e+=this.original.length;let n="";let i=this.firstChunk;while(i&&(i.start>t||i.end<=t)){if(i.start<e&&i.end>=e){return n}i=i.next}if(i&&i.edited&&i.start!==t)throw new Error(`Cannot use replaced character ${t} as slice start anchor.`);const r=i;while(i){if(i.intro&&(r!==i||i.start===t)){n+=i.intro}const s=i.start<e&&i.end>=e;if(s&&i.edited&&i.end!==e)throw new Error(`Cannot use replaced character ${e} as slice end anchor.`);const o=r===i?t-i.start:0;const h=s?i.content.length+e-i.end:i.content.length;n+=i.content.slice(o,h);if(i.outro&&(!s||i.end===e)){n+=i.outro}if(s){break}i=i.next}return n}snip(t,e){const n=this.clone();n.remove(0,t);n.remove(e,n.original.length);return n}_split(t){if(this.byStart[t]||this.byEnd[t])return;let e=this.lastSearchedChunk;const n=t>e.end;while(e){if(e.contains(t))return this._splitChunk(e,t);e=n?this.byStart[e.end]:this.byEnd[e.start]}}_splitChunk(t,e){if(t.edited&&t.content.length){const n=getLocator(this.original)(e);throw new Error(`Cannot split a chunk that has already been edited (${n.line}:${n.column} – "${t.original}")`)}const n=t.split(e);this.byEnd[e]=t;this.byStart[e]=n;this.byEnd[n.end]=n;if(t===this.lastChunk)this.lastChunk=n;this.lastSearchedChunk=t;return true}toString(){let t=this.intro;let e=this.firstChunk;while(e){t+=e.toString();e=e.next}return t+this.outro}isEmpty(){let t=this.firstChunk;do{if(t.intro.length&&t.intro.trim()||t.content.length&&t.content.trim()||t.outro.length&&t.outro.trim())return false}while(t=t.next);return true}length(){let t=this.firstChunk;let e=0;do{e+=t.intro.length+t.content.length+t.outro.length}while(t=t.next);return e}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimEndAborted(t){const e=new RegExp((t||"\\s")+"+$");this.outro=this.outro.replace(e,"");if(this.outro.length)return true;let n=this.lastChunk;do{const t=n.end;const i=n.trimEnd(e);if(n.end!==t){if(this.lastChunk===n){this.lastChunk=n.next}this.byEnd[n.end]=n;this.byStart[n.next.start]=n.next;this.byEnd[n.next.end]=n.next}if(i)return true;n=n.previous}while(n);return false}trimEnd(t){this.trimEndAborted(t);return this}trimStartAborted(t){const e=new RegExp("^"+(t||"\\s")+"+");this.intro=this.intro.replace(e,"");if(this.intro.length)return true;let n=this.firstChunk;do{const t=n.end;const i=n.trimStart(e);if(n.end!==t){if(n===this.lastChunk)this.lastChunk=n.next;this.byEnd[n.end]=n;this.byStart[n.next.start]=n.next;this.byEnd[n.next.end]=n.next}if(i)return true;n=n.next}while(n);return false}trimStart(t){this.trimStartAborted(t);return this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(t,e){function getReplacement(t,n){if(typeof e==="string"){return e.replace(/\$(\$|&|\d+)/g,((e,n)=>{if(n==="$")return"$";if(n==="&")return t[0];const i=+n;if(i<t.length)return t[+n];return`$${n}`}))}else{return e(...t,t.index,n,t.groups)}}function matchAll(t,e){let n;const i=[];while(n=t.exec(e)){i.push(n)}return i}if(t.global){const e=matchAll(t,this.original);e.forEach((t=>{if(t.index!=null)this.overwrite(t.index,t.index+t[0].length,getReplacement(t,this.original))}))}else{const e=this.original.match(t);if(e&&e.index!=null)this.overwrite(e.index,e.index+e[0].length,getReplacement(e,this.original))}return this}_replaceString(t,e){const{original:n}=this;const i=n.indexOf(t);if(i!==-1){this.overwrite(i,i+t.length,e)}return this}replace(t,e){if(typeof t==="string"){return this._replaceString(t,e)}return this._replaceRegexp(t,e)}_replaceAllString(t,e){const{original:n}=this;const i=t.length;for(let r=n.indexOf(t);r!==-1;r=n.indexOf(t,r+i)){this.overwrite(r,r+i,e)}return this}replaceAll(t,e){if(typeof t==="string"){return this._replaceAllString(t,e)}if(!t.global){throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument")}return this._replaceRegexp(t,e)}}const a=Object.prototype.hasOwnProperty;class Bundle{constructor(t={}){this.intro=t.intro||"";this.separator=t.separator!==undefined?t.separator:"\n";this.sources=[];this.uniqueSources=[];this.uniqueSourceIndexByFilename={}}addSource(t){if(t instanceof MagicString){return this.addSource({content:t,filename:t.filename,separator:this.separator})}if(!isObject(t)||!t.content){throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`")}["filename","indentExclusionRanges","separator"].forEach((e=>{if(!a.call(t,e))t[e]=t.content[e]}));if(t.separator===undefined){t.separator=this.separator}if(t.filename){if(!a.call(this.uniqueSourceIndexByFilename,t.filename)){this.uniqueSourceIndexByFilename[t.filename]=this.uniqueSources.length;this.uniqueSources.push({filename:t.filename,content:t.content.original})}else{const e=this.uniqueSources[this.uniqueSourceIndexByFilename[t.filename]];if(t.content.original!==e.content){throw new Error(`Illegal source: same filename (${t.filename}), different contents`)}}}this.sources.push(t);return this}append(t,e){this.addSource({content:new MagicString(t),separator:e&&e.separator||""});return this}clone(){const t=new Bundle({intro:this.intro,separator:this.separator});this.sources.forEach((e=>{t.addSource({filename:e.filename,content:e.content.clone(),separator:e.separator})}));return t}generateDecodedMap(t={}){const e=[];this.sources.forEach((t=>{Object.keys(t.content.storedNames).forEach((t=>{if(!~e.indexOf(t))e.push(t)}))}));const n=new Mappings(t.hires);if(this.intro){n.advance(this.intro)}this.sources.forEach(((t,i)=>{if(i>0){n.advance(this.separator)}const r=t.filename?this.uniqueSourceIndexByFilename[t.filename]:-1;const s=t.content;const o=getLocator(s.original);if(s.intro){n.advance(s.intro)}s.firstChunk.eachNext((i=>{const h=o(i.start);if(i.intro.length)n.advance(i.intro);if(t.filename){if(i.edited){n.addEdit(r,i.content,h,i.storeName?e.indexOf(i.original):-1)}else{n.addUneditedChunk(r,i,s.original,h,s.sourcemapLocations)}}else{n.advance(i.content)}if(i.outro.length)n.advance(i.outro)}));if(s.outro){n.advance(s.outro)}}));return{file:t.file?t.file.split(/[/\\]/).pop():null,sources:this.uniqueSources.map((e=>t.file?getRelativePath(t.file,e.filename):e.filename)),sourcesContent:this.uniqueSources.map((e=>t.includeContent?e.content:null)),names:e,mappings:n.raw}}generateMap(t){return new SourceMap(this.generateDecodedMap(t))}getIndentString(){const t={};this.sources.forEach((e=>{const n=e.content._getRawIndentString();if(n===null)return;if(!t[n])t[n]=0;t[n]+=1}));return Object.keys(t).sort(((e,n)=>t[e]-t[n]))[0]||"\t"}indent(t){if(!arguments.length){t=this.getIndentString()}if(t==="")return this;let e=!this.intro||this.intro.slice(-1)==="\n";this.sources.forEach(((n,i)=>{const r=n.separator!==undefined?n.separator:this.separator;const s=e||i>0&&/\r?\n$/.test(r);n.content.indent(t,{exclude:n.indentExclusionRanges,indentStart:s});e=n.content.lastChar()==="\n"}));if(this.intro){this.intro=t+this.intro.replace(/^[^\n]/gm,((e,n)=>n>0?t+e:e))}return this}prepend(t){this.intro=t+this.intro;return this}toString(){const t=this.sources.map(((t,e)=>{const n=t.separator!==undefined?t.separator:this.separator;const i=(e>0?n:"")+t.content.toString();return i})).join("");return this.intro+t}isEmpty(){if(this.intro.length&&this.intro.trim())return false;if(this.sources.some((t=>!t.content.isEmpty())))return false;return true}length(){return this.sources.reduce(((t,e)=>t+e.content.length()),this.intro.length)}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimStart(t){const e=new RegExp("^"+(t||"\\s")+"+");this.intro=this.intro.replace(e,"");if(!this.intro){let e;let n=0;do{e=this.sources[n++];if(!e){break}}while(!e.content.trimStartAborted(t))}return this}trimEnd(t){const e=new RegExp((t||"\\s")+"+$");let n;let i=this.sources.length-1;do{n=this.sources[i--];if(!n){this.intro=this.intro.replace(e,"");break}}while(!n.content.trimEndAborted(t));return this}}MagicString.Bundle=Bundle;MagicString.SourceMap=SourceMap;MagicString.default=MagicString;t.exports=MagicString}};var e={};function __nccwpck_require__(n){var i=e[n];if(i!==undefined){return i.exports}var r=e[n]={exports:{}};var s=true;try{t[n].call(r.exports,r,r.exports,__nccwpck_require__);s=false}finally{if(s)delete e[n]}return r.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var n=__nccwpck_require__(712);module.exports=n})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"magic-string","version":"0.27.0","author":"Rich Harris","license":"MIT","types":"./index.d.ts"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2016 Jonas Kello
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(){var u={361:function(u,e,r){const t=r(108);const D=r(440);const n={parse:t,stringify:D};u.exports=n},108:function(u,e,r){const t=r(812);let D;let n;let i;let a;let s;let o;let F;let C;let c;u.exports=function parse(u,e){D=String(u);n="start";i=[];a=0;s=1;o=0;F=undefined;C=undefined;c=undefined;do{F=lex();p[n]()}while(F.type!=="eof");if(typeof e==="function"){return internalize({"":c},"",e)}return c};function internalize(u,e,r){const t=u[e];if(t!=null&&typeof t==="object"){if(Array.isArray(t)){for(let u=0;u<t.length;u++){const e=String(u);const D=internalize(t,e,r);if(D===undefined){delete t[e]}else{Object.defineProperty(t,e,{value:D,writable:true,enumerable:true,configurable:true})}}}else{for(const u in t){const e=internalize(t,u,r);if(e===undefined){delete t[u]}else{Object.defineProperty(t,u,{value:e,writable:true,enumerable:true,configurable:true})}}}}return r.call(u,e,t)}let A;let f;let E;let l;let d;function lex(){A="default";f="";E=false;l=1;for(;;){d=peek();const u=B[A]();if(u){return u}}}function peek(){if(D[a]){return String.fromCodePoint(D.codePointAt(a))}}function read(){const u=peek();if(u==="\n"){s++;o=0}else if(u){o+=u.length}else{o++}if(u){a+=u.length}return u}const B={default(){switch(d){case"\t":case"\v":case"\f":case" ":case" ":case"\ufeff":case"\n":case"\r":case"\u2028":case"\u2029":read();return;case"/":read();A="comment";return;case undefined:read();return newToken("eof")}if(t.isSpaceSeparator(d)){read();return}return B[n]()},comment(){switch(d){case"*":read();A="multiLineComment";return;case"/":read();A="singleLineComment";return}throw invalidChar(read())},multiLineComment(){switch(d){case"*":read();A="multiLineCommentAsterisk";return;case undefined:throw invalidChar(read())}read()},multiLineCommentAsterisk(){switch(d){case"*":read();return;case"/":read();A="default";return;case undefined:throw invalidChar(read())}read();A="multiLineComment"},singleLineComment(){switch(d){case"\n":case"\r":case"\u2028":case"\u2029":read();A="default";return;case undefined:read();return newToken("eof")}read()},value(){switch(d){case"{":case"[":return newToken("punctuator",read());case"n":read();literal("ull");return newToken("null",null);case"t":read();literal("rue");return newToken("boolean",true);case"f":read();literal("alse");return newToken("boolean",false);case"-":case"+":if(read()==="-"){l=-1}A="sign";return;case".":f=read();A="decimalPointLeading";return;case"0":f=read();A="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":f=read();A="decimalInteger";return;case"I":read();literal("nfinity");return newToken("numeric",Infinity);case"N":read();literal("aN");return newToken("numeric",NaN);case'"':case"'":E=read()==='"';f="";A="string";return}throw invalidChar(read())},identifierNameStartEscape(){if(d!=="u"){throw invalidChar(read())}read();const u=unicodeEscape();switch(u){case"$":case"_":break;default:if(!t.isIdStartChar(u)){throw invalidIdentifier()}break}f+=u;A="identifierName"},identifierName(){switch(d){case"$":case"_":case"":case"":f+=read();return;case"\\":read();A="identifierNameEscape";return}if(t.isIdContinueChar(d)){f+=read();return}return newToken("identifier",f)},identifierNameEscape(){if(d!=="u"){throw invalidChar(read())}read();const u=unicodeEscape();switch(u){case"$":case"_":case"":case"":break;default:if(!t.isIdContinueChar(u)){throw invalidIdentifier()}break}f+=u;A="identifierName"},sign(){switch(d){case".":f=read();A="decimalPointLeading";return;case"0":f=read();A="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":f=read();A="decimalInteger";return;case"I":read();literal("nfinity");return newToken("numeric",l*Infinity);case"N":read();literal("aN");return newToken("numeric",NaN)}throw invalidChar(read())},zero(){switch(d){case".":f+=read();A="decimalPoint";return;case"e":case"E":f+=read();A="decimalExponent";return;case"x":case"X":f+=read();A="hexadecimal";return}return newToken("numeric",l*0)},decimalInteger(){switch(d){case".":f+=read();A="decimalPoint";return;case"e":case"E":f+=read();A="decimalExponent";return}if(t.isDigit(d)){f+=read();return}return newToken("numeric",l*Number(f))},decimalPointLeading(){if(t.isDigit(d)){f+=read();A="decimalFraction";return}throw invalidChar(read())},decimalPoint(){switch(d){case"e":case"E":f+=read();A="decimalExponent";return}if(t.isDigit(d)){f+=read();A="decimalFraction";return}return newToken("numeric",l*Number(f))},decimalFraction(){switch(d){case"e":case"E":f+=read();A="decimalExponent";return}if(t.isDigit(d)){f+=read();return}return newToken("numeric",l*Number(f))},decimalExponent(){switch(d){case"+":case"-":f+=read();A="decimalExponentSign";return}if(t.isDigit(d)){f+=read();A="decimalExponentInteger";return}throw invalidChar(read())},decimalExponentSign(){if(t.isDigit(d)){f+=read();A="decimalExponentInteger";return}throw invalidChar(read())},decimalExponentInteger(){if(t.isDigit(d)){f+=read();return}return newToken("numeric",l*Number(f))},hexadecimal(){if(t.isHexDigit(d)){f+=read();A="hexadecimalInteger";return}throw invalidChar(read())},hexadecimalInteger(){if(t.isHexDigit(d)){f+=read();return}return newToken("numeric",l*Number(f))},string(){switch(d){case"\\":read();f+=escape();return;case'"':if(E){read();return newToken("string",f)}f+=read();return;case"'":if(!E){read();return newToken("string",f)}f+=read();return;case"\n":case"\r":throw invalidChar(read());case"\u2028":case"\u2029":separatorChar(d);break;case undefined:throw invalidChar(read())}f+=read()},start(){switch(d){case"{":case"[":return newToken("punctuator",read())}A="value"},beforePropertyName(){switch(d){case"$":case"_":f=read();A="identifierName";return;case"\\":read();A="identifierNameStartEscape";return;case"}":return newToken("punctuator",read());case'"':case"'":E=read()==='"';A="string";return}if(t.isIdStartChar(d)){f+=read();A="identifierName";return}throw invalidChar(read())},afterPropertyName(){if(d===":"){return newToken("punctuator",read())}throw invalidChar(read())},beforePropertyValue(){A="value"},afterPropertyValue(){switch(d){case",":case"}":return newToken("punctuator",read())}throw invalidChar(read())},beforeArrayValue(){if(d==="]"){return newToken("punctuator",read())}A="value"},afterArrayValue(){switch(d){case",":case"]":return newToken("punctuator",read())}throw invalidChar(read())},end(){throw invalidChar(read())}};function newToken(u,e){return{type:u,value:e,line:s,column:o}}function literal(u){for(const e of u){const u=peek();if(u!==e){throw invalidChar(read())}read()}}function escape(){const u=peek();switch(u){case"b":read();return"\b";case"f":read();return"\f";case"n":read();return"\n";case"r":read();return"\r";case"t":read();return"\t";case"v":read();return"\v";case"0":read();if(t.isDigit(peek())){throw invalidChar(read())}return"\0";case"x":read();return hexEscape();case"u":read();return unicodeEscape();case"\n":case"\u2028":case"\u2029":read();return"";case"\r":read();if(peek()==="\n"){read()}return"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw invalidChar(read());case undefined:throw invalidChar(read())}return read()}function hexEscape(){let u="";let e=peek();if(!t.isHexDigit(e)){throw invalidChar(read())}u+=read();e=peek();if(!t.isHexDigit(e)){throw invalidChar(read())}u+=read();return String.fromCodePoint(parseInt(u,16))}function unicodeEscape(){let u="";let e=4;while(e-- >0){const e=peek();if(!t.isHexDigit(e)){throw invalidChar(read())}u+=read()}return String.fromCodePoint(parseInt(u,16))}const p={start(){if(F.type==="eof"){throw invalidEOF()}push()},beforePropertyName(){switch(F.type){case"identifier":case"string":C=F.value;n="afterPropertyName";return;case"punctuator":pop();return;case"eof":throw invalidEOF()}},afterPropertyName(){if(F.type==="eof"){throw invalidEOF()}n="beforePropertyValue"},beforePropertyValue(){if(F.type==="eof"){throw invalidEOF()}push()},beforeArrayValue(){if(F.type==="eof"){throw invalidEOF()}if(F.type==="punctuator"&&F.value==="]"){pop();return}push()},afterPropertyValue(){if(F.type==="eof"){throw invalidEOF()}switch(F.value){case",":n="beforePropertyName";return;case"}":pop()}},afterArrayValue(){if(F.type==="eof"){throw invalidEOF()}switch(F.value){case",":n="beforeArrayValue";return;case"]":pop()}},end(){}};function push(){let u;switch(F.type){case"punctuator":switch(F.value){case"{":u={};break;case"[":u=[];break}break;case"null":case"boolean":case"numeric":case"string":u=F.value;break}if(c===undefined){c=u}else{const e=i[i.length-1];if(Array.isArray(e)){e.push(u)}else{Object.defineProperty(e,C,{value:u,writable:true,enumerable:true,configurable:true})}}if(u!==null&&typeof u==="object"){i.push(u);if(Array.isArray(u)){n="beforeArrayValue"}else{n="beforePropertyName"}}else{const u=i[i.length-1];if(u==null){n="end"}else if(Array.isArray(u)){n="afterArrayValue"}else{n="afterPropertyValue"}}}function pop(){i.pop();const u=i[i.length-1];if(u==null){n="end"}else if(Array.isArray(u)){n="afterArrayValue"}else{n="afterPropertyValue"}}function invalidChar(u){if(u===undefined){return syntaxError(`JSON5: invalid end of input at ${s}:${o}`)}return syntaxError(`JSON5: invalid character '${formatChar(u)}' at ${s}:${o}`)}function invalidEOF(){return syntaxError(`JSON5: invalid end of input at ${s}:${o}`)}function invalidIdentifier(){o-=5;return syntaxError(`JSON5: invalid identifier character at ${s}:${o}`)}function separatorChar(u){console.warn(`JSON5: '${formatChar(u)}' in strings is not valid ECMAScript; consider escaping`)}function formatChar(u){const e={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(e[u]){return e[u]}if(u<" "){const e=u.charCodeAt(0).toString(16);return"\\x"+("00"+e).substring(e.length)}return u}function syntaxError(u){const e=new SyntaxError(u);e.lineNumber=s;e.columnNumber=o;return e}},440:function(u,e,r){const t=r(812);u.exports=function stringify(u,e,r){const D=[];let n="";let i;let a;let s="";let o;if(e!=null&&typeof e==="object"&&!Array.isArray(e)){r=e.space;o=e.quote;e=e.replacer}if(typeof e==="function"){a=e}else if(Array.isArray(e)){i=[];for(const u of e){let e;if(typeof u==="string"){e=u}else if(typeof u==="number"||u instanceof String||u instanceof Number){e=String(u)}if(e!==undefined&&i.indexOf(e)<0){i.push(e)}}}if(r instanceof Number){r=Number(r)}else if(r instanceof String){r=String(r)}if(typeof r==="number"){if(r>0){r=Math.min(10,Math.floor(r));s=" ".substr(0,r)}}else if(typeof r==="string"){s=r.substr(0,10)}return serializeProperty("",{"":u});function serializeProperty(u,e){let r=e[u];if(r!=null){if(typeof r.toJSON5==="function"){r=r.toJSON5(u)}else if(typeof r.toJSON==="function"){r=r.toJSON(u)}}if(a){r=a.call(e,u,r)}if(r instanceof Number){r=Number(r)}else if(r instanceof String){r=String(r)}else if(r instanceof Boolean){r=r.valueOf()}switch(r){case null:return"null";case true:return"true";case false:return"false"}if(typeof r==="string"){return quoteString(r,false)}if(typeof r==="number"){return String(r)}if(typeof r==="object"){return Array.isArray(r)?serializeArray(r):serializeObject(r)}return undefined}function quoteString(u){const e={"'":.1,'"':.2};const r={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let D="";for(let n=0;n<u.length;n++){const i=u[n];switch(i){case"'":case'"':e[i]++;D+=i;continue;case"\0":if(t.isDigit(u[n+1])){D+="\\x00";continue}}if(r[i]){D+=r[i];continue}if(i<" "){let u=i.charCodeAt(0).toString(16);D+="\\x"+("00"+u).substring(u.length);continue}D+=i}const n=o||Object.keys(e).reduce(((u,r)=>e[u]<e[r]?u:r));D=D.replace(new RegExp(n,"g"),r[n]);return n+D+n}function serializeObject(u){if(D.indexOf(u)>=0){throw TypeError("Converting circular structure to JSON5")}D.push(u);let e=n;n=n+s;let r=i||Object.keys(u);let t=[];for(const e of r){const r=serializeProperty(e,u);if(r!==undefined){let u=serializeKey(e)+":";if(s!==""){u+=" "}u+=r;t.push(u)}}let a;if(t.length===0){a="{}"}else{let u;if(s===""){u=t.join(",");a="{"+u+"}"}else{let r=",\n"+n;u=t.join(r);a="{\n"+n+u+",\n"+e+"}"}}D.pop();n=e;return a}function serializeKey(u){if(u.length===0){return quoteString(u,true)}const e=String.fromCodePoint(u.codePointAt(0));if(!t.isIdStartChar(e)){return quoteString(u,true)}for(let r=e.length;r<u.length;r++){if(!t.isIdContinueChar(String.fromCodePoint(u.codePointAt(r)))){return quoteString(u,true)}}return u}function serializeArray(u){if(D.indexOf(u)>=0){throw TypeError("Converting circular structure to JSON5")}D.push(u);let e=n;n=n+s;let r=[];for(let e=0;e<u.length;e++){const t=serializeProperty(String(e),u);r.push(t!==undefined?t:"null")}let t;if(r.length===0){t="[]"}else{if(s===""){let u=r.join(",");t="["+u+"]"}else{let u=",\n"+n;let D=r.join(u);t="[\n"+n+D+",\n"+e+"]"}}D.pop();n=e;return t}}},271:function(u){u.exports.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;u.exports.ID_Start=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;u.exports.ID_Continue=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},812:function(u,e,r){const t=r(271);u.exports={isSpaceSeparator(u){return typeof u==="string"&&t.Space_Separator.test(u)},isIdStartChar(u){return typeof u==="string"&&(u>="a"&&u<="z"||u>="A"&&u<="Z"||u==="$"||u==="_"||t.ID_Start.test(u))},isIdContinueChar(u){return typeof u==="string"&&(u>="a"&&u<="z"||u>="A"&&u<="Z"||u>="0"&&u<="9"||u==="$"||u==="_"||u===""||u===""||t.ID_Continue.test(u))},isDigit(u){return typeof u==="string"&&/[0-9]/.test(u)},isHexDigit(u){return typeof u==="string"&&/[0-9A-Fa-f]/.test(u)}}},319:function(u){u.exports=function(u,e){if(!e)e={};var r={bools:{},strings:{},unknownFn:null};if(typeof e["unknown"]==="function"){r.unknownFn=e["unknown"]}if(typeof e["boolean"]==="boolean"&&e["boolean"]){r.allBools=true}else{[].concat(e["boolean"]).filter(Boolean).forEach((function(u){r.bools[u]=true}))}var t={};Object.keys(e.alias||{}).forEach((function(u){t[u]=[].concat(e.alias[u]);t[u].forEach((function(e){t[e]=[u].concat(t[u].filter((function(u){return e!==u})))}))}));[].concat(e.string).filter(Boolean).forEach((function(u){r.strings[u]=true;if(t[u]){r.strings[t[u]]=true}}));var D=e["default"]||{};var n={_:[]};Object.keys(r.bools).forEach((function(u){setArg(u,D[u]===undefined?false:D[u])}));var i=[];if(u.indexOf("--")!==-1){i=u.slice(u.indexOf("--")+1);u=u.slice(0,u.indexOf("--"))}function argDefined(u,e){return r.allBools&&/^--[^=]+$/.test(e)||r.strings[u]||r.bools[u]||t[u]}function setArg(u,e,D){if(D&&r.unknownFn&&!argDefined(u,D)){if(r.unknownFn(D)===false)return}var i=!r.strings[u]&&isNumber(e)?Number(e):e;setKey(n,u.split("."),i);(t[u]||[]).forEach((function(u){setKey(n,u.split("."),i)}))}function setKey(u,e,t){var D=u;for(var n=0;n<e.length-1;n++){var i=e[n];if(isConstructorOrProto(D,i))return;if(D[i]===undefined)D[i]={};if(D[i]===Object.prototype||D[i]===Number.prototype||D[i]===String.prototype)D[i]={};if(D[i]===Array.prototype)D[i]=[];D=D[i]}var i=e[e.length-1];if(isConstructorOrProto(D,i))return;if(D===Object.prototype||D===Number.prototype||D===String.prototype)D={};if(D===Array.prototype)D=[];if(D[i]===undefined||r.bools[i]||typeof D[i]==="boolean"){D[i]=t}else if(Array.isArray(D[i])){D[i].push(t)}else{D[i]=[D[i],t]}}function aliasIsBoolean(u){return t[u].some((function(u){return r.bools[u]}))}for(var a=0;a<u.length;a++){var s=u[a];if(/^--.+=/.test(s)){var o=s.match(/^--([^=]+)=([\s\S]*)$/);var F=o[1];var C=o[2];if(r.bools[F]){C=C!=="false"}setArg(F,C,s)}else if(/^--no-.+/.test(s)){var F=s.match(/^--no-(.+)/)[1];setArg(F,false,s)}else if(/^--.+/.test(s)){var F=s.match(/^--(.+)/)[1];var c=u[a+1];if(c!==undefined&&!/^-/.test(c)&&!r.bools[F]&&!r.allBools&&(t[F]?!aliasIsBoolean(F):true)){setArg(F,c,s);a++}else if(/^(true|false)$/.test(c)){setArg(F,c==="true",s);a++}else{setArg(F,r.strings[F]?"":true,s)}}else if(/^-[^-]+/.test(s)){var A=s.slice(1,-1).split("");var f=false;for(var E=0;E<A.length;E++){var c=s.slice(E+2);if(c==="-"){setArg(A[E],c,s);continue}if(/[A-Za-z]/.test(A[E])&&/=/.test(c)){setArg(A[E],c.split("=")[1],s);f=true;break}if(/[A-Za-z]/.test(A[E])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(c)){setArg(A[E],c,s);f=true;break}if(A[E+1]&&A[E+1].match(/\W/)){setArg(A[E],s.slice(E+2),s);f=true;break}else{setArg(A[E],r.strings[A[E]]?"":true,s)}}var F=s.slice(-1)[0];if(!f&&F!=="-"){if(u[a+1]&&!/^(-|--)[^-]/.test(u[a+1])&&!r.bools[F]&&(t[F]?!aliasIsBoolean(F):true)){setArg(F,u[a+1],s);a++}else if(u[a+1]&&/^(true|false)$/.test(u[a+1])){setArg(F,u[a+1]==="true",s);a++}else{setArg(F,r.strings[F]?"":true,s)}}}else{if(!r.unknownFn||r.unknownFn(s)!==false){n._.push(r.strings["_"]||!isNumber(s)?s:Number(s))}if(e.stopEarly){n._.push.apply(n._,u.slice(a+1));break}}}Object.keys(D).forEach((function(u){if(!hasKey(n,u.split("."))){setKey(n,u.split("."),D[u]);(t[u]||[]).forEach((function(e){setKey(n,e.split("."),D[u])}))}}));if(e["--"]){n["--"]=new Array;i.forEach((function(u){n["--"].push(u)}))}else{i.forEach((function(u){n._.push(u)}))}return n};function hasKey(u,e){var r=u;e.slice(0,-1).forEach((function(u){r=r[u]||{}}));var t=e[e.length-1];return t in r}function isNumber(u){if(typeof u==="number")return true;if(/^0x[0-9a-f]+$/i.test(u))return true;return/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(u)}function isConstructorOrProto(u,e){return e==="constructor"&&typeof u[e]==="function"||e==="__proto__"}},308:function(u){"use strict";u.exports=u=>{if(typeof u!=="string"){throw new TypeError("Expected a string, got "+typeof u)}if(u.charCodeAt(0)===65279){return u.slice(1)}return u}},674:function(u,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:true});e.configLoader=e.loadConfig=void 0;var t=r(81);var D=r(17);function loadConfig(u){if(u===void 0){u=process.cwd()}return configLoader({cwd:u})}e.loadConfig=loadConfig;function configLoader(u){var e=u.cwd,r=u.explicitParams,n=u.tsConfigLoader,i=n===void 0?t.tsConfigLoader:n;if(r){var a=D.isAbsolute(r.baseUrl)?r.baseUrl:D.join(e,r.baseUrl);return{resultType:"success",configFileAbsolutePath:"",baseUrl:r.baseUrl,absoluteBaseUrl:a,paths:r.paths,mainFields:r.mainFields,addMatchAll:r.addMatchAll}}var s=i({cwd:e,getEnv:function(u){return process.env[u]}});if(!s.tsConfigPath){return{resultType:"failed",message:"Couldn't find tsconfig.json"}}return{resultType:"success",configFileAbsolutePath:s.tsConfigPath,baseUrl:s.baseUrl,absoluteBaseUrl:D.resolve(D.dirname(s.tsConfigPath),s.baseUrl||""),paths:s.paths||{},addMatchAll:s.baseUrl!==undefined}}e.configLoader=configLoader},465:function(u,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:true});e.removeExtension=e.fileExistsAsync=e.readJsonFromDiskAsync=e.readJsonFromDiskSync=e.fileExistsSync=void 0;var t=r(147);function fileExistsSync(u){if(!t.existsSync(u)){return false}try{var e=t.statSync(u);return e.isFile()}catch(u){return false}}e.fileExistsSync=fileExistsSync;function readJsonFromDiskSync(u){if(!t.existsSync(u)){return undefined}return require(u)}e.readJsonFromDiskSync=readJsonFromDiskSync;function readJsonFromDiskAsync(u,e){t.readFile(u,"utf8",(function(u,r){if(u||!r){return e()}var t=JSON.parse(r);return e(undefined,t)}))}e.readJsonFromDiskAsync=readJsonFromDiskAsync;function fileExistsAsync(u,e){t.stat(u,(function(u,r){if(u){return e(undefined,false)}e(undefined,r?r.isFile():false)}))}e.fileExistsAsync=fileExistsAsync;function removeExtension(u){return u.substring(0,u.lastIndexOf("."))||u}e.removeExtension=removeExtension},566:function(u,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:true});e.getAbsoluteMappingEntries=void 0;var t=r(17);function getAbsoluteMappingEntries(u,e,r){var D=sortByLongestPrefix(Object.keys(e));var n=[];for(var i=0,a=D;i<a.length;i++){var s=a[i];n.push({pattern:s,paths:e[s].map((function(e){return t.resolve(u,e)}))})}if(!e["*"]&&r){n.push({pattern:"*",paths:["".concat(u.replace(/\/$/,""),"/*")]})}return n}e.getAbsoluteMappingEntries=getAbsoluteMappingEntries;function sortByLongestPrefix(u){return u.concat().sort((function(u,e){return getPrefixLength(e)-getPrefixLength(u)}))}function getPrefixLength(u){var e=u.indexOf("*");return u.substr(0,e).length}},883:function(u,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:true});e.matchFromAbsolutePathsAsync=e.createMatchPathAsync=void 0;var t=r(17);var D=r(237);var n=r(566);var i=r(465);function createMatchPathAsync(u,e,r,t){if(r===void 0){r=["main"]}if(t===void 0){t=true}var D=n.getAbsoluteMappingEntries(u,e,t);return function(u,e,t,n,i){return matchFromAbsolutePathsAsync(D,u,e,t,n,i,r)}}e.createMatchPathAsync=createMatchPathAsync;function matchFromAbsolutePathsAsync(u,e,r,t,n,a,s){if(r===void 0){r=i.readJsonFromDiskAsync}if(t===void 0){t=i.fileExistsAsync}if(n===void 0){n=Object.keys(require.extensions)}if(s===void 0){s=["main"]}var o=D.getPathsToTry(n,u,e);if(!o){return a()}findFirstExistingPath(o,r,t,a,0,s)}e.matchFromAbsolutePathsAsync=matchFromAbsolutePathsAsync;function findFirstExistingMainFieldMappedFile(u,e,r,D,n,i){if(i===void 0){i=0}if(i>=e.length){return n(undefined,undefined)}var tryNext=function(){return findFirstExistingMainFieldMappedFile(u,e,r,D,n,i+1)};var a=e[i];var s=typeof a==="string"?u[a]:a.reduce((function(u,e){return u[e]}),u);if(typeof s!=="string"){return tryNext()}var o=t.join(t.dirname(r),s);D(o,(function(u,e){if(u){return n(u)}if(e){return n(undefined,o)}return tryNext()}))}function findFirstExistingPath(u,e,r,t,n,i){if(n===void 0){n=0}if(i===void 0){i=["main"]}var a=u[n];if(a.type==="file"||a.type==="extension"||a.type==="index"){r(a.path,(function(s,o){if(s){return t(s)}if(o){return t(undefined,D.getStrippedPath(a))}if(n===u.length-1){return t()}return findFirstExistingPath(u,e,r,t,n+1,i)}))}else if(a.type==="package"){e(a.path,(function(D,s){if(D){return t(D)}if(s){return findFirstExistingMainFieldMappedFile(s,i,a.path,r,(function(D,a){if(D){return t(D)}if(a){return t(undefined,a)}return findFirstExistingPath(u,e,r,t,n+1,i)}))}return findFirstExistingPath(u,e,r,t,n+1,i)}))}else{D.exhaustiveTypeException(a.type)}}},961:function(u,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:true});e.matchFromAbsolutePaths=e.createMatchPath=void 0;var t=r(17);var D=r(465);var n=r(566);var i=r(237);function createMatchPath(u,e,r,t){if(r===void 0){r=["main"]}if(t===void 0){t=true}var D=n.getAbsoluteMappingEntries(u,e,t);return function(u,e,t,n){return matchFromAbsolutePaths(D,u,e,t,n,r)}}e.createMatchPath=createMatchPath;function matchFromAbsolutePaths(u,e,r,t,n,a){if(r===void 0){r=D.readJsonFromDiskSync}if(t===void 0){t=D.fileExistsSync}if(n===void 0){n=Object.keys(require.extensions)}if(a===void 0){a=["main"]}var s=i.getPathsToTry(n,u,e);if(!s){return undefined}return findFirstExistingPath(s,r,t,a)}e.matchFromAbsolutePaths=matchFromAbsolutePaths;function findFirstExistingMainFieldMappedFile(u,e,r,D){for(var n=0;n<e.length;n++){var i=e[n];var a=typeof i==="string"?u[i]:i.reduce((function(u,e){return u[e]}),u);if(a&&typeof a==="string"){var s=t.join(t.dirname(r),a);if(D(s)){return s}}}return undefined}function findFirstExistingPath(u,e,r,t){if(e===void 0){e=D.readJsonFromDiskSync}if(t===void 0){t=["main"]}for(var n=0,a=u;n<a.length;n++){var s=a[n];if(s.type==="file"||s.type==="extension"||s.type==="index"){if(r(s.path)){return i.getStrippedPath(s)}}else if(s.type==="package"){var o=e(s.path);if(o){var F=findFirstExistingMainFieldMappedFile(o,t,s.path,r);if(F){return F}}}else{i.exhaustiveTypeException(s.type)}}return undefined}},135:function(u,e,r){"use strict";var t=this&&this.__spreadArray||function(u,e,r){if(r||arguments.length===2)for(var t=0,D=e.length,n;t<D;t++){if(n||!(t in e)){if(!n)n=Array.prototype.slice.call(e,0,t);n[t]=e[t]}}return u.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:true});e.register=void 0;var D=r(961);var n=r(674);var noOp=function(){return void 0};function getCoreModules(u){u=u||["assert","buffer","child_process","cluster","crypto","dgram","dns","domain","events","fs","http","https","net","os","path","punycode","querystring","readline","stream","string_decoder","tls","tty","url","util","v8","vm","zlib"];var e={};for(var r=0,t=u;r<t.length;r++){var D=t[r];e[D]=true}return e}function register(u){var e;var i;if(u){e=u.cwd;if(u.baseUrl||u.paths){i=u}}else{var a=r(319);var s=a(process.argv.slice(2),{string:["project"],alias:{project:["P"]}});e=s.project}var o=(0,n.configLoader)({cwd:e!==null&&e!==void 0?e:process.cwd(),explicitParams:i});if(o.resultType==="failed"){console.warn("".concat(o.message,". tsconfig-paths will be skipped"));return noOp}var F=(0,D.createMatchPath)(o.absoluteBaseUrl,o.paths,o.mainFields,o.addMatchAll);var C=r(188);var c=C._resolveFilename;var A=getCoreModules(C.builtinModules);C._resolveFilename=function(u,e){var r=A.hasOwnProperty(u);if(!r){var D=F(u);if(D){var n=t([D],[].slice.call(arguments,1),true);return c.apply(this,n)}}return c.apply(this,arguments)};return function(){C._resolveFilename=c}}e.register=register},237:function(u,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:true});e.exhaustiveTypeException=e.getStrippedPath=e.getPathsToTry=void 0;var t=r(17);var D=r(17);var n=r(465);function getPathsToTry(u,e,r){if(!e||!r||r[0]==="."){return undefined}var D=[];for(var n=0,i=e;n<i.length;n++){var a=i[n];var s=a.pattern===r?"":matchStar(a.pattern,r);if(s!==undefined){var _loop_1=function(e){var r=e.replace("*",s);D.push({type:"file",path:r});D.push.apply(D,u.map((function(u){return{type:"extension",path:r+u}})));D.push({type:"package",path:t.join(r,"/package.json")});var n=t.join(r,"/index");D.push.apply(D,u.map((function(u){return{type:"index",path:n+u}})))};for(var o=0,F=a.paths;o<F.length;o++){var C=F[o];_loop_1(C)}}}return D.length===0?undefined:D}e.getPathsToTry=getPathsToTry;function getStrippedPath(u){return u.type==="index"?(0,D.dirname)(u.path):u.type==="file"?u.path:u.type==="extension"?(0,n.removeExtension)(u.path):u.type==="package"?u.path:exhaustiveTypeException(u.type)}e.getStrippedPath=getStrippedPath;function exhaustiveTypeException(u){throw new Error("Unknown type ".concat(u))}e.exhaustiveTypeException=exhaustiveTypeException;function matchStar(u,e){if(e.length<u.length){return undefined}if(u==="*"){return e}var r=u.indexOf("*");if(r===-1){return undefined}var t=u.substring(0,r);var D=u.substring(r+1);if(e.substr(0,r)!==t){return undefined}if(e.substr(e.length-D.length)!==D){return undefined}return e.substr(r,e.length-D.length)}},81:function(u,e,r){"use strict";var t=this&&this.__assign||function(){t=Object.assign||function(u){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var D in e)if(Object.prototype.hasOwnProperty.call(e,D))u[D]=e[D]}return u};return t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:true});e.loadTsconfig=e.walkForTsConfig=e.tsConfigLoader=void 0;var D=r(17);var n=r(147);var i=r(361);var a=r(308);function tsConfigLoader(u){var e=u.getEnv,r=u.cwd,t=u.loadSync,D=t===void 0?loadSyncDefault:t;var n=e("TS_NODE_PROJECT");var i=e("TS_NODE_BASEURL");var a=D(r,n,i);return a}e.tsConfigLoader=tsConfigLoader;function loadSyncDefault(u,e,r){var t=resolveConfigPath(u,e);if(!t){return{tsConfigPath:undefined,baseUrl:undefined,paths:undefined}}var D=loadTsconfig(t);return{tsConfigPath:t,baseUrl:r||D&&D.compilerOptions&&D.compilerOptions.baseUrl,paths:D&&D.compilerOptions&&D.compilerOptions.paths}}function resolveConfigPath(u,e){if(e){var r=n.lstatSync(e).isDirectory()?D.resolve(e,"./tsconfig.json"):D.resolve(u,e);return r}if(n.statSync(u).isFile()){return D.resolve(u)}var t=walkForTsConfig(u);return t?D.resolve(t):undefined}function walkForTsConfig(u,e){if(e===void 0){e=n.readdirSync}var r=e(u);var t=["tsconfig.json","jsconfig.json"];for(var i=0,a=t;i<a.length;i++){var s=a[i];if(r.indexOf(s)!==-1){return D.join(u,s)}}var o=D.dirname(u);if(u===o){return undefined}return walkForTsConfig(o,e)}e.walkForTsConfig=walkForTsConfig;function loadTsconfig(u,e,r){if(e===void 0){e=n.existsSync}if(r===void 0){r=function(u){return n.readFileSync(u,"utf8")}}if(!e(u)){return undefined}var s=r(u);var o=a(s);var F;try{F=i.parse(o)}catch(e){throw new Error("".concat(u," is malformed ").concat(e.message))}var C=F.extends;if(C){if(typeof C==="string"&&C.indexOf(".json")===-1){C+=".json"}var c=D.dirname(u);var A=D.join(c,C);if(C.indexOf("/")!==-1&&C.indexOf(".")!==-1&&!e(A)){A=D.join(c,"node_modules",C)}var f=loadTsconfig(A,e,r)||{};if(f.compilerOptions&&f.compilerOptions.baseUrl){var E=D.dirname(C);f.compilerOptions.baseUrl=D.join(E,f.compilerOptions.baseUrl)}return t(t(t({},f),F),{compilerOptions:t(t({},f.compilerOptions),F.compilerOptions)})}return F}e.loadTsconfig=loadTsconfig},147:function(u){"use strict";u.exports=require("fs")},188:function(u){"use strict";u.exports=require("module")},17:function(u){"use strict";u.exports=require("path")}};var e={};function __nccwpck_require__(r){var t=e[r];if(t!==undefined){return t.exports}var D=e[r]={exports:{}};var n=true;try{u[r].call(D.exports,D,D.exports,__nccwpck_require__);n=false}finally{if(n)delete e[r]}return D.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r={};!function(){"use strict";var u=r;Object.defineProperty(u,"__esModule",{value:true});u.loadConfig=u.register=u.matchFromAbsolutePathsAsync=u.createMatchPathAsync=u.matchFromAbsolutePaths=u.createMatchPath=void 0;var e=__nccwpck_require__(961);Object.defineProperty(u,"createMatchPath",{enumerable:true,get:function(){return e.createMatchPath}});Object.defineProperty(u,"matchFromAbsolutePaths",{enumerable:true,get:function(){return e.matchFromAbsolutePaths}});var t=__nccwpck_require__(883);Object.defineProperty(u,"createMatchPathAsync",{enumerable:true,get:function(){return t.createMatchPathAsync}});Object.defineProperty(u,"matchFromAbsolutePathsAsync",{enumerable:true,get:function(){return t.matchFromAbsolutePathsAsync}});var D=__nccwpck_require__(135);Object.defineProperty(u,"register",{enumerable:true,get:function(){return D.register}});var n=__nccwpck_require__(674);Object.defineProperty(u,"loadConfig",{enumerable:true,get:function(){return n.loadConfig}})}();module.exports=r})();
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { createMatchPath, matchFromAbsolutePaths, MatchPath, } from "./match-path-sync";
|
|
2
|
+
export { createMatchPathAsync, matchFromAbsolutePathsAsync, MatchPathAsync, } from "./match-path-async";
|
|
3
|
+
export { register } from "./register";
|
|
4
|
+
export { loadConfig, ConfigLoaderResult, ConfigLoaderSuccessResult, ConfigLoaderFailResult, } from "./config-loader";
|
|
5
|
+
export { ReadJsonSync, ReadJsonAsync, FileExistsSync, FileExistsAsync, } from "./filesystem";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"tsconfig-paths","version":"4.1.2","author":"Jonas Kello","license":"MIT","types":"lib/index.d.ts"}
|
|
@@ -17,10 +17,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
20
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
21
|
mod
|
|
26
22
|
));
|
|
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
}
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
21
|
+
mod
|
|
22
|
+
));
|
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
24
|
|
|
22
25
|
// src/BaseGenerator/generateFile.ts
|
|
@@ -17,10 +17,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
20
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
21
|
mod
|
|
26
22
|
));
|
package/dist/getDevBanner.js
CHANGED
|
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
}
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
21
|
+
mod
|
|
22
|
+
));
|
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
24
|
|
|
22
25
|
// src/getDevBanner.ts
|
|
@@ -29,26 +32,34 @@ var import_address = __toESM(require("../compiled/address"));
|
|
|
29
32
|
var import_chalk = __toESM(require("../compiled/chalk"));
|
|
30
33
|
var import_strip_ansi = __toESM(require("../compiled/strip-ansi"));
|
|
31
34
|
var BORDERS = {
|
|
32
|
-
TL: import_chalk.default.gray.dim("
|
|
33
|
-
TR: import_chalk.default.gray.dim("
|
|
34
|
-
BL: import_chalk.default.gray.dim("
|
|
35
|
-
BR: import_chalk.default.gray.dim("
|
|
36
|
-
V: import_chalk.default.gray.dim("
|
|
37
|
-
H_PURE: "
|
|
35
|
+
TL: import_chalk.default.gray.dim("╔"),
|
|
36
|
+
TR: import_chalk.default.gray.dim("╗"),
|
|
37
|
+
BL: import_chalk.default.gray.dim("╚"),
|
|
38
|
+
BR: import_chalk.default.gray.dim("╝"),
|
|
39
|
+
V: import_chalk.default.gray.dim("║"),
|
|
40
|
+
H_PURE: "═"
|
|
38
41
|
};
|
|
39
42
|
function getDevBanner(protocol, host = "0.0.0.0", port, offset = 8) {
|
|
40
43
|
const header = " App listening at:";
|
|
41
|
-
const footer = import_chalk.default.bold(
|
|
42
|
-
|
|
44
|
+
const footer = import_chalk.default.bold(
|
|
45
|
+
" Now you can open browser with the above addresses↑ "
|
|
46
|
+
);
|
|
47
|
+
const local = ` ${import_chalk.default.gray(">")} Local: ${import_chalk.default.green(
|
|
48
|
+
`${protocol}//${host === "0.0.0.0" ? "localhost" : host}:${port}`
|
|
49
|
+
)} `;
|
|
43
50
|
const ip = import_address.default.ip();
|
|
44
51
|
const network = ` ${import_chalk.default.gray(">")} Network: ${ip ? import_chalk.default.green(`${protocol}//${ip}:${port}`) : import_chalk.default.gray("Not available")} `;
|
|
45
|
-
const maxLen = Math.max(
|
|
52
|
+
const maxLen = Math.max(
|
|
53
|
+
...[header, footer, local, network].map((x) => (0, import_strip_ansi.default)(x).length)
|
|
54
|
+
);
|
|
46
55
|
const beforeLines = [
|
|
47
56
|
`${BORDERS.TL}${import_chalk.default.gray.dim("".padStart(maxLen, BORDERS.H_PURE))}${BORDERS.TR}`,
|
|
48
57
|
`${BORDERS.V}${header}${"".padStart(maxLen - header.length)}${BORDERS.V}`,
|
|
49
58
|
`${BORDERS.V}${local}${"".padStart(maxLen - (0, import_strip_ansi.default)(local).length)}${BORDERS.V}`
|
|
50
59
|
];
|
|
51
|
-
const mainLine = `${BORDERS.V}${network}${"".padStart(
|
|
60
|
+
const mainLine = `${BORDERS.V}${network}${"".padStart(
|
|
61
|
+
maxLen - (0, import_strip_ansi.default)(network).length
|
|
62
|
+
)}${BORDERS.V}`;
|
|
52
63
|
const afterLines = [
|
|
53
64
|
`${BORDERS.V}${"".padStart(maxLen)}${BORDERS.V}`,
|
|
54
65
|
`${BORDERS.V}${footer}${"".padStart(maxLen - (0, import_strip_ansi.default)(footer).length)}${BORDERS.V}`,
|
package/dist/getGitInfo.js
CHANGED
|
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
}
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
21
|
+
mod
|
|
22
|
+
));
|
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
24
|
|
|
22
25
|
// src/getGitInfo.ts
|
package/dist/importLazy.js
CHANGED
|
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
}
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
21
|
+
mod
|
|
22
|
+
));
|
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
24
|
|
|
22
25
|
// src/importLazy.ts
|
|
@@ -27,7 +30,9 @@ __export(importLazy_exports, {
|
|
|
27
30
|
module.exports = __toCommonJS(importLazy_exports);
|
|
28
31
|
var import_import_lazy = __toESM(require("../compiled/import-lazy"));
|
|
29
32
|
function importLazy(moduleName, requireFn) {
|
|
30
|
-
const importLazyLocal = (0, import_import_lazy.default)(
|
|
33
|
+
const importLazyLocal = (0, import_import_lazy.default)(
|
|
34
|
+
requireFn || require
|
|
35
|
+
);
|
|
31
36
|
return importLazyLocal(moduleName);
|
|
32
37
|
}
|
|
33
38
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/index.d.ts
CHANGED
|
@@ -10,10 +10,12 @@ import deepmerge from '../compiled/deepmerge';
|
|
|
10
10
|
import * as execa from '../compiled/execa';
|
|
11
11
|
import fsExtra from '../compiled/fs-extra';
|
|
12
12
|
import glob from '../compiled/glob';
|
|
13
|
+
import remapping from '../compiled/@ampproject/remapping';
|
|
13
14
|
import * as fastestLevenshtein from '../compiled/fastest-levenshtein';
|
|
14
15
|
import * as filesize from '../compiled/filesize';
|
|
15
16
|
import * as gzipSize from '../compiled/gzip-size';
|
|
16
17
|
import lodash from '../compiled/lodash';
|
|
18
|
+
import MagicString from '../compiled/magic-string';
|
|
17
19
|
import Mustache from '../compiled/mustache';
|
|
18
20
|
import * as pkgUp from '../compiled/pkg-up';
|
|
19
21
|
import portfinder from '../compiled/portfinder';
|
|
@@ -22,6 +24,7 @@ import resolve from '../compiled/resolve';
|
|
|
22
24
|
import rimraf from '../compiled/rimraf';
|
|
23
25
|
import semver from '../compiled/semver';
|
|
24
26
|
import stripAnsi from '../compiled/strip-ansi';
|
|
27
|
+
import * as tsconfigPaths from '../compiled/tsconfig-paths';
|
|
25
28
|
import yParser from '../compiled/yargs-parser';
|
|
26
29
|
import BaseGenerator from './BaseGenerator/BaseGenerator';
|
|
27
30
|
import generateFile from './BaseGenerator/generateFile';
|
|
@@ -40,8 +43,9 @@ export * from './isMonorepo';
|
|
|
40
43
|
export * from './isStyleFile';
|
|
41
44
|
export * from './npmClient';
|
|
42
45
|
export * from './randomColor/randomColor';
|
|
46
|
+
export * from './readDirFiles';
|
|
43
47
|
export * as register from './register';
|
|
44
48
|
export * from './setNoDeprecation';
|
|
45
49
|
export * from './tryPaths';
|
|
46
50
|
export * from './winPath';
|
|
47
|
-
export { address, axios, chalk, cheerio, chokidar, crossSpawn, debug, deepmerge, execa, fsExtra, glob, Generator, BaseGenerator, generateFile, installDeps, lodash, logger, Mustache, pkgUp, portfinder, prompts, resolve, rimraf, semver, stripAnsi, updatePackageJSON, yParser, getGitInfo, printHelp, filesize, gzipSize, fastestLevenshtein, clackPrompts, };
|
|
51
|
+
export { address, axios, chalk, cheerio, chokidar, crossSpawn, debug, deepmerge, execa, fsExtra, glob, Generator, BaseGenerator, generateFile, installDeps, lodash, logger, Mustache, pkgUp, portfinder, prompts, resolve, rimraf, semver, stripAnsi, updatePackageJSON, yParser, getGitInfo, printHelp, filesize, gzipSize, fastestLevenshtein, clackPrompts, MagicString, remapping, tsconfigPaths, };
|