@dan-uni/dan-any-plugin-detaolu 1.3.9 → 1.4.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/dist/index.js CHANGED
@@ -40,12 +40,12 @@ __webpack_require__.m = __webpack_modules__;
40
40
  __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
41
41
  })();
42
42
  __webpack_require__.add({
43
- "../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/copy/copy-sync.js" (module, __unused_rspack_exports, __webpack_require__) {
43
+ "../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/copy/copy-sync.js" (module, __unused_rspack_exports, __webpack_require__) {
44
44
  const fs = __webpack_require__("../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js");
45
45
  const path = __webpack_require__("path");
46
- const mkdirsSync = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/index.js").mkdirsSync;
47
- const utimesMillisSync = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/utimes.js").utimesMillisSync;
48
- const stat = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/stat.js");
46
+ const mkdirsSync = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/mkdirs/index.js").mkdirsSync;
47
+ const utimesMillisSync = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/util/utimes.js").utimesMillisSync;
48
+ const stat = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/util/stat.js");
49
49
  function copySync(src, dest, opts) {
50
50
  if ('function' == typeof opts) opts = {
51
51
  filter: opts
@@ -155,14 +155,14 @@ __webpack_require__.add({
155
155
  }
156
156
  module.exports = copySync;
157
157
  },
158
- "../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/copy/copy.js" (module, __unused_rspack_exports, __webpack_require__) {
159
- const fs = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/fs/index.js");
158
+ "../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/copy/copy.js" (module, __unused_rspack_exports, __webpack_require__) {
159
+ const fs = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/fs/index.js");
160
160
  const path = __webpack_require__("path");
161
- const { mkdirs } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/index.js");
162
- const { pathExists } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/path-exists/index.js");
163
- const { utimesMillis } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/utimes.js");
164
- const stat = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/stat.js");
165
- const { asyncIteratorConcurrentProcess } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/async.js");
161
+ const { mkdirs } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/mkdirs/index.js");
162
+ const { pathExists } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/path-exists/index.js");
163
+ const { utimesMillis } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/util/utimes.js");
164
+ const stat = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/util/stat.js");
165
+ const { asyncIteratorConcurrentProcess } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/util/async.js");
166
166
  async function copy(src, dest, opts = {}) {
167
167
  if ('function' == typeof opts) opts = {
168
168
  filter: opts
@@ -250,19 +250,19 @@ __webpack_require__.add({
250
250
  }
251
251
  module.exports = copy;
252
252
  },
253
- "../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/copy/index.js" (module, __unused_rspack_exports, __webpack_require__) {
253
+ "../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/copy/index.js" (module, __unused_rspack_exports, __webpack_require__) {
254
254
  const u = __webpack_require__("../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js").fromPromise;
255
255
  module.exports = {
256
- copy: u(__webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/copy/copy.js")),
257
- copySync: __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/copy/copy-sync.js")
256
+ copy: u(__webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/copy/copy.js")),
257
+ copySync: __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/copy/copy-sync.js")
258
258
  };
259
259
  },
260
- "../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/empty/index.js" (module, __unused_rspack_exports, __webpack_require__) {
260
+ "../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/empty/index.js" (module, __unused_rspack_exports, __webpack_require__) {
261
261
  const u = __webpack_require__("../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js").fromPromise;
262
- const fs = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/fs/index.js");
262
+ const fs = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/fs/index.js");
263
263
  const path = __webpack_require__("path");
264
- const mkdir = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/index.js");
265
- const remove = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/remove/index.js");
264
+ const mkdir = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/mkdirs/index.js");
265
+ const remove = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/remove/index.js");
266
266
  const emptyDir = u(async function(dir) {
267
267
  let items;
268
268
  try {
@@ -291,11 +291,11 @@ __webpack_require__.add({
291
291
  emptydir: emptyDir
292
292
  };
293
293
  },
294
- "../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/file.js" (module, __unused_rspack_exports, __webpack_require__) {
294
+ "../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/ensure/file.js" (module, __unused_rspack_exports, __webpack_require__) {
295
295
  const u = __webpack_require__("../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js").fromPromise;
296
296
  const path = __webpack_require__("path");
297
- const fs = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/fs/index.js");
298
- const mkdir = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/index.js");
297
+ const fs = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/fs/index.js");
298
+ const mkdir = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/mkdirs/index.js");
299
299
  async function createFile(file) {
300
300
  let stats;
301
301
  try {
@@ -337,10 +337,10 @@ __webpack_require__.add({
337
337
  createFileSync
338
338
  };
339
339
  },
340
- "../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/index.js" (module, __unused_rspack_exports, __webpack_require__) {
341
- const { createFile, createFileSync } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/file.js");
342
- const { createLink, createLinkSync } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/link.js");
343
- const { createSymlink, createSymlinkSync } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/symlink.js");
340
+ "../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/ensure/index.js" (module, __unused_rspack_exports, __webpack_require__) {
341
+ const { createFile, createFileSync } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/ensure/file.js");
342
+ const { createLink, createLinkSync } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/ensure/link.js");
343
+ const { createSymlink, createSymlinkSync } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/ensure/symlink.js");
344
344
  module.exports = {
345
345
  createFile,
346
346
  createFileSync,
@@ -356,21 +356,25 @@ __webpack_require__.add({
356
356
  ensureSymlinkSync: createSymlinkSync
357
357
  };
358
358
  },
359
- "../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/link.js" (module, __unused_rspack_exports, __webpack_require__) {
359
+ "../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/ensure/link.js" (module, __unused_rspack_exports, __webpack_require__) {
360
360
  const u = __webpack_require__("../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js").fromPromise;
361
361
  const path = __webpack_require__("path");
362
- const fs = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/fs/index.js");
363
- const mkdir = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/index.js");
364
- const { pathExists } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/path-exists/index.js");
365
- const { areIdentical } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/stat.js");
362
+ const fs = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/fs/index.js");
363
+ const mkdir = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/mkdirs/index.js");
364
+ const { pathExists } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/path-exists/index.js");
365
+ const { areIdentical } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/util/stat.js");
366
366
  async function createLink(srcpath, dstpath) {
367
367
  let dstStat;
368
368
  try {
369
- dstStat = await fs.lstat(dstpath);
369
+ dstStat = await fs.lstat(dstpath, {
370
+ bigint: true
371
+ });
370
372
  } catch {}
371
373
  let srcStat;
372
374
  try {
373
- srcStat = await fs.lstat(srcpath);
375
+ srcStat = await fs.lstat(srcpath, {
376
+ bigint: true
377
+ });
374
378
  } catch (err) {
375
379
  err.message = err.message.replace('lstat', 'ensureLink');
376
380
  throw err;
@@ -384,10 +388,14 @@ __webpack_require__.add({
384
388
  function createLinkSync(srcpath, dstpath) {
385
389
  let dstStat;
386
390
  try {
387
- dstStat = fs.lstatSync(dstpath);
391
+ dstStat = fs.lstatSync(dstpath, {
392
+ bigint: true
393
+ });
388
394
  } catch {}
389
395
  try {
390
- const srcStat = fs.lstatSync(srcpath);
396
+ const srcStat = fs.lstatSync(srcpath, {
397
+ bigint: true
398
+ });
391
399
  if (dstStat && areIdentical(srcStat, dstStat)) return;
392
400
  } catch (err) {
393
401
  err.message = err.message.replace('lstat', 'ensureLink');
@@ -404,10 +412,10 @@ __webpack_require__.add({
404
412
  createLinkSync
405
413
  };
406
414
  },
407
- "../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/symlink-paths.js" (module, __unused_rspack_exports, __webpack_require__) {
415
+ "../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/ensure/symlink-paths.js" (module, __unused_rspack_exports, __webpack_require__) {
408
416
  const path = __webpack_require__("path");
409
- const fs = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/fs/index.js");
410
- const { pathExists } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/path-exists/index.js");
417
+ const fs = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/fs/index.js");
418
+ const { pathExists } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/path-exists/index.js");
411
419
  const u = __webpack_require__("../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js").fromPromise;
412
420
  async function symlinkPaths(srcpath, dstpath) {
413
421
  if (path.isAbsolute(srcpath)) {
@@ -468,8 +476,8 @@ __webpack_require__.add({
468
476
  symlinkPathsSync
469
477
  };
470
478
  },
471
- "../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/symlink-type.js" (module, __unused_rspack_exports, __webpack_require__) {
472
- const fs = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/fs/index.js");
479
+ "../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/ensure/symlink-type.js" (module, __unused_rspack_exports, __webpack_require__) {
480
+ const fs = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/fs/index.js");
473
481
  const u = __webpack_require__("../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js").fromPromise;
474
482
  async function symlinkType(srcpath, type) {
475
483
  if (type) return type;
@@ -496,15 +504,15 @@ __webpack_require__.add({
496
504
  symlinkTypeSync
497
505
  };
498
506
  },
499
- "../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/symlink.js" (module, __unused_rspack_exports, __webpack_require__) {
507
+ "../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/ensure/symlink.js" (module, __unused_rspack_exports, __webpack_require__) {
500
508
  const u = __webpack_require__("../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js").fromPromise;
501
509
  const path = __webpack_require__("path");
502
- const fs = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/fs/index.js");
503
- const { mkdirs, mkdirsSync } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/index.js");
504
- const { symlinkPaths, symlinkPathsSync } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/symlink-paths.js");
505
- const { symlinkType, symlinkTypeSync } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/symlink-type.js");
506
- const { pathExists } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/path-exists/index.js");
507
- const { areIdentical } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/stat.js");
510
+ const fs = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/fs/index.js");
511
+ const { mkdirs, mkdirsSync } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/mkdirs/index.js");
512
+ const { symlinkPaths, symlinkPathsSync } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/ensure/symlink-paths.js");
513
+ const { symlinkType, symlinkTypeSync } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/ensure/symlink-type.js");
514
+ const { pathExists } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/path-exists/index.js");
515
+ const { areIdentical } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/util/stat.js");
508
516
  async function createSymlink(srcpath, dstpath, type) {
509
517
  let stats;
510
518
  try {
@@ -512,17 +520,25 @@ __webpack_require__.add({
512
520
  } catch {}
513
521
  if (stats && stats.isSymbolicLink()) {
514
522
  let srcStat;
515
- if (path.isAbsolute(srcpath)) srcStat = await fs.stat(srcpath);
523
+ if (path.isAbsolute(srcpath)) srcStat = await fs.stat(srcpath, {
524
+ bigint: true
525
+ });
516
526
  else {
517
527
  const dstdir = path.dirname(dstpath);
518
528
  const relativeToDst = path.join(dstdir, srcpath);
519
529
  try {
520
- srcStat = await fs.stat(relativeToDst);
530
+ srcStat = await fs.stat(relativeToDst, {
531
+ bigint: true
532
+ });
521
533
  } catch {
522
- srcStat = await fs.stat(srcpath);
534
+ srcStat = await fs.stat(srcpath, {
535
+ bigint: true
536
+ });
523
537
  }
524
538
  }
525
- const dstStat = await fs.stat(dstpath);
539
+ const dstStat = await fs.stat(dstpath, {
540
+ bigint: true
541
+ });
526
542
  if (areIdentical(srcStat, dstStat)) return;
527
543
  }
528
544
  const relative = await symlinkPaths(srcpath, dstpath);
@@ -539,17 +555,25 @@ __webpack_require__.add({
539
555
  } catch {}
540
556
  if (stats && stats.isSymbolicLink()) {
541
557
  let srcStat;
542
- if (path.isAbsolute(srcpath)) srcStat = fs.statSync(srcpath);
558
+ if (path.isAbsolute(srcpath)) srcStat = fs.statSync(srcpath, {
559
+ bigint: true
560
+ });
543
561
  else {
544
562
  const dstdir = path.dirname(dstpath);
545
563
  const relativeToDst = path.join(dstdir, srcpath);
546
564
  try {
547
- srcStat = fs.statSync(relativeToDst);
565
+ srcStat = fs.statSync(relativeToDst, {
566
+ bigint: true
567
+ });
548
568
  } catch {
549
- srcStat = fs.statSync(srcpath);
569
+ srcStat = fs.statSync(srcpath, {
570
+ bigint: true
571
+ });
550
572
  }
551
573
  }
552
- const dstStat = fs.statSync(dstpath);
574
+ const dstStat = fs.statSync(dstpath, {
575
+ bigint: true
576
+ });
553
577
  if (areIdentical(srcStat, dstStat)) return;
554
578
  }
555
579
  const relative = symlinkPathsSync(srcpath, dstpath);
@@ -566,7 +590,7 @@ __webpack_require__.add({
566
590
  createSymlinkSync
567
591
  };
568
592
  },
569
- "../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/fs/index.js" (__unused_rspack_module, exports, __webpack_require__) {
593
+ "../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/fs/index.js" (__unused_rspack_module, exports, __webpack_require__) {
570
594
  const u = __webpack_require__("../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js").fromCallback;
571
595
  const fs = __webpack_require__("../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js");
572
596
  const api = [
@@ -668,25 +692,25 @@ __webpack_require__.add({
668
692
  if ('function' == typeof fs.realpath.native) exports.realpath.native = u(fs.realpath.native);
669
693
  else process.emitWarning('fs.realpath.native is not a function. Is fs being monkey-patched?', 'Warning', 'fs-extra-WARN0003');
670
694
  },
671
- "../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/index.js" (module, __unused_rspack_exports, __webpack_require__) {
695
+ "../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/index.js" (module, __unused_rspack_exports, __webpack_require__) {
672
696
  module.exports = {
673
- ...__webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/fs/index.js"),
674
- ...__webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/copy/index.js"),
675
- ...__webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/empty/index.js"),
676
- ...__webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/index.js"),
677
- ...__webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/index.js"),
678
- ...__webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/index.js"),
679
- ...__webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/move/index.js"),
680
- ...__webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/output-file/index.js"),
681
- ...__webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/path-exists/index.js"),
682
- ...__webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/remove/index.js")
697
+ ...__webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/fs/index.js"),
698
+ ...__webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/copy/index.js"),
699
+ ...__webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/empty/index.js"),
700
+ ...__webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/ensure/index.js"),
701
+ ...__webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/json/index.js"),
702
+ ...__webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/mkdirs/index.js"),
703
+ ...__webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/move/index.js"),
704
+ ...__webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/output-file/index.js"),
705
+ ...__webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/path-exists/index.js"),
706
+ ...__webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/remove/index.js")
683
707
  };
684
708
  },
685
- "../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/index.js" (module, __unused_rspack_exports, __webpack_require__) {
709
+ "../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/json/index.js" (module, __unused_rspack_exports, __webpack_require__) {
686
710
  const u = __webpack_require__("../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js").fromPromise;
687
- const jsonFile = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/jsonfile.js");
688
- jsonFile.outputJson = u(__webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/output-json.js"));
689
- jsonFile.outputJsonSync = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/output-json-sync.js");
711
+ const jsonFile = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/json/jsonfile.js");
712
+ jsonFile.outputJson = u(__webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/json/output-json.js"));
713
+ jsonFile.outputJsonSync = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/json/output-json-sync.js");
690
714
  jsonFile.outputJSON = jsonFile.outputJson;
691
715
  jsonFile.outputJSONSync = jsonFile.outputJsonSync;
692
716
  jsonFile.writeJSON = jsonFile.writeJson;
@@ -695,7 +719,7 @@ __webpack_require__.add({
695
719
  jsonFile.readJSONSync = jsonFile.readJsonSync;
696
720
  module.exports = jsonFile;
697
721
  },
698
- "../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/jsonfile.js" (module, __unused_rspack_exports, __webpack_require__) {
722
+ "../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/json/jsonfile.js" (module, __unused_rspack_exports, __webpack_require__) {
699
723
  const jsonFile = __webpack_require__("../../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/index.js");
700
724
  module.exports = {
701
725
  readJson: jsonFile.readFile,
@@ -704,27 +728,27 @@ __webpack_require__.add({
704
728
  writeJsonSync: jsonFile.writeFileSync
705
729
  };
706
730
  },
707
- "../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/output-json-sync.js" (module, __unused_rspack_exports, __webpack_require__) {
731
+ "../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/json/output-json-sync.js" (module, __unused_rspack_exports, __webpack_require__) {
708
732
  const { stringify } = __webpack_require__("../../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/utils.js");
709
- const { outputFileSync } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/output-file/index.js");
733
+ const { outputFileSync } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/output-file/index.js");
710
734
  function outputJsonSync(file, data, options) {
711
735
  const str = stringify(data, options);
712
736
  outputFileSync(file, str, options);
713
737
  }
714
738
  module.exports = outputJsonSync;
715
739
  },
716
- "../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/output-json.js" (module, __unused_rspack_exports, __webpack_require__) {
740
+ "../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/json/output-json.js" (module, __unused_rspack_exports, __webpack_require__) {
717
741
  const { stringify } = __webpack_require__("../../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/utils.js");
718
- const { outputFile } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/output-file/index.js");
742
+ const { outputFile } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/output-file/index.js");
719
743
  async function outputJson(file, data, options = {}) {
720
744
  const str = stringify(data, options);
721
745
  await outputFile(file, str, options);
722
746
  }
723
747
  module.exports = outputJson;
724
748
  },
725
- "../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/index.js" (module, __unused_rspack_exports, __webpack_require__) {
749
+ "../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/mkdirs/index.js" (module, __unused_rspack_exports, __webpack_require__) {
726
750
  const u = __webpack_require__("../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js").fromPromise;
727
- const { makeDir: _makeDir, makeDirSync } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/make-dir.js");
751
+ const { makeDir: _makeDir, makeDirSync } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/mkdirs/make-dir.js");
728
752
  const makeDir = u(_makeDir);
729
753
  module.exports = {
730
754
  mkdirs: makeDir,
@@ -735,9 +759,9 @@ __webpack_require__.add({
735
759
  ensureDirSync: makeDirSync
736
760
  };
737
761
  },
738
- "../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/make-dir.js" (module, __unused_rspack_exports, __webpack_require__) {
739
- const fs = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/fs/index.js");
740
- const { checkPath } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/utils.js");
762
+ "../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/mkdirs/make-dir.js" (module, __unused_rspack_exports, __webpack_require__) {
763
+ const fs = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/fs/index.js");
764
+ const { checkPath } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/mkdirs/utils.js");
741
765
  const getMode = (options)=>{
742
766
  const defaults = {
743
767
  mode: 511
@@ -763,7 +787,7 @@ __webpack_require__.add({
763
787
  });
764
788
  };
765
789
  },
766
- "../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/utils.js" (module, __unused_rspack_exports, __webpack_require__) {
790
+ "../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/mkdirs/utils.js" (module, __unused_rspack_exports, __webpack_require__) {
767
791
  const path = __webpack_require__("path");
768
792
  module.exports.checkPath = function(pth) {
769
793
  if ('win32' === process.platform) {
@@ -776,20 +800,20 @@ __webpack_require__.add({
776
800
  }
777
801
  };
778
802
  },
779
- "../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/move/index.js" (module, __unused_rspack_exports, __webpack_require__) {
803
+ "../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/move/index.js" (module, __unused_rspack_exports, __webpack_require__) {
780
804
  const u = __webpack_require__("../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js").fromPromise;
781
805
  module.exports = {
782
- move: u(__webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/move/move.js")),
783
- moveSync: __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/move/move-sync.js")
806
+ move: u(__webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/move/move.js")),
807
+ moveSync: __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/move/move-sync.js")
784
808
  };
785
809
  },
786
- "../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/move/move-sync.js" (module, __unused_rspack_exports, __webpack_require__) {
810
+ "../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/move/move-sync.js" (module, __unused_rspack_exports, __webpack_require__) {
787
811
  const fs = __webpack_require__("../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js");
788
812
  const path = __webpack_require__("path");
789
- const copySync = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/copy/index.js").copySync;
790
- const removeSync = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/remove/index.js").removeSync;
791
- const mkdirpSync = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/index.js").mkdirpSync;
792
- const stat = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/stat.js");
813
+ const copySync = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/copy/index.js").copySync;
814
+ const removeSync = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/remove/index.js").removeSync;
815
+ const mkdirpSync = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/mkdirs/index.js").mkdirpSync;
816
+ const stat = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/util/stat.js");
793
817
  function moveSync(src, dest, opts) {
794
818
  opts = opts || {};
795
819
  const overwrite = opts.overwrite || opts.clobber || false;
@@ -831,14 +855,14 @@ __webpack_require__.add({
831
855
  }
832
856
  module.exports = moveSync;
833
857
  },
834
- "../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/move/move.js" (module, __unused_rspack_exports, __webpack_require__) {
835
- const fs = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/fs/index.js");
858
+ "../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/move/move.js" (module, __unused_rspack_exports, __webpack_require__) {
859
+ const fs = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/fs/index.js");
836
860
  const path = __webpack_require__("path");
837
- const { copy } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/copy/index.js");
838
- const { remove } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/remove/index.js");
839
- const { mkdirp } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/index.js");
840
- const { pathExists } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/path-exists/index.js");
841
- const stat = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/stat.js");
861
+ const { copy } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/copy/index.js");
862
+ const { remove } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/remove/index.js");
863
+ const { mkdirp } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/mkdirs/index.js");
864
+ const { pathExists } = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/path-exists/index.js");
865
+ const stat = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/util/stat.js");
842
866
  async function move(src, dest, opts = {}) {
843
867
  const overwrite = opts.overwrite || opts.clobber || false;
844
868
  const { srcStat, isChangingCase = false } = await stat.checkPaths(src, dest, 'move', opts);
@@ -871,12 +895,12 @@ __webpack_require__.add({
871
895
  }
872
896
  module.exports = move;
873
897
  },
874
- "../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/output-file/index.js" (module, __unused_rspack_exports, __webpack_require__) {
898
+ "../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/output-file/index.js" (module, __unused_rspack_exports, __webpack_require__) {
875
899
  const u = __webpack_require__("../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js").fromPromise;
876
- const fs = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/fs/index.js");
900
+ const fs = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/fs/index.js");
877
901
  const path = __webpack_require__("path");
878
- const mkdir = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/index.js");
879
- const pathExists = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/path-exists/index.js").pathExists;
902
+ const mkdir = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/mkdirs/index.js");
903
+ const pathExists = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/path-exists/index.js").pathExists;
880
904
  async function outputFile(file, data, encoding = 'utf-8') {
881
905
  const dir = path.dirname(file);
882
906
  if (!await pathExists(dir)) await mkdir.mkdirs(dir);
@@ -892,9 +916,9 @@ __webpack_require__.add({
892
916
  outputFileSync
893
917
  };
894
918
  },
895
- "../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/path-exists/index.js" (module, __unused_rspack_exports, __webpack_require__) {
919
+ "../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/path-exists/index.js" (module, __unused_rspack_exports, __webpack_require__) {
896
920
  const u = __webpack_require__("../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js").fromPromise;
897
- const fs = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/fs/index.js");
921
+ const fs = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/fs/index.js");
898
922
  function pathExists(path) {
899
923
  return fs.access(path).then(()=>true).catch(()=>false);
900
924
  }
@@ -903,7 +927,7 @@ __webpack_require__.add({
903
927
  pathExistsSync: fs.existsSync
904
928
  };
905
929
  },
906
- "../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/remove/index.js" (module, __unused_rspack_exports, __webpack_require__) {
930
+ "../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/remove/index.js" (module, __unused_rspack_exports, __webpack_require__) {
907
931
  const fs = __webpack_require__("../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js");
908
932
  const u = __webpack_require__("../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js").fromCallback;
909
933
  function remove(path, callback) {
@@ -923,7 +947,7 @@ __webpack_require__.add({
923
947
  removeSync
924
948
  };
925
949
  },
926
- "../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/async.js" (module) {
950
+ "../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/util/async.js" (module) {
927
951
  async function asyncIteratorConcurrentProcess(iterator, fn) {
928
952
  const promises = [];
929
953
  for await (const item of iterator)promises.push(fn(item).then(()=>null, (err)=>err ?? new Error('unknown error')));
@@ -935,8 +959,8 @@ __webpack_require__.add({
935
959
  asyncIteratorConcurrentProcess
936
960
  };
937
961
  },
938
- "../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/stat.js" (module, __unused_rspack_exports, __webpack_require__) {
939
- const fs = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/fs/index.js");
962
+ "../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/util/stat.js" (module, __unused_rspack_exports, __webpack_require__) {
963
+ const fs = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/fs/index.js");
940
964
  const path = __webpack_require__("path");
941
965
  const u = __webpack_require__("../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js").fromPromise;
942
966
  function getStats(src, dest, opts) {
@@ -1074,27 +1098,40 @@ __webpack_require__.add({
1074
1098
  areIdentical
1075
1099
  };
1076
1100
  },
1077
- "../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/utimes.js" (module, __unused_rspack_exports, __webpack_require__) {
1078
- const fs = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/fs/index.js");
1101
+ "../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/util/utimes.js" (module, __unused_rspack_exports, __webpack_require__) {
1102
+ const fs = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/fs/index.js");
1079
1103
  const u = __webpack_require__("../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js").fromPromise;
1080
1104
  async function utimesMillis(path, atime, mtime) {
1081
1105
  const fd = await fs.open(path, 'r+');
1082
- let closeErr = null;
1106
+ let error = null;
1083
1107
  try {
1084
1108
  await fs.futimes(fd, atime, mtime);
1109
+ } catch (futimesErr) {
1110
+ error = futimesErr;
1085
1111
  } finally{
1086
1112
  try {
1087
1113
  await fs.close(fd);
1088
- } catch (e) {
1089
- closeErr = e;
1114
+ } catch (closeErr) {
1115
+ if (!error) error = closeErr;
1090
1116
  }
1091
1117
  }
1092
- if (closeErr) throw closeErr;
1118
+ if (error) throw error;
1093
1119
  }
1094
1120
  function utimesMillisSync(path, atime, mtime) {
1095
1121
  const fd = fs.openSync(path, 'r+');
1096
- fs.futimesSync(fd, atime, mtime);
1097
- return fs.closeSync(fd);
1122
+ let error = null;
1123
+ try {
1124
+ fs.futimesSync(fd, atime, mtime);
1125
+ } catch (futimesErr) {
1126
+ error = futimesErr;
1127
+ } finally{
1128
+ try {
1129
+ fs.closeSync(fd);
1130
+ } catch (closeErr) {
1131
+ if (!error) error = closeErr;
1132
+ }
1133
+ }
1134
+ if (error) throw error;
1098
1135
  }
1099
1136
  module.exports = {
1100
1137
  utimesMillis: u(utimesMillis),
@@ -2307,7 +2344,7 @@ class Queue {
2307
2344
  };
2308
2345
  }
2309
2346
  }
2310
- const lib = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/index.js");
2347
+ const lib = __webpack_require__("../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/index.js");
2311
2348
  var lib_default = /*#__PURE__*/ __webpack_require__.n(lib);
2312
2349
  /**
2313
2350
  * @author: xmcp(代码主要逻辑来源)
@@ -2442,55 +2479,57 @@ const WIDTH_TABLE = new Map(Object.entries({
2442
2479
  N: 'N',
2443
2480
  M: 'M'
2444
2481
  }));
2445
- const detaolu = (inp, config)=>{
2482
+ function detaolu_meta(config) {
2446
2483
  const TRIM_ENDING = config.TRIM_ENDING;
2447
2484
  const TRIM_SPACE = config.TRIM_SPACE;
2448
2485
  const TRIM_WIDTH = config.TRIM_WIDTH;
2449
- const FORCELIST = (config?.FORCELIST ?? DEFAULT_CONFIG.FORCELIST).map(([pattern, repl])=>[
2486
+ const FORCELIST = config.FORCELIST.map(([pattern, repl])=>[
2450
2487
  new RegExp(pattern, 'giu'),
2451
2488
  repl
2452
2489
  ]);
2453
2490
  const FORCELIST_BREAK_ON_MATCH = !config.FORCELIST_CONTINUE_ON_MATCH;
2454
- let len = inp.length;
2455
- let text = '';
2456
- if (TRIM_ENDING) {
2457
- while(ENDING_CHARS.has(inp.charAt(len - 1)))len--;
2458
- if (0 === len) len = inp.length;
2459
- }
2460
- if (TRIM_WIDTH) for(let i = 0; i < len; i++){
2461
- const c = inp.charAt(i);
2462
- text += WIDTH_TABLE.get(c) || c;
2463
- }
2464
- else text = inp.slice(0, len);
2465
- if (TRIM_SPACE) text = text.replaceAll(/[ \u3000]+/g, ' ').replaceAll(/([\u3000-\u9FFF\uFF00-\uFFEF]) (?=[\u3000-\u9FFF\uFF00-\uFFEF])/g, '$1');
2466
- let taolu_matched = false;
2467
- for (const taolu of FORCELIST)if (taolu[0].test(text)) {
2468
- text = text.replace(taolu[0], taolu[1]);
2469
- taolu_matched = true;
2470
- if (FORCELIST_BREAK_ON_MATCH) break;
2471
- }
2472
- return [
2473
- taolu_matched,
2474
- text
2475
- ];
2476
- };
2477
- const whitelisted = (text, config)=>{
2478
- const WHITELIST = (config?.WHITELIST ?? DEFAULT_CONFIG.WHITELIST).map((x)=>new RegExp(x[0], 'iu'));
2479
- if (0 === WHITELIST.length) return false;
2480
- return WHITELIST.some((re)=>re.test(text));
2481
- };
2482
- const blacklisted = (text, config)=>{
2483
- const BLACKLIST = (config?.BLACKLIST ?? DEFAULT_CONFIG.BLACKLIST).map((x)=>x[0] ? new RegExp(x[1]) : x[1].toLowerCase());
2484
- if (0 === BLACKLIST.length) return null;
2485
- {
2491
+ return (inp)=>{
2492
+ let len = inp.length;
2493
+ let text = '';
2494
+ if (TRIM_ENDING) {
2495
+ while(ENDING_CHARS.has(inp.charAt(len - 1)))len--;
2496
+ if (0 === len) len = inp.length;
2497
+ }
2498
+ if (TRIM_WIDTH) for(let i = 0; i < len; i++){
2499
+ const c = inp.charAt(i);
2500
+ text += WIDTH_TABLE.get(c) || c;
2501
+ }
2502
+ else text = inp.slice(0, len);
2503
+ if (TRIM_SPACE) text = text.replaceAll(/[ \u3000]+/g, ' ').replaceAll(/([\u3000-\u9FFF\uFF00-\uFFEF]) (?=[\u3000-\u9FFF\uFF00-\uFFEF])/g, '$1');
2504
+ let taolu_matched = false;
2505
+ for (const taolu of FORCELIST)if (taolu[0].test(text)) {
2506
+ text = text.replace(taolu[0], taolu[1]);
2507
+ taolu_matched = true;
2508
+ if (FORCELIST_BREAK_ON_MATCH) break;
2509
+ }
2510
+ return [
2511
+ taolu_matched,
2512
+ text
2513
+ ];
2514
+ };
2515
+ }
2516
+ function whitelisted_meta(config) {
2517
+ const WHITELIST = config.WHITELIST.map((x)=>new RegExp(x[0], 'iu'));
2518
+ if (0 === WHITELIST.length) return ()=>false;
2519
+ return (text)=>WHITELIST.some((re)=>re.test(text));
2520
+ }
2521
+ function blacklisted_meta(config) {
2522
+ const BLACKLIST = config.BLACKLIST.map((x)=>x[0] ? new RegExp(x[1]) : x[1].toLowerCase());
2523
+ if (0 === BLACKLIST.length) return ()=>null;
2524
+ return (text)=>{
2486
2525
  const lower = text.toLowerCase();
2487
2526
  for (const pattern of BLACKLIST){
2488
2527
  const matched = 'string' == typeof pattern ? lower.includes(pattern) : pattern.test(text);
2489
2528
  if (matched) return 'string' == typeof pattern ? ` ${pattern}` : ` /${pattern.source}/`;
2490
2529
  }
2491
2530
  return null;
2492
- }
2493
- };
2531
+ };
2532
+ }
2494
2533
  function extract_special_danmu(text) {
2495
2534
  try {
2496
2535
  text = JSON.parse(text)[4];
@@ -2506,15 +2545,25 @@ function select_median_length(strs) {
2506
2545
  const mid = Math.floor(sorted.length / 2);
2507
2546
  return sorted[mid];
2508
2547
  }
2548
+ function u8array_to_arraybuffer(array) {
2549
+ return array.buffer.slice(array.byteOffset, array.byteOffset + array.byteLength);
2550
+ }
2509
2551
  async function load_wasm(wasm_mod) {
2510
- await similarity_stub_init(wasm_mod ?? await lib_default().readFile(new URL('similarity-gen.wasm', import.meta.url)));
2552
+ if (wasm_mod) return void await similarity_stub_init(wasm_mod);
2553
+ const wasm_path = new URL('similarity-gen.wasm', import.meta.url).pathname;
2554
+ const wasm_u8 = await lib_default().readFile(wasm_path);
2555
+ await similarity_stub_init(u8array_to_arraybuffer(wasm_u8));
2511
2556
  }
2512
2557
  function make_ptr_idx(idx, is_next_chunk) {
2513
2558
  return is_next_chunk ? -1 - idx : idx;
2514
2559
  }
2515
2560
  async function merge(chunk, config = DEFAULT_CONFIG) {
2561
+ const local_config = {
2562
+ ...DEFAULT_CONFIG,
2563
+ ...config
2564
+ };
2516
2565
  await load_wasm();
2517
- begin_chunk(config);
2566
+ begin_chunk(local_config);
2518
2567
  const ret = {
2519
2568
  clusters: [],
2520
2569
  stats: new Stats(),
@@ -2579,23 +2628,26 @@ async function merge(chunk, config = DEFAULT_CONFIG) {
2579
2628
  });
2580
2629
  }
2581
2630
  }
2631
+ const detaolu = detaolu_meta(local_config);
2632
+ const whitelisted = whitelisted_meta(local_config);
2633
+ const blacklisted = blacklisted_meta(local_config);
2582
2634
  function obj_to_ir(objs, s, is_next_chunk) {
2583
2635
  return objs.map((obj, idx)=>{
2584
- if (!config.PROC_POOL1 && 1 === obj.pool) {
2636
+ if (!local_config.PROC_POOL1 && 1 === obj.pool) {
2585
2637
  if (s) {
2586
2638
  s.ignored_type++;
2587
2639
  apply_single_cluster(idx, obj, '已忽略字幕弹幕,可以在选项中修改');
2588
2640
  }
2589
2641
  return null;
2590
2642
  }
2591
- if (!config.PROC_TYPE7 && 4 === obj.mode) {
2643
+ if (!local_config.PROC_TYPE7 && 4 === obj.mode) {
2592
2644
  if (s) {
2593
2645
  s.ignored_type++;
2594
2646
  apply_single_cluster(idx, obj, '已忽略特殊弹幕,可以在选项中修改');
2595
2647
  }
2596
2648
  return null;
2597
2649
  }
2598
- if (!config.PROC_TYPE4 && 1 === obj.mode) {
2650
+ if (!local_config.PROC_TYPE4 && 1 === obj.mode) {
2599
2651
  if (s) {
2600
2652
  s.ignored_type++;
2601
2653
  apply_single_cluster(idx, obj, '已忽略底部弹幕,可以在选项中修改');
@@ -2604,7 +2656,7 @@ async function merge(chunk, config = DEFAULT_CONFIG) {
2604
2656
  }
2605
2657
  const disp_str = trim_dispstr(4 === obj.mode && '[' === obj.content[0] ? extract_special_danmu(obj.content) : obj.content);
2606
2658
  if (4 !== obj.mode) {
2607
- const matched = blacklisted(disp_str, config);
2659
+ const matched = blacklisted(disp_str);
2608
2660
  if (matched) {
2609
2661
  if (s) {
2610
2662
  s.deleted_blacklist++;
@@ -2619,17 +2671,17 @@ async function merge(chunk, config = DEFAULT_CONFIG) {
2619
2671
  return null;
2620
2672
  }
2621
2673
  }
2622
- if (whitelisted(disp_str, config)) {
2674
+ if (whitelisted(disp_str)) {
2623
2675
  if (s) {
2624
2676
  s.ignored_whitelist++;
2625
2677
  apply_single_cluster(idx, obj, '命中白名单');
2626
2678
  }
2627
2679
  return null;
2628
2680
  }
2629
- const [matched_taolu, detaolued] = detaolu(disp_str, config);
2681
+ const [matched_taolu, detaolued] = detaolu(disp_str);
2630
2682
  if (matched_taolu) {
2631
2683
  if (s) s.num_taolu_matched++;
2632
- if (config.FORCELIST_APPLY_SINGULAR) obj = {
2684
+ if (local_config.FORCELIST_APPLY_SINGULAR) obj = {
2633
2685
  ...obj,
2634
2686
  content: detaolued
2635
2687
  };
@@ -2644,7 +2696,7 @@ async function merge(chunk, config = DEFAULT_CONFIG) {
2644
2696
  }
2645
2697
  const danmus = obj_to_ir(chunk.objs, ret.stats, false);
2646
2698
  const nearby_danmus = new Queue();
2647
- const THRESHOLD_MS = (config?.THRESHOLD ?? DEFAULT_CONFIG.THRESHOLD) * 1000;
2699
+ const THRESHOLD_MS = 1000 * local_config.THRESHOLD;
2648
2700
  for (const dm of danmus){
2649
2701
  while(true){
2650
2702
  const peeked = nearby_danmus.peek();
@@ -2687,19 +2739,19 @@ async function src_detaolu(that, config) {
2687
2739
  }
2688
2740
  const progess = pool.dans.map((d)=>d.progress);
2689
2741
  return UniDM.create({
2690
- SOID: pool.shared.SOID ?? pool.dans[0].SOID,
2742
+ SOID: pool.getShared('SOID') ?? pool.dans[0].SOID,
2691
2743
  progress: dans[0].danuni_dan.progress,
2692
- mode: pool.shared.mode ?? (isAllBottomMode(pool) ? UniDMTools.Modes.Bottom : UniDMTools.Modes.Top),
2744
+ mode: pool.getShared('mode') ?? (isAllBottomMode(pool) ? UniDMTools.Modes.Bottom : UniDMTools.Modes.Top),
2693
2745
  fontsize: dans.length > 0 ? 36 : 25,
2694
- color: pool.shared.color ?? pool.most.color,
2746
+ color: pool.getShared('color') ?? pool.getMost('color').val,
2695
2747
  senderID: 'detaolu[bot]@dan-any',
2696
2748
  content: p.chosen_str,
2697
2749
  weight: 10,
2698
- pool: pool.shared.pool ?? pool.most.pool,
2750
+ pool: pool.getShared('pool') ?? pool.getMost('pool').val,
2699
2751
  attr: [
2700
2752
  UniDMTools.DMAttr.Protect
2701
2753
  ],
2702
- platform: pool.shared.platform ?? pool.most.platform,
2754
+ platform: pool.getShared('platform') ?? pool.getMost('platform').val,
2703
2755
  extra: {
2704
2756
  danuni: {
2705
2757
  merge: {