@normed/bundle 4.8.7 → 4.8.8
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/bundles/bin/cli.js +824 -827
- package/bundles/bin/cli.js.map +4 -4
- package/bundles/esbuild-plugins/load_pug.d.ts +0 -10
- package/bundles/esbuild-plugins/safe_path_resolution.d.ts +77 -0
- package/bundles/index.js +824 -827
- package/bundles/index.js.map +4 -4
- package/package.json +1 -1
package/bundles/bin/cli.js
CHANGED
|
@@ -85,54 +85,54 @@ var require_polyfills = __commonJS({
|
|
|
85
85
|
}
|
|
86
86
|
var chdir;
|
|
87
87
|
module.exports = patch;
|
|
88
|
-
function patch(
|
|
88
|
+
function patch(fs13) {
|
|
89
89
|
if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
90
|
-
patchLchmod(
|
|
91
|
-
}
|
|
92
|
-
if (!
|
|
93
|
-
patchLutimes(
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
if (
|
|
114
|
-
|
|
90
|
+
patchLchmod(fs13);
|
|
91
|
+
}
|
|
92
|
+
if (!fs13.lutimes) {
|
|
93
|
+
patchLutimes(fs13);
|
|
94
|
+
}
|
|
95
|
+
fs13.chown = chownFix(fs13.chown);
|
|
96
|
+
fs13.fchown = chownFix(fs13.fchown);
|
|
97
|
+
fs13.lchown = chownFix(fs13.lchown);
|
|
98
|
+
fs13.chmod = chmodFix(fs13.chmod);
|
|
99
|
+
fs13.fchmod = chmodFix(fs13.fchmod);
|
|
100
|
+
fs13.lchmod = chmodFix(fs13.lchmod);
|
|
101
|
+
fs13.chownSync = chownFixSync(fs13.chownSync);
|
|
102
|
+
fs13.fchownSync = chownFixSync(fs13.fchownSync);
|
|
103
|
+
fs13.lchownSync = chownFixSync(fs13.lchownSync);
|
|
104
|
+
fs13.chmodSync = chmodFixSync(fs13.chmodSync);
|
|
105
|
+
fs13.fchmodSync = chmodFixSync(fs13.fchmodSync);
|
|
106
|
+
fs13.lchmodSync = chmodFixSync(fs13.lchmodSync);
|
|
107
|
+
fs13.stat = statFix(fs13.stat);
|
|
108
|
+
fs13.fstat = statFix(fs13.fstat);
|
|
109
|
+
fs13.lstat = statFix(fs13.lstat);
|
|
110
|
+
fs13.statSync = statFixSync(fs13.statSync);
|
|
111
|
+
fs13.fstatSync = statFixSync(fs13.fstatSync);
|
|
112
|
+
fs13.lstatSync = statFixSync(fs13.lstatSync);
|
|
113
|
+
if (fs13.chmod && !fs13.lchmod) {
|
|
114
|
+
fs13.lchmod = function(path14, mode, cb) {
|
|
115
115
|
if (cb) process.nextTick(cb);
|
|
116
116
|
};
|
|
117
|
-
|
|
117
|
+
fs13.lchmodSync = function() {
|
|
118
118
|
};
|
|
119
119
|
}
|
|
120
|
-
if (
|
|
121
|
-
|
|
120
|
+
if (fs13.chown && !fs13.lchown) {
|
|
121
|
+
fs13.lchown = function(path14, uid, gid, cb) {
|
|
122
122
|
if (cb) process.nextTick(cb);
|
|
123
123
|
};
|
|
124
|
-
|
|
124
|
+
fs13.lchownSync = function() {
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
127
|
if (platform === "win32") {
|
|
128
|
-
|
|
128
|
+
fs13.rename = typeof fs13.rename !== "function" ? fs13.rename : (function(fs$rename) {
|
|
129
129
|
function rename(from, to, cb) {
|
|
130
130
|
var start = Date.now();
|
|
131
131
|
var backoff = 0;
|
|
132
132
|
fs$rename(from, to, function CB(er) {
|
|
133
133
|
if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
|
|
134
134
|
setTimeout(function() {
|
|
135
|
-
|
|
135
|
+
fs13.stat(to, function(stater, st) {
|
|
136
136
|
if (stater && stater.code === "ENOENT")
|
|
137
137
|
fs$rename(from, to, CB);
|
|
138
138
|
else
|
|
@@ -148,9 +148,9 @@ var require_polyfills = __commonJS({
|
|
|
148
148
|
}
|
|
149
149
|
if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
|
|
150
150
|
return rename;
|
|
151
|
-
})(
|
|
151
|
+
})(fs13.rename);
|
|
152
152
|
}
|
|
153
|
-
|
|
153
|
+
fs13.read = typeof fs13.read !== "function" ? fs13.read : (function(fs$read) {
|
|
154
154
|
function read(fd, buffer, offset, length, position, callback_) {
|
|
155
155
|
var callback;
|
|
156
156
|
if (callback_ && typeof callback_ === "function") {
|
|
@@ -158,22 +158,22 @@ var require_polyfills = __commonJS({
|
|
|
158
158
|
callback = function(er, _, __) {
|
|
159
159
|
if (er && er.code === "EAGAIN" && eagCounter < 10) {
|
|
160
160
|
eagCounter++;
|
|
161
|
-
return fs$read.call(
|
|
161
|
+
return fs$read.call(fs13, fd, buffer, offset, length, position, callback);
|
|
162
162
|
}
|
|
163
163
|
callback_.apply(this, arguments);
|
|
164
164
|
};
|
|
165
165
|
}
|
|
166
|
-
return fs$read.call(
|
|
166
|
+
return fs$read.call(fs13, fd, buffer, offset, length, position, callback);
|
|
167
167
|
}
|
|
168
168
|
if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
|
|
169
169
|
return read;
|
|
170
|
-
})(
|
|
171
|
-
|
|
170
|
+
})(fs13.read);
|
|
171
|
+
fs13.readSync = typeof fs13.readSync !== "function" ? fs13.readSync : /* @__PURE__ */ (function(fs$readSync) {
|
|
172
172
|
return function(fd, buffer, offset, length, position) {
|
|
173
173
|
var eagCounter = 0;
|
|
174
174
|
while (true) {
|
|
175
175
|
try {
|
|
176
|
-
return fs$readSync.call(
|
|
176
|
+
return fs$readSync.call(fs13, fd, buffer, offset, length, position);
|
|
177
177
|
} catch (er) {
|
|
178
178
|
if (er.code === "EAGAIN" && eagCounter < 10) {
|
|
179
179
|
eagCounter++;
|
|
@@ -183,11 +183,11 @@ var require_polyfills = __commonJS({
|
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
};
|
|
186
|
-
})(
|
|
187
|
-
function patchLchmod(
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
186
|
+
})(fs13.readSync);
|
|
187
|
+
function patchLchmod(fs14) {
|
|
188
|
+
fs14.lchmod = function(path14, mode, callback) {
|
|
189
|
+
fs14.open(
|
|
190
|
+
path14,
|
|
191
191
|
constants.O_WRONLY | constants.O_SYMLINK,
|
|
192
192
|
mode,
|
|
193
193
|
function(err, fd) {
|
|
@@ -195,80 +195,80 @@ var require_polyfills = __commonJS({
|
|
|
195
195
|
if (callback) callback(err);
|
|
196
196
|
return;
|
|
197
197
|
}
|
|
198
|
-
|
|
199
|
-
|
|
198
|
+
fs14.fchmod(fd, mode, function(err2) {
|
|
199
|
+
fs14.close(fd, function(err22) {
|
|
200
200
|
if (callback) callback(err2 || err22);
|
|
201
201
|
});
|
|
202
202
|
});
|
|
203
203
|
}
|
|
204
204
|
);
|
|
205
205
|
};
|
|
206
|
-
|
|
207
|
-
var fd =
|
|
206
|
+
fs14.lchmodSync = function(path14, mode) {
|
|
207
|
+
var fd = fs14.openSync(path14, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
208
208
|
var threw = true;
|
|
209
209
|
var ret;
|
|
210
210
|
try {
|
|
211
|
-
ret =
|
|
211
|
+
ret = fs14.fchmodSync(fd, mode);
|
|
212
212
|
threw = false;
|
|
213
213
|
} finally {
|
|
214
214
|
if (threw) {
|
|
215
215
|
try {
|
|
216
|
-
|
|
216
|
+
fs14.closeSync(fd);
|
|
217
217
|
} catch (er) {
|
|
218
218
|
}
|
|
219
219
|
} else {
|
|
220
|
-
|
|
220
|
+
fs14.closeSync(fd);
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
return ret;
|
|
224
224
|
};
|
|
225
225
|
}
|
|
226
|
-
function patchLutimes(
|
|
227
|
-
if (constants.hasOwnProperty("O_SYMLINK") &&
|
|
228
|
-
|
|
229
|
-
|
|
226
|
+
function patchLutimes(fs14) {
|
|
227
|
+
if (constants.hasOwnProperty("O_SYMLINK") && fs14.futimes) {
|
|
228
|
+
fs14.lutimes = function(path14, at, mt, cb) {
|
|
229
|
+
fs14.open(path14, constants.O_SYMLINK, function(er, fd) {
|
|
230
230
|
if (er) {
|
|
231
231
|
if (cb) cb(er);
|
|
232
232
|
return;
|
|
233
233
|
}
|
|
234
|
-
|
|
235
|
-
|
|
234
|
+
fs14.futimes(fd, at, mt, function(er2) {
|
|
235
|
+
fs14.close(fd, function(er22) {
|
|
236
236
|
if (cb) cb(er2 || er22);
|
|
237
237
|
});
|
|
238
238
|
});
|
|
239
239
|
});
|
|
240
240
|
};
|
|
241
|
-
|
|
242
|
-
var fd =
|
|
241
|
+
fs14.lutimesSync = function(path14, at, mt) {
|
|
242
|
+
var fd = fs14.openSync(path14, constants.O_SYMLINK);
|
|
243
243
|
var ret;
|
|
244
244
|
var threw = true;
|
|
245
245
|
try {
|
|
246
|
-
ret =
|
|
246
|
+
ret = fs14.futimesSync(fd, at, mt);
|
|
247
247
|
threw = false;
|
|
248
248
|
} finally {
|
|
249
249
|
if (threw) {
|
|
250
250
|
try {
|
|
251
|
-
|
|
251
|
+
fs14.closeSync(fd);
|
|
252
252
|
} catch (er) {
|
|
253
253
|
}
|
|
254
254
|
} else {
|
|
255
|
-
|
|
255
|
+
fs14.closeSync(fd);
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
return ret;
|
|
259
259
|
};
|
|
260
|
-
} else if (
|
|
261
|
-
|
|
260
|
+
} else if (fs14.futimes) {
|
|
261
|
+
fs14.lutimes = function(_a, _b, _c, cb) {
|
|
262
262
|
if (cb) process.nextTick(cb);
|
|
263
263
|
};
|
|
264
|
-
|
|
264
|
+
fs14.lutimesSync = function() {
|
|
265
265
|
};
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
function chmodFix(orig) {
|
|
269
269
|
if (!orig) return orig;
|
|
270
270
|
return function(target, mode, cb) {
|
|
271
|
-
return orig.call(
|
|
271
|
+
return orig.call(fs13, target, mode, function(er) {
|
|
272
272
|
if (chownErOk(er)) er = null;
|
|
273
273
|
if (cb) cb.apply(this, arguments);
|
|
274
274
|
});
|
|
@@ -278,7 +278,7 @@ var require_polyfills = __commonJS({
|
|
|
278
278
|
if (!orig) return orig;
|
|
279
279
|
return function(target, mode) {
|
|
280
280
|
try {
|
|
281
|
-
return orig.call(
|
|
281
|
+
return orig.call(fs13, target, mode);
|
|
282
282
|
} catch (er) {
|
|
283
283
|
if (!chownErOk(er)) throw er;
|
|
284
284
|
}
|
|
@@ -287,7 +287,7 @@ var require_polyfills = __commonJS({
|
|
|
287
287
|
function chownFix(orig) {
|
|
288
288
|
if (!orig) return orig;
|
|
289
289
|
return function(target, uid, gid, cb) {
|
|
290
|
-
return orig.call(
|
|
290
|
+
return orig.call(fs13, target, uid, gid, function(er) {
|
|
291
291
|
if (chownErOk(er)) er = null;
|
|
292
292
|
if (cb) cb.apply(this, arguments);
|
|
293
293
|
});
|
|
@@ -297,7 +297,7 @@ var require_polyfills = __commonJS({
|
|
|
297
297
|
if (!orig) return orig;
|
|
298
298
|
return function(target, uid, gid) {
|
|
299
299
|
try {
|
|
300
|
-
return orig.call(
|
|
300
|
+
return orig.call(fs13, target, uid, gid);
|
|
301
301
|
} catch (er) {
|
|
302
302
|
if (!chownErOk(er)) throw er;
|
|
303
303
|
}
|
|
@@ -317,13 +317,13 @@ var require_polyfills = __commonJS({
|
|
|
317
317
|
}
|
|
318
318
|
if (cb) cb.apply(this, arguments);
|
|
319
319
|
}
|
|
320
|
-
return options2 ? orig.call(
|
|
320
|
+
return options2 ? orig.call(fs13, target, options2, callback) : orig.call(fs13, target, callback);
|
|
321
321
|
};
|
|
322
322
|
}
|
|
323
323
|
function statFixSync(orig) {
|
|
324
324
|
if (!orig) return orig;
|
|
325
325
|
return function(target, options2) {
|
|
326
|
-
var stats = options2 ? orig.call(
|
|
326
|
+
var stats = options2 ? orig.call(fs13, target, options2) : orig.call(fs13, target);
|
|
327
327
|
if (stats) {
|
|
328
328
|
if (stats.uid < 0) stats.uid += 4294967296;
|
|
329
329
|
if (stats.gid < 0) stats.gid += 4294967296;
|
|
@@ -352,16 +352,16 @@ var require_legacy_streams = __commonJS({
|
|
|
352
352
|
"pnp:/builds/normed/bundle/.yarn/cache/graceful-fs-npm-4.2.11-24bb648a68-bf152d0ed1.zip/node_modules/graceful-fs/legacy-streams.js"(exports, module) {
|
|
353
353
|
var Stream = __require("stream").Stream;
|
|
354
354
|
module.exports = legacy;
|
|
355
|
-
function legacy(
|
|
355
|
+
function legacy(fs13) {
|
|
356
356
|
return {
|
|
357
357
|
ReadStream,
|
|
358
358
|
WriteStream
|
|
359
359
|
};
|
|
360
|
-
function ReadStream(
|
|
361
|
-
if (!(this instanceof ReadStream)) return new ReadStream(
|
|
360
|
+
function ReadStream(path14, options2) {
|
|
361
|
+
if (!(this instanceof ReadStream)) return new ReadStream(path14, options2);
|
|
362
362
|
Stream.call(this);
|
|
363
363
|
var self2 = this;
|
|
364
|
-
this.path =
|
|
364
|
+
this.path = path14;
|
|
365
365
|
this.fd = null;
|
|
366
366
|
this.readable = true;
|
|
367
367
|
this.paused = false;
|
|
@@ -395,7 +395,7 @@ var require_legacy_streams = __commonJS({
|
|
|
395
395
|
});
|
|
396
396
|
return;
|
|
397
397
|
}
|
|
398
|
-
|
|
398
|
+
fs13.open(this.path, this.flags, this.mode, function(err, fd) {
|
|
399
399
|
if (err) {
|
|
400
400
|
self2.emit("error", err);
|
|
401
401
|
self2.readable = false;
|
|
@@ -406,10 +406,10 @@ var require_legacy_streams = __commonJS({
|
|
|
406
406
|
self2._read();
|
|
407
407
|
});
|
|
408
408
|
}
|
|
409
|
-
function WriteStream(
|
|
410
|
-
if (!(this instanceof WriteStream)) return new WriteStream(
|
|
409
|
+
function WriteStream(path14, options2) {
|
|
410
|
+
if (!(this instanceof WriteStream)) return new WriteStream(path14, options2);
|
|
411
411
|
Stream.call(this);
|
|
412
|
-
this.path =
|
|
412
|
+
this.path = path14;
|
|
413
413
|
this.fd = null;
|
|
414
414
|
this.writable = true;
|
|
415
415
|
this.flags = "w";
|
|
@@ -434,7 +434,7 @@ var require_legacy_streams = __commonJS({
|
|
|
434
434
|
this.busy = false;
|
|
435
435
|
this._queue = [];
|
|
436
436
|
if (this.fd === null) {
|
|
437
|
-
this._open =
|
|
437
|
+
this._open = fs13.open;
|
|
438
438
|
this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
|
|
439
439
|
this.flush();
|
|
440
440
|
}
|
|
@@ -469,7 +469,7 @@ var require_clone = __commonJS({
|
|
|
469
469
|
// pnp:/builds/normed/bundle/.yarn/cache/graceful-fs-npm-4.2.11-24bb648a68-bf152d0ed1.zip/node_modules/graceful-fs/graceful-fs.js
|
|
470
470
|
var require_graceful_fs = __commonJS({
|
|
471
471
|
"pnp:/builds/normed/bundle/.yarn/cache/graceful-fs-npm-4.2.11-24bb648a68-bf152d0ed1.zip/node_modules/graceful-fs/graceful-fs.js"(exports, module) {
|
|
472
|
-
var
|
|
472
|
+
var fs13 = __require("fs");
|
|
473
473
|
var polyfills = require_polyfills();
|
|
474
474
|
var legacy = require_legacy_streams();
|
|
475
475
|
var clone = require_clone();
|
|
@@ -501,12 +501,12 @@ var require_graceful_fs = __commonJS({
|
|
|
501
501
|
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
502
502
|
console.error(m);
|
|
503
503
|
};
|
|
504
|
-
if (!
|
|
504
|
+
if (!fs13[gracefulQueue]) {
|
|
505
505
|
queue = global[gracefulQueue] || [];
|
|
506
|
-
publishQueue(
|
|
507
|
-
|
|
506
|
+
publishQueue(fs13, queue);
|
|
507
|
+
fs13.close = (function(fs$close) {
|
|
508
508
|
function close(fd, cb) {
|
|
509
|
-
return fs$close.call(
|
|
509
|
+
return fs$close.call(fs13, fd, function(err) {
|
|
510
510
|
if (!err) {
|
|
511
511
|
resetQueue();
|
|
512
512
|
}
|
|
@@ -518,48 +518,48 @@ var require_graceful_fs = __commonJS({
|
|
|
518
518
|
value: fs$close
|
|
519
519
|
});
|
|
520
520
|
return close;
|
|
521
|
-
})(
|
|
522
|
-
|
|
521
|
+
})(fs13.close);
|
|
522
|
+
fs13.closeSync = (function(fs$closeSync) {
|
|
523
523
|
function closeSync(fd) {
|
|
524
|
-
fs$closeSync.apply(
|
|
524
|
+
fs$closeSync.apply(fs13, arguments);
|
|
525
525
|
resetQueue();
|
|
526
526
|
}
|
|
527
527
|
Object.defineProperty(closeSync, previousSymbol, {
|
|
528
528
|
value: fs$closeSync
|
|
529
529
|
});
|
|
530
530
|
return closeSync;
|
|
531
|
-
})(
|
|
531
|
+
})(fs13.closeSync);
|
|
532
532
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
|
|
533
533
|
process.on("exit", function() {
|
|
534
|
-
debug(
|
|
535
|
-
__require("assert").equal(
|
|
534
|
+
debug(fs13[gracefulQueue]);
|
|
535
|
+
__require("assert").equal(fs13[gracefulQueue].length, 0);
|
|
536
536
|
});
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
539
|
var queue;
|
|
540
540
|
if (!global[gracefulQueue]) {
|
|
541
|
-
publishQueue(global,
|
|
542
|
-
}
|
|
543
|
-
module.exports = patch(clone(
|
|
544
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !
|
|
545
|
-
module.exports = patch(
|
|
546
|
-
|
|
547
|
-
}
|
|
548
|
-
function patch(
|
|
549
|
-
polyfills(
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
var fs$readFile =
|
|
554
|
-
|
|
555
|
-
function readFile(
|
|
541
|
+
publishQueue(global, fs13[gracefulQueue]);
|
|
542
|
+
}
|
|
543
|
+
module.exports = patch(clone(fs13));
|
|
544
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs13.__patched) {
|
|
545
|
+
module.exports = patch(fs13);
|
|
546
|
+
fs13.__patched = true;
|
|
547
|
+
}
|
|
548
|
+
function patch(fs14) {
|
|
549
|
+
polyfills(fs14);
|
|
550
|
+
fs14.gracefulify = patch;
|
|
551
|
+
fs14.createReadStream = createReadStream;
|
|
552
|
+
fs14.createWriteStream = createWriteStream;
|
|
553
|
+
var fs$readFile = fs14.readFile;
|
|
554
|
+
fs14.readFile = readFile;
|
|
555
|
+
function readFile(path14, options2, cb) {
|
|
556
556
|
if (typeof options2 === "function")
|
|
557
557
|
cb = options2, options2 = null;
|
|
558
|
-
return go$readFile(
|
|
559
|
-
function go$readFile(
|
|
560
|
-
return fs$readFile(
|
|
558
|
+
return go$readFile(path14, options2, cb);
|
|
559
|
+
function go$readFile(path15, options3, cb2, startTime2) {
|
|
560
|
+
return fs$readFile(path15, options3, function(err) {
|
|
561
561
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
562
|
-
enqueue([go$readFile, [
|
|
562
|
+
enqueue([go$readFile, [path15, options3, cb2], err, startTime2 || Date.now(), Date.now()]);
|
|
563
563
|
else {
|
|
564
564
|
if (typeof cb2 === "function")
|
|
565
565
|
cb2.apply(this, arguments);
|
|
@@ -567,16 +567,16 @@ var require_graceful_fs = __commonJS({
|
|
|
567
567
|
});
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
|
-
var fs$writeFile =
|
|
571
|
-
|
|
572
|
-
function writeFile(
|
|
570
|
+
var fs$writeFile = fs14.writeFile;
|
|
571
|
+
fs14.writeFile = writeFile;
|
|
572
|
+
function writeFile(path14, data, options2, cb) {
|
|
573
573
|
if (typeof options2 === "function")
|
|
574
574
|
cb = options2, options2 = null;
|
|
575
|
-
return go$writeFile(
|
|
576
|
-
function go$writeFile(
|
|
577
|
-
return fs$writeFile(
|
|
575
|
+
return go$writeFile(path14, data, options2, cb);
|
|
576
|
+
function go$writeFile(path15, data2, options3, cb2, startTime2) {
|
|
577
|
+
return fs$writeFile(path15, data2, options3, function(err) {
|
|
578
578
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
579
|
-
enqueue([go$writeFile, [
|
|
579
|
+
enqueue([go$writeFile, [path15, data2, options3, cb2], err, startTime2 || Date.now(), Date.now()]);
|
|
580
580
|
else {
|
|
581
581
|
if (typeof cb2 === "function")
|
|
582
582
|
cb2.apply(this, arguments);
|
|
@@ -584,17 +584,17 @@ var require_graceful_fs = __commonJS({
|
|
|
584
584
|
});
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
var fs$appendFile =
|
|
587
|
+
var fs$appendFile = fs14.appendFile;
|
|
588
588
|
if (fs$appendFile)
|
|
589
|
-
|
|
590
|
-
function appendFile(
|
|
589
|
+
fs14.appendFile = appendFile;
|
|
590
|
+
function appendFile(path14, data, options2, cb) {
|
|
591
591
|
if (typeof options2 === "function")
|
|
592
592
|
cb = options2, options2 = null;
|
|
593
|
-
return go$appendFile(
|
|
594
|
-
function go$appendFile(
|
|
595
|
-
return fs$appendFile(
|
|
593
|
+
return go$appendFile(path14, data, options2, cb);
|
|
594
|
+
function go$appendFile(path15, data2, options3, cb2, startTime2) {
|
|
595
|
+
return fs$appendFile(path15, data2, options3, function(err) {
|
|
596
596
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
597
|
-
enqueue([go$appendFile, [
|
|
597
|
+
enqueue([go$appendFile, [path15, data2, options3, cb2], err, startTime2 || Date.now(), Date.now()]);
|
|
598
598
|
else {
|
|
599
599
|
if (typeof cb2 === "function")
|
|
600
600
|
cb2.apply(this, arguments);
|
|
@@ -602,9 +602,9 @@ var require_graceful_fs = __commonJS({
|
|
|
602
602
|
});
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
|
-
var fs$copyFile =
|
|
605
|
+
var fs$copyFile = fs14.copyFile;
|
|
606
606
|
if (fs$copyFile)
|
|
607
|
-
|
|
607
|
+
fs14.copyFile = copyFile;
|
|
608
608
|
function copyFile(src, dest, flags, cb) {
|
|
609
609
|
if (typeof flags === "function") {
|
|
610
610
|
cb = flags;
|
|
@@ -622,34 +622,34 @@ var require_graceful_fs = __commonJS({
|
|
|
622
622
|
});
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
|
-
var fs$readdir =
|
|
626
|
-
|
|
625
|
+
var fs$readdir = fs14.readdir;
|
|
626
|
+
fs14.readdir = readdir;
|
|
627
627
|
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
628
|
-
function readdir(
|
|
628
|
+
function readdir(path14, options2, cb) {
|
|
629
629
|
if (typeof options2 === "function")
|
|
630
630
|
cb = options2, options2 = null;
|
|
631
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(
|
|
632
|
-
return fs$readdir(
|
|
633
|
-
|
|
631
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path15, options3, cb2, startTime2) {
|
|
632
|
+
return fs$readdir(path15, fs$readdirCallback(
|
|
633
|
+
path15,
|
|
634
634
|
options3,
|
|
635
635
|
cb2,
|
|
636
636
|
startTime2
|
|
637
637
|
));
|
|
638
|
-
} : function go$readdir2(
|
|
639
|
-
return fs$readdir(
|
|
640
|
-
|
|
638
|
+
} : function go$readdir2(path15, options3, cb2, startTime2) {
|
|
639
|
+
return fs$readdir(path15, options3, fs$readdirCallback(
|
|
640
|
+
path15,
|
|
641
641
|
options3,
|
|
642
642
|
cb2,
|
|
643
643
|
startTime2
|
|
644
644
|
));
|
|
645
645
|
};
|
|
646
|
-
return go$readdir(
|
|
647
|
-
function fs$readdirCallback(
|
|
646
|
+
return go$readdir(path14, options2, cb);
|
|
647
|
+
function fs$readdirCallback(path15, options3, cb2, startTime2) {
|
|
648
648
|
return function(err, files) {
|
|
649
649
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
650
650
|
enqueue([
|
|
651
651
|
go$readdir,
|
|
652
|
-
[
|
|
652
|
+
[path15, options3, cb2],
|
|
653
653
|
err,
|
|
654
654
|
startTime2 || Date.now(),
|
|
655
655
|
Date.now()
|
|
@@ -664,21 +664,21 @@ var require_graceful_fs = __commonJS({
|
|
|
664
664
|
}
|
|
665
665
|
}
|
|
666
666
|
if (process.version.substr(0, 4) === "v0.8") {
|
|
667
|
-
var legStreams = legacy(
|
|
667
|
+
var legStreams = legacy(fs14);
|
|
668
668
|
ReadStream = legStreams.ReadStream;
|
|
669
669
|
WriteStream = legStreams.WriteStream;
|
|
670
670
|
}
|
|
671
|
-
var fs$ReadStream =
|
|
671
|
+
var fs$ReadStream = fs14.ReadStream;
|
|
672
672
|
if (fs$ReadStream) {
|
|
673
673
|
ReadStream.prototype = Object.create(fs$ReadStream.prototype);
|
|
674
674
|
ReadStream.prototype.open = ReadStream$open;
|
|
675
675
|
}
|
|
676
|
-
var fs$WriteStream =
|
|
676
|
+
var fs$WriteStream = fs14.WriteStream;
|
|
677
677
|
if (fs$WriteStream) {
|
|
678
678
|
WriteStream.prototype = Object.create(fs$WriteStream.prototype);
|
|
679
679
|
WriteStream.prototype.open = WriteStream$open;
|
|
680
680
|
}
|
|
681
|
-
Object.defineProperty(
|
|
681
|
+
Object.defineProperty(fs14, "ReadStream", {
|
|
682
682
|
get: function() {
|
|
683
683
|
return ReadStream;
|
|
684
684
|
},
|
|
@@ -688,7 +688,7 @@ var require_graceful_fs = __commonJS({
|
|
|
688
688
|
enumerable: true,
|
|
689
689
|
configurable: true
|
|
690
690
|
});
|
|
691
|
-
Object.defineProperty(
|
|
691
|
+
Object.defineProperty(fs14, "WriteStream", {
|
|
692
692
|
get: function() {
|
|
693
693
|
return WriteStream;
|
|
694
694
|
},
|
|
@@ -699,7 +699,7 @@ var require_graceful_fs = __commonJS({
|
|
|
699
699
|
configurable: true
|
|
700
700
|
});
|
|
701
701
|
var FileReadStream = ReadStream;
|
|
702
|
-
Object.defineProperty(
|
|
702
|
+
Object.defineProperty(fs14, "FileReadStream", {
|
|
703
703
|
get: function() {
|
|
704
704
|
return FileReadStream;
|
|
705
705
|
},
|
|
@@ -710,7 +710,7 @@ var require_graceful_fs = __commonJS({
|
|
|
710
710
|
configurable: true
|
|
711
711
|
});
|
|
712
712
|
var FileWriteStream = WriteStream;
|
|
713
|
-
Object.defineProperty(
|
|
713
|
+
Object.defineProperty(fs14, "FileWriteStream", {
|
|
714
714
|
get: function() {
|
|
715
715
|
return FileWriteStream;
|
|
716
716
|
},
|
|
@@ -720,7 +720,7 @@ var require_graceful_fs = __commonJS({
|
|
|
720
720
|
enumerable: true,
|
|
721
721
|
configurable: true
|
|
722
722
|
});
|
|
723
|
-
function ReadStream(
|
|
723
|
+
function ReadStream(path14, options2) {
|
|
724
724
|
if (this instanceof ReadStream)
|
|
725
725
|
return fs$ReadStream.apply(this, arguments), this;
|
|
726
726
|
else
|
|
@@ -740,7 +740,7 @@ var require_graceful_fs = __commonJS({
|
|
|
740
740
|
}
|
|
741
741
|
});
|
|
742
742
|
}
|
|
743
|
-
function WriteStream(
|
|
743
|
+
function WriteStream(path14, options2) {
|
|
744
744
|
if (this instanceof WriteStream)
|
|
745
745
|
return fs$WriteStream.apply(this, arguments), this;
|
|
746
746
|
else
|
|
@@ -758,22 +758,22 @@ var require_graceful_fs = __commonJS({
|
|
|
758
758
|
}
|
|
759
759
|
});
|
|
760
760
|
}
|
|
761
|
-
function createReadStream(
|
|
762
|
-
return new
|
|
761
|
+
function createReadStream(path14, options2) {
|
|
762
|
+
return new fs14.ReadStream(path14, options2);
|
|
763
763
|
}
|
|
764
|
-
function createWriteStream(
|
|
765
|
-
return new
|
|
764
|
+
function createWriteStream(path14, options2) {
|
|
765
|
+
return new fs14.WriteStream(path14, options2);
|
|
766
766
|
}
|
|
767
|
-
var fs$open =
|
|
768
|
-
|
|
769
|
-
function open(
|
|
767
|
+
var fs$open = fs14.open;
|
|
768
|
+
fs14.open = open;
|
|
769
|
+
function open(path14, flags, mode, cb) {
|
|
770
770
|
if (typeof mode === "function")
|
|
771
771
|
cb = mode, mode = null;
|
|
772
|
-
return go$open(
|
|
773
|
-
function go$open(
|
|
774
|
-
return fs$open(
|
|
772
|
+
return go$open(path14, flags, mode, cb);
|
|
773
|
+
function go$open(path15, flags2, mode2, cb2, startTime2) {
|
|
774
|
+
return fs$open(path15, flags2, mode2, function(err, fd) {
|
|
775
775
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
776
|
-
enqueue([go$open, [
|
|
776
|
+
enqueue([go$open, [path15, flags2, mode2, cb2], err, startTime2 || Date.now(), Date.now()]);
|
|
777
777
|
else {
|
|
778
778
|
if (typeof cb2 === "function")
|
|
779
779
|
cb2.apply(this, arguments);
|
|
@@ -781,20 +781,20 @@ var require_graceful_fs = __commonJS({
|
|
|
781
781
|
});
|
|
782
782
|
}
|
|
783
783
|
}
|
|
784
|
-
return
|
|
784
|
+
return fs14;
|
|
785
785
|
}
|
|
786
786
|
function enqueue(elem) {
|
|
787
787
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
788
|
-
|
|
788
|
+
fs13[gracefulQueue].push(elem);
|
|
789
789
|
retry();
|
|
790
790
|
}
|
|
791
791
|
var retryTimer;
|
|
792
792
|
function resetQueue() {
|
|
793
793
|
var now = Date.now();
|
|
794
|
-
for (var i = 0; i <
|
|
795
|
-
if (
|
|
796
|
-
|
|
797
|
-
|
|
794
|
+
for (var i = 0; i < fs13[gracefulQueue].length; ++i) {
|
|
795
|
+
if (fs13[gracefulQueue][i].length > 2) {
|
|
796
|
+
fs13[gracefulQueue][i][3] = now;
|
|
797
|
+
fs13[gracefulQueue][i][4] = now;
|
|
798
798
|
}
|
|
799
799
|
}
|
|
800
800
|
retry();
|
|
@@ -802,9 +802,9 @@ var require_graceful_fs = __commonJS({
|
|
|
802
802
|
function retry() {
|
|
803
803
|
clearTimeout(retryTimer);
|
|
804
804
|
retryTimer = void 0;
|
|
805
|
-
if (
|
|
805
|
+
if (fs13[gracefulQueue].length === 0)
|
|
806
806
|
return;
|
|
807
|
-
var elem =
|
|
807
|
+
var elem = fs13[gracefulQueue].shift();
|
|
808
808
|
var fn = elem[0];
|
|
809
809
|
var args = elem[1];
|
|
810
810
|
var err = elem[2];
|
|
@@ -826,7 +826,7 @@ var require_graceful_fs = __commonJS({
|
|
|
826
826
|
debug("RETRY", fn.name, args);
|
|
827
827
|
fn.apply(null, args.concat([startTime2]));
|
|
828
828
|
} else {
|
|
829
|
-
|
|
829
|
+
fs13[gracefulQueue].push(elem);
|
|
830
830
|
}
|
|
831
831
|
}
|
|
832
832
|
if (retryTimer === void 0) {
|
|
@@ -841,7 +841,7 @@ var require_fs = __commonJS({
|
|
|
841
841
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.4-29a9d2b3b0-1b8deea9c5.zip/node_modules/fs-extra/lib/fs/index.js"(exports) {
|
|
842
842
|
"use strict";
|
|
843
843
|
var u = require_universalify().fromCallback;
|
|
844
|
-
var
|
|
844
|
+
var fs13 = require_graceful_fs();
|
|
845
845
|
var api = [
|
|
846
846
|
"access",
|
|
847
847
|
"appendFile",
|
|
@@ -882,26 +882,26 @@ var require_fs = __commonJS({
|
|
|
882
882
|
"utimes",
|
|
883
883
|
"writeFile"
|
|
884
884
|
].filter((key) => {
|
|
885
|
-
return typeof
|
|
885
|
+
return typeof fs13[key] === "function";
|
|
886
886
|
});
|
|
887
|
-
Object.assign(exports,
|
|
887
|
+
Object.assign(exports, fs13);
|
|
888
888
|
api.forEach((method) => {
|
|
889
|
-
exports[method] = u(
|
|
889
|
+
exports[method] = u(fs13[method]);
|
|
890
890
|
});
|
|
891
891
|
exports.exists = function(filename, callback) {
|
|
892
892
|
if (typeof callback === "function") {
|
|
893
|
-
return
|
|
893
|
+
return fs13.exists(filename, callback);
|
|
894
894
|
}
|
|
895
895
|
return new Promise((resolve) => {
|
|
896
|
-
return
|
|
896
|
+
return fs13.exists(filename, resolve);
|
|
897
897
|
});
|
|
898
898
|
};
|
|
899
899
|
exports.read = function(fd, buffer, offset, length, position, callback) {
|
|
900
900
|
if (typeof callback === "function") {
|
|
901
|
-
return
|
|
901
|
+
return fs13.read(fd, buffer, offset, length, position, callback);
|
|
902
902
|
}
|
|
903
903
|
return new Promise((resolve, reject) => {
|
|
904
|
-
|
|
904
|
+
fs13.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
|
|
905
905
|
if (err) return reject(err);
|
|
906
906
|
resolve({ bytesRead, buffer: buffer2 });
|
|
907
907
|
});
|
|
@@ -909,10 +909,10 @@ var require_fs = __commonJS({
|
|
|
909
909
|
};
|
|
910
910
|
exports.write = function(fd, buffer, ...args) {
|
|
911
911
|
if (typeof args[args.length - 1] === "function") {
|
|
912
|
-
return
|
|
912
|
+
return fs13.write(fd, buffer, ...args);
|
|
913
913
|
}
|
|
914
914
|
return new Promise((resolve, reject) => {
|
|
915
|
-
|
|
915
|
+
fs13.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
|
|
916
916
|
if (err) return reject(err);
|
|
917
917
|
resolve({ bytesWritten, buffer: buffer2 });
|
|
918
918
|
});
|
|
@@ -920,10 +920,10 @@ var require_fs = __commonJS({
|
|
|
920
920
|
};
|
|
921
921
|
exports.readv = function(fd, buffers, ...args) {
|
|
922
922
|
if (typeof args[args.length - 1] === "function") {
|
|
923
|
-
return
|
|
923
|
+
return fs13.readv(fd, buffers, ...args);
|
|
924
924
|
}
|
|
925
925
|
return new Promise((resolve, reject) => {
|
|
926
|
-
|
|
926
|
+
fs13.readv(fd, buffers, ...args, (err, bytesRead, buffers2) => {
|
|
927
927
|
if (err) return reject(err);
|
|
928
928
|
resolve({ bytesRead, buffers: buffers2 });
|
|
929
929
|
});
|
|
@@ -931,17 +931,17 @@ var require_fs = __commonJS({
|
|
|
931
931
|
};
|
|
932
932
|
exports.writev = function(fd, buffers, ...args) {
|
|
933
933
|
if (typeof args[args.length - 1] === "function") {
|
|
934
|
-
return
|
|
934
|
+
return fs13.writev(fd, buffers, ...args);
|
|
935
935
|
}
|
|
936
936
|
return new Promise((resolve, reject) => {
|
|
937
|
-
|
|
937
|
+
fs13.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
|
|
938
938
|
if (err) return reject(err);
|
|
939
939
|
resolve({ bytesWritten, buffers: buffers2 });
|
|
940
940
|
});
|
|
941
941
|
});
|
|
942
942
|
};
|
|
943
|
-
if (typeof
|
|
944
|
-
exports.realpath.native = u(
|
|
943
|
+
if (typeof fs13.realpath.native === "function") {
|
|
944
|
+
exports.realpath.native = u(fs13.realpath.native);
|
|
945
945
|
} else {
|
|
946
946
|
process.emitWarning(
|
|
947
947
|
"fs.realpath.native is not a function. Is fs being monkey-patched?",
|
|
@@ -956,10 +956,10 @@ var require_fs = __commonJS({
|
|
|
956
956
|
var require_utils = __commonJS({
|
|
957
957
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.4-29a9d2b3b0-1b8deea9c5.zip/node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module) {
|
|
958
958
|
"use strict";
|
|
959
|
-
var
|
|
959
|
+
var path14 = __require("path");
|
|
960
960
|
module.exports.checkPath = function checkPath(pth) {
|
|
961
961
|
if (process.platform === "win32") {
|
|
962
|
-
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(
|
|
962
|
+
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path14.parse(pth).root, ""));
|
|
963
963
|
if (pathHasInvalidWinCharacters) {
|
|
964
964
|
const error = new Error(`Path contains invalid characters: ${pth}`);
|
|
965
965
|
error.code = "EINVAL";
|
|
@@ -974,7 +974,7 @@ var require_utils = __commonJS({
|
|
|
974
974
|
var require_make_dir = __commonJS({
|
|
975
975
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.4-29a9d2b3b0-1b8deea9c5.zip/node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports, module) {
|
|
976
976
|
"use strict";
|
|
977
|
-
var
|
|
977
|
+
var fs13 = require_fs();
|
|
978
978
|
var { checkPath } = require_utils();
|
|
979
979
|
var getMode = (options2) => {
|
|
980
980
|
const defaults = { mode: 511 };
|
|
@@ -983,14 +983,14 @@ var require_make_dir = __commonJS({
|
|
|
983
983
|
};
|
|
984
984
|
module.exports.makeDir = async (dir, options2) => {
|
|
985
985
|
checkPath(dir);
|
|
986
|
-
return
|
|
986
|
+
return fs13.mkdir(dir, {
|
|
987
987
|
mode: getMode(options2),
|
|
988
988
|
recursive: true
|
|
989
989
|
});
|
|
990
990
|
};
|
|
991
991
|
module.exports.makeDirSync = (dir, options2) => {
|
|
992
992
|
checkPath(dir);
|
|
993
|
-
return
|
|
993
|
+
return fs13.mkdirSync(dir, {
|
|
994
994
|
mode: getMode(options2),
|
|
995
995
|
recursive: true
|
|
996
996
|
});
|
|
@@ -1022,13 +1022,13 @@ var require_path_exists = __commonJS({
|
|
|
1022
1022
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.4-29a9d2b3b0-1b8deea9c5.zip/node_modules/fs-extra/lib/path-exists/index.js"(exports, module) {
|
|
1023
1023
|
"use strict";
|
|
1024
1024
|
var u = require_universalify().fromPromise;
|
|
1025
|
-
var
|
|
1026
|
-
function pathExists(
|
|
1027
|
-
return
|
|
1025
|
+
var fs13 = require_fs();
|
|
1026
|
+
function pathExists(path14) {
|
|
1027
|
+
return fs13.access(path14).then(() => true).catch(() => false);
|
|
1028
1028
|
}
|
|
1029
1029
|
module.exports = {
|
|
1030
1030
|
pathExists: u(pathExists),
|
|
1031
|
-
pathExistsSync:
|
|
1031
|
+
pathExistsSync: fs13.existsSync
|
|
1032
1032
|
};
|
|
1033
1033
|
}
|
|
1034
1034
|
});
|
|
@@ -1037,16 +1037,16 @@ var require_path_exists = __commonJS({
|
|
|
1037
1037
|
var require_utimes = __commonJS({
|
|
1038
1038
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.4-29a9d2b3b0-1b8deea9c5.zip/node_modules/fs-extra/lib/util/utimes.js"(exports, module) {
|
|
1039
1039
|
"use strict";
|
|
1040
|
-
var
|
|
1040
|
+
var fs13 = require_fs();
|
|
1041
1041
|
var u = require_universalify().fromPromise;
|
|
1042
|
-
async function utimesMillis(
|
|
1043
|
-
const fd = await
|
|
1042
|
+
async function utimesMillis(path14, atime, mtime) {
|
|
1043
|
+
const fd = await fs13.open(path14, "r+");
|
|
1044
1044
|
let closeErr = null;
|
|
1045
1045
|
try {
|
|
1046
|
-
await
|
|
1046
|
+
await fs13.futimes(fd, atime, mtime);
|
|
1047
1047
|
} finally {
|
|
1048
1048
|
try {
|
|
1049
|
-
await
|
|
1049
|
+
await fs13.close(fd);
|
|
1050
1050
|
} catch (e) {
|
|
1051
1051
|
closeErr = e;
|
|
1052
1052
|
}
|
|
@@ -1055,10 +1055,10 @@ var require_utimes = __commonJS({
|
|
|
1055
1055
|
throw closeErr;
|
|
1056
1056
|
}
|
|
1057
1057
|
}
|
|
1058
|
-
function utimesMillisSync(
|
|
1059
|
-
const fd =
|
|
1060
|
-
|
|
1061
|
-
return
|
|
1058
|
+
function utimesMillisSync(path14, atime, mtime) {
|
|
1059
|
+
const fd = fs13.openSync(path14, "r+");
|
|
1060
|
+
fs13.futimesSync(fd, atime, mtime);
|
|
1061
|
+
return fs13.closeSync(fd);
|
|
1062
1062
|
}
|
|
1063
1063
|
module.exports = {
|
|
1064
1064
|
utimesMillis: u(utimesMillis),
|
|
@@ -1071,11 +1071,11 @@ var require_utimes = __commonJS({
|
|
|
1071
1071
|
var require_stat = __commonJS({
|
|
1072
1072
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.4-29a9d2b3b0-1b8deea9c5.zip/node_modules/fs-extra/lib/util/stat.js"(exports, module) {
|
|
1073
1073
|
"use strict";
|
|
1074
|
-
var
|
|
1075
|
-
var
|
|
1074
|
+
var fs13 = require_fs();
|
|
1075
|
+
var path14 = __require("path");
|
|
1076
1076
|
var u = require_universalify().fromPromise;
|
|
1077
1077
|
function getStats(src, dest, opts) {
|
|
1078
|
-
const statFunc = opts.dereference ? (file) =>
|
|
1078
|
+
const statFunc = opts.dereference ? (file) => fs13.stat(file, { bigint: true }) : (file) => fs13.lstat(file, { bigint: true });
|
|
1079
1079
|
return Promise.all([
|
|
1080
1080
|
statFunc(src),
|
|
1081
1081
|
statFunc(dest).catch((err) => {
|
|
@@ -1086,7 +1086,7 @@ var require_stat = __commonJS({
|
|
|
1086
1086
|
}
|
|
1087
1087
|
function getStatsSync(src, dest, opts) {
|
|
1088
1088
|
let destStat;
|
|
1089
|
-
const statFunc = opts.dereference ? (file) =>
|
|
1089
|
+
const statFunc = opts.dereference ? (file) => fs13.statSync(file, { bigint: true }) : (file) => fs13.lstatSync(file, { bigint: true });
|
|
1090
1090
|
const srcStat = statFunc(src);
|
|
1091
1091
|
try {
|
|
1092
1092
|
destStat = statFunc(dest);
|
|
@@ -1100,8 +1100,8 @@ var require_stat = __commonJS({
|
|
|
1100
1100
|
const { srcStat, destStat } = await getStats(src, dest, opts);
|
|
1101
1101
|
if (destStat) {
|
|
1102
1102
|
if (areIdentical(srcStat, destStat)) {
|
|
1103
|
-
const srcBaseName =
|
|
1104
|
-
const destBaseName =
|
|
1103
|
+
const srcBaseName = path14.basename(src);
|
|
1104
|
+
const destBaseName = path14.basename(dest);
|
|
1105
1105
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
1106
1106
|
return { srcStat, destStat, isChangingCase: true };
|
|
1107
1107
|
}
|
|
@@ -1123,8 +1123,8 @@ var require_stat = __commonJS({
|
|
|
1123
1123
|
const { srcStat, destStat } = getStatsSync(src, dest, opts);
|
|
1124
1124
|
if (destStat) {
|
|
1125
1125
|
if (areIdentical(srcStat, destStat)) {
|
|
1126
|
-
const srcBaseName =
|
|
1127
|
-
const destBaseName =
|
|
1126
|
+
const srcBaseName = path14.basename(src);
|
|
1127
|
+
const destBaseName = path14.basename(dest);
|
|
1128
1128
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
1129
1129
|
return { srcStat, destStat, isChangingCase: true };
|
|
1130
1130
|
}
|
|
@@ -1143,12 +1143,12 @@ var require_stat = __commonJS({
|
|
|
1143
1143
|
return { srcStat, destStat };
|
|
1144
1144
|
}
|
|
1145
1145
|
async function checkParentPaths(src, srcStat, dest, funcName) {
|
|
1146
|
-
const srcParent =
|
|
1147
|
-
const destParent =
|
|
1148
|
-
if (destParent === srcParent || destParent ===
|
|
1146
|
+
const srcParent = path14.resolve(path14.dirname(src));
|
|
1147
|
+
const destParent = path14.resolve(path14.dirname(dest));
|
|
1148
|
+
if (destParent === srcParent || destParent === path14.parse(destParent).root) return;
|
|
1149
1149
|
let destStat;
|
|
1150
1150
|
try {
|
|
1151
|
-
destStat = await
|
|
1151
|
+
destStat = await fs13.stat(destParent, { bigint: true });
|
|
1152
1152
|
} catch (err) {
|
|
1153
1153
|
if (err.code === "ENOENT") return;
|
|
1154
1154
|
throw err;
|
|
@@ -1159,12 +1159,12 @@ var require_stat = __commonJS({
|
|
|
1159
1159
|
return checkParentPaths(src, srcStat, destParent, funcName);
|
|
1160
1160
|
}
|
|
1161
1161
|
function checkParentPathsSync(src, srcStat, dest, funcName) {
|
|
1162
|
-
const srcParent =
|
|
1163
|
-
const destParent =
|
|
1164
|
-
if (destParent === srcParent || destParent ===
|
|
1162
|
+
const srcParent = path14.resolve(path14.dirname(src));
|
|
1163
|
+
const destParent = path14.resolve(path14.dirname(dest));
|
|
1164
|
+
if (destParent === srcParent || destParent === path14.parse(destParent).root) return;
|
|
1165
1165
|
let destStat;
|
|
1166
1166
|
try {
|
|
1167
|
-
destStat =
|
|
1167
|
+
destStat = fs13.statSync(destParent, { bigint: true });
|
|
1168
1168
|
} catch (err) {
|
|
1169
1169
|
if (err.code === "ENOENT") return;
|
|
1170
1170
|
throw err;
|
|
@@ -1178,8 +1178,8 @@ var require_stat = __commonJS({
|
|
|
1178
1178
|
return destStat.ino !== void 0 && destStat.dev !== void 0 && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
|
|
1179
1179
|
}
|
|
1180
1180
|
function isSrcSubdir(src, dest) {
|
|
1181
|
-
const srcArr =
|
|
1182
|
-
const destArr =
|
|
1181
|
+
const srcArr = path14.resolve(src).split(path14.sep).filter((i) => i);
|
|
1182
|
+
const destArr = path14.resolve(dest).split(path14.sep).filter((i) => i);
|
|
1183
1183
|
return srcArr.every((cur, i) => destArr[i] === cur);
|
|
1184
1184
|
}
|
|
1185
1185
|
function errMsg(src, dest, funcName) {
|
|
@@ -1231,8 +1231,8 @@ var require_async = __commonJS({
|
|
|
1231
1231
|
var require_copy = __commonJS({
|
|
1232
1232
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.4-29a9d2b3b0-1b8deea9c5.zip/node_modules/fs-extra/lib/copy/copy.js"(exports, module) {
|
|
1233
1233
|
"use strict";
|
|
1234
|
-
var
|
|
1235
|
-
var
|
|
1234
|
+
var fs13 = require_fs();
|
|
1235
|
+
var path14 = __require("path");
|
|
1236
1236
|
var { mkdirs } = require_mkdirs();
|
|
1237
1237
|
var { pathExists } = require_path_exists();
|
|
1238
1238
|
var { utimesMillis } = require_utimes();
|
|
@@ -1255,7 +1255,7 @@ var require_copy = __commonJS({
|
|
|
1255
1255
|
await stat.checkParentPaths(src, srcStat, dest, "copy");
|
|
1256
1256
|
const include = await runFilter(src, dest, opts);
|
|
1257
1257
|
if (!include) return;
|
|
1258
|
-
const destParent =
|
|
1258
|
+
const destParent = path14.dirname(dest);
|
|
1259
1259
|
const dirExists = await pathExists(destParent);
|
|
1260
1260
|
if (!dirExists) {
|
|
1261
1261
|
await mkdirs(destParent);
|
|
@@ -1267,7 +1267,7 @@ var require_copy = __commonJS({
|
|
|
1267
1267
|
return opts.filter(src, dest);
|
|
1268
1268
|
}
|
|
1269
1269
|
async function getStatsAndPerformCopy(destStat, src, dest, opts) {
|
|
1270
|
-
const statFn = opts.dereference ?
|
|
1270
|
+
const statFn = opts.dereference ? fs13.stat : fs13.lstat;
|
|
1271
1271
|
const srcStat = await statFn(src);
|
|
1272
1272
|
if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts);
|
|
1273
1273
|
if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts);
|
|
@@ -1279,7 +1279,7 @@ var require_copy = __commonJS({
|
|
|
1279
1279
|
async function onFile(srcStat, destStat, src, dest, opts) {
|
|
1280
1280
|
if (!destStat) return copyFile(srcStat, src, dest, opts);
|
|
1281
1281
|
if (opts.overwrite) {
|
|
1282
|
-
await
|
|
1282
|
+
await fs13.unlink(dest);
|
|
1283
1283
|
return copyFile(srcStat, src, dest, opts);
|
|
1284
1284
|
}
|
|
1285
1285
|
if (opts.errorOnExist) {
|
|
@@ -1287,29 +1287,29 @@ var require_copy = __commonJS({
|
|
|
1287
1287
|
}
|
|
1288
1288
|
}
|
|
1289
1289
|
async function copyFile(srcStat, src, dest, opts) {
|
|
1290
|
-
await
|
|
1290
|
+
await fs13.copyFile(src, dest);
|
|
1291
1291
|
if (opts.preserveTimestamps) {
|
|
1292
1292
|
if (fileIsNotWritable(srcStat.mode)) {
|
|
1293
1293
|
await makeFileWritable(dest, srcStat.mode);
|
|
1294
1294
|
}
|
|
1295
|
-
const updatedSrcStat = await
|
|
1295
|
+
const updatedSrcStat = await fs13.stat(src);
|
|
1296
1296
|
await utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
|
|
1297
1297
|
}
|
|
1298
|
-
return
|
|
1298
|
+
return fs13.chmod(dest, srcStat.mode);
|
|
1299
1299
|
}
|
|
1300
1300
|
function fileIsNotWritable(srcMode) {
|
|
1301
1301
|
return (srcMode & 128) === 0;
|
|
1302
1302
|
}
|
|
1303
1303
|
function makeFileWritable(dest, srcMode) {
|
|
1304
|
-
return
|
|
1304
|
+
return fs13.chmod(dest, srcMode | 128);
|
|
1305
1305
|
}
|
|
1306
1306
|
async function onDir(srcStat, destStat, src, dest, opts) {
|
|
1307
1307
|
if (!destStat) {
|
|
1308
|
-
await
|
|
1308
|
+
await fs13.mkdir(dest);
|
|
1309
1309
|
}
|
|
1310
|
-
await asyncIteratorConcurrentProcess(await
|
|
1311
|
-
const srcItem =
|
|
1312
|
-
const destItem =
|
|
1310
|
+
await asyncIteratorConcurrentProcess(await fs13.opendir(src), async (item) => {
|
|
1311
|
+
const srcItem = path14.join(src, item.name);
|
|
1312
|
+
const destItem = path14.join(dest, item.name);
|
|
1313
1313
|
const include = await runFilter(srcItem, destItem, opts);
|
|
1314
1314
|
if (include) {
|
|
1315
1315
|
const { destStat: destStat2 } = await stat.checkPaths(srcItem, destItem, "copy", opts);
|
|
@@ -1317,26 +1317,26 @@ var require_copy = __commonJS({
|
|
|
1317
1317
|
}
|
|
1318
1318
|
});
|
|
1319
1319
|
if (!destStat) {
|
|
1320
|
-
await
|
|
1320
|
+
await fs13.chmod(dest, srcStat.mode);
|
|
1321
1321
|
}
|
|
1322
1322
|
}
|
|
1323
1323
|
async function onLink(destStat, src, dest, opts) {
|
|
1324
|
-
let resolvedSrc = await
|
|
1324
|
+
let resolvedSrc = await fs13.readlink(src);
|
|
1325
1325
|
if (opts.dereference) {
|
|
1326
|
-
resolvedSrc =
|
|
1326
|
+
resolvedSrc = path14.resolve(process.cwd(), resolvedSrc);
|
|
1327
1327
|
}
|
|
1328
1328
|
if (!destStat) {
|
|
1329
|
-
return
|
|
1329
|
+
return fs13.symlink(resolvedSrc, dest);
|
|
1330
1330
|
}
|
|
1331
1331
|
let resolvedDest = null;
|
|
1332
1332
|
try {
|
|
1333
|
-
resolvedDest = await
|
|
1333
|
+
resolvedDest = await fs13.readlink(dest);
|
|
1334
1334
|
} catch (e) {
|
|
1335
|
-
if (e.code === "EINVAL" || e.code === "UNKNOWN") return
|
|
1335
|
+
if (e.code === "EINVAL" || e.code === "UNKNOWN") return fs13.symlink(resolvedSrc, dest);
|
|
1336
1336
|
throw e;
|
|
1337
1337
|
}
|
|
1338
1338
|
if (opts.dereference) {
|
|
1339
|
-
resolvedDest =
|
|
1339
|
+
resolvedDest = path14.resolve(process.cwd(), resolvedDest);
|
|
1340
1340
|
}
|
|
1341
1341
|
if (resolvedSrc !== resolvedDest) {
|
|
1342
1342
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
@@ -1346,8 +1346,8 @@ var require_copy = __commonJS({
|
|
|
1346
1346
|
throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
|
|
1347
1347
|
}
|
|
1348
1348
|
}
|
|
1349
|
-
await
|
|
1350
|
-
return
|
|
1349
|
+
await fs13.unlink(dest);
|
|
1350
|
+
return fs13.symlink(resolvedSrc, dest);
|
|
1351
1351
|
}
|
|
1352
1352
|
module.exports = copy2;
|
|
1353
1353
|
}
|
|
@@ -1357,8 +1357,8 @@ var require_copy = __commonJS({
|
|
|
1357
1357
|
var require_copy_sync = __commonJS({
|
|
1358
1358
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.4-29a9d2b3b0-1b8deea9c5.zip/node_modules/fs-extra/lib/copy/copy-sync.js"(exports, module) {
|
|
1359
1359
|
"use strict";
|
|
1360
|
-
var
|
|
1361
|
-
var
|
|
1360
|
+
var fs13 = require_graceful_fs();
|
|
1361
|
+
var path14 = __require("path");
|
|
1362
1362
|
var mkdirsSync = require_mkdirs().mkdirsSync;
|
|
1363
1363
|
var utimesMillisSync = require_utimes().utimesMillisSync;
|
|
1364
1364
|
var stat = require_stat();
|
|
@@ -1379,12 +1379,12 @@ var require_copy_sync = __commonJS({
|
|
|
1379
1379
|
const { srcStat, destStat } = stat.checkPathsSync(src, dest, "copy", opts);
|
|
1380
1380
|
stat.checkParentPathsSync(src, srcStat, dest, "copy");
|
|
1381
1381
|
if (opts.filter && !opts.filter(src, dest)) return;
|
|
1382
|
-
const destParent =
|
|
1383
|
-
if (!
|
|
1382
|
+
const destParent = path14.dirname(dest);
|
|
1383
|
+
if (!fs13.existsSync(destParent)) mkdirsSync(destParent);
|
|
1384
1384
|
return getStats(destStat, src, dest, opts);
|
|
1385
1385
|
}
|
|
1386
1386
|
function getStats(destStat, src, dest, opts) {
|
|
1387
|
-
const statSync = opts.dereference ?
|
|
1387
|
+
const statSync = opts.dereference ? fs13.statSync : fs13.lstatSync;
|
|
1388
1388
|
const srcStat = statSync(src);
|
|
1389
1389
|
if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts);
|
|
1390
1390
|
else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts);
|
|
@@ -1399,14 +1399,14 @@ var require_copy_sync = __commonJS({
|
|
|
1399
1399
|
}
|
|
1400
1400
|
function mayCopyFile(srcStat, src, dest, opts) {
|
|
1401
1401
|
if (opts.overwrite) {
|
|
1402
|
-
|
|
1402
|
+
fs13.unlinkSync(dest);
|
|
1403
1403
|
return copyFile(srcStat, src, dest, opts);
|
|
1404
1404
|
} else if (opts.errorOnExist) {
|
|
1405
1405
|
throw new Error(`'${dest}' already exists`);
|
|
1406
1406
|
}
|
|
1407
1407
|
}
|
|
1408
1408
|
function copyFile(srcStat, src, dest, opts) {
|
|
1409
|
-
|
|
1409
|
+
fs13.copyFileSync(src, dest);
|
|
1410
1410
|
if (opts.preserveTimestamps) handleTimestamps(srcStat.mode, src, dest);
|
|
1411
1411
|
return setDestMode(dest, srcStat.mode);
|
|
1412
1412
|
}
|
|
@@ -1421,10 +1421,10 @@ var require_copy_sync = __commonJS({
|
|
|
1421
1421
|
return setDestMode(dest, srcMode | 128);
|
|
1422
1422
|
}
|
|
1423
1423
|
function setDestMode(dest, srcMode) {
|
|
1424
|
-
return
|
|
1424
|
+
return fs13.chmodSync(dest, srcMode);
|
|
1425
1425
|
}
|
|
1426
1426
|
function setDestTimestamps(src, dest) {
|
|
1427
|
-
const updatedSrcStat =
|
|
1427
|
+
const updatedSrcStat = fs13.statSync(src);
|
|
1428
1428
|
return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
|
|
1429
1429
|
}
|
|
1430
1430
|
function onDir(srcStat, destStat, src, dest, opts) {
|
|
@@ -1432,12 +1432,12 @@ var require_copy_sync = __commonJS({
|
|
|
1432
1432
|
return copyDir(src, dest, opts);
|
|
1433
1433
|
}
|
|
1434
1434
|
function mkDirAndCopy(srcMode, src, dest, opts) {
|
|
1435
|
-
|
|
1435
|
+
fs13.mkdirSync(dest);
|
|
1436
1436
|
copyDir(src, dest, opts);
|
|
1437
1437
|
return setDestMode(dest, srcMode);
|
|
1438
1438
|
}
|
|
1439
1439
|
function copyDir(src, dest, opts) {
|
|
1440
|
-
const dir =
|
|
1440
|
+
const dir = fs13.opendirSync(src);
|
|
1441
1441
|
try {
|
|
1442
1442
|
let dirent;
|
|
1443
1443
|
while ((dirent = dir.readSync()) !== null) {
|
|
@@ -1448,29 +1448,29 @@ var require_copy_sync = __commonJS({
|
|
|
1448
1448
|
}
|
|
1449
1449
|
}
|
|
1450
1450
|
function copyDirItem(item, src, dest, opts) {
|
|
1451
|
-
const srcItem =
|
|
1452
|
-
const destItem =
|
|
1451
|
+
const srcItem = path14.join(src, item);
|
|
1452
|
+
const destItem = path14.join(dest, item);
|
|
1453
1453
|
if (opts.filter && !opts.filter(srcItem, destItem)) return;
|
|
1454
1454
|
const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts);
|
|
1455
1455
|
return getStats(destStat, srcItem, destItem, opts);
|
|
1456
1456
|
}
|
|
1457
1457
|
function onLink(destStat, src, dest, opts) {
|
|
1458
|
-
let resolvedSrc =
|
|
1458
|
+
let resolvedSrc = fs13.readlinkSync(src);
|
|
1459
1459
|
if (opts.dereference) {
|
|
1460
|
-
resolvedSrc =
|
|
1460
|
+
resolvedSrc = path14.resolve(process.cwd(), resolvedSrc);
|
|
1461
1461
|
}
|
|
1462
1462
|
if (!destStat) {
|
|
1463
|
-
return
|
|
1463
|
+
return fs13.symlinkSync(resolvedSrc, dest);
|
|
1464
1464
|
} else {
|
|
1465
1465
|
let resolvedDest;
|
|
1466
1466
|
try {
|
|
1467
|
-
resolvedDest =
|
|
1467
|
+
resolvedDest = fs13.readlinkSync(dest);
|
|
1468
1468
|
} catch (err) {
|
|
1469
|
-
if (err.code === "EINVAL" || err.code === "UNKNOWN") return
|
|
1469
|
+
if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs13.symlinkSync(resolvedSrc, dest);
|
|
1470
1470
|
throw err;
|
|
1471
1471
|
}
|
|
1472
1472
|
if (opts.dereference) {
|
|
1473
|
-
resolvedDest =
|
|
1473
|
+
resolvedDest = path14.resolve(process.cwd(), resolvedDest);
|
|
1474
1474
|
}
|
|
1475
1475
|
if (resolvedSrc !== resolvedDest) {
|
|
1476
1476
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
@@ -1484,8 +1484,8 @@ var require_copy_sync = __commonJS({
|
|
|
1484
1484
|
}
|
|
1485
1485
|
}
|
|
1486
1486
|
function copyLink(resolvedSrc, dest) {
|
|
1487
|
-
|
|
1488
|
-
return
|
|
1487
|
+
fs13.unlinkSync(dest);
|
|
1488
|
+
return fs13.symlinkSync(resolvedSrc, dest);
|
|
1489
1489
|
}
|
|
1490
1490
|
module.exports = copySync;
|
|
1491
1491
|
}
|
|
@@ -1507,13 +1507,13 @@ var require_copy2 = __commonJS({
|
|
|
1507
1507
|
var require_remove = __commonJS({
|
|
1508
1508
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.4-29a9d2b3b0-1b8deea9c5.zip/node_modules/fs-extra/lib/remove/index.js"(exports, module) {
|
|
1509
1509
|
"use strict";
|
|
1510
|
-
var
|
|
1510
|
+
var fs13 = require_graceful_fs();
|
|
1511
1511
|
var u = require_universalify().fromCallback;
|
|
1512
|
-
function remove(
|
|
1513
|
-
|
|
1512
|
+
function remove(path14, callback) {
|
|
1513
|
+
fs13.rm(path14, { recursive: true, force: true }, callback);
|
|
1514
1514
|
}
|
|
1515
|
-
function removeSync(
|
|
1516
|
-
|
|
1515
|
+
function removeSync(path14) {
|
|
1516
|
+
fs13.rmSync(path14, { recursive: true, force: true });
|
|
1517
1517
|
}
|
|
1518
1518
|
module.exports = {
|
|
1519
1519
|
remove: u(remove),
|
|
@@ -1527,28 +1527,28 @@ var require_empty = __commonJS({
|
|
|
1527
1527
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.4-29a9d2b3b0-1b8deea9c5.zip/node_modules/fs-extra/lib/empty/index.js"(exports, module) {
|
|
1528
1528
|
"use strict";
|
|
1529
1529
|
var u = require_universalify().fromPromise;
|
|
1530
|
-
var
|
|
1531
|
-
var
|
|
1530
|
+
var fs13 = require_fs();
|
|
1531
|
+
var path14 = __require("path");
|
|
1532
1532
|
var mkdir = require_mkdirs();
|
|
1533
1533
|
var remove = require_remove();
|
|
1534
1534
|
var emptyDir = u(async function emptyDir2(dir) {
|
|
1535
1535
|
let items;
|
|
1536
1536
|
try {
|
|
1537
|
-
items = await
|
|
1537
|
+
items = await fs13.readdir(dir);
|
|
1538
1538
|
} catch {
|
|
1539
1539
|
return mkdir.mkdirs(dir);
|
|
1540
1540
|
}
|
|
1541
|
-
return Promise.all(items.map((item) => remove.remove(
|
|
1541
|
+
return Promise.all(items.map((item) => remove.remove(path14.join(dir, item))));
|
|
1542
1542
|
});
|
|
1543
1543
|
function emptyDirSync(dir) {
|
|
1544
1544
|
let items;
|
|
1545
1545
|
try {
|
|
1546
|
-
items =
|
|
1546
|
+
items = fs13.readdirSync(dir);
|
|
1547
1547
|
} catch {
|
|
1548
1548
|
return mkdir.mkdirsSync(dir);
|
|
1549
1549
|
}
|
|
1550
1550
|
items.forEach((item) => {
|
|
1551
|
-
item =
|
|
1551
|
+
item = path14.join(dir, item);
|
|
1552
1552
|
remove.removeSync(item);
|
|
1553
1553
|
});
|
|
1554
1554
|
}
|
|
@@ -1566,52 +1566,52 @@ var require_file = __commonJS({
|
|
|
1566
1566
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.4-29a9d2b3b0-1b8deea9c5.zip/node_modules/fs-extra/lib/ensure/file.js"(exports, module) {
|
|
1567
1567
|
"use strict";
|
|
1568
1568
|
var u = require_universalify().fromPromise;
|
|
1569
|
-
var
|
|
1570
|
-
var
|
|
1569
|
+
var path14 = __require("path");
|
|
1570
|
+
var fs13 = require_fs();
|
|
1571
1571
|
var mkdir = require_mkdirs();
|
|
1572
1572
|
async function createFile(file) {
|
|
1573
1573
|
let stats;
|
|
1574
1574
|
try {
|
|
1575
|
-
stats = await
|
|
1575
|
+
stats = await fs13.stat(file);
|
|
1576
1576
|
} catch {
|
|
1577
1577
|
}
|
|
1578
1578
|
if (stats && stats.isFile()) return;
|
|
1579
|
-
const dir =
|
|
1579
|
+
const dir = path14.dirname(file);
|
|
1580
1580
|
let dirStats = null;
|
|
1581
1581
|
try {
|
|
1582
|
-
dirStats = await
|
|
1582
|
+
dirStats = await fs13.stat(dir);
|
|
1583
1583
|
} catch (err) {
|
|
1584
1584
|
if (err.code === "ENOENT") {
|
|
1585
1585
|
await mkdir.mkdirs(dir);
|
|
1586
|
-
await
|
|
1586
|
+
await fs13.writeFile(file, "");
|
|
1587
1587
|
return;
|
|
1588
1588
|
} else {
|
|
1589
1589
|
throw err;
|
|
1590
1590
|
}
|
|
1591
1591
|
}
|
|
1592
1592
|
if (dirStats.isDirectory()) {
|
|
1593
|
-
await
|
|
1593
|
+
await fs13.writeFile(file, "");
|
|
1594
1594
|
} else {
|
|
1595
|
-
await
|
|
1595
|
+
await fs13.readdir(dir);
|
|
1596
1596
|
}
|
|
1597
1597
|
}
|
|
1598
1598
|
function createFileSync(file) {
|
|
1599
1599
|
let stats;
|
|
1600
1600
|
try {
|
|
1601
|
-
stats =
|
|
1601
|
+
stats = fs13.statSync(file);
|
|
1602
1602
|
} catch {
|
|
1603
1603
|
}
|
|
1604
1604
|
if (stats && stats.isFile()) return;
|
|
1605
|
-
const dir =
|
|
1605
|
+
const dir = path14.dirname(file);
|
|
1606
1606
|
try {
|
|
1607
|
-
if (!
|
|
1608
|
-
|
|
1607
|
+
if (!fs13.statSync(dir).isDirectory()) {
|
|
1608
|
+
fs13.readdirSync(dir);
|
|
1609
1609
|
}
|
|
1610
1610
|
} catch (err) {
|
|
1611
1611
|
if (err && err.code === "ENOENT") mkdir.mkdirsSync(dir);
|
|
1612
1612
|
else throw err;
|
|
1613
1613
|
}
|
|
1614
|
-
|
|
1614
|
+
fs13.writeFileSync(file, "");
|
|
1615
1615
|
}
|
|
1616
1616
|
module.exports = {
|
|
1617
1617
|
createFile: u(createFile),
|
|
@@ -1625,50 +1625,50 @@ var require_link = __commonJS({
|
|
|
1625
1625
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.4-29a9d2b3b0-1b8deea9c5.zip/node_modules/fs-extra/lib/ensure/link.js"(exports, module) {
|
|
1626
1626
|
"use strict";
|
|
1627
1627
|
var u = require_universalify().fromPromise;
|
|
1628
|
-
var
|
|
1629
|
-
var
|
|
1628
|
+
var path14 = __require("path");
|
|
1629
|
+
var fs13 = require_fs();
|
|
1630
1630
|
var mkdir = require_mkdirs();
|
|
1631
1631
|
var { pathExists } = require_path_exists();
|
|
1632
1632
|
var { areIdentical } = require_stat();
|
|
1633
1633
|
async function createLink(srcpath, dstpath) {
|
|
1634
1634
|
let dstStat;
|
|
1635
1635
|
try {
|
|
1636
|
-
dstStat = await
|
|
1636
|
+
dstStat = await fs13.lstat(dstpath);
|
|
1637
1637
|
} catch {
|
|
1638
1638
|
}
|
|
1639
1639
|
let srcStat;
|
|
1640
1640
|
try {
|
|
1641
|
-
srcStat = await
|
|
1641
|
+
srcStat = await fs13.lstat(srcpath);
|
|
1642
1642
|
} catch (err) {
|
|
1643
1643
|
err.message = err.message.replace("lstat", "ensureLink");
|
|
1644
1644
|
throw err;
|
|
1645
1645
|
}
|
|
1646
1646
|
if (dstStat && areIdentical(srcStat, dstStat)) return;
|
|
1647
|
-
const dir =
|
|
1647
|
+
const dir = path14.dirname(dstpath);
|
|
1648
1648
|
const dirExists = await pathExists(dir);
|
|
1649
1649
|
if (!dirExists) {
|
|
1650
1650
|
await mkdir.mkdirs(dir);
|
|
1651
1651
|
}
|
|
1652
|
-
await
|
|
1652
|
+
await fs13.link(srcpath, dstpath);
|
|
1653
1653
|
}
|
|
1654
1654
|
function createLinkSync(srcpath, dstpath) {
|
|
1655
1655
|
let dstStat;
|
|
1656
1656
|
try {
|
|
1657
|
-
dstStat =
|
|
1657
|
+
dstStat = fs13.lstatSync(dstpath);
|
|
1658
1658
|
} catch {
|
|
1659
1659
|
}
|
|
1660
1660
|
try {
|
|
1661
|
-
const srcStat =
|
|
1661
|
+
const srcStat = fs13.lstatSync(srcpath);
|
|
1662
1662
|
if (dstStat && areIdentical(srcStat, dstStat)) return;
|
|
1663
1663
|
} catch (err) {
|
|
1664
1664
|
err.message = err.message.replace("lstat", "ensureLink");
|
|
1665
1665
|
throw err;
|
|
1666
1666
|
}
|
|
1667
|
-
const dir =
|
|
1668
|
-
const dirExists =
|
|
1669
|
-
if (dirExists) return
|
|
1667
|
+
const dir = path14.dirname(dstpath);
|
|
1668
|
+
const dirExists = fs13.existsSync(dir);
|
|
1669
|
+
if (dirExists) return fs13.linkSync(srcpath, dstpath);
|
|
1670
1670
|
mkdir.mkdirsSync(dir);
|
|
1671
|
-
return
|
|
1671
|
+
return fs13.linkSync(srcpath, dstpath);
|
|
1672
1672
|
}
|
|
1673
1673
|
module.exports = {
|
|
1674
1674
|
createLink: u(createLink),
|
|
@@ -1681,14 +1681,14 @@ var require_link = __commonJS({
|
|
|
1681
1681
|
var require_symlink_paths = __commonJS({
|
|
1682
1682
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.4-29a9d2b3b0-1b8deea9c5.zip/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module) {
|
|
1683
1683
|
"use strict";
|
|
1684
|
-
var
|
|
1685
|
-
var
|
|
1684
|
+
var path14 = __require("path");
|
|
1685
|
+
var fs13 = require_fs();
|
|
1686
1686
|
var { pathExists } = require_path_exists();
|
|
1687
1687
|
var u = require_universalify().fromPromise;
|
|
1688
1688
|
async function symlinkPaths(srcpath, dstpath) {
|
|
1689
|
-
if (
|
|
1689
|
+
if (path14.isAbsolute(srcpath)) {
|
|
1690
1690
|
try {
|
|
1691
|
-
await
|
|
1691
|
+
await fs13.lstat(srcpath);
|
|
1692
1692
|
} catch (err) {
|
|
1693
1693
|
err.message = err.message.replace("lstat", "ensureSymlink");
|
|
1694
1694
|
throw err;
|
|
@@ -1698,8 +1698,8 @@ var require_symlink_paths = __commonJS({
|
|
|
1698
1698
|
toDst: srcpath
|
|
1699
1699
|
};
|
|
1700
1700
|
}
|
|
1701
|
-
const dstdir =
|
|
1702
|
-
const relativeToDst =
|
|
1701
|
+
const dstdir = path14.dirname(dstpath);
|
|
1702
|
+
const relativeToDst = path14.join(dstdir, srcpath);
|
|
1703
1703
|
const exists = await pathExists(relativeToDst);
|
|
1704
1704
|
if (exists) {
|
|
1705
1705
|
return {
|
|
@@ -1708,39 +1708,39 @@ var require_symlink_paths = __commonJS({
|
|
|
1708
1708
|
};
|
|
1709
1709
|
}
|
|
1710
1710
|
try {
|
|
1711
|
-
await
|
|
1711
|
+
await fs13.lstat(srcpath);
|
|
1712
1712
|
} catch (err) {
|
|
1713
1713
|
err.message = err.message.replace("lstat", "ensureSymlink");
|
|
1714
1714
|
throw err;
|
|
1715
1715
|
}
|
|
1716
1716
|
return {
|
|
1717
1717
|
toCwd: srcpath,
|
|
1718
|
-
toDst:
|
|
1718
|
+
toDst: path14.relative(dstdir, srcpath)
|
|
1719
1719
|
};
|
|
1720
1720
|
}
|
|
1721
1721
|
function symlinkPathsSync(srcpath, dstpath) {
|
|
1722
|
-
if (
|
|
1723
|
-
const exists2 =
|
|
1722
|
+
if (path14.isAbsolute(srcpath)) {
|
|
1723
|
+
const exists2 = fs13.existsSync(srcpath);
|
|
1724
1724
|
if (!exists2) throw new Error("absolute srcpath does not exist");
|
|
1725
1725
|
return {
|
|
1726
1726
|
toCwd: srcpath,
|
|
1727
1727
|
toDst: srcpath
|
|
1728
1728
|
};
|
|
1729
1729
|
}
|
|
1730
|
-
const dstdir =
|
|
1731
|
-
const relativeToDst =
|
|
1732
|
-
const exists =
|
|
1730
|
+
const dstdir = path14.dirname(dstpath);
|
|
1731
|
+
const relativeToDst = path14.join(dstdir, srcpath);
|
|
1732
|
+
const exists = fs13.existsSync(relativeToDst);
|
|
1733
1733
|
if (exists) {
|
|
1734
1734
|
return {
|
|
1735
1735
|
toCwd: relativeToDst,
|
|
1736
1736
|
toDst: srcpath
|
|
1737
1737
|
};
|
|
1738
1738
|
}
|
|
1739
|
-
const srcExists =
|
|
1739
|
+
const srcExists = fs13.existsSync(srcpath);
|
|
1740
1740
|
if (!srcExists) throw new Error("relative srcpath does not exist");
|
|
1741
1741
|
return {
|
|
1742
1742
|
toCwd: srcpath,
|
|
1743
|
-
toDst:
|
|
1743
|
+
toDst: path14.relative(dstdir, srcpath)
|
|
1744
1744
|
};
|
|
1745
1745
|
}
|
|
1746
1746
|
module.exports = {
|
|
@@ -1754,13 +1754,13 @@ var require_symlink_paths = __commonJS({
|
|
|
1754
1754
|
var require_symlink_type = __commonJS({
|
|
1755
1755
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.4-29a9d2b3b0-1b8deea9c5.zip/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports, module) {
|
|
1756
1756
|
"use strict";
|
|
1757
|
-
var
|
|
1757
|
+
var fs13 = require_fs();
|
|
1758
1758
|
var u = require_universalify().fromPromise;
|
|
1759
1759
|
async function symlinkType(srcpath, type) {
|
|
1760
1760
|
if (type) return type;
|
|
1761
1761
|
let stats;
|
|
1762
1762
|
try {
|
|
1763
|
-
stats = await
|
|
1763
|
+
stats = await fs13.lstat(srcpath);
|
|
1764
1764
|
} catch {
|
|
1765
1765
|
return "file";
|
|
1766
1766
|
}
|
|
@@ -1770,7 +1770,7 @@ var require_symlink_type = __commonJS({
|
|
|
1770
1770
|
if (type) return type;
|
|
1771
1771
|
let stats;
|
|
1772
1772
|
try {
|
|
1773
|
-
stats =
|
|
1773
|
+
stats = fs13.lstatSync(srcpath);
|
|
1774
1774
|
} catch {
|
|
1775
1775
|
return "file";
|
|
1776
1776
|
}
|
|
@@ -1788,8 +1788,8 @@ var require_symlink = __commonJS({
|
|
|
1788
1788
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.4-29a9d2b3b0-1b8deea9c5.zip/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module) {
|
|
1789
1789
|
"use strict";
|
|
1790
1790
|
var u = require_universalify().fromPromise;
|
|
1791
|
-
var
|
|
1792
|
-
var
|
|
1791
|
+
var path14 = __require("path");
|
|
1792
|
+
var fs13 = require_fs();
|
|
1793
1793
|
var { mkdirs, mkdirsSync } = require_mkdirs();
|
|
1794
1794
|
var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();
|
|
1795
1795
|
var { symlinkType, symlinkTypeSync } = require_symlink_type();
|
|
@@ -1798,64 +1798,64 @@ var require_symlink = __commonJS({
|
|
|
1798
1798
|
async function createSymlink(srcpath, dstpath, type) {
|
|
1799
1799
|
let stats;
|
|
1800
1800
|
try {
|
|
1801
|
-
stats = await
|
|
1801
|
+
stats = await fs13.lstat(dstpath);
|
|
1802
1802
|
} catch {
|
|
1803
1803
|
}
|
|
1804
1804
|
if (stats && stats.isSymbolicLink()) {
|
|
1805
1805
|
let srcStat;
|
|
1806
|
-
if (
|
|
1807
|
-
srcStat = await
|
|
1806
|
+
if (path14.isAbsolute(srcpath)) {
|
|
1807
|
+
srcStat = await fs13.stat(srcpath);
|
|
1808
1808
|
} else {
|
|
1809
|
-
const dstdir =
|
|
1810
|
-
const relativeToDst =
|
|
1809
|
+
const dstdir = path14.dirname(dstpath);
|
|
1810
|
+
const relativeToDst = path14.join(dstdir, srcpath);
|
|
1811
1811
|
try {
|
|
1812
|
-
srcStat = await
|
|
1812
|
+
srcStat = await fs13.stat(relativeToDst);
|
|
1813
1813
|
} catch {
|
|
1814
|
-
srcStat = await
|
|
1814
|
+
srcStat = await fs13.stat(srcpath);
|
|
1815
1815
|
}
|
|
1816
1816
|
}
|
|
1817
|
-
const dstStat = await
|
|
1817
|
+
const dstStat = await fs13.stat(dstpath);
|
|
1818
1818
|
if (areIdentical(srcStat, dstStat)) return;
|
|
1819
1819
|
}
|
|
1820
1820
|
const relative = await symlinkPaths(srcpath, dstpath);
|
|
1821
1821
|
srcpath = relative.toDst;
|
|
1822
1822
|
const toType = await symlinkType(relative.toCwd, type);
|
|
1823
|
-
const dir =
|
|
1823
|
+
const dir = path14.dirname(dstpath);
|
|
1824
1824
|
if (!await pathExists(dir)) {
|
|
1825
1825
|
await mkdirs(dir);
|
|
1826
1826
|
}
|
|
1827
|
-
return
|
|
1827
|
+
return fs13.symlink(srcpath, dstpath, toType);
|
|
1828
1828
|
}
|
|
1829
1829
|
function createSymlinkSync(srcpath, dstpath, type) {
|
|
1830
1830
|
let stats;
|
|
1831
1831
|
try {
|
|
1832
|
-
stats =
|
|
1832
|
+
stats = fs13.lstatSync(dstpath);
|
|
1833
1833
|
} catch {
|
|
1834
1834
|
}
|
|
1835
1835
|
if (stats && stats.isSymbolicLink()) {
|
|
1836
1836
|
let srcStat;
|
|
1837
|
-
if (
|
|
1838
|
-
srcStat =
|
|
1837
|
+
if (path14.isAbsolute(srcpath)) {
|
|
1838
|
+
srcStat = fs13.statSync(srcpath);
|
|
1839
1839
|
} else {
|
|
1840
|
-
const dstdir =
|
|
1841
|
-
const relativeToDst =
|
|
1840
|
+
const dstdir = path14.dirname(dstpath);
|
|
1841
|
+
const relativeToDst = path14.join(dstdir, srcpath);
|
|
1842
1842
|
try {
|
|
1843
|
-
srcStat =
|
|
1843
|
+
srcStat = fs13.statSync(relativeToDst);
|
|
1844
1844
|
} catch {
|
|
1845
|
-
srcStat =
|
|
1845
|
+
srcStat = fs13.statSync(srcpath);
|
|
1846
1846
|
}
|
|
1847
1847
|
}
|
|
1848
|
-
const dstStat =
|
|
1848
|
+
const dstStat = fs13.statSync(dstpath);
|
|
1849
1849
|
if (areIdentical(srcStat, dstStat)) return;
|
|
1850
1850
|
}
|
|
1851
1851
|
const relative = symlinkPathsSync(srcpath, dstpath);
|
|
1852
1852
|
srcpath = relative.toDst;
|
|
1853
1853
|
type = symlinkTypeSync(relative.toCwd, type);
|
|
1854
|
-
const dir =
|
|
1855
|
-
const exists =
|
|
1856
|
-
if (exists) return
|
|
1854
|
+
const dir = path14.dirname(dstpath);
|
|
1855
|
+
const exists = fs13.existsSync(dir);
|
|
1856
|
+
if (exists) return fs13.symlinkSync(srcpath, dstpath, type);
|
|
1857
1857
|
mkdirsSync(dir);
|
|
1858
|
-
return
|
|
1858
|
+
return fs13.symlinkSync(srcpath, dstpath, type);
|
|
1859
1859
|
}
|
|
1860
1860
|
module.exports = {
|
|
1861
1861
|
createSymlink: u(createSymlink),
|
|
@@ -1922,9 +1922,9 @@ var require_jsonfile = __commonJS({
|
|
|
1922
1922
|
if (typeof options2 === "string") {
|
|
1923
1923
|
options2 = { encoding: options2 };
|
|
1924
1924
|
}
|
|
1925
|
-
const
|
|
1925
|
+
const fs13 = options2.fs || _fs;
|
|
1926
1926
|
const shouldThrow = "throws" in options2 ? options2.throws : true;
|
|
1927
|
-
let data = await universalify.fromCallback(
|
|
1927
|
+
let data = await universalify.fromCallback(fs13.readFile)(file, options2);
|
|
1928
1928
|
data = stripBom(data);
|
|
1929
1929
|
let obj;
|
|
1930
1930
|
try {
|
|
@@ -1944,10 +1944,10 @@ var require_jsonfile = __commonJS({
|
|
|
1944
1944
|
if (typeof options2 === "string") {
|
|
1945
1945
|
options2 = { encoding: options2 };
|
|
1946
1946
|
}
|
|
1947
|
-
const
|
|
1947
|
+
const fs13 = options2.fs || _fs;
|
|
1948
1948
|
const shouldThrow = "throws" in options2 ? options2.throws : true;
|
|
1949
1949
|
try {
|
|
1950
|
-
let content =
|
|
1950
|
+
let content = fs13.readFileSync(file, options2);
|
|
1951
1951
|
content = stripBom(content);
|
|
1952
1952
|
return JSON.parse(content, options2.reviver);
|
|
1953
1953
|
} catch (err) {
|
|
@@ -1960,15 +1960,15 @@ var require_jsonfile = __commonJS({
|
|
|
1960
1960
|
}
|
|
1961
1961
|
}
|
|
1962
1962
|
async function _writeFile(file, obj, options2 = {}) {
|
|
1963
|
-
const
|
|
1963
|
+
const fs13 = options2.fs || _fs;
|
|
1964
1964
|
const str = stringify2(obj, options2);
|
|
1965
|
-
await universalify.fromCallback(
|
|
1965
|
+
await universalify.fromCallback(fs13.writeFile)(file, str, options2);
|
|
1966
1966
|
}
|
|
1967
1967
|
var writeFile = universalify.fromPromise(_writeFile);
|
|
1968
1968
|
function writeFileSync(file, obj, options2 = {}) {
|
|
1969
|
-
const
|
|
1969
|
+
const fs13 = options2.fs || _fs;
|
|
1970
1970
|
const str = stringify2(obj, options2);
|
|
1971
|
-
return
|
|
1971
|
+
return fs13.writeFileSync(file, str, options2);
|
|
1972
1972
|
}
|
|
1973
1973
|
var jsonfile = {
|
|
1974
1974
|
readFile,
|
|
@@ -2000,23 +2000,23 @@ var require_output_file = __commonJS({
|
|
|
2000
2000
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.4-29a9d2b3b0-1b8deea9c5.zip/node_modules/fs-extra/lib/output-file/index.js"(exports, module) {
|
|
2001
2001
|
"use strict";
|
|
2002
2002
|
var u = require_universalify().fromPromise;
|
|
2003
|
-
var
|
|
2004
|
-
var
|
|
2003
|
+
var fs13 = require_fs();
|
|
2004
|
+
var path14 = __require("path");
|
|
2005
2005
|
var mkdir = require_mkdirs();
|
|
2006
2006
|
var pathExists = require_path_exists().pathExists;
|
|
2007
2007
|
async function outputFile(file, data, encoding = "utf-8") {
|
|
2008
|
-
const dir =
|
|
2008
|
+
const dir = path14.dirname(file);
|
|
2009
2009
|
if (!await pathExists(dir)) {
|
|
2010
2010
|
await mkdir.mkdirs(dir);
|
|
2011
2011
|
}
|
|
2012
|
-
return
|
|
2012
|
+
return fs13.writeFile(file, data, encoding);
|
|
2013
2013
|
}
|
|
2014
2014
|
function outputFileSync(file, ...args) {
|
|
2015
|
-
const dir =
|
|
2016
|
-
if (!
|
|
2015
|
+
const dir = path14.dirname(file);
|
|
2016
|
+
if (!fs13.existsSync(dir)) {
|
|
2017
2017
|
mkdir.mkdirsSync(dir);
|
|
2018
2018
|
}
|
|
2019
|
-
|
|
2019
|
+
fs13.writeFileSync(file, ...args);
|
|
2020
2020
|
}
|
|
2021
2021
|
module.exports = {
|
|
2022
2022
|
outputFile: u(outputFile),
|
|
@@ -2075,8 +2075,8 @@ var require_json = __commonJS({
|
|
|
2075
2075
|
var require_move = __commonJS({
|
|
2076
2076
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.4-29a9d2b3b0-1b8deea9c5.zip/node_modules/fs-extra/lib/move/move.js"(exports, module) {
|
|
2077
2077
|
"use strict";
|
|
2078
|
-
var
|
|
2079
|
-
var
|
|
2078
|
+
var fs13 = require_fs();
|
|
2079
|
+
var path14 = __require("path");
|
|
2080
2080
|
var { copy: copy2 } = require_copy2();
|
|
2081
2081
|
var { remove } = require_remove();
|
|
2082
2082
|
var { mkdirp } = require_mkdirs();
|
|
@@ -2086,8 +2086,8 @@ var require_move = __commonJS({
|
|
|
2086
2086
|
const overwrite = opts.overwrite || opts.clobber || false;
|
|
2087
2087
|
const { srcStat, isChangingCase = false } = await stat.checkPaths(src, dest, "move", opts);
|
|
2088
2088
|
await stat.checkParentPaths(src, srcStat, dest, "move");
|
|
2089
|
-
const destParent =
|
|
2090
|
-
const parsedParentPath =
|
|
2089
|
+
const destParent = path14.dirname(dest);
|
|
2090
|
+
const parsedParentPath = path14.parse(destParent);
|
|
2091
2091
|
if (parsedParentPath.root !== destParent) {
|
|
2092
2092
|
await mkdirp(destParent);
|
|
2093
2093
|
}
|
|
@@ -2102,7 +2102,7 @@ var require_move = __commonJS({
|
|
|
2102
2102
|
}
|
|
2103
2103
|
}
|
|
2104
2104
|
try {
|
|
2105
|
-
await
|
|
2105
|
+
await fs13.rename(src, dest);
|
|
2106
2106
|
} catch (err) {
|
|
2107
2107
|
if (err.code !== "EXDEV") {
|
|
2108
2108
|
throw err;
|
|
@@ -2127,8 +2127,8 @@ var require_move = __commonJS({
|
|
|
2127
2127
|
var require_move_sync = __commonJS({
|
|
2128
2128
|
"pnp:/builds/normed/bundle/.yarn/cache/fs-extra-npm-11.3.4-29a9d2b3b0-1b8deea9c5.zip/node_modules/fs-extra/lib/move/move-sync.js"(exports, module) {
|
|
2129
2129
|
"use strict";
|
|
2130
|
-
var
|
|
2131
|
-
var
|
|
2130
|
+
var fs13 = require_graceful_fs();
|
|
2131
|
+
var path14 = __require("path");
|
|
2132
2132
|
var copySync = require_copy2().copySync;
|
|
2133
2133
|
var removeSync = require_remove().removeSync;
|
|
2134
2134
|
var mkdirpSync = require_mkdirs().mkdirpSync;
|
|
@@ -2138,12 +2138,12 @@ var require_move_sync = __commonJS({
|
|
|
2138
2138
|
const overwrite = opts.overwrite || opts.clobber || false;
|
|
2139
2139
|
const { srcStat, isChangingCase = false } = stat.checkPathsSync(src, dest, "move", opts);
|
|
2140
2140
|
stat.checkParentPathsSync(src, srcStat, dest, "move");
|
|
2141
|
-
if (!isParentRoot(dest)) mkdirpSync(
|
|
2141
|
+
if (!isParentRoot(dest)) mkdirpSync(path14.dirname(dest));
|
|
2142
2142
|
return doRename(src, dest, overwrite, isChangingCase);
|
|
2143
2143
|
}
|
|
2144
2144
|
function isParentRoot(dest) {
|
|
2145
|
-
const parent =
|
|
2146
|
-
const parsedPath =
|
|
2145
|
+
const parent = path14.dirname(dest);
|
|
2146
|
+
const parsedPath = path14.parse(parent);
|
|
2147
2147
|
return parsedPath.root === parent;
|
|
2148
2148
|
}
|
|
2149
2149
|
function doRename(src, dest, overwrite, isChangingCase) {
|
|
@@ -2152,12 +2152,12 @@ var require_move_sync = __commonJS({
|
|
|
2152
2152
|
removeSync(dest);
|
|
2153
2153
|
return rename(src, dest, overwrite);
|
|
2154
2154
|
}
|
|
2155
|
-
if (
|
|
2155
|
+
if (fs13.existsSync(dest)) throw new Error("dest already exists.");
|
|
2156
2156
|
return rename(src, dest, overwrite);
|
|
2157
2157
|
}
|
|
2158
2158
|
function rename(src, dest, overwrite) {
|
|
2159
2159
|
try {
|
|
2160
|
-
|
|
2160
|
+
fs13.renameSync(src, dest);
|
|
2161
2161
|
} catch (err) {
|
|
2162
2162
|
if (err.code !== "EXDEV") throw err;
|
|
2163
2163
|
return moveAcrossDevice(src, dest, overwrite);
|
|
@@ -2227,15 +2227,15 @@ var require_core = __commonJS({
|
|
|
2227
2227
|
* @param path the path to the part of the refinement where the error occurrs
|
|
2228
2228
|
* @param message the human readable message describing the nature of the error
|
|
2229
2229
|
*/
|
|
2230
|
-
constructor(
|
|
2231
|
-
super(`Expected ${
|
|
2232
|
-
this.path =
|
|
2230
|
+
constructor(path14, message) {
|
|
2231
|
+
super(`Expected ${path14[0]}: ${path14.slice(1).join(".")} - ${message}`);
|
|
2232
|
+
this.path = path14;
|
|
2233
2233
|
}
|
|
2234
2234
|
};
|
|
2235
2235
|
exports.RefinementError = RefinementError2;
|
|
2236
2236
|
function attemptRefine(refine) {
|
|
2237
|
-
return function _attemptRefine(
|
|
2238
|
-
const result = refine(
|
|
2237
|
+
return function _attemptRefine(path14, v, fallback) {
|
|
2238
|
+
const result = refine(path14, v);
|
|
2239
2239
|
return result instanceof RefinementError2 ? fallback : result;
|
|
2240
2240
|
};
|
|
2241
2241
|
}
|
|
@@ -2245,24 +2245,24 @@ var require_core = __commonJS({
|
|
|
2245
2245
|
}
|
|
2246
2246
|
exports.isRefinementError = isRefinementError;
|
|
2247
2247
|
function refineAny3(...refinements) {
|
|
2248
|
-
return function(
|
|
2248
|
+
return function(path14, v) {
|
|
2249
2249
|
const errors = [];
|
|
2250
2250
|
for (let i = 0; i < refinements.length; i++) {
|
|
2251
|
-
const result = refinements[i](
|
|
2251
|
+
const result = refinements[i](path14, v);
|
|
2252
2252
|
if (result instanceof RefinementError2) {
|
|
2253
2253
|
errors.push(result);
|
|
2254
2254
|
} else {
|
|
2255
2255
|
return result;
|
|
2256
2256
|
}
|
|
2257
2257
|
}
|
|
2258
|
-
return new RefinementError2(
|
|
2258
|
+
return new RefinementError2(path14, `
|
|
2259
2259
|
${errors.map((e) => e.message).join("\n OR \n ")}`);
|
|
2260
2260
|
};
|
|
2261
2261
|
}
|
|
2262
2262
|
exports.refineAny = refineAny3;
|
|
2263
2263
|
function useRefine(refine) {
|
|
2264
|
-
return function _useRefine(
|
|
2265
|
-
const result = refine(
|
|
2264
|
+
return function _useRefine(path14, v) {
|
|
2265
|
+
const result = refine(path14, v);
|
|
2266
2266
|
if (result instanceof RefinementError2) {
|
|
2267
2267
|
throw result;
|
|
2268
2268
|
} else {
|
|
@@ -2273,8 +2273,8 @@ var require_core = __commonJS({
|
|
|
2273
2273
|
exports.useRefine = useRefine;
|
|
2274
2274
|
function canRefine2(refine) {
|
|
2275
2275
|
let localLastCanRefineRefinementError = new RefinementError2([], "Incorrect error fetched");
|
|
2276
|
-
function _canRefine(
|
|
2277
|
-
const result = refine(
|
|
2276
|
+
function _canRefine(path14, v) {
|
|
2277
|
+
const result = refine(path14, v);
|
|
2278
2278
|
if (result instanceof RefinementError2) {
|
|
2279
2279
|
localLastCanRefineRefinementError = result;
|
|
2280
2280
|
return false;
|
|
@@ -2289,16 +2289,16 @@ var require_core = __commonJS({
|
|
|
2289
2289
|
}
|
|
2290
2290
|
exports.canRefine = canRefine2;
|
|
2291
2291
|
function makeRefinement2(definition) {
|
|
2292
|
-
function doRefinement(d,
|
|
2292
|
+
function doRefinement(d, path14, v) {
|
|
2293
2293
|
if (typeof d === "function") {
|
|
2294
|
-
return d(
|
|
2294
|
+
return d(path14, v);
|
|
2295
2295
|
}
|
|
2296
2296
|
if (typeof v !== "object" || v === null) {
|
|
2297
|
-
return new RefinementError2(
|
|
2297
|
+
return new RefinementError2(path14, `to be an Object`);
|
|
2298
2298
|
}
|
|
2299
2299
|
const o = {};
|
|
2300
2300
|
for (let [k, vInner] of Object.entries(d)) {
|
|
2301
|
-
const result = doRefinement(vInner,
|
|
2301
|
+
const result = doRefinement(vInner, path14.concat(k), v[k]);
|
|
2302
2302
|
if (result instanceof RefinementError2) {
|
|
2303
2303
|
return result;
|
|
2304
2304
|
}
|
|
@@ -2306,7 +2306,7 @@ var require_core = __commonJS({
|
|
|
2306
2306
|
}
|
|
2307
2307
|
return o;
|
|
2308
2308
|
}
|
|
2309
|
-
return (
|
|
2309
|
+
return (path14, v) => doRefinement(definition, path14, v);
|
|
2310
2310
|
}
|
|
2311
2311
|
exports.makeRefinement = makeRefinement2;
|
|
2312
2312
|
}
|
|
@@ -2323,19 +2323,19 @@ var require_array = __commonJS({
|
|
|
2323
2323
|
return Array.isArray(v);
|
|
2324
2324
|
}
|
|
2325
2325
|
exports.isArray = isArray;
|
|
2326
|
-
function refineArray(
|
|
2327
|
-
return Array.isArray(v) ? v : new core_1.RefinementError(
|
|
2326
|
+
function refineArray(path14, v) {
|
|
2327
|
+
return Array.isArray(v) ? v : new core_1.RefinementError(path14, `to be an Array`);
|
|
2328
2328
|
}
|
|
2329
2329
|
exports.refineArray = refineArray;
|
|
2330
2330
|
function refineArrayOf2(refineValues) {
|
|
2331
|
-
return (
|
|
2332
|
-
const array = refineArray(
|
|
2331
|
+
return (path14, v) => {
|
|
2332
|
+
const array = refineArray(path14, v);
|
|
2333
2333
|
if (array instanceof core_1.RefinementError) {
|
|
2334
2334
|
return array;
|
|
2335
2335
|
}
|
|
2336
2336
|
const arrayRefined = new Array(array.length);
|
|
2337
2337
|
for (let i = 0; i < array.length; i++) {
|
|
2338
|
-
const result = refineValues(
|
|
2338
|
+
const result = refineValues(path14.concat(i.toString()), array[i]);
|
|
2339
2339
|
if (result instanceof core_1.RefinementError) {
|
|
2340
2340
|
return result;
|
|
2341
2341
|
} else {
|
|
@@ -2347,9 +2347,9 @@ var require_array = __commonJS({
|
|
|
2347
2347
|
}
|
|
2348
2348
|
exports.refineArrayOf = refineArrayOf2;
|
|
2349
2349
|
function refineFromEnumArray(...enumValues) {
|
|
2350
|
-
return (
|
|
2350
|
+
return (path14, v) => {
|
|
2351
2351
|
const index = enumValues.findIndex((eV) => eV === v);
|
|
2352
|
-
return index === -1 ? new core_1.RefinementError(
|
|
2352
|
+
return index === -1 ? new core_1.RefinementError(path14, `to be part of the enum "${enumValues.join('", "')}"`) : enumValues[index];
|
|
2353
2353
|
};
|
|
2354
2354
|
}
|
|
2355
2355
|
exports.refineFromEnumArray = refineFromEnumArray;
|
|
@@ -2367,8 +2367,8 @@ var require_boolean = __commonJS({
|
|
|
2367
2367
|
return typeof v === "boolean";
|
|
2368
2368
|
}
|
|
2369
2369
|
exports.isBoolean = isBoolean;
|
|
2370
|
-
function refineBoolean2(
|
|
2371
|
-
return typeof v === "boolean" ? v : new core_1.RefinementError(
|
|
2370
|
+
function refineBoolean2(path14, v) {
|
|
2371
|
+
return typeof v === "boolean" ? v : new core_1.RefinementError(path14, `to be a boolean`);
|
|
2372
2372
|
}
|
|
2373
2373
|
exports.refineBoolean = refineBoolean2;
|
|
2374
2374
|
}
|
|
@@ -2385,24 +2385,24 @@ var require_object = __commonJS({
|
|
|
2385
2385
|
return typeof v === "object" && v !== null;
|
|
2386
2386
|
}
|
|
2387
2387
|
exports.isObject = isObject;
|
|
2388
|
-
function refineObject(
|
|
2389
|
-
return isObject(v) ? v : new core_1.RefinementError(
|
|
2388
|
+
function refineObject(path14, v) {
|
|
2389
|
+
return isObject(v) ? v : new core_1.RefinementError(path14, `to be an Object`);
|
|
2390
2390
|
}
|
|
2391
2391
|
exports.refineObject = refineObject;
|
|
2392
2392
|
function refineObjectOf2(refineKeys, refineValues) {
|
|
2393
|
-
return (
|
|
2394
|
-
const obj = refineObject(
|
|
2393
|
+
return (path14, v) => {
|
|
2394
|
+
const obj = refineObject(path14, v);
|
|
2395
2395
|
if (core_1.isRefinementError(obj)) {
|
|
2396
2396
|
return obj;
|
|
2397
2397
|
}
|
|
2398
2398
|
const objKeys = Object.keys(obj);
|
|
2399
2399
|
const objRefined = {};
|
|
2400
2400
|
for (let i = 0; i < objKeys.length; i++) {
|
|
2401
|
-
const resultKey = refineKeys(
|
|
2401
|
+
const resultKey = refineKeys(path14.concat("$Keys"), objKeys[i]);
|
|
2402
2402
|
if (core_1.isRefinementError(resultKey)) {
|
|
2403
2403
|
return resultKey;
|
|
2404
2404
|
}
|
|
2405
|
-
const resultValue = refineValues(
|
|
2405
|
+
const resultValue = refineValues(path14.concat(objKeys[i]), obj[objKeys[i]]);
|
|
2406
2406
|
if (core_1.isRefinementError(resultValue)) {
|
|
2407
2407
|
return resultValue;
|
|
2408
2408
|
}
|
|
@@ -2414,14 +2414,14 @@ var require_object = __commonJS({
|
|
|
2414
2414
|
exports.refineObjectOf = refineObjectOf2;
|
|
2415
2415
|
function refineObjectWithKeysMatching(template, refineValue) {
|
|
2416
2416
|
const templateKeys = Object.keys(template);
|
|
2417
|
-
return (
|
|
2418
|
-
const o = refineObject(
|
|
2417
|
+
return (path14, v) => {
|
|
2418
|
+
const o = refineObject(path14, v);
|
|
2419
2419
|
if (o instanceof core_1.RefinementError) {
|
|
2420
2420
|
return o;
|
|
2421
2421
|
}
|
|
2422
2422
|
const entries = [];
|
|
2423
2423
|
for (const key of templateKeys) {
|
|
2424
|
-
const value = refineValue(
|
|
2424
|
+
const value = refineValue(path14.concat(key), o[key]);
|
|
2425
2425
|
if (value instanceof core_1.RefinementError) {
|
|
2426
2426
|
return value;
|
|
2427
2427
|
}
|
|
@@ -2449,16 +2449,16 @@ var require_option = __commonJS({
|
|
|
2449
2449
|
return v === null || v === void 0 ? f : v;
|
|
2450
2450
|
}
|
|
2451
2451
|
exports.option = option;
|
|
2452
|
-
function refineOption(
|
|
2453
|
-
return v === null || v === void 0 ? v : new core_1.RefinementError(
|
|
2452
|
+
function refineOption(path14, v) {
|
|
2453
|
+
return v === null || v === void 0 ? v : new core_1.RefinementError(path14, `to be null or undefined`);
|
|
2454
2454
|
}
|
|
2455
2455
|
exports.refineOption = refineOption;
|
|
2456
|
-
function refineUndefined2(
|
|
2457
|
-
return v === void 0 ? v : new core_1.RefinementError(
|
|
2456
|
+
function refineUndefined2(path14, v) {
|
|
2457
|
+
return v === void 0 ? v : new core_1.RefinementError(path14, `to be undefined`);
|
|
2458
2458
|
}
|
|
2459
2459
|
exports.refineUndefined = refineUndefined2;
|
|
2460
|
-
function refineNull(
|
|
2461
|
-
return v === null ? v : new core_1.RefinementError(
|
|
2460
|
+
function refineNull(path14, v) {
|
|
2461
|
+
return v === null ? v : new core_1.RefinementError(path14, `to be null`);
|
|
2462
2462
|
}
|
|
2463
2463
|
exports.refineNull = refineNull;
|
|
2464
2464
|
}
|
|
@@ -2475,14 +2475,14 @@ var require_string = __commonJS({
|
|
|
2475
2475
|
return typeof v === "string";
|
|
2476
2476
|
}
|
|
2477
2477
|
exports.isString = isString;
|
|
2478
|
-
function refineString2(
|
|
2479
|
-
return typeof v === "string" ? v : new core_1.RefinementError(
|
|
2478
|
+
function refineString2(path14, v) {
|
|
2479
|
+
return typeof v === "string" ? v : new core_1.RefinementError(path14, `to be a String`);
|
|
2480
2480
|
}
|
|
2481
2481
|
exports.refineString = refineString2;
|
|
2482
2482
|
function refineStringLiteral2(literal) {
|
|
2483
|
-
return function _refineStringLiteral(
|
|
2483
|
+
return function _refineStringLiteral(path14, v) {
|
|
2484
2484
|
if (v !== literal) {
|
|
2485
|
-
return new core_1.RefinementError(
|
|
2485
|
+
return new core_1.RefinementError(path14, `should be string literal "${literal}"`);
|
|
2486
2486
|
}
|
|
2487
2487
|
return literal;
|
|
2488
2488
|
};
|
|
@@ -2493,13 +2493,13 @@ var require_string = __commonJS({
|
|
|
2493
2493
|
}
|
|
2494
2494
|
exports.isStringLiteral = isStringLiteral;
|
|
2495
2495
|
function refineStringRegex(regex) {
|
|
2496
|
-
return function _refineStringRegex(
|
|
2497
|
-
const string = refineString2(
|
|
2496
|
+
return function _refineStringRegex(path14, v) {
|
|
2497
|
+
const string = refineString2(path14, v);
|
|
2498
2498
|
if (string instanceof core_1.RefinementError) {
|
|
2499
2499
|
return string;
|
|
2500
2500
|
}
|
|
2501
2501
|
if (!regex.test(string)) {
|
|
2502
|
-
return new core_1.RefinementError(
|
|
2502
|
+
return new core_1.RefinementError(path14, `should be a string matching the regex ${regex.toString()}`);
|
|
2503
2503
|
}
|
|
2504
2504
|
return string;
|
|
2505
2505
|
};
|
|
@@ -2523,8 +2523,8 @@ var require_function = __commonJS({
|
|
|
2523
2523
|
return typeof v === "function";
|
|
2524
2524
|
}
|
|
2525
2525
|
exports.isFunction = isFunction;
|
|
2526
|
-
function refineFunction(
|
|
2527
|
-
return typeof v === "function" ? v : new core_1.RefinementError(
|
|
2526
|
+
function refineFunction(path14, v) {
|
|
2527
|
+
return typeof v === "function" ? v : new core_1.RefinementError(path14, `to be a function`);
|
|
2528
2528
|
}
|
|
2529
2529
|
exports.refineFunction = refineFunction;
|
|
2530
2530
|
}
|
|
@@ -2541,14 +2541,14 @@ var require_number = __commonJS({
|
|
|
2541
2541
|
return typeof v === "number";
|
|
2542
2542
|
}
|
|
2543
2543
|
exports.isNumber = isNumber;
|
|
2544
|
-
function refineNumber(
|
|
2545
|
-
return typeof v === "number" ? v : new core_1.RefinementError(
|
|
2544
|
+
function refineNumber(path14, v) {
|
|
2545
|
+
return typeof v === "number" ? v : new core_1.RefinementError(path14, `to be a Number`);
|
|
2546
2546
|
}
|
|
2547
2547
|
exports.refineNumber = refineNumber;
|
|
2548
2548
|
function refineNumberLiteral(literal) {
|
|
2549
|
-
return function _refineStringLiteral(
|
|
2549
|
+
return function _refineStringLiteral(path14, v) {
|
|
2550
2550
|
if (v !== literal) {
|
|
2551
|
-
return new core_1.RefinementError(
|
|
2551
|
+
return new core_1.RefinementError(path14, `should be number literal "${literal}"`);
|
|
2552
2552
|
}
|
|
2553
2553
|
return literal;
|
|
2554
2554
|
};
|
|
@@ -5113,15 +5113,15 @@ var require_route = __commonJS({
|
|
|
5113
5113
|
};
|
|
5114
5114
|
}
|
|
5115
5115
|
function wrapConversion(toModel, graph) {
|
|
5116
|
-
const
|
|
5116
|
+
const path14 = [graph[toModel].parent, toModel];
|
|
5117
5117
|
let fn = conversions[graph[toModel].parent][toModel];
|
|
5118
5118
|
let cur = graph[toModel].parent;
|
|
5119
5119
|
while (graph[cur].parent) {
|
|
5120
|
-
|
|
5120
|
+
path14.unshift(graph[cur].parent);
|
|
5121
5121
|
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
5122
5122
|
cur = graph[cur].parent;
|
|
5123
5123
|
}
|
|
5124
|
-
fn.conversion =
|
|
5124
|
+
fn.conversion = path14;
|
|
5125
5125
|
return fn;
|
|
5126
5126
|
}
|
|
5127
5127
|
module.exports = function(fromModel) {
|
|
@@ -6315,8 +6315,8 @@ var require_types = __commonJS({
|
|
|
6315
6315
|
// pnp:/builds/normed/bundle/.yarn/cache/mime-npm-1.6.0-60ae95038a-b7d98bb1e0.zip/node_modules/mime/mime.js
|
|
6316
6316
|
var require_mime = __commonJS({
|
|
6317
6317
|
"pnp:/builds/normed/bundle/.yarn/cache/mime-npm-1.6.0-60ae95038a-b7d98bb1e0.zip/node_modules/mime/mime.js"(exports, module) {
|
|
6318
|
-
var
|
|
6319
|
-
var
|
|
6318
|
+
var path14 = __require("path");
|
|
6319
|
+
var fs13 = __require("fs");
|
|
6320
6320
|
function Mime() {
|
|
6321
6321
|
this.types = /* @__PURE__ */ Object.create(null);
|
|
6322
6322
|
this.extensions = /* @__PURE__ */ Object.create(null);
|
|
@@ -6337,7 +6337,7 @@ var require_mime = __commonJS({
|
|
|
6337
6337
|
};
|
|
6338
6338
|
Mime.prototype.load = function(file) {
|
|
6339
6339
|
this._loading = file;
|
|
6340
|
-
var map2 = {}, content =
|
|
6340
|
+
var map2 = {}, content = fs13.readFileSync(file, "ascii"), lines = content.split(/[\r\n]+/);
|
|
6341
6341
|
lines.forEach(function(line) {
|
|
6342
6342
|
var fields = line.replace(/\s*#.*|^\s*|\s*$/g, "").split(/\s+/);
|
|
6343
6343
|
map2[fields.shift()] = fields;
|
|
@@ -6345,8 +6345,8 @@ var require_mime = __commonJS({
|
|
|
6345
6345
|
this.define(map2);
|
|
6346
6346
|
this._loading = null;
|
|
6347
6347
|
};
|
|
6348
|
-
Mime.prototype.lookup = function(
|
|
6349
|
-
var ext =
|
|
6348
|
+
Mime.prototype.lookup = function(path15, fallback) {
|
|
6349
|
+
var ext = path15.replace(/^.*[\.\/\\]/, "").toLowerCase();
|
|
6350
6350
|
return this.types[ext] || fallback || this.default_type;
|
|
6351
6351
|
};
|
|
6352
6352
|
Mime.prototype.extension = function(mimeType) {
|
|
@@ -6512,16 +6512,16 @@ var require_util2 = __commonJS({
|
|
|
6512
6512
|
}
|
|
6513
6513
|
exports.urlGenerate = urlGenerate;
|
|
6514
6514
|
function normalize(aPath) {
|
|
6515
|
-
var
|
|
6515
|
+
var path14 = aPath;
|
|
6516
6516
|
var url = urlParse(aPath);
|
|
6517
6517
|
if (url) {
|
|
6518
6518
|
if (!url.path) {
|
|
6519
6519
|
return aPath;
|
|
6520
6520
|
}
|
|
6521
|
-
|
|
6521
|
+
path14 = url.path;
|
|
6522
6522
|
}
|
|
6523
|
-
var isAbsolute = exports.isAbsolute(
|
|
6524
|
-
var parts =
|
|
6523
|
+
var isAbsolute = exports.isAbsolute(path14);
|
|
6524
|
+
var parts = path14.split(/\/+/);
|
|
6525
6525
|
for (var part, up = 0, i = parts.length - 1; i >= 0; i--) {
|
|
6526
6526
|
part = parts[i];
|
|
6527
6527
|
if (part === ".") {
|
|
@@ -6538,15 +6538,15 @@ var require_util2 = __commonJS({
|
|
|
6538
6538
|
}
|
|
6539
6539
|
}
|
|
6540
6540
|
}
|
|
6541
|
-
|
|
6542
|
-
if (
|
|
6543
|
-
|
|
6541
|
+
path14 = parts.join("/");
|
|
6542
|
+
if (path14 === "") {
|
|
6543
|
+
path14 = isAbsolute ? "/" : ".";
|
|
6544
6544
|
}
|
|
6545
6545
|
if (url) {
|
|
6546
|
-
url.path =
|
|
6546
|
+
url.path = path14;
|
|
6547
6547
|
return urlGenerate(url);
|
|
6548
6548
|
}
|
|
6549
|
-
return
|
|
6549
|
+
return path14;
|
|
6550
6550
|
}
|
|
6551
6551
|
exports.normalize = normalize;
|
|
6552
6552
|
function join2(aRoot, aPath) {
|
|
@@ -8141,13 +8141,13 @@ var require_fs2 = __commonJS({
|
|
|
8141
8141
|
"pnp:/builds/normed/bundle/.yarn/unplugged/less-npm-4.5.1-8849a9c167/node_modules/less/lib/less-node/fs.js"(exports) {
|
|
8142
8142
|
"use strict";
|
|
8143
8143
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8144
|
-
var
|
|
8144
|
+
var fs13;
|
|
8145
8145
|
try {
|
|
8146
|
-
|
|
8146
|
+
fs13 = require_graceful_fs();
|
|
8147
8147
|
} catch (e) {
|
|
8148
|
-
|
|
8148
|
+
fs13 = __require("fs");
|
|
8149
8149
|
}
|
|
8150
|
-
exports.default =
|
|
8150
|
+
exports.default = fs13;
|
|
8151
8151
|
}
|
|
8152
8152
|
});
|
|
8153
8153
|
|
|
@@ -8175,11 +8175,11 @@ var require_abstract_file_manager = __commonJS({
|
|
|
8175
8175
|
}
|
|
8176
8176
|
return filename.slice(0, j + 1);
|
|
8177
8177
|
};
|
|
8178
|
-
AbstractFileManager2.prototype.tryAppendExtension = function(
|
|
8179
|
-
return /(\.[a-z]*$)|([?;].*)$/.test(
|
|
8178
|
+
AbstractFileManager2.prototype.tryAppendExtension = function(path14, ext) {
|
|
8179
|
+
return /(\.[a-z]*$)|([?;].*)$/.test(path14) ? path14 : path14 + ext;
|
|
8180
8180
|
};
|
|
8181
|
-
AbstractFileManager2.prototype.tryAppendLessExtension = function(
|
|
8182
|
-
return this.tryAppendExtension(
|
|
8181
|
+
AbstractFileManager2.prototype.tryAppendLessExtension = function(path14) {
|
|
8182
|
+
return this.tryAppendExtension(path14, ".less");
|
|
8183
8183
|
};
|
|
8184
8184
|
AbstractFileManager2.prototype.supportsSync = function() {
|
|
8185
8185
|
return false;
|
|
@@ -8600,9 +8600,9 @@ var require_auth = __commonJS({
|
|
|
8600
8600
|
nc = nc + "";
|
|
8601
8601
|
return padding.substr(0, 8 - nc.length) + nc;
|
|
8602
8602
|
};
|
|
8603
|
-
digest.generate = function(header, user, pass, method,
|
|
8603
|
+
digest.generate = function(header, user, pass, method, path14) {
|
|
8604
8604
|
var nc = 1, cnonce = null, challenge = digest.parse_header(header);
|
|
8605
|
-
var ha1 = md5(user + ":" + challenge.realm + ":" + pass), ha2 = md5(method.toUpperCase() + ":" +
|
|
8605
|
+
var ha1 = md5(user + ":" + challenge.realm + ":" + pass), ha2 = md5(method.toUpperCase() + ":" + path14), resp = [ha1, challenge.nonce];
|
|
8606
8606
|
if (typeof challenge.qop === "string") {
|
|
8607
8607
|
cnonce = md5(Math.random().toString(36)).substr(0, 8);
|
|
8608
8608
|
nc = digest.update_nc(nc);
|
|
@@ -8612,7 +8612,7 @@ var require_auth = __commonJS({
|
|
|
8612
8612
|
resp = resp.concat(ha2);
|
|
8613
8613
|
}
|
|
8614
8614
|
var params = {
|
|
8615
|
-
uri:
|
|
8615
|
+
uri: path14,
|
|
8616
8616
|
realm: challenge.realm,
|
|
8617
8617
|
nonce: challenge.nonce,
|
|
8618
8618
|
username: user,
|
|
@@ -13947,7 +13947,7 @@ var require_decoder = __commonJS({
|
|
|
13947
13947
|
// pnp:/builds/normed/bundle/.yarn/cache/needle-npm-3.3.1-069ce952ef-31925ec72b.zip/node_modules/needle/lib/utils.js
|
|
13948
13948
|
var require_utils3 = __commonJS({
|
|
13949
13949
|
"pnp:/builds/normed/bundle/.yarn/cache/needle-npm-3.3.1-069ce952ef-31925ec72b.zip/node_modules/needle/lib/utils.js"(exports, module) {
|
|
13950
|
-
var
|
|
13950
|
+
var fs13 = __require("fs");
|
|
13951
13951
|
var url = __require("url");
|
|
13952
13952
|
var stream = __require("stream");
|
|
13953
13953
|
function resolve_url(href, base) {
|
|
@@ -13998,7 +13998,7 @@ var require_utils3 = __commonJS({
|
|
|
13998
13998
|
return cb(given_length);
|
|
13999
13999
|
if (stream2.end !== void 0 && stream2.end !== Infinity && stream2.start !== void 0)
|
|
14000
14000
|
return cb(stream2.end + 1 - (stream2.start || 0));
|
|
14001
|
-
|
|
14001
|
+
fs13.stat(stream2.path, function(err, stat) {
|
|
14002
14002
|
cb(stat ? stat.size - (stream2.start || 0) : null);
|
|
14003
14003
|
});
|
|
14004
14004
|
}
|
|
@@ -14106,7 +14106,7 @@ var require_package = __commonJS({
|
|
|
14106
14106
|
// pnp:/builds/normed/bundle/.yarn/cache/needle-npm-3.3.1-069ce952ef-31925ec72b.zip/node_modules/needle/lib/needle.js
|
|
14107
14107
|
var require_needle = __commonJS({
|
|
14108
14108
|
"pnp:/builds/normed/bundle/.yarn/cache/needle-npm-3.3.1-069ce952ef-31925ec72b.zip/node_modules/needle/lib/needle.js"(exports, module) {
|
|
14109
|
-
var
|
|
14109
|
+
var fs13 = __require("fs");
|
|
14110
14110
|
var http = __require("http");
|
|
14111
14111
|
var https = __require("https");
|
|
14112
14112
|
var url = __require("url");
|
|
@@ -14506,7 +14506,7 @@ var require_needle = __commonJS({
|
|
|
14506
14506
|
if (err && err.message == "write after end") request.destroy();
|
|
14507
14507
|
});
|
|
14508
14508
|
if (config.output && resp.statusCode == 200) {
|
|
14509
|
-
var file =
|
|
14509
|
+
var file = fs13.createWriteStream(config.output);
|
|
14510
14510
|
file.on("error", had_error);
|
|
14511
14511
|
out.on("end", function() {
|
|
14512
14512
|
if (file.writable) file.end();
|
|
@@ -16183,47 +16183,47 @@ var require_contexts = __commonJS({
|
|
|
16183
16183
|
}
|
|
16184
16184
|
return true;
|
|
16185
16185
|
};
|
|
16186
|
-
contexts.Eval.prototype.pathRequiresRewrite = function(
|
|
16186
|
+
contexts.Eval.prototype.pathRequiresRewrite = function(path14) {
|
|
16187
16187
|
var isRelative = this.rewriteUrls === Constants.RewriteUrls.LOCAL ? isPathLocalRelative : isPathRelative;
|
|
16188
|
-
return isRelative(
|
|
16188
|
+
return isRelative(path14);
|
|
16189
16189
|
};
|
|
16190
|
-
contexts.Eval.prototype.rewritePath = function(
|
|
16190
|
+
contexts.Eval.prototype.rewritePath = function(path14, rootpath) {
|
|
16191
16191
|
var newPath;
|
|
16192
16192
|
rootpath = rootpath || "";
|
|
16193
|
-
newPath = this.normalizePath(rootpath +
|
|
16194
|
-
if (isPathLocalRelative(
|
|
16193
|
+
newPath = this.normalizePath(rootpath + path14);
|
|
16194
|
+
if (isPathLocalRelative(path14) && isPathRelative(rootpath) && isPathLocalRelative(newPath) === false) {
|
|
16195
16195
|
newPath = "./".concat(newPath);
|
|
16196
16196
|
}
|
|
16197
16197
|
return newPath;
|
|
16198
16198
|
};
|
|
16199
|
-
contexts.Eval.prototype.normalizePath = function(
|
|
16200
|
-
var segments =
|
|
16199
|
+
contexts.Eval.prototype.normalizePath = function(path14) {
|
|
16200
|
+
var segments = path14.split("/").reverse();
|
|
16201
16201
|
var segment;
|
|
16202
|
-
|
|
16202
|
+
path14 = [];
|
|
16203
16203
|
while (segments.length !== 0) {
|
|
16204
16204
|
segment = segments.pop();
|
|
16205
16205
|
switch (segment) {
|
|
16206
16206
|
case ".":
|
|
16207
16207
|
break;
|
|
16208
16208
|
case "..":
|
|
16209
|
-
if (
|
|
16210
|
-
|
|
16209
|
+
if (path14.length === 0 || path14[path14.length - 1] === "..") {
|
|
16210
|
+
path14.push(segment);
|
|
16211
16211
|
} else {
|
|
16212
|
-
|
|
16212
|
+
path14.pop();
|
|
16213
16213
|
}
|
|
16214
16214
|
break;
|
|
16215
16215
|
default:
|
|
16216
|
-
|
|
16216
|
+
path14.push(segment);
|
|
16217
16217
|
break;
|
|
16218
16218
|
}
|
|
16219
16219
|
}
|
|
16220
|
-
return
|
|
16220
|
+
return path14.join("/");
|
|
16221
16221
|
};
|
|
16222
|
-
function isPathRelative(
|
|
16223
|
-
return !/^(?:[a-z-]+:|\/|#)/i.test(
|
|
16222
|
+
function isPathRelative(path14) {
|
|
16223
|
+
return !/^(?:[a-z-]+:|\/|#)/i.test(path14);
|
|
16224
16224
|
}
|
|
16225
|
-
function isPathLocalRelative(
|
|
16226
|
-
return
|
|
16225
|
+
function isPathLocalRelative(path14) {
|
|
16226
|
+
return path14.charAt(0) === ".";
|
|
16227
16227
|
}
|
|
16228
16228
|
}
|
|
16229
16229
|
});
|
|
@@ -16842,22 +16842,22 @@ var require_extend_visitor = __commonJS({
|
|
|
16842
16842
|
return false;
|
|
16843
16843
|
};
|
|
16844
16844
|
ProcessExtendsVisitor2.prototype.extendSelector = function(matches, selectorPath, replacementSelector, isVisible) {
|
|
16845
|
-
var currentSelectorPathIndex = 0, currentSelectorPathElementIndex = 0,
|
|
16845
|
+
var currentSelectorPathIndex = 0, currentSelectorPathElementIndex = 0, path14 = [], matchIndex, selector, firstElement, match, newElements;
|
|
16846
16846
|
for (matchIndex = 0; matchIndex < matches.length; matchIndex++) {
|
|
16847
16847
|
match = matches[matchIndex];
|
|
16848
16848
|
selector = selectorPath[match.pathIndex];
|
|
16849
16849
|
firstElement = new tree_1.default.Element(match.initialCombinator, replacementSelector.elements[0].value, replacementSelector.elements[0].isVariable, replacementSelector.elements[0].getIndex(), replacementSelector.elements[0].fileInfo());
|
|
16850
16850
|
if (match.pathIndex > currentSelectorPathIndex && currentSelectorPathElementIndex > 0) {
|
|
16851
|
-
|
|
16851
|
+
path14[path14.length - 1].elements = path14[path14.length - 1].elements.concat(selectorPath[currentSelectorPathIndex].elements.slice(currentSelectorPathElementIndex));
|
|
16852
16852
|
currentSelectorPathElementIndex = 0;
|
|
16853
16853
|
currentSelectorPathIndex++;
|
|
16854
16854
|
}
|
|
16855
16855
|
newElements = selector.elements.slice(currentSelectorPathElementIndex, match.index).concat([firstElement]).concat(replacementSelector.elements.slice(1));
|
|
16856
16856
|
if (currentSelectorPathIndex === match.pathIndex && matchIndex > 0) {
|
|
16857
|
-
|
|
16857
|
+
path14[path14.length - 1].elements = path14[path14.length - 1].elements.concat(newElements);
|
|
16858
16858
|
} else {
|
|
16859
|
-
|
|
16860
|
-
|
|
16859
|
+
path14 = path14.concat(selectorPath.slice(currentSelectorPathIndex, match.pathIndex));
|
|
16860
|
+
path14.push(new tree_1.default.Selector(newElements));
|
|
16861
16861
|
}
|
|
16862
16862
|
currentSelectorPathIndex = match.endPathIndex;
|
|
16863
16863
|
currentSelectorPathElementIndex = match.endPathElementIndex;
|
|
@@ -16867,11 +16867,11 @@ var require_extend_visitor = __commonJS({
|
|
|
16867
16867
|
}
|
|
16868
16868
|
}
|
|
16869
16869
|
if (currentSelectorPathIndex < selectorPath.length && currentSelectorPathElementIndex > 0) {
|
|
16870
|
-
|
|
16870
|
+
path14[path14.length - 1].elements = path14[path14.length - 1].elements.concat(selectorPath[currentSelectorPathIndex].elements.slice(currentSelectorPathElementIndex));
|
|
16871
16871
|
currentSelectorPathIndex++;
|
|
16872
16872
|
}
|
|
16873
|
-
|
|
16874
|
-
|
|
16873
|
+
path14 = path14.concat(selectorPath.slice(currentSelectorPathIndex, selectorPath.length));
|
|
16874
|
+
path14 = path14.map(function(currentValue) {
|
|
16875
16875
|
var derived = currentValue.createDerived(currentValue.elements);
|
|
16876
16876
|
if (isVisible) {
|
|
16877
16877
|
derived.ensureVisibility();
|
|
@@ -16880,7 +16880,7 @@ var require_extend_visitor = __commonJS({
|
|
|
16880
16880
|
}
|
|
16881
16881
|
return derived;
|
|
16882
16882
|
});
|
|
16883
|
-
return
|
|
16883
|
+
return path14;
|
|
16884
16884
|
};
|
|
16885
16885
|
ProcessExtendsVisitor2.prototype.visitMedia = function(mediaNode, visitArgs) {
|
|
16886
16886
|
var newAllExtends = mediaNode.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length - 1]);
|
|
@@ -19210,20 +19210,20 @@ var require_parser = __commonJS({
|
|
|
19210
19210
|
// stored in `import`, which we pass to the Import constructor.
|
|
19211
19211
|
//
|
|
19212
19212
|
"import": function() {
|
|
19213
|
-
var
|
|
19213
|
+
var path14;
|
|
19214
19214
|
var features;
|
|
19215
19215
|
var index = parserInput.i;
|
|
19216
19216
|
var dir = parserInput.$re(/^@import\s+/);
|
|
19217
19217
|
if (dir) {
|
|
19218
19218
|
var options2 = (dir ? this.importOptions() : null) || {};
|
|
19219
|
-
if (
|
|
19219
|
+
if (path14 = this.entities.quoted() || this.entities.url()) {
|
|
19220
19220
|
features = this.mediaFeatures({});
|
|
19221
19221
|
if (!parserInput.$char(";")) {
|
|
19222
19222
|
parserInput.i = index;
|
|
19223
19223
|
error("missing semi-colon or unrecognised media features on import");
|
|
19224
19224
|
}
|
|
19225
19225
|
features = features && new tree_1.default.Value(features);
|
|
19226
|
-
return new tree_1.default.Import(
|
|
19226
|
+
return new tree_1.default.Import(path14, features, options2, index + currentIndex, fileInfo);
|
|
19227
19227
|
} else {
|
|
19228
19228
|
parserInput.i = index;
|
|
19229
19229
|
error("malformed import statement");
|
|
@@ -19389,7 +19389,7 @@ var require_parser = __commonJS({
|
|
|
19389
19389
|
// @plugin (args) "lib";
|
|
19390
19390
|
//
|
|
19391
19391
|
plugin: function() {
|
|
19392
|
-
var
|
|
19392
|
+
var path14;
|
|
19393
19393
|
var args;
|
|
19394
19394
|
var options2;
|
|
19395
19395
|
var index = parserInput.i;
|
|
@@ -19404,12 +19404,12 @@ var require_parser = __commonJS({
|
|
|
19404
19404
|
} else {
|
|
19405
19405
|
options2 = { isPlugin: true };
|
|
19406
19406
|
}
|
|
19407
|
-
if (
|
|
19407
|
+
if (path14 = this.entities.quoted() || this.entities.url()) {
|
|
19408
19408
|
if (!parserInput.$char(";")) {
|
|
19409
19409
|
parserInput.i = index;
|
|
19410
19410
|
error("missing semi-colon on @plugin");
|
|
19411
19411
|
}
|
|
19412
|
-
return new tree_1.default.Import(
|
|
19412
|
+
return new tree_1.default.Import(path14, null, options2, index + currentIndex, fileInfo);
|
|
19413
19413
|
} else {
|
|
19414
19414
|
parserInput.i = index;
|
|
19415
19415
|
error("malformed @plugin statement");
|
|
@@ -20773,7 +20773,7 @@ var require_ruleset = __commonJS({
|
|
|
20773
20773
|
var ruleNodes = [];
|
|
20774
20774
|
var debugInfo;
|
|
20775
20775
|
var rule;
|
|
20776
|
-
var
|
|
20776
|
+
var path14;
|
|
20777
20777
|
context.tabLevel = context.tabLevel || 0;
|
|
20778
20778
|
if (!this.root) {
|
|
20779
20779
|
context.tabLevel++;
|
|
@@ -20812,18 +20812,18 @@ var require_ruleset = __commonJS({
|
|
|
20812
20812
|
var pathSubCnt = void 0;
|
|
20813
20813
|
sep = context.compress ? "," : ",\n".concat(tabSetStr);
|
|
20814
20814
|
for (i = 0; i < pathCnt; i++) {
|
|
20815
|
-
|
|
20816
|
-
if (!(pathSubCnt =
|
|
20815
|
+
path14 = paths[i];
|
|
20816
|
+
if (!(pathSubCnt = path14.length)) {
|
|
20817
20817
|
continue;
|
|
20818
20818
|
}
|
|
20819
20819
|
if (i > 0) {
|
|
20820
20820
|
output.add(sep);
|
|
20821
20821
|
}
|
|
20822
20822
|
context.firstSelector = true;
|
|
20823
|
-
|
|
20823
|
+
path14[0].genCSS(context, output);
|
|
20824
20824
|
context.firstSelector = false;
|
|
20825
20825
|
for (j = 1; j < pathSubCnt; j++) {
|
|
20826
|
-
|
|
20826
|
+
path14[j].genCSS(context, output);
|
|
20827
20827
|
}
|
|
20828
20828
|
}
|
|
20829
20829
|
output.add((context.compress ? "{" : " {\n") + tabRuleStr);
|
|
@@ -21437,23 +21437,23 @@ var require_nested_at_rule = __commonJS({
|
|
|
21437
21437
|
this.evalFunction();
|
|
21438
21438
|
var i;
|
|
21439
21439
|
var value;
|
|
21440
|
-
var
|
|
21441
|
-
for (i = 0; i <
|
|
21442
|
-
if (
|
|
21440
|
+
var path14 = context.mediaPath.concat([this]);
|
|
21441
|
+
for (i = 0; i < path14.length; i++) {
|
|
21442
|
+
if (path14[i].type !== this.type) {
|
|
21443
21443
|
context.mediaBlocks.splice(i, 1);
|
|
21444
21444
|
return this;
|
|
21445
21445
|
}
|
|
21446
|
-
value =
|
|
21447
|
-
|
|
21446
|
+
value = path14[i].features instanceof value_1.default ? path14[i].features.value : path14[i].features;
|
|
21447
|
+
path14[i] = Array.isArray(value) ? value : [value];
|
|
21448
21448
|
}
|
|
21449
|
-
this.features = new value_1.default(this.permute(
|
|
21450
|
-
|
|
21449
|
+
this.features = new value_1.default(this.permute(path14).map(function(path15) {
|
|
21450
|
+
path15 = path15.map(function(fragment) {
|
|
21451
21451
|
return fragment.toCSS ? fragment : new anonymous_1.default(fragment);
|
|
21452
21452
|
});
|
|
21453
|
-
for (i =
|
|
21454
|
-
|
|
21453
|
+
for (i = path15.length - 1; i > 0; i--) {
|
|
21454
|
+
path15.splice(i, 0, new anonymous_1.default("and"));
|
|
21455
21455
|
}
|
|
21456
|
-
return new expression_1.default(
|
|
21456
|
+
return new expression_1.default(path15);
|
|
21457
21457
|
}));
|
|
21458
21458
|
this.setParent(this.features, this);
|
|
21459
21459
|
return new ruleset_1.default([], []);
|
|
@@ -22223,8 +22223,8 @@ var require_url = __commonJS({
|
|
|
22223
22223
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22224
22224
|
var tslib_1 = require_tslib();
|
|
22225
22225
|
var node_1 = tslib_1.__importDefault(require_node());
|
|
22226
|
-
function escapePath(
|
|
22227
|
-
return
|
|
22226
|
+
function escapePath(path14) {
|
|
22227
|
+
return path14.replace(/[()'"\s]/g, function(match) {
|
|
22228
22228
|
return "\\".concat(match);
|
|
22229
22229
|
});
|
|
22230
22230
|
}
|
|
@@ -22343,11 +22343,11 @@ var require_import = __commonJS({
|
|
|
22343
22343
|
var utils = tslib_1.__importStar(require_utils4());
|
|
22344
22344
|
var less_error_1 = tslib_1.__importDefault(require_less_error());
|
|
22345
22345
|
var expression_1 = tslib_1.__importDefault(require_expression());
|
|
22346
|
-
var Import = function(
|
|
22346
|
+
var Import = function(path14, features, options2, index, currentFileInfo, visibilityInfo) {
|
|
22347
22347
|
this.options = options2;
|
|
22348
22348
|
this._index = index;
|
|
22349
22349
|
this._fileInfo = currentFileInfo;
|
|
22350
|
-
this.path =
|
|
22350
|
+
this.path = path14;
|
|
22351
22351
|
this.features = features;
|
|
22352
22352
|
this.allowRoot = true;
|
|
22353
22353
|
if (this.options.less !== void 0 || this.options.inline) {
|
|
@@ -22388,34 +22388,34 @@ var require_import = __commonJS({
|
|
|
22388
22388
|
return this.path instanceof url_1.default ? this.path.value.value : this.path.value;
|
|
22389
22389
|
},
|
|
22390
22390
|
isVariableImport: function() {
|
|
22391
|
-
var
|
|
22392
|
-
if (
|
|
22393
|
-
|
|
22391
|
+
var path14 = this.path;
|
|
22392
|
+
if (path14 instanceof url_1.default) {
|
|
22393
|
+
path14 = path14.value;
|
|
22394
22394
|
}
|
|
22395
|
-
if (
|
|
22396
|
-
return
|
|
22395
|
+
if (path14 instanceof quoted_1.default) {
|
|
22396
|
+
return path14.containsVariables();
|
|
22397
22397
|
}
|
|
22398
22398
|
return true;
|
|
22399
22399
|
},
|
|
22400
22400
|
evalForImport: function(context) {
|
|
22401
|
-
var
|
|
22402
|
-
if (
|
|
22403
|
-
|
|
22401
|
+
var path14 = this.path;
|
|
22402
|
+
if (path14 instanceof url_1.default) {
|
|
22403
|
+
path14 = path14.value;
|
|
22404
22404
|
}
|
|
22405
|
-
return new Import(
|
|
22405
|
+
return new Import(path14.eval(context), this.features, this.options, this._index, this._fileInfo, this.visibilityInfo());
|
|
22406
22406
|
},
|
|
22407
22407
|
evalPath: function(context) {
|
|
22408
|
-
var
|
|
22408
|
+
var path14 = this.path.eval(context);
|
|
22409
22409
|
var fileInfo = this._fileInfo;
|
|
22410
|
-
if (!(
|
|
22411
|
-
var pathValue =
|
|
22410
|
+
if (!(path14 instanceof url_1.default)) {
|
|
22411
|
+
var pathValue = path14.value;
|
|
22412
22412
|
if (fileInfo && pathValue && context.pathRequiresRewrite(pathValue)) {
|
|
22413
|
-
|
|
22413
|
+
path14.value = context.rewritePath(pathValue, fileInfo.rootpath);
|
|
22414
22414
|
} else {
|
|
22415
|
-
|
|
22415
|
+
path14.value = context.normalizePath(path14.value);
|
|
22416
22416
|
}
|
|
22417
22417
|
}
|
|
22418
|
-
return
|
|
22418
|
+
return path14;
|
|
22419
22419
|
},
|
|
22420
22420
|
eval: function(context) {
|
|
22421
22421
|
var result = this.doEval(context);
|
|
@@ -25128,14 +25128,14 @@ var require_source_map_output = __commonJS({
|
|
|
25128
25128
|
this._lineNumber = 0;
|
|
25129
25129
|
this._column = 0;
|
|
25130
25130
|
}
|
|
25131
|
-
SourceMapOutput2.prototype.removeBasepath = function(
|
|
25132
|
-
if (this._sourceMapBasepath &&
|
|
25133
|
-
|
|
25134
|
-
if (
|
|
25135
|
-
|
|
25131
|
+
SourceMapOutput2.prototype.removeBasepath = function(path14) {
|
|
25132
|
+
if (this._sourceMapBasepath && path14.indexOf(this._sourceMapBasepath) === 0) {
|
|
25133
|
+
path14 = path14.substring(this._sourceMapBasepath.length);
|
|
25134
|
+
if (path14.charAt(0) === "\\" || path14.charAt(0) === "/") {
|
|
25135
|
+
path14 = path14.substring(1);
|
|
25136
25136
|
}
|
|
25137
25137
|
}
|
|
25138
|
-
return
|
|
25138
|
+
return path14;
|
|
25139
25139
|
};
|
|
25140
25140
|
SourceMapOutput2.prototype.normalizeFilename = function(filename) {
|
|
25141
25141
|
filename = filename.replace(/\\/g, "/");
|
|
@@ -25447,11 +25447,11 @@ var require_import_manager = __commonJS({
|
|
|
25447
25447
|
this.queue = [];
|
|
25448
25448
|
this.files = {};
|
|
25449
25449
|
}
|
|
25450
|
-
ImportManager2.prototype.push = function(
|
|
25450
|
+
ImportManager2.prototype.push = function(path14, tryAppendExtension, currentFileInfo, importOptions, callback) {
|
|
25451
25451
|
var importManager = this, pluginLoader = this.context.pluginManager.Loader;
|
|
25452
|
-
this.queue.push(
|
|
25452
|
+
this.queue.push(path14);
|
|
25453
25453
|
var fileParsedFunc = function(e, root, fullPath) {
|
|
25454
|
-
importManager.queue.splice(importManager.queue.indexOf(
|
|
25454
|
+
importManager.queue.splice(importManager.queue.indexOf(path14), 1);
|
|
25455
25455
|
var importedEqualsRoot = fullPath === importManager.rootFilename;
|
|
25456
25456
|
if (importOptions.optional && e) {
|
|
25457
25457
|
callback(null, { rules: [] }, false, null);
|
|
@@ -25472,9 +25472,9 @@ var require_import_manager = __commonJS({
|
|
|
25472
25472
|
rootpath: currentFileInfo.rootpath,
|
|
25473
25473
|
rootFilename: currentFileInfo.rootFilename
|
|
25474
25474
|
};
|
|
25475
|
-
var fileManager = environment.getFileManager(
|
|
25475
|
+
var fileManager = environment.getFileManager(path14, currentFileInfo.currentDirectory, this.context, environment);
|
|
25476
25476
|
if (!fileManager) {
|
|
25477
|
-
fileParsedFunc({ message: "Could not find a file-manager for ".concat(
|
|
25477
|
+
fileParsedFunc({ message: "Could not find a file-manager for ".concat(path14) });
|
|
25478
25478
|
return;
|
|
25479
25479
|
}
|
|
25480
25480
|
var loadFileCallback = function(loadedFile2) {
|
|
@@ -25523,15 +25523,15 @@ var require_import_manager = __commonJS({
|
|
|
25523
25523
|
if (importOptions.isPlugin) {
|
|
25524
25524
|
context.mime = "application/javascript";
|
|
25525
25525
|
if (context.syncImport) {
|
|
25526
|
-
loadedFile = pluginLoader.loadPluginSync(
|
|
25526
|
+
loadedFile = pluginLoader.loadPluginSync(path14, currentFileInfo.currentDirectory, context, environment, fileManager);
|
|
25527
25527
|
} else {
|
|
25528
|
-
promise = pluginLoader.loadPlugin(
|
|
25528
|
+
promise = pluginLoader.loadPlugin(path14, currentFileInfo.currentDirectory, context, environment, fileManager);
|
|
25529
25529
|
}
|
|
25530
25530
|
} else {
|
|
25531
25531
|
if (context.syncImport) {
|
|
25532
|
-
loadedFile = fileManager.loadFileSync(
|
|
25532
|
+
loadedFile = fileManager.loadFileSync(path14, currentFileInfo.currentDirectory, context, environment);
|
|
25533
25533
|
} else {
|
|
25534
|
-
promise = fileManager.loadFile(
|
|
25534
|
+
promise = fileManager.loadFile(path14, currentFileInfo.currentDirectory, context, environment, function(err, loadedFile2) {
|
|
25535
25535
|
if (err) {
|
|
25536
25536
|
fileParsedFunc(err);
|
|
25537
25537
|
} else {
|
|
@@ -26424,7 +26424,7 @@ var require_readUInt = __commonJS({
|
|
|
26424
26424
|
var require_tiff = __commonJS({
|
|
26425
26425
|
"pnp:/builds/normed/bundle/.yarn/cache/image-size-patch-bc5785d808-6fbf67bc78.zip/node_modules/image-size/lib/types/tiff.js"(exports, module) {
|
|
26426
26426
|
"use strict";
|
|
26427
|
-
var
|
|
26427
|
+
var fs13 = __require("fs");
|
|
26428
26428
|
var readUInt = require_readUInt();
|
|
26429
26429
|
function isTIFF(buffer) {
|
|
26430
26430
|
var hex4 = buffer.toString("hex", 0, 4);
|
|
@@ -26433,13 +26433,13 @@ var require_tiff = __commonJS({
|
|
|
26433
26433
|
function readIFD(buffer, filepath, isBigEndian) {
|
|
26434
26434
|
var ifdOffset = readUInt(buffer, 32, 4, isBigEndian);
|
|
26435
26435
|
var bufferSize = 1024;
|
|
26436
|
-
var fileSize =
|
|
26436
|
+
var fileSize = fs13.statSync(filepath).size;
|
|
26437
26437
|
if (ifdOffset + bufferSize > fileSize) {
|
|
26438
26438
|
bufferSize = fileSize - ifdOffset - 10;
|
|
26439
26439
|
}
|
|
26440
26440
|
var endBuffer = new Buffer(bufferSize);
|
|
26441
|
-
var descriptor =
|
|
26442
|
-
|
|
26441
|
+
var descriptor = fs13.openSync(filepath, "r");
|
|
26442
|
+
fs13.readSync(descriptor, endBuffer, 0, bufferSize, ifdOffset);
|
|
26443
26443
|
var ifdBuffer = endBuffer.slice(2);
|
|
26444
26444
|
return ifdBuffer;
|
|
26445
26445
|
}
|
|
@@ -26610,8 +26610,8 @@ var require_detector = __commonJS({
|
|
|
26610
26610
|
var require_lib4 = __commonJS({
|
|
26611
26611
|
"pnp:/builds/normed/bundle/.yarn/cache/image-size-patch-bc5785d808-6fbf67bc78.zip/node_modules/image-size/lib/index.js"(exports, module) {
|
|
26612
26612
|
"use strict";
|
|
26613
|
-
var
|
|
26614
|
-
var
|
|
26613
|
+
var fs13 = __require("fs");
|
|
26614
|
+
var path14 = __require("path");
|
|
26615
26615
|
var detector = require_detector();
|
|
26616
26616
|
var handlers = {};
|
|
26617
26617
|
handlers["bmp"] = require_bmp().detect;
|
|
@@ -26636,33 +26636,33 @@ var require_lib4 = __commonJS({
|
|
|
26636
26636
|
throw new TypeError("unsupported file type: " + type + " (file: " + filepath + ")");
|
|
26637
26637
|
}
|
|
26638
26638
|
function asyncFileToBuffer(filepath, callback) {
|
|
26639
|
-
|
|
26639
|
+
fs13.open(filepath, "r", function(err, descriptor) {
|
|
26640
26640
|
if (err) {
|
|
26641
26641
|
return callback(err);
|
|
26642
26642
|
}
|
|
26643
|
-
var size =
|
|
26643
|
+
var size = fs13.fstatSync(descriptor).size;
|
|
26644
26644
|
if (size <= 0) {
|
|
26645
26645
|
return callback(new Error("File size is not greater than 0 \u2014\u2014 " + filepath));
|
|
26646
26646
|
}
|
|
26647
26647
|
var bufferSize = Math.min(size, MaxBufferSize);
|
|
26648
26648
|
var buffer = new Buffer(bufferSize);
|
|
26649
|
-
|
|
26649
|
+
fs13.read(descriptor, buffer, 0, bufferSize, 0, function(err2) {
|
|
26650
26650
|
if (err2) {
|
|
26651
26651
|
return callback(err2);
|
|
26652
26652
|
}
|
|
26653
|
-
|
|
26653
|
+
fs13.close(descriptor, function(err3) {
|
|
26654
26654
|
callback(err3, buffer);
|
|
26655
26655
|
});
|
|
26656
26656
|
});
|
|
26657
26657
|
});
|
|
26658
26658
|
}
|
|
26659
26659
|
function syncFileToBuffer(filepath) {
|
|
26660
|
-
var descriptor =
|
|
26661
|
-
var size =
|
|
26660
|
+
var descriptor = fs13.openSync(filepath, "r");
|
|
26661
|
+
var size = fs13.fstatSync(descriptor).size;
|
|
26662
26662
|
var bufferSize = Math.min(size, MaxBufferSize);
|
|
26663
26663
|
var buffer = new Buffer(bufferSize);
|
|
26664
|
-
|
|
26665
|
-
|
|
26664
|
+
fs13.readSync(descriptor, buffer, 0, bufferSize, 0);
|
|
26665
|
+
fs13.closeSync(descriptor);
|
|
26666
26666
|
return buffer;
|
|
26667
26667
|
}
|
|
26668
26668
|
module.exports = function(input, callback) {
|
|
@@ -26672,7 +26672,7 @@ var require_lib4 = __commonJS({
|
|
|
26672
26672
|
if (typeof input !== "string") {
|
|
26673
26673
|
throw new TypeError("invalid invocation");
|
|
26674
26674
|
}
|
|
26675
|
-
var filepath =
|
|
26675
|
+
var filepath = path14.resolve(input);
|
|
26676
26676
|
if (typeof callback === "function") {
|
|
26677
26677
|
asyncFileToBuffer(filepath, function(err, buffer2) {
|
|
26678
26678
|
if (err) {
|
|
@@ -34241,14 +34241,14 @@ var require_pug_parser = __commonJS({
|
|
|
34241
34241
|
*/
|
|
34242
34242
|
parseExtends: function() {
|
|
34243
34243
|
var tok = this.expect("extends");
|
|
34244
|
-
var
|
|
34244
|
+
var path14 = this.expect("path");
|
|
34245
34245
|
return {
|
|
34246
34246
|
type: "Extends",
|
|
34247
34247
|
file: {
|
|
34248
34248
|
type: "FileReference",
|
|
34249
|
-
path:
|
|
34250
|
-
line:
|
|
34251
|
-
column:
|
|
34249
|
+
path: path14.val.trim(),
|
|
34250
|
+
line: path14.loc.start.line,
|
|
34251
|
+
column: path14.loc.start.column,
|
|
34252
34252
|
filename: this.filename
|
|
34253
34253
|
},
|
|
34254
34254
|
line: tok.loc.start.line,
|
|
@@ -34313,10 +34313,10 @@ var require_pug_parser = __commonJS({
|
|
|
34313
34313
|
while (this.peek().type === "filter") {
|
|
34314
34314
|
filters2.push(this.parseIncludeFilter());
|
|
34315
34315
|
}
|
|
34316
|
-
var
|
|
34317
|
-
node.file.path =
|
|
34318
|
-
node.file.line =
|
|
34319
|
-
node.file.column =
|
|
34316
|
+
var path14 = this.expect("path");
|
|
34317
|
+
node.file.path = path14.val.trim();
|
|
34318
|
+
node.file.line = path14.loc.start.line;
|
|
34319
|
+
node.file.column = path14.loc.start.column;
|
|
34320
34320
|
if ((/\.jade$/.test(node.file.path) || /\.pug$/.test(node.file.path)) && !filters2.length) {
|
|
34321
34321
|
node.block = "indent" == this.peek().type ? this.block() : this.emptyBlock(tok.loc.start.line);
|
|
34322
34322
|
if (/\.jade$/.test(node.file.path)) {
|
|
@@ -34783,8 +34783,8 @@ var require_pug_walk = __commonJS({
|
|
|
34783
34783
|
var require_pug_load = __commonJS({
|
|
34784
34784
|
"pnp:/builds/normed/bundle/.yarn/cache/pug-load-npm-3.0.0-dc9f2273d3-1800ec5199.zip/node_modules/pug-load/index.js"(exports, module) {
|
|
34785
34785
|
"use strict";
|
|
34786
|
-
var
|
|
34787
|
-
var
|
|
34786
|
+
var fs13 = __require("fs");
|
|
34787
|
+
var path14 = __require("path");
|
|
34788
34788
|
var walk = require_pug_walk();
|
|
34789
34789
|
var assign = require_object_assign();
|
|
34790
34790
|
module.exports = load;
|
|
@@ -34798,11 +34798,11 @@ var require_pug_load = __commonJS({
|
|
|
34798
34798
|
if (file.type !== "FileReference") {
|
|
34799
34799
|
throw new Error('Expected file.type to be "FileReference"');
|
|
34800
34800
|
}
|
|
34801
|
-
var
|
|
34801
|
+
var path15, str, raw;
|
|
34802
34802
|
try {
|
|
34803
|
-
|
|
34804
|
-
file.fullPath =
|
|
34805
|
-
raw = options2.read(
|
|
34803
|
+
path15 = options2.resolve(file.path, file.filename, options2);
|
|
34804
|
+
file.fullPath = path15;
|
|
34805
|
+
raw = options2.read(path15, options2);
|
|
34806
34806
|
str = raw.toString("utf8");
|
|
34807
34807
|
} catch (ex) {
|
|
34808
34808
|
ex.message += "\n at " + node.filename + " line " + node.line;
|
|
@@ -34814,7 +34814,7 @@ var require_pug_load = __commonJS({
|
|
|
34814
34814
|
file.ast = load.string(
|
|
34815
34815
|
str,
|
|
34816
34816
|
assign({}, options2, {
|
|
34817
|
-
filename:
|
|
34817
|
+
filename: path15
|
|
34818
34818
|
})
|
|
34819
34819
|
);
|
|
34820
34820
|
}
|
|
@@ -34847,14 +34847,14 @@ var require_pug_load = __commonJS({
|
|
|
34847
34847
|
throw new Error(
|
|
34848
34848
|
'the "basedir" option is required to use includes and extends with "absolute" paths'
|
|
34849
34849
|
);
|
|
34850
|
-
filename =
|
|
34851
|
-
filename[0] === "/" ? options2.basedir :
|
|
34850
|
+
filename = path14.join(
|
|
34851
|
+
filename[0] === "/" ? options2.basedir : path14.dirname(source.trim()),
|
|
34852
34852
|
filename
|
|
34853
34853
|
);
|
|
34854
34854
|
return filename;
|
|
34855
34855
|
};
|
|
34856
34856
|
load.read = function read(filename, options2) {
|
|
34857
|
-
return
|
|
34857
|
+
return fs13.readFileSync(filename);
|
|
34858
34858
|
};
|
|
34859
34859
|
load.validateOptions = function validateOptions(options2) {
|
|
34860
34860
|
if (typeof options2 !== "object") {
|
|
@@ -35500,7 +35500,7 @@ var require_is_promise = __commonJS({
|
|
|
35500
35500
|
var require_jstransformer = __commonJS({
|
|
35501
35501
|
"pnp:/builds/normed/bundle/.yarn/cache/jstransformer-npm-1.0.0-41a47d180a-7bca6e2e2f.zip/node_modules/jstransformer/index.js"(exports, module) {
|
|
35502
35502
|
"use strict";
|
|
35503
|
-
var
|
|
35503
|
+
var fs13 = __require("fs");
|
|
35504
35504
|
var assert = __require("assert");
|
|
35505
35505
|
var Promise2 = require_promise();
|
|
35506
35506
|
var isPromise = require_is_promise();
|
|
@@ -35512,9 +35512,9 @@ var require_jstransformer = __commonJS({
|
|
|
35512
35512
|
tr.normalizeFnAsync = normalizeFnAsync;
|
|
35513
35513
|
tr.normalize = normalize;
|
|
35514
35514
|
tr.normalizeAsync = normalizeAsync;
|
|
35515
|
-
if (
|
|
35516
|
-
tr.readFile = Promise2.denodeify(
|
|
35517
|
-
tr.readFileSync =
|
|
35515
|
+
if (fs13.readFile) {
|
|
35516
|
+
tr.readFile = Promise2.denodeify(fs13.readFile);
|
|
35517
|
+
tr.readFileSync = fs13.readFileSync;
|
|
35518
35518
|
} else {
|
|
35519
35519
|
tr.readFile = function() {
|
|
35520
35520
|
throw new Error("fs.readFile unsupported");
|
|
@@ -35959,8 +35959,8 @@ var require_path_parse = __commonJS({
|
|
|
35959
35959
|
// pnp:/builds/normed/bundle/.yarn/cache/resolve-patch-4254c24959-f345cd37f5.zip/node_modules/resolve/lib/node-modules-paths.js
|
|
35960
35960
|
var require_node_modules_paths = __commonJS({
|
|
35961
35961
|
"pnp:/builds/normed/bundle/.yarn/cache/resolve-patch-4254c24959-f345cd37f5.zip/node_modules/resolve/lib/node-modules-paths.js"(exports, module) {
|
|
35962
|
-
var
|
|
35963
|
-
var parse =
|
|
35962
|
+
var path14 = __require("path");
|
|
35963
|
+
var parse = path14.parse || require_path_parse();
|
|
35964
35964
|
var getNodeModulesDirs = function getNodeModulesDirs2(absoluteStart, modules) {
|
|
35965
35965
|
var prefix = "/";
|
|
35966
35966
|
if (/^([A-Za-z]:)/.test(absoluteStart)) {
|
|
@@ -35976,7 +35976,7 @@ var require_node_modules_paths = __commonJS({
|
|
|
35976
35976
|
}
|
|
35977
35977
|
return paths.reduce(function(dirs, aPath) {
|
|
35978
35978
|
return dirs.concat(modules.map(function(moduleDir) {
|
|
35979
|
-
return
|
|
35979
|
+
return path14.resolve(prefix, aPath, moduleDir);
|
|
35980
35980
|
}));
|
|
35981
35981
|
}, []);
|
|
35982
35982
|
};
|
|
@@ -36001,7 +36001,7 @@ var require_node_modules_paths = __commonJS({
|
|
|
36001
36001
|
// pnp:/builds/normed/bundle/.yarn/cache/resolve-patch-4254c24959-f345cd37f5.zip/node_modules/resolve/lib/normalize-options.js
|
|
36002
36002
|
var require_normalize_options = __commonJS({
|
|
36003
36003
|
"pnp:/builds/normed/bundle/.yarn/cache/resolve-patch-4254c24959-f345cd37f5.zip/node_modules/resolve/lib/normalize-options.js"(exports, module) {
|
|
36004
|
-
var
|
|
36004
|
+
var path14 = __require("path");
|
|
36005
36005
|
module.exports = function(_, opts) {
|
|
36006
36006
|
opts = opts || {};
|
|
36007
36007
|
if (opts.forceNodeResolution || !process.versions.pnp)
|
|
@@ -36012,7 +36012,7 @@ var require_normalize_options = __commonJS({
|
|
|
36012
36012
|
if (!parts)
|
|
36013
36013
|
throw new Error(`Assertion failed: Expected the "resolve" package to call the "paths" callback with package names only (got "${request}")`);
|
|
36014
36014
|
if (basedir.charAt(basedir.length - 1) !== `/`)
|
|
36015
|
-
basedir =
|
|
36015
|
+
basedir = path14.join(basedir, `/`);
|
|
36016
36016
|
const api = findPnpApi(basedir);
|
|
36017
36017
|
if (api === null)
|
|
36018
36018
|
return void 0;
|
|
@@ -36024,8 +36024,8 @@ var require_normalize_options = __commonJS({
|
|
|
36024
36024
|
}
|
|
36025
36025
|
if (manifestPath === null)
|
|
36026
36026
|
throw new Error(`Assertion failed: The resolution thinks that "${parts[1]}" is a Node builtin`);
|
|
36027
|
-
const packagePath =
|
|
36028
|
-
const unqualifiedPath = typeof parts[2] !== `undefined` ?
|
|
36027
|
+
const packagePath = path14.dirname(manifestPath);
|
|
36028
|
+
const unqualifiedPath = typeof parts[2] !== `undefined` ? path14.join(packagePath, parts[2]) : packagePath;
|
|
36029
36029
|
return { packagePath, unqualifiedPath };
|
|
36030
36030
|
};
|
|
36031
36031
|
const runPnpResolutionOnArray = (request, paths2) => {
|
|
@@ -36050,9 +36050,9 @@ var require_normalize_options = __commonJS({
|
|
|
36050
36050
|
const resolution = runPnpResolutionOnArray(request, pathsToTest);
|
|
36051
36051
|
if (resolution == null)
|
|
36052
36052
|
return getNodeModulePaths().concat(originalPaths);
|
|
36053
|
-
let nodeModules =
|
|
36053
|
+
let nodeModules = path14.dirname(resolution.packagePath);
|
|
36054
36054
|
if (request.match(/^@[^/]+\//))
|
|
36055
|
-
nodeModules =
|
|
36055
|
+
nodeModules = path14.dirname(nodeModules);
|
|
36056
36056
|
return [nodeModules];
|
|
36057
36057
|
};
|
|
36058
36058
|
let isInsideIterator = false;
|
|
@@ -36308,23 +36308,23 @@ var require_is_core_module = __commonJS({
|
|
|
36308
36308
|
// pnp:/builds/normed/bundle/.yarn/cache/resolve-patch-4254c24959-f345cd37f5.zip/node_modules/resolve/lib/async.js
|
|
36309
36309
|
var require_async2 = __commonJS({
|
|
36310
36310
|
"pnp:/builds/normed/bundle/.yarn/cache/resolve-patch-4254c24959-f345cd37f5.zip/node_modules/resolve/lib/async.js"(exports, module) {
|
|
36311
|
-
var
|
|
36311
|
+
var fs13 = __require("fs");
|
|
36312
36312
|
var getHomedir = require_homedir();
|
|
36313
|
-
var
|
|
36313
|
+
var path14 = __require("path");
|
|
36314
36314
|
var caller = require_caller();
|
|
36315
36315
|
var nodeModulesPaths = require_node_modules_paths();
|
|
36316
36316
|
var normalizeOptions = require_normalize_options();
|
|
36317
36317
|
var isCore = require_is_core_module();
|
|
36318
|
-
var realpathFS = process.platform !== "win32" &&
|
|
36318
|
+
var realpathFS = process.platform !== "win32" && fs13.realpath && typeof fs13.realpath.native === "function" ? fs13.realpath.native : fs13.realpath;
|
|
36319
36319
|
var homedir = getHomedir();
|
|
36320
36320
|
var defaultPaths = function() {
|
|
36321
36321
|
return [
|
|
36322
|
-
|
|
36323
|
-
|
|
36322
|
+
path14.join(homedir, ".node_modules"),
|
|
36323
|
+
path14.join(homedir, ".node_libraries")
|
|
36324
36324
|
];
|
|
36325
36325
|
};
|
|
36326
36326
|
var defaultIsFile = function isFile(file, cb) {
|
|
36327
|
-
|
|
36327
|
+
fs13.stat(file, function(err, stat) {
|
|
36328
36328
|
if (!err) {
|
|
36329
36329
|
return cb(null, stat.isFile() || stat.isFIFO());
|
|
36330
36330
|
}
|
|
@@ -36333,7 +36333,7 @@ var require_async2 = __commonJS({
|
|
|
36333
36333
|
});
|
|
36334
36334
|
};
|
|
36335
36335
|
var defaultIsDir = function isDirectory(dir, cb) {
|
|
36336
|
-
|
|
36336
|
+
fs13.stat(dir, function(err, stat) {
|
|
36337
36337
|
if (!err) {
|
|
36338
36338
|
return cb(null, stat.isDirectory());
|
|
36339
36339
|
}
|
|
@@ -36370,7 +36370,7 @@ var require_async2 = __commonJS({
|
|
|
36370
36370
|
var getPackageCandidates = function getPackageCandidates2(x, start, opts) {
|
|
36371
36371
|
var dirs = nodeModulesPaths(start, opts, x);
|
|
36372
36372
|
for (var i = 0; i < dirs.length; i++) {
|
|
36373
|
-
dirs[i] =
|
|
36373
|
+
dirs[i] = path14.join(dirs[i], x);
|
|
36374
36374
|
}
|
|
36375
36375
|
return dirs;
|
|
36376
36376
|
};
|
|
@@ -36390,7 +36390,7 @@ var require_async2 = __commonJS({
|
|
|
36390
36390
|
opts = normalizeOptions(x, opts);
|
|
36391
36391
|
var isFile = opts.isFile || defaultIsFile;
|
|
36392
36392
|
var isDirectory = opts.isDirectory || defaultIsDir;
|
|
36393
|
-
var readFile = opts.readFile ||
|
|
36393
|
+
var readFile = opts.readFile || fs13.readFile;
|
|
36394
36394
|
var realpath = opts.realpath || defaultRealpath;
|
|
36395
36395
|
var readPackage = opts.readPackage || defaultReadPackage;
|
|
36396
36396
|
if (opts.readFile && opts.readPackage) {
|
|
@@ -36402,10 +36402,10 @@ var require_async2 = __commonJS({
|
|
|
36402
36402
|
var packageIterator = opts.packageIterator;
|
|
36403
36403
|
var extensions = opts.extensions || [".js"];
|
|
36404
36404
|
var includeCoreModules = opts.includeCoreModules !== false;
|
|
36405
|
-
var basedir = opts.basedir ||
|
|
36405
|
+
var basedir = opts.basedir || path14.dirname(caller());
|
|
36406
36406
|
var parent = opts.filename || basedir;
|
|
36407
36407
|
opts.paths = opts.paths || defaultPaths();
|
|
36408
|
-
var absoluteStart =
|
|
36408
|
+
var absoluteStart = path14.resolve(basedir);
|
|
36409
36409
|
maybeRealpath(
|
|
36410
36410
|
realpath,
|
|
36411
36411
|
absoluteStart,
|
|
@@ -36418,7 +36418,7 @@ var require_async2 = __commonJS({
|
|
|
36418
36418
|
var res;
|
|
36419
36419
|
function init(basedir2) {
|
|
36420
36420
|
if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(x)) {
|
|
36421
|
-
res =
|
|
36421
|
+
res = path14.resolve(basedir2, x);
|
|
36422
36422
|
if (x === "." || x === ".." || x.slice(-1) === "/") res += "/";
|
|
36423
36423
|
if (/\/$/.test(x) && res === basedir2) {
|
|
36424
36424
|
loadAsDirectory(res, opts.package, onfile);
|
|
@@ -36476,17 +36476,17 @@ var require_async2 = __commonJS({
|
|
|
36476
36476
|
var file = x3 + exts2[0];
|
|
36477
36477
|
var pkg = loadPackage;
|
|
36478
36478
|
if (pkg) onpkg(null, pkg);
|
|
36479
|
-
else loadpkg(
|
|
36479
|
+
else loadpkg(path14.dirname(file), onpkg);
|
|
36480
36480
|
function onpkg(err2, pkg_, dir) {
|
|
36481
36481
|
pkg = pkg_;
|
|
36482
36482
|
if (err2) return cb2(err2);
|
|
36483
36483
|
if (dir && pkg && opts.pathFilter) {
|
|
36484
|
-
var rfile =
|
|
36484
|
+
var rfile = path14.relative(dir, file);
|
|
36485
36485
|
var rel = rfile.slice(0, rfile.length - exts2[0].length);
|
|
36486
36486
|
var r = opts.pathFilter(pkg, x3, rel);
|
|
36487
36487
|
if (r) return load(
|
|
36488
36488
|
[""].concat(extensions.slice()),
|
|
36489
|
-
|
|
36489
|
+
path14.resolve(dir, r),
|
|
36490
36490
|
pkg
|
|
36491
36491
|
);
|
|
36492
36492
|
}
|
|
@@ -36506,10 +36506,10 @@ var require_async2 = __commonJS({
|
|
|
36506
36506
|
}
|
|
36507
36507
|
if (/[/\\]node_modules[/\\]*$/.test(dir)) return cb2(null);
|
|
36508
36508
|
maybeRealpath(realpath, dir, opts, function(unwrapErr, pkgdir) {
|
|
36509
|
-
if (unwrapErr) return loadpkg(
|
|
36510
|
-
var pkgfile =
|
|
36509
|
+
if (unwrapErr) return loadpkg(path14.dirname(dir), cb2);
|
|
36510
|
+
var pkgfile = path14.join(pkgdir, "package.json");
|
|
36511
36511
|
isFile(pkgfile, function(err2, ex) {
|
|
36512
|
-
if (!ex) return loadpkg(
|
|
36512
|
+
if (!ex) return loadpkg(path14.dirname(dir), cb2);
|
|
36513
36513
|
readPackage(readFile, pkgfile, function(err3, pkgParam) {
|
|
36514
36514
|
if (err3) cb2(err3);
|
|
36515
36515
|
var pkg = pkgParam;
|
|
@@ -36530,10 +36530,10 @@ var require_async2 = __commonJS({
|
|
|
36530
36530
|
}
|
|
36531
36531
|
maybeRealpath(realpath, x2, opts, function(unwrapErr, pkgdir) {
|
|
36532
36532
|
if (unwrapErr) return cb2(unwrapErr);
|
|
36533
|
-
var pkgfile =
|
|
36533
|
+
var pkgfile = path14.join(pkgdir, "package.json");
|
|
36534
36534
|
isFile(pkgfile, function(err2, ex) {
|
|
36535
36535
|
if (err2) return cb2(err2);
|
|
36536
|
-
if (!ex) return loadAsFile2(
|
|
36536
|
+
if (!ex) return loadAsFile2(path14.join(x2, "index"), fpkg, cb2);
|
|
36537
36537
|
readPackage(readFile, pkgfile, function(err3, pkgParam) {
|
|
36538
36538
|
if (err3) return cb2(err3);
|
|
36539
36539
|
var pkg = pkgParam;
|
|
@@ -36549,20 +36549,20 @@ var require_async2 = __commonJS({
|
|
|
36549
36549
|
if (pkg.main === "." || pkg.main === "./") {
|
|
36550
36550
|
pkg.main = "index";
|
|
36551
36551
|
}
|
|
36552
|
-
loadAsFile2(
|
|
36552
|
+
loadAsFile2(path14.resolve(x2, pkg.main), pkg, function(err4, m, pkg2) {
|
|
36553
36553
|
if (err4) return cb2(err4);
|
|
36554
36554
|
if (m) return cb2(null, m, pkg2);
|
|
36555
|
-
if (!pkg2) return loadAsFile2(
|
|
36556
|
-
var dir =
|
|
36555
|
+
if (!pkg2) return loadAsFile2(path14.join(x2, "index"), pkg2, cb2);
|
|
36556
|
+
var dir = path14.resolve(x2, pkg2.main);
|
|
36557
36557
|
loadAsDirectory(dir, pkg2, function(err5, n, pkg3) {
|
|
36558
36558
|
if (err5) return cb2(err5);
|
|
36559
36559
|
if (n) return cb2(null, n, pkg3);
|
|
36560
|
-
loadAsFile2(
|
|
36560
|
+
loadAsFile2(path14.join(x2, "index"), pkg3, cb2);
|
|
36561
36561
|
});
|
|
36562
36562
|
});
|
|
36563
36563
|
return;
|
|
36564
36564
|
}
|
|
36565
|
-
loadAsFile2(
|
|
36565
|
+
loadAsFile2(path14.join(x2, "/index"), pkg, cb2);
|
|
36566
36566
|
});
|
|
36567
36567
|
});
|
|
36568
36568
|
});
|
|
@@ -36570,7 +36570,7 @@ var require_async2 = __commonJS({
|
|
|
36570
36570
|
function processDirs(cb2, dirs) {
|
|
36571
36571
|
if (dirs.length === 0) return cb2(null, void 0);
|
|
36572
36572
|
var dir = dirs[0];
|
|
36573
|
-
isDirectory(
|
|
36573
|
+
isDirectory(path14.dirname(dir), isdir);
|
|
36574
36574
|
function isdir(err2, isdir2) {
|
|
36575
36575
|
if (err2) return cb2(err2);
|
|
36576
36576
|
if (!isdir2) return processDirs(cb2, dirs.slice(1));
|
|
@@ -36795,23 +36795,23 @@ var require_is_core = __commonJS({
|
|
|
36795
36795
|
var require_sync = __commonJS({
|
|
36796
36796
|
"pnp:/builds/normed/bundle/.yarn/cache/resolve-patch-4254c24959-f345cd37f5.zip/node_modules/resolve/lib/sync.js"(exports, module) {
|
|
36797
36797
|
var isCore = require_is_core_module();
|
|
36798
|
-
var
|
|
36799
|
-
var
|
|
36798
|
+
var fs13 = __require("fs");
|
|
36799
|
+
var path14 = __require("path");
|
|
36800
36800
|
var getHomedir = require_homedir();
|
|
36801
36801
|
var caller = require_caller();
|
|
36802
36802
|
var nodeModulesPaths = require_node_modules_paths();
|
|
36803
36803
|
var normalizeOptions = require_normalize_options();
|
|
36804
|
-
var realpathFS = process.platform !== "win32" &&
|
|
36804
|
+
var realpathFS = process.platform !== "win32" && fs13.realpathSync && typeof fs13.realpathSync.native === "function" ? fs13.realpathSync.native : fs13.realpathSync;
|
|
36805
36805
|
var homedir = getHomedir();
|
|
36806
36806
|
var defaultPaths = function() {
|
|
36807
36807
|
return [
|
|
36808
|
-
|
|
36809
|
-
|
|
36808
|
+
path14.join(homedir, ".node_modules"),
|
|
36809
|
+
path14.join(homedir, ".node_libraries")
|
|
36810
36810
|
];
|
|
36811
36811
|
};
|
|
36812
36812
|
var defaultIsFile = function isFile(file) {
|
|
36813
36813
|
try {
|
|
36814
|
-
var stat =
|
|
36814
|
+
var stat = fs13.statSync(file, { throwIfNoEntry: false });
|
|
36815
36815
|
} catch (e) {
|
|
36816
36816
|
if (e && (e.code === "ENOENT" || e.code === "ENOTDIR")) return false;
|
|
36817
36817
|
throw e;
|
|
@@ -36820,7 +36820,7 @@ var require_sync = __commonJS({
|
|
|
36820
36820
|
};
|
|
36821
36821
|
var defaultIsDir = function isDirectory(dir) {
|
|
36822
36822
|
try {
|
|
36823
|
-
var stat =
|
|
36823
|
+
var stat = fs13.statSync(dir, { throwIfNoEntry: false });
|
|
36824
36824
|
} catch (e) {
|
|
36825
36825
|
if (e && (e.code === "ENOENT" || e.code === "ENOTDIR")) return false;
|
|
36826
36826
|
throw e;
|
|
@@ -36854,7 +36854,7 @@ var require_sync = __commonJS({
|
|
|
36854
36854
|
var getPackageCandidates = function getPackageCandidates2(x, start, opts) {
|
|
36855
36855
|
var dirs = nodeModulesPaths(start, opts, x);
|
|
36856
36856
|
for (var i = 0; i < dirs.length; i++) {
|
|
36857
|
-
dirs[i] =
|
|
36857
|
+
dirs[i] = path14.join(dirs[i], x);
|
|
36858
36858
|
}
|
|
36859
36859
|
return dirs;
|
|
36860
36860
|
};
|
|
@@ -36864,7 +36864,7 @@ var require_sync = __commonJS({
|
|
|
36864
36864
|
}
|
|
36865
36865
|
var opts = normalizeOptions(x, options2);
|
|
36866
36866
|
var isFile = opts.isFile || defaultIsFile;
|
|
36867
|
-
var readFileSync = opts.readFileSync ||
|
|
36867
|
+
var readFileSync = opts.readFileSync || fs13.readFileSync;
|
|
36868
36868
|
var isDirectory = opts.isDirectory || defaultIsDir;
|
|
36869
36869
|
var realpathSync = opts.realpathSync || defaultRealpathSync;
|
|
36870
36870
|
var readPackageSync = opts.readPackageSync || defaultReadPackageSync;
|
|
@@ -36874,12 +36874,12 @@ var require_sync = __commonJS({
|
|
|
36874
36874
|
var packageIterator = opts.packageIterator;
|
|
36875
36875
|
var extensions = opts.extensions || [".js"];
|
|
36876
36876
|
var includeCoreModules = opts.includeCoreModules !== false;
|
|
36877
|
-
var basedir = opts.basedir ||
|
|
36877
|
+
var basedir = opts.basedir || path14.dirname(caller());
|
|
36878
36878
|
var parent = opts.filename || basedir;
|
|
36879
36879
|
opts.paths = opts.paths || defaultPaths();
|
|
36880
|
-
var absoluteStart = maybeRealpathSync(realpathSync,
|
|
36880
|
+
var absoluteStart = maybeRealpathSync(realpathSync, path14.resolve(basedir), opts);
|
|
36881
36881
|
if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(x)) {
|
|
36882
|
-
var res =
|
|
36882
|
+
var res = path14.resolve(absoluteStart, x);
|
|
36883
36883
|
if (x === "." || x === ".." || x.slice(-1) === "/") res += "/";
|
|
36884
36884
|
var m = loadAsFileSync(res) || loadAsDirectorySync(res);
|
|
36885
36885
|
if (m) return maybeRealpathSync(realpathSync, m, opts);
|
|
@@ -36893,12 +36893,12 @@ var require_sync = __commonJS({
|
|
|
36893
36893
|
err.code = "MODULE_NOT_FOUND";
|
|
36894
36894
|
throw err;
|
|
36895
36895
|
function loadAsFileSync(x2) {
|
|
36896
|
-
var pkg = loadpkg(
|
|
36896
|
+
var pkg = loadpkg(path14.dirname(x2));
|
|
36897
36897
|
if (pkg && pkg.dir && pkg.pkg && opts.pathFilter) {
|
|
36898
|
-
var rfile =
|
|
36898
|
+
var rfile = path14.relative(pkg.dir, x2);
|
|
36899
36899
|
var r = opts.pathFilter(pkg.pkg, x2, rfile);
|
|
36900
36900
|
if (r) {
|
|
36901
|
-
x2 =
|
|
36901
|
+
x2 = path14.resolve(pkg.dir, r);
|
|
36902
36902
|
}
|
|
36903
36903
|
}
|
|
36904
36904
|
if (isFile(x2)) {
|
|
@@ -36917,9 +36917,9 @@ var require_sync = __commonJS({
|
|
|
36917
36917
|
return;
|
|
36918
36918
|
}
|
|
36919
36919
|
if (/[/\\]node_modules[/\\]*$/.test(dir)) return;
|
|
36920
|
-
var pkgfile =
|
|
36920
|
+
var pkgfile = path14.join(maybeRealpathSync(realpathSync, dir, opts), "package.json");
|
|
36921
36921
|
if (!isFile(pkgfile)) {
|
|
36922
|
-
return loadpkg(
|
|
36922
|
+
return loadpkg(path14.dirname(dir));
|
|
36923
36923
|
}
|
|
36924
36924
|
var pkg = readPackageSync(readFileSync, pkgfile);
|
|
36925
36925
|
if (pkg && opts.packageFilter) {
|
|
@@ -36932,7 +36932,7 @@ var require_sync = __commonJS({
|
|
|
36932
36932
|
return { pkg, dir };
|
|
36933
36933
|
}
|
|
36934
36934
|
function loadAsDirectorySync(x2) {
|
|
36935
|
-
var pkgfile =
|
|
36935
|
+
var pkgfile = path14.join(maybeRealpathSync(realpathSync, x2, opts), "/package.json");
|
|
36936
36936
|
if (isFile(pkgfile)) {
|
|
36937
36937
|
try {
|
|
36938
36938
|
var pkg = readPackageSync(readFileSync, pkgfile);
|
|
@@ -36955,15 +36955,15 @@ var require_sync = __commonJS({
|
|
|
36955
36955
|
pkg.main = "index";
|
|
36956
36956
|
}
|
|
36957
36957
|
try {
|
|
36958
|
-
var m2 = loadAsFileSync(
|
|
36958
|
+
var m2 = loadAsFileSync(path14.resolve(x2, pkg.main));
|
|
36959
36959
|
if (m2) return m2;
|
|
36960
|
-
var n2 = loadAsDirectorySync(
|
|
36960
|
+
var n2 = loadAsDirectorySync(path14.resolve(x2, pkg.main));
|
|
36961
36961
|
if (n2) return n2;
|
|
36962
36962
|
} catch (e) {
|
|
36963
36963
|
}
|
|
36964
36964
|
}
|
|
36965
36965
|
}
|
|
36966
|
-
return loadAsFileSync(
|
|
36966
|
+
return loadAsFileSync(path14.join(x2, "/index"));
|
|
36967
36967
|
}
|
|
36968
36968
|
function loadNodeModulesSync(x2, start) {
|
|
36969
36969
|
var thunk = function() {
|
|
@@ -36972,7 +36972,7 @@ var require_sync = __commonJS({
|
|
|
36972
36972
|
var dirs = packageIterator ? packageIterator(x2, start, thunk, opts) : thunk();
|
|
36973
36973
|
for (var i = 0; i < dirs.length; i++) {
|
|
36974
36974
|
var dir = dirs[i];
|
|
36975
|
-
if (isDirectory(
|
|
36975
|
+
if (isDirectory(path14.dirname(dir))) {
|
|
36976
36976
|
var m2 = loadAsFileSync(dir);
|
|
36977
36977
|
if (m2) return m2;
|
|
36978
36978
|
var n2 = loadAsDirectorySync(dir);
|
|
@@ -65962,7 +65962,7 @@ var require_sources = __commonJS({
|
|
|
65962
65962
|
var require_build = __commonJS({
|
|
65963
65963
|
"pnp:/builds/normed/bundle/.yarn/cache/pug-runtime-npm-3.0.1-13038c62ae-d34ee1b951.zip/node_modules/pug-runtime/build.js"(exports, module) {
|
|
65964
65964
|
"use strict";
|
|
65965
|
-
var
|
|
65965
|
+
var fs13 = __require("fs");
|
|
65966
65966
|
var dependencies = require_dependencies();
|
|
65967
65967
|
var internals = require_internals();
|
|
65968
65968
|
var sources = require_sources();
|
|
@@ -67728,8 +67728,8 @@ var require_wrap = __commonJS({
|
|
|
67728
67728
|
var require_lib14 = __commonJS({
|
|
67729
67729
|
"pnp:/builds/normed/bundle/.yarn/cache/pug-npm-3.0.3-9b210cb01a-a883647575.zip/node_modules/pug/lib/index.js"(exports) {
|
|
67730
67730
|
"use strict";
|
|
67731
|
-
var
|
|
67732
|
-
var
|
|
67731
|
+
var fs13 = __require("fs");
|
|
67732
|
+
var path14 = __require("path");
|
|
67733
67733
|
var lex = require_pug_lexer();
|
|
67734
67734
|
var stripComments = require_pug_strip_comments();
|
|
67735
67735
|
var parse = require_pug_parser();
|
|
@@ -67792,7 +67792,7 @@ var require_lib14 = __commonJS({
|
|
|
67792
67792
|
},
|
|
67793
67793
|
parse: function(tokens, options3) {
|
|
67794
67794
|
tokens = tokens.map(function(token) {
|
|
67795
|
-
if (token.type === "path" &&
|
|
67795
|
+
if (token.type === "path" && path14.extname(token.val) === "") {
|
|
67796
67796
|
return {
|
|
67797
67797
|
type: "path",
|
|
67798
67798
|
loc: token.loc,
|
|
@@ -67890,7 +67890,7 @@ var require_lib14 = __commonJS({
|
|
|
67890
67890
|
if (options2.cache && exports.cache[key]) {
|
|
67891
67891
|
return exports.cache[key];
|
|
67892
67892
|
} else {
|
|
67893
|
-
if (str === void 0) str =
|
|
67893
|
+
if (str === void 0) str = fs13.readFileSync(options2.filename, "utf8");
|
|
67894
67894
|
var templ = exports.compile(str, options2);
|
|
67895
67895
|
if (options2.cache) exports.cache[key] = templ;
|
|
67896
67896
|
return templ;
|
|
@@ -67952,9 +67952,9 @@ var require_lib14 = __commonJS({
|
|
|
67952
67952
|
exports.compileClient = function(str, options2) {
|
|
67953
67953
|
return exports.compileClientWithDependenciesTracked(str, options2).body;
|
|
67954
67954
|
};
|
|
67955
|
-
exports.compileFile = function(
|
|
67955
|
+
exports.compileFile = function(path15, options2) {
|
|
67956
67956
|
options2 = options2 || {};
|
|
67957
|
-
options2.filename =
|
|
67957
|
+
options2.filename = path15;
|
|
67958
67958
|
return handleTemplateCache(options2);
|
|
67959
67959
|
};
|
|
67960
67960
|
exports.render = function(str, options2, fn) {
|
|
@@ -67976,40 +67976,40 @@ var require_lib14 = __commonJS({
|
|
|
67976
67976
|
}
|
|
67977
67977
|
return handleTemplateCache(options2, str)(options2);
|
|
67978
67978
|
};
|
|
67979
|
-
exports.renderFile = function(
|
|
67979
|
+
exports.renderFile = function(path15, options2, fn) {
|
|
67980
67980
|
if ("function" == typeof options2) {
|
|
67981
67981
|
fn = options2, options2 = void 0;
|
|
67982
67982
|
}
|
|
67983
67983
|
if (typeof fn === "function") {
|
|
67984
67984
|
var res;
|
|
67985
67985
|
try {
|
|
67986
|
-
res = exports.renderFile(
|
|
67986
|
+
res = exports.renderFile(path15, options2);
|
|
67987
67987
|
} catch (ex) {
|
|
67988
67988
|
return fn(ex);
|
|
67989
67989
|
}
|
|
67990
67990
|
return fn(null, res);
|
|
67991
67991
|
}
|
|
67992
67992
|
options2 = options2 || {};
|
|
67993
|
-
options2.filename =
|
|
67993
|
+
options2.filename = path15;
|
|
67994
67994
|
return handleTemplateCache(options2)(options2);
|
|
67995
67995
|
};
|
|
67996
|
-
exports.compileFileClient = function(
|
|
67997
|
-
var key =
|
|
67996
|
+
exports.compileFileClient = function(path15, options2) {
|
|
67997
|
+
var key = path15 + ":client";
|
|
67998
67998
|
options2 = options2 || {};
|
|
67999
|
-
options2.filename =
|
|
67999
|
+
options2.filename = path15;
|
|
68000
68000
|
if (options2.cache && exports.cache[key]) {
|
|
68001
68001
|
return exports.cache[key];
|
|
68002
68002
|
}
|
|
68003
|
-
var str =
|
|
68003
|
+
var str = fs13.readFileSync(options2.filename, "utf8");
|
|
68004
68004
|
var out = exports.compileClient(str, options2);
|
|
68005
68005
|
if (options2.cache) exports.cache[key] = out;
|
|
68006
68006
|
return out;
|
|
68007
68007
|
};
|
|
68008
|
-
exports.__express = function(
|
|
68008
|
+
exports.__express = function(path15, options2, fn) {
|
|
68009
68009
|
if (options2.compileDebug == void 0 && process.env.NODE_ENV === "production") {
|
|
68010
68010
|
options2.compileDebug = false;
|
|
68011
68011
|
}
|
|
68012
|
-
exports.renderFile(
|
|
68012
|
+
exports.renderFile(path15, options2, fn);
|
|
68013
68013
|
};
|
|
68014
68014
|
}
|
|
68015
68015
|
});
|
|
@@ -68021,7 +68021,7 @@ var require_lib15 = __commonJS({
|
|
|
68021
68021
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
68022
68022
|
exports.pnpPlugin = void 0;
|
|
68023
68023
|
var tslib_1 = require_tslib();
|
|
68024
|
-
var
|
|
68024
|
+
var fs13 = tslib_1.__importStar(__require("fs"));
|
|
68025
68025
|
var path_1 = tslib_1.__importDefault(__require("path"));
|
|
68026
68026
|
var matchAll = /()/;
|
|
68027
68027
|
var defaultExtensions = [`.tsx`, `.ts`, `.jsx`, `.mjs`, `.cjs`, `.js`, `.css`, `.json`];
|
|
@@ -68033,17 +68033,17 @@ var require_lib15 = __commonJS({
|
|
|
68033
68033
|
return external;
|
|
68034
68034
|
});
|
|
68035
68035
|
}
|
|
68036
|
-
function isExternal(
|
|
68036
|
+
function isExternal(path14, externals) {
|
|
68037
68037
|
for (const external of externals) {
|
|
68038
68038
|
if (typeof external === `object`) {
|
|
68039
|
-
if (
|
|
68039
|
+
if (path14.length >= external.prefix.length + external.suffix.length && path14.startsWith(external.prefix) && path14.endsWith(external.suffix)) {
|
|
68040
68040
|
return true;
|
|
68041
68041
|
}
|
|
68042
68042
|
} else {
|
|
68043
|
-
if (
|
|
68043
|
+
if (path14 === external)
|
|
68044
68044
|
return true;
|
|
68045
68045
|
if (!external.startsWith(`/`) && !external.startsWith(`./`) && !external.startsWith(`../`) && external !== `.` && external !== `..`) {
|
|
68046
|
-
if (
|
|
68046
|
+
if (path14.startsWith(`${external}/`)) {
|
|
68047
68047
|
return true;
|
|
68048
68048
|
}
|
|
68049
68049
|
}
|
|
@@ -68053,7 +68053,7 @@ var require_lib15 = __commonJS({
|
|
|
68053
68053
|
}
|
|
68054
68054
|
async function defaultOnLoad(args) {
|
|
68055
68055
|
return {
|
|
68056
|
-
contents: await
|
|
68056
|
+
contents: await fs13.promises.readFile(args.path),
|
|
68057
68057
|
loader: `default`,
|
|
68058
68058
|
// For regular imports in the `file` namespace, resolveDir is the directory the
|
|
68059
68059
|
// file being resolved lives in. For all other virtual modules, this defaults to
|
|
@@ -68118,10 +68118,10 @@ var require_lib15 = __commonJS({
|
|
|
68118
68118
|
const pnpApi = findPnpApi(effectiveImporter);
|
|
68119
68119
|
if (!pnpApi)
|
|
68120
68120
|
return void 0;
|
|
68121
|
-
let
|
|
68121
|
+
let path14 = null;
|
|
68122
68122
|
let error;
|
|
68123
68123
|
try {
|
|
68124
|
-
|
|
68124
|
+
path14 = pnpApi.resolveRequest(args.path, effectiveImporter, {
|
|
68125
68125
|
conditions,
|
|
68126
68126
|
considerBuiltins: isPlatformNode,
|
|
68127
68127
|
extensions
|
|
@@ -68130,16 +68130,16 @@ var require_lib15 = __commonJS({
|
|
|
68130
68130
|
error = e;
|
|
68131
68131
|
}
|
|
68132
68132
|
const watchFiles = [pnpApi.resolveRequest(`pnpapi`, null)];
|
|
68133
|
-
if (
|
|
68134
|
-
const locator = pnpApi.findPackageLocator(
|
|
68133
|
+
if (path14) {
|
|
68134
|
+
const locator = pnpApi.findPackageLocator(path14);
|
|
68135
68135
|
if (locator) {
|
|
68136
68136
|
const info = pnpApi.getPackageInformation(locator);
|
|
68137
68137
|
if ((info === null || info === void 0 ? void 0 : info.linkType) === `SOFT`) {
|
|
68138
|
-
watchFiles.push((_b2 = (_a2 = pnpApi.resolveVirtual) === null || _a2 === void 0 ? void 0 : _a2.call(pnpApi,
|
|
68138
|
+
watchFiles.push((_b2 = (_a2 = pnpApi.resolveVirtual) === null || _a2 === void 0 ? void 0 : _a2.call(pnpApi, path14)) !== null && _b2 !== void 0 ? _b2 : path14);
|
|
68139
68139
|
}
|
|
68140
68140
|
}
|
|
68141
68141
|
}
|
|
68142
|
-
return onResolve(args, { resolvedPath:
|
|
68142
|
+
return onResolve(args, { resolvedPath: path14, error, watchFiles });
|
|
68143
68143
|
});
|
|
68144
68144
|
if (build2.onLoad !== null) {
|
|
68145
68145
|
build2.onLoad({ filter: filter2 }, onLoad);
|
|
@@ -68288,19 +68288,19 @@ function __throw__(error) {
|
|
|
68288
68288
|
}
|
|
68289
68289
|
function makePartialRefinement(definition) {
|
|
68290
68290
|
const possibleKeys = Object.keys(definition);
|
|
68291
|
-
function doRefinement(d,
|
|
68291
|
+
function doRefinement(d, path14, v, depth = 0) {
|
|
68292
68292
|
if (typeof d === "function") {
|
|
68293
|
-
return d(
|
|
68293
|
+
return d(path14, v);
|
|
68294
68294
|
}
|
|
68295
68295
|
if (typeof v !== "object" || v === null) {
|
|
68296
|
-
return new import_refinements.RefinementError(
|
|
68296
|
+
return new import_refinements.RefinementError(path14, `to be an Object`);
|
|
68297
68297
|
}
|
|
68298
68298
|
const o = {};
|
|
68299
68299
|
for (let k of possibleKeys) {
|
|
68300
68300
|
if (depth < 1 && !(k in v)) {
|
|
68301
68301
|
continue;
|
|
68302
68302
|
}
|
|
68303
|
-
const result = doRefinement(d[k],
|
|
68303
|
+
const result = doRefinement(d[k], path14.concat(k), v[k], depth + 1);
|
|
68304
68304
|
if (result instanceof import_refinements.RefinementError) {
|
|
68305
68305
|
return result;
|
|
68306
68306
|
}
|
|
@@ -68308,7 +68308,7 @@ function makePartialRefinement(definition) {
|
|
|
68308
68308
|
}
|
|
68309
68309
|
return o;
|
|
68310
68310
|
}
|
|
68311
|
-
return (
|
|
68311
|
+
return (path14, v) => doRefinement(definition, path14, v);
|
|
68312
68312
|
}
|
|
68313
68313
|
|
|
68314
68314
|
// pnp:/builds/normed/bundle/packages/bundle/src/readConfigs.ts
|
|
@@ -68787,27 +68787,18 @@ var load_less_default = plugin;
|
|
|
68787
68787
|
|
|
68788
68788
|
// pnp:/builds/normed/bundle/packages/bundle/src/esbuild-plugins/load_pug.ts
|
|
68789
68789
|
var import_pug = __toESM(require_lib14());
|
|
68790
|
+
import fs7 from "fs";
|
|
68791
|
+
import path6 from "path";
|
|
68792
|
+
import crypto from "crypto";
|
|
68793
|
+
|
|
68794
|
+
// pnp:/builds/normed/bundle/packages/bundle/src/esbuild-plugins/safe_path_resolution.ts
|
|
68790
68795
|
import fs6 from "fs";
|
|
68791
68796
|
import path5 from "path";
|
|
68792
|
-
import crypto from "crypto";
|
|
68793
68797
|
import { createRequire } from "module";
|
|
68794
|
-
|
|
68795
|
-
|
|
68796
|
-
|
|
68797
|
-
|
|
68798
|
-
return num.toString(36).toUpperCase().padStart(8, "0").slice(0, 8);
|
|
68799
|
-
}
|
|
68800
|
-
var UNIVERSAL_LINKING_ATTRS = ["src", "srcset", "href"];
|
|
68801
|
-
var ELEMENT_SPECIFIC_LINKING_ATTRS = {
|
|
68802
|
-
form: ["action"],
|
|
68803
|
-
object: ["data"],
|
|
68804
|
-
video: ["poster"]
|
|
68805
|
-
};
|
|
68806
|
-
function getLinkingAttrs(elementName) {
|
|
68807
|
-
if (!elementName) return void 0;
|
|
68808
|
-
const extra = ELEMENT_SPECIFIC_LINKING_ATTRS[elementName];
|
|
68809
|
-
return extra ? [...UNIVERSAL_LINKING_ATTRS, ...extra] : UNIVERSAL_LINKING_ATTRS;
|
|
68810
|
-
}
|
|
68798
|
+
var PKG_PREFIX = "pkg:";
|
|
68799
|
+
var BUILD_PREFIX = "build:";
|
|
68800
|
+
var COPY_PREFIX = "copy:";
|
|
68801
|
+
var VERBATIM_PREFIX = "verbatim:";
|
|
68811
68802
|
function isRelativeAssetPath(assetPath) {
|
|
68812
68803
|
if (!assetPath) return false;
|
|
68813
68804
|
if (assetPath.startsWith("#")) return false;
|
|
@@ -68822,32 +68813,20 @@ function isRelativeAssetPath(assetPath) {
|
|
|
68822
68813
|
return true;
|
|
68823
68814
|
}
|
|
68824
68815
|
}
|
|
68825
|
-
function isPugReference(assetPath) {
|
|
68826
|
-
return assetPath.endsWith(".pug") && isRelativeAssetPath(assetPath);
|
|
68827
|
-
}
|
|
68828
|
-
function isLessReference(assetPath) {
|
|
68829
|
-
return assetPath.endsWith(".less") && isRelativeAssetPath(assetPath);
|
|
68830
|
-
}
|
|
68831
|
-
function isScriptReference(assetPath) {
|
|
68832
|
-
const scriptExtensions = [".js", ".jsx", ".mjs", ".cjs", ".ts", ".tsx"];
|
|
68833
|
-
const isScript = scriptExtensions.some((ext) => assetPath.endsWith(ext));
|
|
68834
|
-
const isDeclaration = assetPath.endsWith(".d.ts");
|
|
68835
|
-
return isScript && !isDeclaration && isRelativeAssetPath(assetPath);
|
|
68836
|
-
}
|
|
68837
|
-
var PKG_PREFIX = "pkg:";
|
|
68838
|
-
var BUILD_PREFIX = "build:";
|
|
68839
|
-
var COPY_PREFIX = "copy:";
|
|
68840
|
-
function isPackageReference(assetPath) {
|
|
68841
|
-
return assetPath.startsWith(PKG_PREFIX);
|
|
68842
|
-
}
|
|
68843
68816
|
function isBuildReference(assetPath) {
|
|
68844
68817
|
return assetPath.startsWith(BUILD_PREFIX);
|
|
68845
68818
|
}
|
|
68846
68819
|
function isCopyReference(assetPath) {
|
|
68847
68820
|
return assetPath.startsWith(COPY_PREFIX);
|
|
68848
68821
|
}
|
|
68849
|
-
function
|
|
68850
|
-
return assetPath.
|
|
68822
|
+
function isPackageReference(assetPath) {
|
|
68823
|
+
return assetPath.startsWith(PKG_PREFIX);
|
|
68824
|
+
}
|
|
68825
|
+
function isVerbatimReference(assetPath) {
|
|
68826
|
+
return assetPath.startsWith(VERBATIM_PREFIX);
|
|
68827
|
+
}
|
|
68828
|
+
function isPackageCssReference(assetPath) {
|
|
68829
|
+
return isPackageReference(assetPath) && assetPath.endsWith(".css");
|
|
68851
68830
|
}
|
|
68852
68831
|
function getResolvedSpecifier(assetPath) {
|
|
68853
68832
|
if (assetPath.startsWith(BUILD_PREFIX))
|
|
@@ -68858,16 +68837,12 @@ function getResolvedSpecifier(assetPath) {
|
|
|
68858
68837
|
return assetPath.slice(PKG_PREFIX.length);
|
|
68859
68838
|
return assetPath;
|
|
68860
68839
|
}
|
|
68861
|
-
|
|
68862
|
-
|
|
68863
|
-
return assetPath.startsWith(VERBATIM_PREFIX);
|
|
68840
|
+
function getPackageSpecifier(assetPath) {
|
|
68841
|
+
return assetPath.slice(PKG_PREFIX.length);
|
|
68864
68842
|
}
|
|
68865
68843
|
function getVerbatimPath(assetPath) {
|
|
68866
68844
|
return assetPath.slice(VERBATIM_PREFIX.length);
|
|
68867
68845
|
}
|
|
68868
|
-
function isPackageCssReference(assetPath) {
|
|
68869
|
-
return isPackageReference(assetPath) && assetPath.endsWith(".css");
|
|
68870
|
-
}
|
|
68871
68846
|
function resolvePackagePath(packageSpecifier, fromFile) {
|
|
68872
68847
|
try {
|
|
68873
68848
|
const require2 = createRequire(fromFile);
|
|
@@ -68912,6 +68887,37 @@ function assertWithinAllowedRoots(absolutePath, allowedRoots, originalValue, pug
|
|
|
68912
68887
|
);
|
|
68913
68888
|
}
|
|
68914
68889
|
}
|
|
68890
|
+
|
|
68891
|
+
// pnp:/builds/normed/bundle/packages/bundle/src/esbuild-plugins/load_pug.ts
|
|
68892
|
+
function computeContentHash(content) {
|
|
68893
|
+
const data = typeof content === "string" ? content : new Uint8Array(content);
|
|
68894
|
+
const hash = crypto.createHash("sha256").update(data).digest();
|
|
68895
|
+
const num = hash.readUInt32BE(0);
|
|
68896
|
+
return num.toString(36).toUpperCase().padStart(8, "0").slice(0, 8);
|
|
68897
|
+
}
|
|
68898
|
+
var UNIVERSAL_LINKING_ATTRS = ["src", "srcset", "href"];
|
|
68899
|
+
var ELEMENT_SPECIFIC_LINKING_ATTRS = {
|
|
68900
|
+
form: ["action"],
|
|
68901
|
+
object: ["data"],
|
|
68902
|
+
video: ["poster"]
|
|
68903
|
+
};
|
|
68904
|
+
function getLinkingAttrs(elementName) {
|
|
68905
|
+
if (!elementName) return void 0;
|
|
68906
|
+
const extra = ELEMENT_SPECIFIC_LINKING_ATTRS[elementName];
|
|
68907
|
+
return extra ? [...UNIVERSAL_LINKING_ATTRS, ...extra] : UNIVERSAL_LINKING_ATTRS;
|
|
68908
|
+
}
|
|
68909
|
+
function isPugReference(assetPath) {
|
|
68910
|
+
return assetPath.endsWith(".pug") && isRelativeAssetPath(assetPath);
|
|
68911
|
+
}
|
|
68912
|
+
function isLessReference(assetPath) {
|
|
68913
|
+
return assetPath.endsWith(".less") && isRelativeAssetPath(assetPath);
|
|
68914
|
+
}
|
|
68915
|
+
function isScriptReference(assetPath) {
|
|
68916
|
+
const scriptExtensions = [".js", ".jsx", ".mjs", ".cjs", ".ts", ".tsx"];
|
|
68917
|
+
const isScript = scriptExtensions.some((ext) => assetPath.endsWith(ext));
|
|
68918
|
+
const isDeclaration = assetPath.endsWith(".d.ts");
|
|
68919
|
+
return isScript && !isDeclaration && isRelativeAssetPath(assetPath);
|
|
68920
|
+
}
|
|
68915
68921
|
var discoveredPugReferences = /* @__PURE__ */ new Map();
|
|
68916
68922
|
var discoveredLessReferences = /* @__PURE__ */ new Map();
|
|
68917
68923
|
var discoveredScriptReferences = /* @__PURE__ */ new Map();
|
|
@@ -68929,22 +68935,22 @@ function clearDiscoveredPackageCssReferences() {
|
|
|
68929
68935
|
discoveredPackageCssReferences.clear();
|
|
68930
68936
|
}
|
|
68931
68937
|
function applyAssetNamesTemplate(template, originalPath, hash, baseDir) {
|
|
68932
|
-
const ext =
|
|
68933
|
-
const name3 =
|
|
68934
|
-
const dir =
|
|
68938
|
+
const ext = path6.extname(originalPath).slice(1);
|
|
68939
|
+
const name3 = path6.basename(originalPath, path6.extname(originalPath));
|
|
68940
|
+
const dir = path6.dirname(originalPath);
|
|
68935
68941
|
const relativeDir = dir.startsWith(baseDir) ? dir.slice(baseDir.length).replace(/^\//, "") : dir;
|
|
68936
68942
|
return template.replace(/\[name\]/g, name3).replace(/\[hash\]/g, hash).replace(/\[ext\]/g, ext).replace(/\[dir\]/g, relativeDir) + "." + ext;
|
|
68937
68943
|
}
|
|
68938
68944
|
function computeHtmlAssetPath(opts) {
|
|
68939
68945
|
if (opts.webRoot) {
|
|
68940
|
-
const webRootDir =
|
|
68946
|
+
const webRootDir = path6.join(opts.outdir, opts.webRoot);
|
|
68941
68947
|
const prefix = (opts.publicPath || "/").replace(/\/$/, "");
|
|
68942
|
-
return prefix + "/" +
|
|
68948
|
+
return prefix + "/" + path6.relative(webRootDir, opts.absoluteOutput);
|
|
68943
68949
|
}
|
|
68944
68950
|
if (opts.publicPath) {
|
|
68945
68951
|
return opts.publicPath.replace(/\/$/, "") + "/" + opts.hashedFilename;
|
|
68946
68952
|
}
|
|
68947
|
-
return
|
|
68953
|
+
return path6.relative(opts.htmlOutputDir, opts.absoluteOutput);
|
|
68948
68954
|
}
|
|
68949
68955
|
async function processHtmlAssets(html, pugFilePath, options2, webRoot, collectedReferences = []) {
|
|
68950
68956
|
const assets = [];
|
|
@@ -68954,13 +68960,13 @@ async function processHtmlAssets(html, pugFilePath, options2, webRoot, collected
|
|
|
68954
68960
|
const packageCssReferences = [];
|
|
68955
68961
|
const assetNames = options2.assetNames || "[name]-[hash]";
|
|
68956
68962
|
const outdir = options2.outdir || ".";
|
|
68957
|
-
const outbase = options2.outbase ||
|
|
68958
|
-
const pugDir =
|
|
68963
|
+
const outbase = options2.outbase || path6.dirname(pugFilePath);
|
|
68964
|
+
const pugDir = path6.dirname(pugFilePath);
|
|
68959
68965
|
const publicPath = options2.publicPath || "";
|
|
68960
|
-
const srcWebRoot = webRoot ?
|
|
68961
|
-
const normalizedOutbase =
|
|
68962
|
-
const normalizedPug =
|
|
68963
|
-
const pugWithinOutbase = normalizedPug === normalizedOutbase || normalizedPug.startsWith(normalizedOutbase +
|
|
68966
|
+
const srcWebRoot = webRoot ? path6.join(outbase, webRoot) : outbase;
|
|
68967
|
+
const normalizedOutbase = path6.resolve(outbase);
|
|
68968
|
+
const normalizedPug = path6.resolve(pugFilePath);
|
|
68969
|
+
const pugWithinOutbase = normalizedPug === normalizedOutbase || normalizedPug.startsWith(normalizedOutbase + path6.sep);
|
|
68964
68970
|
const packageRoot = pugWithinOutbase ? null : findPackageRoot(pugFilePath);
|
|
68965
68971
|
const allowedRoots = [outbase, packageRoot].filter(
|
|
68966
68972
|
(r) => r != null
|
|
@@ -69058,7 +69064,7 @@ async function processHtmlAssets(html, pugFilePath, options2, webRoot, collected
|
|
|
69058
69064
|
Referenced in rendered HTML of ${pugFilePath}`
|
|
69059
69065
|
);
|
|
69060
69066
|
} else {
|
|
69061
|
-
const ext =
|
|
69067
|
+
const ext = path6.extname(absolutePath).toLowerCase();
|
|
69062
69068
|
const scriptExtensions = [".js", ".jsx", ".mjs", ".cjs", ".ts", ".tsx"];
|
|
69063
69069
|
if (ext === ".pug") {
|
|
69064
69070
|
if (!discoveredPugPaths.has(absolutePath)) {
|
|
@@ -69096,7 +69102,7 @@ async function processHtmlAssets(html, pugFilePath, options2, webRoot, collected
|
|
|
69096
69102
|
Referenced in rendered HTML of ${pugFilePath}`
|
|
69097
69103
|
);
|
|
69098
69104
|
} else {
|
|
69099
|
-
const ext =
|
|
69105
|
+
const ext = path6.extname(absolutePath).toLowerCase();
|
|
69100
69106
|
if (ext === ".css") {
|
|
69101
69107
|
if (!discoveredPackageCssPaths.has(absolutePath)) {
|
|
69102
69108
|
discoveredPackageCssPaths.add(absolutePath);
|
|
@@ -69210,7 +69216,7 @@ async function processAsset(assetPath, pugDir, pugFilePath, outdir, outbase, ass
|
|
|
69210
69216
|
if (processedAssets.has(absoluteSource)) {
|
|
69211
69217
|
return processedAssets.get(absoluteSource);
|
|
69212
69218
|
}
|
|
69213
|
-
if (!
|
|
69219
|
+
if (!fs7.existsSync(absoluteSource)) {
|
|
69214
69220
|
log_default.warn(
|
|
69215
69221
|
`Warning: Asset not found: "${assetPath}" (resolved to ${absoluteSource})
|
|
69216
69222
|
Referenced in rendered HTML of ${pugFilePath}`
|
|
@@ -69218,7 +69224,7 @@ async function processAsset(assetPath, pugDir, pugFilePath, outdir, outbase, ass
|
|
|
69218
69224
|
return null;
|
|
69219
69225
|
}
|
|
69220
69226
|
try {
|
|
69221
|
-
const content = await
|
|
69227
|
+
const content = await fs7.promises.readFile(absoluteSource);
|
|
69222
69228
|
const hash = computeContentHash(content);
|
|
69223
69229
|
const hashedFilename = applyAssetNamesTemplate(
|
|
69224
69230
|
assetNames,
|
|
@@ -69226,10 +69232,10 @@ async function processAsset(assetPath, pugDir, pugFilePath, outdir, outbase, ass
|
|
|
69226
69232
|
hash,
|
|
69227
69233
|
outbase
|
|
69228
69234
|
);
|
|
69229
|
-
const absoluteOutput =
|
|
69230
|
-
const pugRelativeToOutbase =
|
|
69231
|
-
const htmlOutputPath =
|
|
69232
|
-
const htmlOutputDir =
|
|
69235
|
+
const absoluteOutput = path6.join(outdir, hashedFilename);
|
|
69236
|
+
const pugRelativeToOutbase = path6.relative(outbase, pugFilePath);
|
|
69237
|
+
const htmlOutputPath = path6.join(outdir, pugRelativeToOutbase);
|
|
69238
|
+
const htmlOutputDir = path6.dirname(htmlOutputPath);
|
|
69233
69239
|
const htmlPath = computeHtmlAssetPath({
|
|
69234
69240
|
absoluteOutput,
|
|
69235
69241
|
hashedFilename,
|
|
@@ -69254,13 +69260,13 @@ async function processPackageAsset(absoluteSource, packageSpecifier, pugFilePath
|
|
|
69254
69260
|
if (processedAssets.has(absoluteSource)) {
|
|
69255
69261
|
return processedAssets.get(absoluteSource);
|
|
69256
69262
|
}
|
|
69257
|
-
if (!
|
|
69263
|
+
if (!fs7.existsSync(absoluteSource)) {
|
|
69258
69264
|
return null;
|
|
69259
69265
|
}
|
|
69260
69266
|
try {
|
|
69261
|
-
const content = await
|
|
69267
|
+
const content = await fs7.promises.readFile(absoluteSource);
|
|
69262
69268
|
const hash = computeContentHash(content);
|
|
69263
|
-
const filename =
|
|
69269
|
+
const filename = path6.basename(packageSpecifier);
|
|
69264
69270
|
const packageAssetNames = assetNames.replace(/\[dir\]\/?/g, "");
|
|
69265
69271
|
const hashedFilename = applyAssetNamesTemplate(
|
|
69266
69272
|
packageAssetNames,
|
|
@@ -69269,10 +69275,10 @@ async function processPackageAsset(absoluteSource, packageSpecifier, pugFilePath
|
|
|
69269
69275
|
""
|
|
69270
69276
|
// No base dir for package assets
|
|
69271
69277
|
);
|
|
69272
|
-
const absoluteOutput =
|
|
69273
|
-
const pugRelativeToOutbase =
|
|
69274
|
-
const htmlOutputPath =
|
|
69275
|
-
const htmlOutputDir =
|
|
69278
|
+
const absoluteOutput = path6.join(outdir, hashedFilename);
|
|
69279
|
+
const pugRelativeToOutbase = path6.relative(outbase, pugFilePath);
|
|
69280
|
+
const htmlOutputPath = path6.join(outdir, pugRelativeToOutbase);
|
|
69281
|
+
const htmlOutputDir = path6.dirname(htmlOutputPath);
|
|
69276
69282
|
const htmlPath = computeHtmlAssetPath({
|
|
69277
69283
|
absoluteOutput,
|
|
69278
69284
|
hashedFilename,
|
|
@@ -69298,9 +69304,9 @@ async function copyAssets(assets) {
|
|
|
69298
69304
|
for (const asset of assets) {
|
|
69299
69305
|
if (written.has(asset.absoluteOutput)) continue;
|
|
69300
69306
|
written.add(asset.absoluteOutput);
|
|
69301
|
-
const outputDir =
|
|
69302
|
-
await
|
|
69303
|
-
await
|
|
69307
|
+
const outputDir = path6.dirname(asset.absoluteOutput);
|
|
69308
|
+
await fs7.promises.mkdir(outputDir, { recursive: true });
|
|
69309
|
+
await fs7.promises.copyFile(asset.absoluteSource, asset.absoluteOutput);
|
|
69304
69310
|
}
|
|
69305
69311
|
}
|
|
69306
69312
|
var filters = {
|
|
@@ -69347,7 +69353,7 @@ function extractStaticString(val) {
|
|
|
69347
69353
|
return null;
|
|
69348
69354
|
}
|
|
69349
69355
|
function createRebaseAssetsPlugin(entryFilePath) {
|
|
69350
|
-
const entryDir =
|
|
69356
|
+
const entryDir = path6.dirname(entryFilePath);
|
|
69351
69357
|
return {
|
|
69352
69358
|
preCodeGen(ast) {
|
|
69353
69359
|
const pending = [...ast?.nodes || []];
|
|
@@ -69367,7 +69373,7 @@ function createRebaseAssetsPlugin(entryFilePath) {
|
|
|
69367
69373
|
if (!linkingAttrs.includes(attr.name)) continue;
|
|
69368
69374
|
const sourceFile = attr.filename || node.filename;
|
|
69369
69375
|
if (!sourceFile) continue;
|
|
69370
|
-
const sourceDir =
|
|
69376
|
+
const sourceDir = path6.dirname(sourceFile);
|
|
69371
69377
|
if (sourceDir === entryDir) continue;
|
|
69372
69378
|
const extracted = extractStaticString(attr.val);
|
|
69373
69379
|
if (!extracted) continue;
|
|
@@ -69383,16 +69389,16 @@ function createRebaseAssetsPlugin(entryFilePath) {
|
|
|
69383
69389
|
const trimmedPart = part.trim();
|
|
69384
69390
|
const [assetPath, ...descriptors] = trimmedPart.split(/\s+/);
|
|
69385
69391
|
if (assetPath && isRelativeAssetPath(assetPath) && !assetPath.startsWith("/") && !isPackageReference(assetPath) && !isBuildReference(assetPath) && !isCopyReference(assetPath)) {
|
|
69386
|
-
const absPath =
|
|
69387
|
-
const rebased =
|
|
69392
|
+
const absPath = path6.resolve(sourceDir, assetPath);
|
|
69393
|
+
const rebased = path6.relative(entryDir, absPath).split(path6.sep).join("/");
|
|
69388
69394
|
return [rebased, ...descriptors].filter(Boolean).join(" ");
|
|
69389
69395
|
}
|
|
69390
69396
|
return trimmedPart;
|
|
69391
69397
|
});
|
|
69392
69398
|
attr.val = quote + rebasedParts.join(", ") + quote;
|
|
69393
69399
|
} else {
|
|
69394
|
-
const absolutePath =
|
|
69395
|
-
const rebasedPath =
|
|
69400
|
+
const absolutePath = path6.resolve(sourceDir, value);
|
|
69401
|
+
const rebasedPath = path6.relative(entryDir, absolutePath).split(path6.sep).join("/");
|
|
69396
69402
|
attr.val = quote + rebasedPath + quote;
|
|
69397
69403
|
}
|
|
69398
69404
|
}
|
|
@@ -69439,7 +69445,7 @@ async function loadAsText2(_filepath) {
|
|
|
69439
69445
|
};
|
|
69440
69446
|
}
|
|
69441
69447
|
async function loadAsJS2(filepath, options2) {
|
|
69442
|
-
const fileData = await
|
|
69448
|
+
const fileData = await fs7.promises.readFile(filepath, "utf8");
|
|
69443
69449
|
const contents = "export default " + import_pug.default.compileClient(fileData, {
|
|
69444
69450
|
name: "render",
|
|
69445
69451
|
filename: filepath,
|
|
@@ -69452,7 +69458,7 @@ async function loadAsJS2(filepath, options2) {
|
|
|
69452
69458
|
};
|
|
69453
69459
|
}
|
|
69454
69460
|
async function loadAsHtml(filepath, options2) {
|
|
69455
|
-
const fileData = await
|
|
69461
|
+
const fileData = await fs7.promises.readFile(filepath, "utf8");
|
|
69456
69462
|
const contents = import_pug.default.render(fileData, {
|
|
69457
69463
|
name: "render",
|
|
69458
69464
|
filename: filepath,
|
|
@@ -69471,7 +69477,7 @@ async function loadAsHtml(filepath, options2) {
|
|
|
69471
69477
|
};
|
|
69472
69478
|
}
|
|
69473
69479
|
async function loadAsEntrypoint(filepath, options2, webRoot) {
|
|
69474
|
-
const fileData = await
|
|
69480
|
+
const fileData = await fs7.promises.readFile(filepath, "utf8");
|
|
69475
69481
|
const collectedReferences = [];
|
|
69476
69482
|
let contents = import_pug.default.render(fileData, {
|
|
69477
69483
|
filename: filepath,
|
|
@@ -69522,7 +69528,7 @@ async function loadAsEntrypoint(filepath, options2, webRoot) {
|
|
|
69522
69528
|
};
|
|
69523
69529
|
}
|
|
69524
69530
|
async function loadAsFile(filepath, options2) {
|
|
69525
|
-
const fileData = await
|
|
69531
|
+
const fileData = await fs7.promises.readFile(filepath, "utf8");
|
|
69526
69532
|
const contents = import_pug.default.render(fileData, {
|
|
69527
69533
|
name: "render",
|
|
69528
69534
|
filename: filepath,
|
|
@@ -69545,11 +69551,11 @@ function createLoadPugPlugin(opts) {
|
|
|
69545
69551
|
build2.onResolve(
|
|
69546
69552
|
{ filter: filter2 },
|
|
69547
69553
|
async (args) => {
|
|
69548
|
-
const resolvedPath =
|
|
69549
|
-
if (
|
|
69554
|
+
const resolvedPath = path6.resolve(args.resolveDir, args.path);
|
|
69555
|
+
if (fs7.existsSync(resolvedPath)) {
|
|
69550
69556
|
return {
|
|
69551
69557
|
sideEffects: false,
|
|
69552
|
-
path:
|
|
69558
|
+
path: path6.resolve(args.resolveDir, args.path),
|
|
69553
69559
|
pluginData: Object.assign({}, args.pluginData, {
|
|
69554
69560
|
[name2]: {
|
|
69555
69561
|
entrypoint: args.kind === "entry-point"
|
|
@@ -69604,8 +69610,8 @@ function createLoadPugPlugin(opts) {
|
|
|
69604
69610
|
}
|
|
69605
69611
|
|
|
69606
69612
|
// pnp:/builds/normed/bundle/packages/bundle/src/esbuild-plugins/load_ts_js.ts
|
|
69607
|
-
import
|
|
69608
|
-
import
|
|
69613
|
+
import fs8 from "fs";
|
|
69614
|
+
import path7 from "path";
|
|
69609
69615
|
function toLoader(v) {
|
|
69610
69616
|
switch (v) {
|
|
69611
69617
|
case "mjs":
|
|
@@ -69650,14 +69656,14 @@ var plugin2 = (options2) => {
|
|
|
69650
69656
|
async ({
|
|
69651
69657
|
path: filepath
|
|
69652
69658
|
}) => {
|
|
69653
|
-
let originalContents = await
|
|
69654
|
-
const relFilepath =
|
|
69655
|
-
const loader = toLoader(
|
|
69659
|
+
let originalContents = await fs8.promises.readFile(filepath, "utf8");
|
|
69660
|
+
const relFilepath = path7.relative(basedir, filepath);
|
|
69661
|
+
const loader = toLoader(path7.extname(filepath).substring(1));
|
|
69656
69662
|
if (loader === null) {
|
|
69657
69663
|
throw new Error(`Internal Error: loader and filter do not match.`);
|
|
69658
69664
|
}
|
|
69659
|
-
const dirname =
|
|
69660
|
-
const relDirname =
|
|
69665
|
+
const dirname = path7.dirname(filepath);
|
|
69666
|
+
const relDirname = path7.dirname(relFilepath);
|
|
69661
69667
|
const newContents = originalContents.replace(/__(sourc)e_dirname/g, quoteString(dirname)).replace(/__(sourc)e_filename/g, quoteString(filepath)).replace(/__(sourc)e_relative_dirname/g, quoteString(relDirname)).replace(/__(sourc)e_relative_filename/g, quoteString(relFilepath));
|
|
69662
69668
|
return {
|
|
69663
69669
|
contents: newContents,
|
|
@@ -69683,11 +69689,11 @@ function createCssExternalUrlsPlugin(patterns) {
|
|
|
69683
69689
|
name: name3,
|
|
69684
69690
|
setup(build2) {
|
|
69685
69691
|
build2.onResolve({ filter: /.*/ }, (args) => {
|
|
69686
|
-
const
|
|
69692
|
+
const path14 = args.path;
|
|
69687
69693
|
for (const regex of regexPatterns) {
|
|
69688
|
-
if (regex.test(
|
|
69694
|
+
if (regex.test(path14)) {
|
|
69689
69695
|
return {
|
|
69690
|
-
path:
|
|
69696
|
+
path: path14,
|
|
69691
69697
|
external: true
|
|
69692
69698
|
};
|
|
69693
69699
|
}
|
|
@@ -69699,20 +69705,8 @@ function createCssExternalUrlsPlugin(patterns) {
|
|
|
69699
69705
|
}
|
|
69700
69706
|
|
|
69701
69707
|
// pnp:/builds/normed/bundle/packages/bundle/src/esbuild-plugins/css_url_resolver.ts
|
|
69702
|
-
import
|
|
69703
|
-
import
|
|
69704
|
-
function isRelativeAssetPath2(assetPath) {
|
|
69705
|
-
if (!assetPath) return false;
|
|
69706
|
-
if (assetPath.startsWith("#")) return false;
|
|
69707
|
-
if (assetPath.startsWith("//")) return false;
|
|
69708
|
-
if (assetPath.startsWith("/")) return false;
|
|
69709
|
-
try {
|
|
69710
|
-
new URL(assetPath);
|
|
69711
|
-
return false;
|
|
69712
|
-
} catch {
|
|
69713
|
-
return true;
|
|
69714
|
-
}
|
|
69715
|
-
}
|
|
69708
|
+
import path8 from "path";
|
|
69709
|
+
import fs9 from "fs";
|
|
69716
69710
|
function createCssUrlResolverPlugin() {
|
|
69717
69711
|
const name3 = "css-url-resolver";
|
|
69718
69712
|
return {
|
|
@@ -69723,15 +69717,18 @@ function createCssUrlResolverPlugin() {
|
|
|
69723
69717
|
return void 0;
|
|
69724
69718
|
}
|
|
69725
69719
|
const urlPath = args.path;
|
|
69726
|
-
if (
|
|
69720
|
+
if (urlPath.startsWith("/")) {
|
|
69721
|
+
return { path: urlPath, external: true };
|
|
69722
|
+
}
|
|
69723
|
+
if (!isRelativeAssetPath(urlPath)) {
|
|
69727
69724
|
return {
|
|
69728
69725
|
path: urlPath,
|
|
69729
69726
|
external: true
|
|
69730
69727
|
};
|
|
69731
69728
|
}
|
|
69732
69729
|
if (args.resolveDir) {
|
|
69733
|
-
const resolvedPath =
|
|
69734
|
-
if (
|
|
69730
|
+
const resolvedPath = path8.resolve(args.resolveDir, urlPath);
|
|
69731
|
+
if (fs9.existsSync(resolvedPath)) {
|
|
69735
69732
|
return {
|
|
69736
69733
|
path: resolvedPath,
|
|
69737
69734
|
namespace: "file"
|
|
@@ -69750,8 +69747,8 @@ function createCssUrlResolverPlugin() {
|
|
|
69750
69747
|
// pnp:/builds/normed/bundle/packages/bundle/src/builders/esbuilder.ts
|
|
69751
69748
|
var import_esbuild_plugin_pnp = __toESM(require_lib15());
|
|
69752
69749
|
import * as ts from "typescript";
|
|
69753
|
-
import
|
|
69754
|
-
import
|
|
69750
|
+
import path9 from "path";
|
|
69751
|
+
import fs10 from "fs";
|
|
69755
69752
|
if (process.env["NO_COLOR"] === void 0) {
|
|
69756
69753
|
import_chalk3.default.level = 3;
|
|
69757
69754
|
}
|
|
@@ -69760,8 +69757,8 @@ function rewritePugReferencesInHtml(html, pugReferences, pugToOutputPath, htmlOu
|
|
|
69760
69757
|
for (const ref of pugReferences) {
|
|
69761
69758
|
const outputPath = pugToOutputPath.get(ref.absolutePath);
|
|
69762
69759
|
if (outputPath) {
|
|
69763
|
-
const absoluteOutputPath =
|
|
69764
|
-
const relativePath =
|
|
69760
|
+
const absoluteOutputPath = path9.join(outdir, outputPath);
|
|
69761
|
+
const relativePath = path9.relative(htmlOutputDir, absoluteOutputPath);
|
|
69765
69762
|
result = result.split(ref.originalHref).join(relativePath);
|
|
69766
69763
|
}
|
|
69767
69764
|
}
|
|
@@ -69772,8 +69769,8 @@ function rewriteLessReferencesInHtml(html, lessReferences, lessToOutputPath, htm
|
|
|
69772
69769
|
for (const ref of lessReferences) {
|
|
69773
69770
|
const outputPath = lessToOutputPath.get(ref.absolutePath);
|
|
69774
69771
|
if (outputPath) {
|
|
69775
|
-
const absoluteOutputPath =
|
|
69776
|
-
const relativePath =
|
|
69772
|
+
const absoluteOutputPath = path9.join(outdir, outputPath);
|
|
69773
|
+
const relativePath = path9.relative(htmlOutputDir, absoluteOutputPath);
|
|
69777
69774
|
result = result.split(ref.originalHref).join(relativePath);
|
|
69778
69775
|
}
|
|
69779
69776
|
}
|
|
@@ -69784,8 +69781,8 @@ function rewritePackageCssReferencesInHtml(html, packageCssReferences, packageCs
|
|
|
69784
69781
|
for (const ref of packageCssReferences) {
|
|
69785
69782
|
const outputPath = packageCssToOutputPath.get(ref.absolutePath);
|
|
69786
69783
|
if (outputPath) {
|
|
69787
|
-
const absoluteOutputPath =
|
|
69788
|
-
const relativePath =
|
|
69784
|
+
const absoluteOutputPath = path9.join(outdir, outputPath);
|
|
69785
|
+
const relativePath = path9.relative(htmlOutputDir, absoluteOutputPath);
|
|
69789
69786
|
result = result.split(ref.originalHref).join(relativePath);
|
|
69790
69787
|
}
|
|
69791
69788
|
}
|
|
@@ -69796,8 +69793,8 @@ function rewriteScriptReferencesInHtml(html, scriptReferences, scriptToOutputPat
|
|
|
69796
69793
|
for (const ref of scriptReferences) {
|
|
69797
69794
|
const outputPath = scriptToOutputPath.get(ref.absolutePath);
|
|
69798
69795
|
if (outputPath) {
|
|
69799
|
-
const absoluteOutputPath =
|
|
69800
|
-
const relativePath =
|
|
69796
|
+
const absoluteOutputPath = path9.join(outdir, outputPath);
|
|
69797
|
+
const relativePath = path9.relative(htmlOutputDir, absoluteOutputPath);
|
|
69801
69798
|
result = result.split(ref.originalHref).join(relativePath);
|
|
69802
69799
|
}
|
|
69803
69800
|
}
|
|
@@ -69839,7 +69836,7 @@ var esbuilder = {
|
|
|
69839
69836
|
}
|
|
69840
69837
|
return ext;
|
|
69841
69838
|
}, isCssGeneratedAsset = function(filePath) {
|
|
69842
|
-
const ext =
|
|
69839
|
+
const ext = path9.extname(filePath).toLowerCase();
|
|
69843
69840
|
return cssAssetExtensions.has(ext);
|
|
69844
69841
|
};
|
|
69845
69842
|
const exampleFile = build2[0];
|
|
@@ -69961,7 +69958,7 @@ var esbuilder = {
|
|
|
69961
69958
|
}
|
|
69962
69959
|
log_default.debug(
|
|
69963
69960
|
`Got output files:`,
|
|
69964
|
-
result.outputFiles.map((f) =>
|
|
69961
|
+
result.outputFiles.map((f) => path9.relative(outdir, f.path))
|
|
69965
69962
|
);
|
|
69966
69963
|
const writers = [];
|
|
69967
69964
|
for (const file of result.outputFiles) {
|
|
@@ -69971,7 +69968,7 @@ var esbuilder = {
|
|
|
69971
69968
|
}
|
|
69972
69969
|
return c5;
|
|
69973
69970
|
};
|
|
69974
|
-
const relativeFilePath =
|
|
69971
|
+
const relativeFilePath = path9.relative(outdir, file.path);
|
|
69975
69972
|
let relativeTarget = relativeFilePath;
|
|
69976
69973
|
let content = file.contents;
|
|
69977
69974
|
let transforms = [];
|
|
@@ -70016,7 +70013,7 @@ var esbuilder = {
|
|
|
70016
70013
|
pugToOutputPath.set(sourcePath, relativeTarget);
|
|
70017
70014
|
for (const ref of pugRefs) {
|
|
70018
70015
|
if (!processedPugFiles.has(ref.absolutePath) && !pendingPugFiles.includes(ref.absolutePath)) {
|
|
70019
|
-
if (
|
|
70016
|
+
if (fs10.existsSync(ref.absolutePath)) {
|
|
70020
70017
|
pendingPugFiles.push(ref.absolutePath);
|
|
70021
70018
|
log_default.debug(
|
|
70022
70019
|
`Discovered pug reference: ${ref.originalHref} -> ${ref.absolutePath}`
|
|
@@ -70030,7 +70027,7 @@ var esbuilder = {
|
|
|
70030
70027
|
}
|
|
70031
70028
|
for (const ref of lessRefs) {
|
|
70032
70029
|
if (!processedLessFiles.has(ref.absolutePath) && !pendingLessFiles.includes(ref.absolutePath)) {
|
|
70033
|
-
if (
|
|
70030
|
+
if (fs10.existsSync(ref.absolutePath)) {
|
|
70034
70031
|
pendingLessFiles.push(ref.absolutePath);
|
|
70035
70032
|
log_default.debug(
|
|
70036
70033
|
`Discovered less reference: ${ref.originalHref} -> ${ref.absolutePath}`
|
|
@@ -70044,7 +70041,7 @@ var esbuilder = {
|
|
|
70044
70041
|
}
|
|
70045
70042
|
for (const ref of scriptRefs) {
|
|
70046
70043
|
if (!processedScriptFiles.has(ref.absolutePath) && !pendingScriptFiles.includes(ref.absolutePath)) {
|
|
70047
|
-
if (
|
|
70044
|
+
if (fs10.existsSync(ref.absolutePath)) {
|
|
70048
70045
|
pendingScriptFiles.push(ref.absolutePath);
|
|
70049
70046
|
log_default.debug(
|
|
70050
70047
|
`Discovered script reference: ${ref.originalHref} -> ${ref.absolutePath}`
|
|
@@ -70058,7 +70055,7 @@ var esbuilder = {
|
|
|
70058
70055
|
}
|
|
70059
70056
|
for (const ref of packageCssRefs) {
|
|
70060
70057
|
if (!processedPackageCssFiles.has(ref.absolutePath) && !pendingPackageCssFiles.includes(ref.absolutePath)) {
|
|
70061
|
-
if (
|
|
70058
|
+
if (fs10.existsSync(ref.absolutePath)) {
|
|
70062
70059
|
pendingPackageCssFiles.push(ref.absolutePath);
|
|
70063
70060
|
log_default.debug(
|
|
70064
70061
|
`Discovered package CSS reference: ${ref.originalHref} -> ${ref.absolutePath}`
|
|
@@ -70073,7 +70070,7 @@ var esbuilder = {
|
|
|
70073
70070
|
pugHtmlOutputs.set(sourcePath, {
|
|
70074
70071
|
content: file.text,
|
|
70075
70072
|
sourcePath,
|
|
70076
|
-
outputPath:
|
|
70073
|
+
outputPath: path9.join(outdir, relativeTarget),
|
|
70077
70074
|
pugReferences: pugRefs,
|
|
70078
70075
|
lessReferences: lessRefs,
|
|
70079
70076
|
scriptReferences: scriptRefs,
|
|
@@ -70087,7 +70084,7 @@ var esbuilder = {
|
|
|
70087
70084
|
);
|
|
70088
70085
|
}
|
|
70089
70086
|
const promise = fileWriter.writeFile(
|
|
70090
|
-
|
|
70087
|
+
path9.join(outdir, relativeTarget),
|
|
70091
70088
|
applyTransforms(content, transforms),
|
|
70092
70089
|
{ encoding: "utf-8" }
|
|
70093
70090
|
);
|
|
@@ -70146,7 +70143,7 @@ var esbuilder = {
|
|
|
70146
70143
|
);
|
|
70147
70144
|
const discoveredOutputFilesMap = /* @__PURE__ */ new Map();
|
|
70148
70145
|
for (const pugSourcePath of newEntryPoints) {
|
|
70149
|
-
const relativeSource =
|
|
70146
|
+
const relativeSource = path9.relative(indir, pugSourcePath);
|
|
70150
70147
|
discoveredOutputFilesMap.set(relativeSource, {
|
|
70151
70148
|
entrypoint: void 0,
|
|
70152
70149
|
sourcePath: pugSourcePath,
|
|
@@ -70187,11 +70184,11 @@ var esbuilder = {
|
|
|
70187
70184
|
};
|
|
70188
70185
|
const lessResult = await esbuild.build(lessConfig);
|
|
70189
70186
|
for (const file of lessResult.outputFiles) {
|
|
70190
|
-
const relativeFilePath =
|
|
70187
|
+
const relativeFilePath = path9.relative(outdir, file.path);
|
|
70191
70188
|
if (relativeFilePath.endsWith(".css")) {
|
|
70192
70189
|
lessToOutputPath.set(lessSourcePath, relativeFilePath);
|
|
70193
70190
|
log_default.debug(
|
|
70194
|
-
`Built less file: ${
|
|
70191
|
+
`Built less file: ${path9.relative(indir, lessSourcePath)} -> ${relativeFilePath}`
|
|
70195
70192
|
);
|
|
70196
70193
|
}
|
|
70197
70194
|
await fileWriter.writeFile(file.path, file.contents, {
|
|
@@ -70225,11 +70222,11 @@ var esbuilder = {
|
|
|
70225
70222
|
};
|
|
70226
70223
|
const scriptResult = await esbuild.build(scriptConfig);
|
|
70227
70224
|
for (const file of scriptResult.outputFiles) {
|
|
70228
|
-
const relativeFilePath =
|
|
70225
|
+
const relativeFilePath = path9.relative(outdir, file.path);
|
|
70229
70226
|
if (relativeFilePath.endsWith(".js")) {
|
|
70230
70227
|
scriptToOutputPath.set(scriptSourcePath, relativeFilePath);
|
|
70231
70228
|
log_default.debug(
|
|
70232
|
-
`Built script file: ${
|
|
70229
|
+
`Built script file: ${path9.relative(indir, scriptSourcePath)} -> ${relativeFilePath}`
|
|
70233
70230
|
);
|
|
70234
70231
|
}
|
|
70235
70232
|
await fileWriter.writeFile(file.path, file.contents, {
|
|
@@ -70258,7 +70255,7 @@ var esbuilder = {
|
|
|
70258
70255
|
};
|
|
70259
70256
|
const cssResult = await esbuild.build(cssConfig);
|
|
70260
70257
|
for (const file of cssResult.outputFiles) {
|
|
70261
|
-
const relativeFilePath =
|
|
70258
|
+
const relativeFilePath = path9.relative(outdir, file.path);
|
|
70262
70259
|
if (relativeFilePath.endsWith(".css")) {
|
|
70263
70260
|
packageCssToOutputPath.set(cssSourcePath, relativeFilePath);
|
|
70264
70261
|
log_default.debug(
|
|
@@ -70277,7 +70274,7 @@ var esbuilder = {
|
|
|
70277
70274
|
const htmlWriters = [];
|
|
70278
70275
|
for (const [_sourcePath, output] of pugHtmlOutputs.entries()) {
|
|
70279
70276
|
let html = output.content;
|
|
70280
|
-
const htmlOutputDir =
|
|
70277
|
+
const htmlOutputDir = path9.dirname(output.outputPath);
|
|
70281
70278
|
if (output.pugReferences.length > 0) {
|
|
70282
70279
|
html = rewritePugReferencesInHtml(
|
|
70283
70280
|
html,
|
|
@@ -70446,12 +70443,12 @@ function getBuilder(builders2, ext, modifiers) {
|
|
|
70446
70443
|
}
|
|
70447
70444
|
|
|
70448
70445
|
// pnp:/builds/normed/bundle/packages/bundle/src/entrypoints.ts
|
|
70449
|
-
import
|
|
70446
|
+
import path13 from "path";
|
|
70450
70447
|
|
|
70451
70448
|
// pnp:/builds/normed/bundle/.yarn/cache/filesystem-traverse-npm-4.1.1-bdaf857c90-21631c80e3.zip/node_modules/filesystem-traverse/dist/esm/index.mjs
|
|
70452
|
-
import
|
|
70449
|
+
import path10 from "path";
|
|
70453
70450
|
import systemFS from "fs";
|
|
70454
|
-
var SEP =
|
|
70451
|
+
var SEP = path10.sep;
|
|
70455
70452
|
var READDIR_OPTS = {
|
|
70456
70453
|
encoding: "utf8",
|
|
70457
70454
|
withFileTypes: true
|
|
@@ -70554,7 +70551,7 @@ function resolveArgs(args) {
|
|
|
70554
70551
|
return { dir: "", options: first ?? {} };
|
|
70555
70552
|
}
|
|
70556
70553
|
function buildContext(dir, options2) {
|
|
70557
|
-
const basedir =
|
|
70554
|
+
const basedir = path10.isAbsolute(dir || "") ? dir || "" : path10.resolve(path10.join(process.cwd(), dir || ""));
|
|
70558
70555
|
const include = normalizeFilterSpec(options2.include, "include");
|
|
70559
70556
|
const ignore = normalizeFilterSpec(options2.ignore, "ignore");
|
|
70560
70557
|
const predicates = {
|
|
@@ -70572,10 +70569,10 @@ function buildContext(dir, options2) {
|
|
|
70572
70569
|
const shouldRecurse = (name3) => {
|
|
70573
70570
|
return predicates.directory(name3);
|
|
70574
70571
|
};
|
|
70575
|
-
const
|
|
70572
|
+
const fs13 = options2.fs || systemFS;
|
|
70576
70573
|
const followSymlinks = options2.followSymlinks !== false;
|
|
70577
70574
|
return {
|
|
70578
|
-
fs:
|
|
70575
|
+
fs: fs13,
|
|
70579
70576
|
basedir,
|
|
70580
70577
|
shouldInclude,
|
|
70581
70578
|
shouldRecurse,
|
|
@@ -70584,10 +70581,10 @@ function buildContext(dir, options2) {
|
|
|
70584
70581
|
};
|
|
70585
70582
|
}
|
|
70586
70583
|
async function search(match, context, directory, state = { complete: false }, shortCircuit = false) {
|
|
70587
|
-
const { fs:
|
|
70584
|
+
const { fs: fs13, basedir, shouldInclude, shouldRecurse, followSymlinks } = context;
|
|
70588
70585
|
if (state.complete) return;
|
|
70589
70586
|
const fullDir = directory ? basedir + SEP + directory : basedir;
|
|
70590
|
-
const entries = await
|
|
70587
|
+
const entries = await fs13.promises.readdir(fullDir, READDIR_OPTS);
|
|
70591
70588
|
const work = [];
|
|
70592
70589
|
for (let i = 0; i < entries.length; i++) {
|
|
70593
70590
|
if (state.complete) break;
|
|
@@ -70597,14 +70594,14 @@ async function search(match, context, directory, state = { complete: false }, sh
|
|
|
70597
70594
|
const entryFullPath = fullDir + SEP + entry.name;
|
|
70598
70595
|
let stat;
|
|
70599
70596
|
try {
|
|
70600
|
-
stat = await
|
|
70597
|
+
stat = await fs13.promises.stat(entryFullPath);
|
|
70601
70598
|
} catch {
|
|
70602
70599
|
continue;
|
|
70603
70600
|
}
|
|
70604
70601
|
const resolvedType = getStatType(stat);
|
|
70605
70602
|
if (!resolvedType) continue;
|
|
70606
70603
|
if (resolvedType === "directory") {
|
|
70607
|
-
const realPath = await
|
|
70604
|
+
const realPath = await fs13.promises.realpath(entryFullPath);
|
|
70608
70605
|
if (context.visitedRealPaths.has(realPath)) continue;
|
|
70609
70606
|
context.visitedRealPaths.add(realPath);
|
|
70610
70607
|
if (shouldRecurse(entry.name)) {
|
|
@@ -70812,7 +70809,7 @@ function getOutExt(builder, infile) {
|
|
|
70812
70809
|
}
|
|
70813
70810
|
|
|
70814
70811
|
// pnp:/builds/normed/bundle/packages/bundle/src/File.ts
|
|
70815
|
-
import
|
|
70812
|
+
import path11 from "path";
|
|
70816
70813
|
var File = class {
|
|
70817
70814
|
basedir;
|
|
70818
70815
|
relative;
|
|
@@ -70827,13 +70824,13 @@ var File = class {
|
|
|
70827
70824
|
*/
|
|
70828
70825
|
constructor(opts) {
|
|
70829
70826
|
this.basedir = opts.basedir;
|
|
70830
|
-
this.relative =
|
|
70827
|
+
this.relative = path11.relative(
|
|
70831
70828
|
this.basedir,
|
|
70832
|
-
|
|
70829
|
+
path11.resolve(this.basedir, opts.path)
|
|
70833
70830
|
);
|
|
70834
|
-
this.absolute =
|
|
70835
|
-
this.dirname =
|
|
70836
|
-
const conventional_basename =
|
|
70831
|
+
this.absolute = path11.join(this.basedir, this.relative);
|
|
70832
|
+
this.dirname = path11.dirname(this.relative);
|
|
70833
|
+
const conventional_basename = path11.basename(this.relative);
|
|
70837
70834
|
const parts = conventional_basename.split(".");
|
|
70838
70835
|
this.extension = parts.pop() ?? __throw__(new Error(`No extension found for file "${opts.path}"`));
|
|
70839
70836
|
const file_start = parts.shift() ?? __throw__(new Error(`No basename found for file "${opts.path}"`));
|
|
@@ -70853,7 +70850,7 @@ var File = class {
|
|
|
70853
70850
|
}
|
|
70854
70851
|
}
|
|
70855
70852
|
this.basename = [file_start, ...parts].join(".");
|
|
70856
|
-
this.bare =
|
|
70853
|
+
this.bare = path11.join(this.dirname, this.basename);
|
|
70857
70854
|
}
|
|
70858
70855
|
};
|
|
70859
70856
|
|
|
@@ -71041,8 +71038,8 @@ var SetMap = class _SetMap {
|
|
|
71041
71038
|
};
|
|
71042
71039
|
|
|
71043
71040
|
// pnp:/builds/normed/bundle/packages/bundle/src/EntryConfigInstance.ts
|
|
71044
|
-
import
|
|
71045
|
-
import
|
|
71041
|
+
import fs11 from "fs";
|
|
71042
|
+
import path12 from "path";
|
|
71046
71043
|
var namedEntryConfigs = /* @__PURE__ */ new Map();
|
|
71047
71044
|
var entryConfigEquality = new SetMap();
|
|
71048
71045
|
var EntryConfigInstance = class _EntryConfigInstance {
|
|
@@ -71224,24 +71221,24 @@ var EntryConfigInstance = class _EntryConfigInstance {
|
|
|
71224
71221
|
}
|
|
71225
71222
|
};
|
|
71226
71223
|
async function readEsbuild(filepath, relativeDirectory) {
|
|
71227
|
-
const aboslutePath =
|
|
71224
|
+
const aboslutePath = path12.resolve(
|
|
71228
71225
|
relativeDirectory ?? process.cwd(),
|
|
71229
71226
|
filepath
|
|
71230
71227
|
);
|
|
71231
|
-
const data = await
|
|
71228
|
+
const data = await fs11.promises.readFile(aboslutePath, "utf-8");
|
|
71232
71229
|
return JSON.parse(data);
|
|
71233
71230
|
}
|
|
71234
71231
|
async function readTsconfig(filepath, relativeDirectory) {
|
|
71235
|
-
const aboslutePath =
|
|
71232
|
+
const aboslutePath = path12.resolve(
|
|
71236
71233
|
relativeDirectory ?? process.cwd(),
|
|
71237
71234
|
filepath
|
|
71238
71235
|
);
|
|
71239
|
-
const data = await
|
|
71236
|
+
const data = await fs11.promises.readFile(aboslutePath, "utf-8");
|
|
71240
71237
|
return JSON.parse(data);
|
|
71241
71238
|
}
|
|
71242
71239
|
|
|
71243
71240
|
// pnp:/builds/normed/bundle/packages/bundle/src/entrypoints.ts
|
|
71244
|
-
import
|
|
71241
|
+
import fs12 from "fs";
|
|
71245
71242
|
async function pathToEntrypoint(buildConfig, file, source) {
|
|
71246
71243
|
const infile = new File({
|
|
71247
71244
|
supportedModifiers: buildConfig.modifiers,
|
|
@@ -71249,13 +71246,13 @@ async function pathToEntrypoint(buildConfig, file, source) {
|
|
|
71249
71246
|
basedir: buildConfig.dir.in,
|
|
71250
71247
|
parseModifiers: true
|
|
71251
71248
|
});
|
|
71252
|
-
const stats = await
|
|
71249
|
+
const stats = await fs12.promises.stat(infile.absolute);
|
|
71253
71250
|
if (stats.isDirectory()) {
|
|
71254
71251
|
(await Promise.all(
|
|
71255
71252
|
await index_default.map(
|
|
71256
71253
|
(file2) => pathToEntrypoint(
|
|
71257
71254
|
buildConfig,
|
|
71258
|
-
|
|
71255
|
+
path13.join(infile.relative, file2),
|
|
71259
71256
|
source
|
|
71260
71257
|
),
|
|
71261
71258
|
infile.relative
|