@rsdoctor/sdk 1.5.2 → 1.5.3

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.
@@ -1,15 +1,15 @@
1
1
  /******/ (() => { // webpackBootstrap
2
2
  /******/ var __webpack_modules__ = ({
3
3
 
4
- /***/ 218:
4
+ /***/ 271:
5
5
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
6
6
 
7
7
  (function () {
8
8
 
9
9
  'use strict';
10
10
 
11
- var assign = __nccwpck_require__(148);
12
- var vary = __nccwpck_require__(188);
11
+ var assign = __nccwpck_require__(637);
12
+ var vary = __nccwpck_require__(321);
13
13
 
14
14
  var defaults = {
15
15
  origin: '*',
@@ -246,7 +246,7 @@
246
246
 
247
247
  /***/ }),
248
248
 
249
- /***/ 148:
249
+ /***/ 637:
250
250
  /***/ ((module) => {
251
251
 
252
252
  "use strict";
@@ -344,7 +344,7 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
344
344
 
345
345
  /***/ }),
346
346
 
347
- /***/ 188:
347
+ /***/ 321:
348
348
  /***/ ((module) => {
349
349
 
350
350
  "use strict";
@@ -543,7 +543,7 @@ function vary (res, field) {
543
543
  /******/ // startup
544
544
  /******/ // Load entry module and return exports
545
545
  /******/ // This entry module is referenced by other modules so it can't be inlined
546
- /******/ var __webpack_exports__ = __nccwpck_require__(218);
546
+ /******/ var __webpack_exports__ = __nccwpck_require__(271);
547
547
  /******/ module.exports = __webpack_exports__;
548
548
  /******/
549
549
  /******/ })()
@@ -1,7 +1,7 @@
1
1
  /******/ (() => { // webpackBootstrap
2
2
  /******/ var __webpack_modules__ = ({
3
3
 
4
- /***/ 582:
4
+ /***/ 499:
5
5
  /***/ (function(module) {
6
6
 
7
7
  !function(t,e){ true?module.exports=e():0}(this,(function(){"use strict";var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return+(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p="$isDayjsObject",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=b.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[a]=f+"Date",n[d]=f+"Date",n[c]=f+"Month",n[h]=f+"FullYear",n[u]=f+"Hours",n[s]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,"0")},$=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return b.s(e.$y,4,"0");case"M":return a+1;case"MM":return b.s(a+1,2,"0");case"MMM":return h(n.monthsShort,a,c,3);case"MMMM":return h(c,a);case"D":return e.$D;case"DD":return b.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(n.weekdaysMin,e.$W,o,2);case"ddd":return h(n.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(s);case"HH":return b.s(s,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return $(s,u,!0);case"A":return $(s,u,!1);case"m":return String(u);case"mm":return b.s(u,2,"0");case"s":return String(e.$s);case"ss":return b.s(e.$s,2,"0");case"SSS":return b.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return O.prototype=k,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));
@@ -50,7 +50,7 @@
50
50
  /******/ // startup
51
51
  /******/ // Load entry module and return exports
52
52
  /******/ // This entry module is referenced by other modules so it can't be inlined
53
- /******/ var __webpack_exports__ = __nccwpck_require__(582);
53
+ /******/ var __webpack_exports__ = __nccwpck_require__(499);
54
54
  /******/ module.exports = __webpack_exports__;
55
55
  /******/
56
56
  /******/ })()
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import * as fs from 'fs';
3
- import { PathLike, readFile as readFile$2, readFileSync as readFileSync$1, writeFile as writeFile$2, writeFileSync as writeFileSync$1 } from 'fs';
3
+ import { readFile as readFile$2, readFileSync as readFileSync$1, writeFile as writeFile$2, writeFileSync as writeFileSync$1, PathLike } from 'fs';
4
4
  export * from 'fs';
5
5
  import { Url } from 'url';
6
6
 
@@ -1,17 +1,17 @@
1
1
  /******/ (() => { // webpackBootstrap
2
2
  /******/ var __webpack_modules__ = ({
3
3
 
4
- /***/ 724:
4
+ /***/ 189:
5
5
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
6
6
 
7
7
  "use strict";
8
8
 
9
9
 
10
- const fs = __nccwpck_require__(219)
10
+ const fs = __nccwpck_require__(692)
11
11
  const path = __nccwpck_require__(928)
12
- const mkdirsSync = (__nccwpck_require__(382).mkdirsSync)
13
- const utimesMillisSync = (__nccwpck_require__(235).utimesMillisSync)
14
- const stat = __nccwpck_require__(742)
12
+ const mkdirsSync = (__nccwpck_require__(539).mkdirsSync)
13
+ const utimesMillisSync = (__nccwpck_require__(656).utimesMillisSync)
14
+ const stat = __nccwpck_require__(809)
15
15
 
16
16
  function copySync (src, dest, opts) {
17
17
  if (typeof opts === 'function') {
@@ -180,18 +180,18 @@ module.exports = copySync
180
180
 
181
181
  /***/ }),
182
182
 
183
- /***/ 170:
183
+ /***/ 197:
184
184
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
185
185
 
186
186
  "use strict";
187
187
 
188
188
 
189
- const fs = __nccwpck_require__(489)
189
+ const fs = __nccwpck_require__(312)
190
190
  const path = __nccwpck_require__(928)
191
- const { mkdirs } = __nccwpck_require__(382)
192
- const { pathExists } = __nccwpck_require__(432)
193
- const { utimesMillis } = __nccwpck_require__(235)
194
- const stat = __nccwpck_require__(742)
191
+ const { mkdirs } = __nccwpck_require__(539)
192
+ const { pathExists } = __nccwpck_require__(427)
193
+ const { utimesMillis } = __nccwpck_require__(656)
194
+ const stat = __nccwpck_require__(809)
195
195
 
196
196
  async function copy (src, dest, opts = {}) {
197
197
  if (typeof opts === 'function') {
@@ -370,32 +370,32 @@ module.exports = copy
370
370
 
371
371
  /***/ }),
372
372
 
373
- /***/ 967:
373
+ /***/ 74:
374
374
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
375
375
 
376
376
  "use strict";
377
377
 
378
378
 
379
- const u = (__nccwpck_require__(979).fromPromise)
379
+ const u = (__nccwpck_require__(282).fromPromise)
380
380
  module.exports = {
381
- copy: u(__nccwpck_require__(170)),
382
- copySync: __nccwpck_require__(724)
381
+ copy: u(__nccwpck_require__(197)),
382
+ copySync: __nccwpck_require__(189)
383
383
  }
384
384
 
385
385
 
386
386
  /***/ }),
387
387
 
388
- /***/ 999:
388
+ /***/ 548:
389
389
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
390
390
 
391
391
  "use strict";
392
392
 
393
393
 
394
- const u = (__nccwpck_require__(979).fromPromise)
395
- const fs = __nccwpck_require__(489)
394
+ const u = (__nccwpck_require__(282).fromPromise)
395
+ const fs = __nccwpck_require__(312)
396
396
  const path = __nccwpck_require__(928)
397
- const mkdir = __nccwpck_require__(382)
398
- const remove = __nccwpck_require__(654)
397
+ const mkdir = __nccwpck_require__(539)
398
+ const remove = __nccwpck_require__(647)
399
399
 
400
400
  const emptyDir = u(async function emptyDir (dir) {
401
401
  let items
@@ -432,16 +432,16 @@ module.exports = {
432
432
 
433
433
  /***/ }),
434
434
 
435
- /***/ 992:
435
+ /***/ 391:
436
436
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
437
437
 
438
438
  "use strict";
439
439
 
440
440
 
441
- const u = (__nccwpck_require__(979).fromPromise)
441
+ const u = (__nccwpck_require__(282).fromPromise)
442
442
  const path = __nccwpck_require__(928)
443
- const fs = __nccwpck_require__(489)
444
- const mkdir = __nccwpck_require__(382)
443
+ const fs = __nccwpck_require__(312)
444
+ const mkdir = __nccwpck_require__(539)
445
445
 
446
446
  async function createFile (file) {
447
447
  let stats
@@ -506,15 +506,15 @@ module.exports = {
506
506
 
507
507
  /***/ }),
508
508
 
509
- /***/ 488:
509
+ /***/ 141:
510
510
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
511
511
 
512
512
  "use strict";
513
513
 
514
514
 
515
- const { createFile, createFileSync } = __nccwpck_require__(992)
516
- const { createLink, createLinkSync } = __nccwpck_require__(298)
517
- const { createSymlink, createSymlinkSync } = __nccwpck_require__(19)
515
+ const { createFile, createFileSync } = __nccwpck_require__(391)
516
+ const { createLink, createLinkSync } = __nccwpck_require__(921)
517
+ const { createSymlink, createSymlinkSync } = __nccwpck_require__(530)
518
518
 
519
519
  module.exports = {
520
520
  // file
@@ -537,18 +537,18 @@ module.exports = {
537
537
 
538
538
  /***/ }),
539
539
 
540
- /***/ 298:
540
+ /***/ 921:
541
541
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
542
542
 
543
543
  "use strict";
544
544
 
545
545
 
546
- const u = (__nccwpck_require__(979).fromPromise)
546
+ const u = (__nccwpck_require__(282).fromPromise)
547
547
  const path = __nccwpck_require__(928)
548
- const fs = __nccwpck_require__(489)
549
- const mkdir = __nccwpck_require__(382)
550
- const { pathExists } = __nccwpck_require__(432)
551
- const { areIdentical } = __nccwpck_require__(742)
548
+ const fs = __nccwpck_require__(312)
549
+ const mkdir = __nccwpck_require__(539)
550
+ const { pathExists } = __nccwpck_require__(427)
551
+ const { areIdentical } = __nccwpck_require__(809)
552
552
 
553
553
  async function createLink (srcpath, dstpath) {
554
554
  let dstStat
@@ -609,17 +609,17 @@ module.exports = {
609
609
 
610
610
  /***/ }),
611
611
 
612
- /***/ 462:
612
+ /***/ 359:
613
613
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
614
614
 
615
615
  "use strict";
616
616
 
617
617
 
618
618
  const path = __nccwpck_require__(928)
619
- const fs = __nccwpck_require__(489)
620
- const { pathExists } = __nccwpck_require__(432)
619
+ const fs = __nccwpck_require__(312)
620
+ const { pathExists } = __nccwpck_require__(427)
621
621
 
622
- const u = (__nccwpck_require__(979).fromPromise)
622
+ const u = (__nccwpck_require__(282).fromPromise)
623
623
 
624
624
  /**
625
625
  * Function that returns two types of paths, one relative to symlink, and one
@@ -718,14 +718,14 @@ module.exports = {
718
718
 
719
719
  /***/ }),
720
720
 
721
- /***/ 984:
721
+ /***/ 419:
722
722
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
723
723
 
724
724
  "use strict";
725
725
 
726
726
 
727
- const fs = __nccwpck_require__(489)
728
- const u = (__nccwpck_require__(979).fromPromise)
727
+ const fs = __nccwpck_require__(312)
728
+ const u = (__nccwpck_require__(282).fromPromise)
729
729
 
730
730
  async function symlinkType (srcpath, type) {
731
731
  if (type) return type
@@ -760,24 +760,24 @@ module.exports = {
760
760
 
761
761
  /***/ }),
762
762
 
763
- /***/ 19:
763
+ /***/ 530:
764
764
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
765
765
 
766
766
  "use strict";
767
767
 
768
768
 
769
- const u = (__nccwpck_require__(979).fromPromise)
769
+ const u = (__nccwpck_require__(282).fromPromise)
770
770
  const path = __nccwpck_require__(928)
771
- const fs = __nccwpck_require__(489)
771
+ const fs = __nccwpck_require__(312)
772
772
 
773
- const { mkdirs, mkdirsSync } = __nccwpck_require__(382)
773
+ const { mkdirs, mkdirsSync } = __nccwpck_require__(539)
774
774
 
775
- const { symlinkPaths, symlinkPathsSync } = __nccwpck_require__(462)
776
- const { symlinkType, symlinkTypeSync } = __nccwpck_require__(984)
775
+ const { symlinkPaths, symlinkPathsSync } = __nccwpck_require__(359)
776
+ const { symlinkType, symlinkTypeSync } = __nccwpck_require__(419)
777
777
 
778
- const { pathExists } = __nccwpck_require__(432)
778
+ const { pathExists } = __nccwpck_require__(427)
779
779
 
780
- const { areIdentical } = __nccwpck_require__(742)
780
+ const { areIdentical } = __nccwpck_require__(809)
781
781
 
782
782
  async function createSymlink (srcpath, dstpath, type) {
783
783
  let stats
@@ -835,15 +835,15 @@ module.exports = {
835
835
 
836
836
  /***/ }),
837
837
 
838
- /***/ 489:
838
+ /***/ 312:
839
839
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
840
840
 
841
841
  "use strict";
842
842
 
843
843
  // This is adapted from https://github.com/normalize/mz
844
844
  // Copyright (c) 2014-2016 Jonathan Ong me@jongleberry.com and Contributors
845
- const u = (__nccwpck_require__(979).fromCallback)
846
- const fs = __nccwpck_require__(219)
845
+ const u = (__nccwpck_require__(282).fromCallback)
846
+ const fs = __nccwpck_require__(692)
847
847
 
848
848
  const api = [
849
849
  'access',
@@ -989,7 +989,7 @@ if (typeof fs.realpath.native === 'function') {
989
989
 
990
990
  /***/ }),
991
991
 
992
- /***/ 829:
992
+ /***/ 350:
993
993
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
994
994
 
995
995
  "use strict";
@@ -997,33 +997,33 @@ if (typeof fs.realpath.native === 'function') {
997
997
 
998
998
  module.exports = {
999
999
  // Export promiseified graceful-fs:
1000
- ...__nccwpck_require__(489),
1000
+ ...__nccwpck_require__(312),
1001
1001
  // Export extra methods:
1002
- ...__nccwpck_require__(967),
1003
- ...__nccwpck_require__(999),
1004
- ...__nccwpck_require__(488),
1005
- ...__nccwpck_require__(272),
1006
- ...__nccwpck_require__(382),
1007
- ...__nccwpck_require__(535),
1008
- ...__nccwpck_require__(656),
1009
- ...__nccwpck_require__(432),
1010
- ...__nccwpck_require__(654)
1002
+ ...__nccwpck_require__(74),
1003
+ ...__nccwpck_require__(548),
1004
+ ...__nccwpck_require__(141),
1005
+ ...__nccwpck_require__(69),
1006
+ ...__nccwpck_require__(539),
1007
+ ...__nccwpck_require__(914),
1008
+ ...__nccwpck_require__(631),
1009
+ ...__nccwpck_require__(427),
1010
+ ...__nccwpck_require__(647)
1011
1011
  }
1012
1012
 
1013
1013
 
1014
1014
  /***/ }),
1015
1015
 
1016
- /***/ 272:
1016
+ /***/ 69:
1017
1017
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
1018
1018
 
1019
1019
  "use strict";
1020
1020
 
1021
1021
 
1022
- const u = (__nccwpck_require__(979).fromPromise)
1023
- const jsonFile = __nccwpck_require__(198)
1022
+ const u = (__nccwpck_require__(282).fromPromise)
1023
+ const jsonFile = __nccwpck_require__(545)
1024
1024
 
1025
- jsonFile.outputJson = u(__nccwpck_require__(386))
1026
- jsonFile.outputJsonSync = __nccwpck_require__(836)
1025
+ jsonFile.outputJson = u(__nccwpck_require__(543))
1026
+ jsonFile.outputJsonSync = __nccwpck_require__(319)
1027
1027
  // aliases
1028
1028
  jsonFile.outputJSON = jsonFile.outputJson
1029
1029
  jsonFile.outputJSONSync = jsonFile.outputJsonSync
@@ -1037,13 +1037,13 @@ module.exports = jsonFile
1037
1037
 
1038
1038
  /***/ }),
1039
1039
 
1040
- /***/ 198:
1040
+ /***/ 545:
1041
1041
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
1042
1042
 
1043
1043
  "use strict";
1044
1044
 
1045
1045
 
1046
- const jsonFile = __nccwpck_require__(779)
1046
+ const jsonFile = __nccwpck_require__(306)
1047
1047
 
1048
1048
  module.exports = {
1049
1049
  // jsonfile exports
@@ -1056,14 +1056,14 @@ module.exports = {
1056
1056
 
1057
1057
  /***/ }),
1058
1058
 
1059
- /***/ 836:
1059
+ /***/ 319:
1060
1060
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
1061
1061
 
1062
1062
  "use strict";
1063
1063
 
1064
1064
 
1065
- const { stringify } = __nccwpck_require__(830)
1066
- const { outputFileSync } = __nccwpck_require__(656)
1065
+ const { stringify } = __nccwpck_require__(931)
1066
+ const { outputFileSync } = __nccwpck_require__(631)
1067
1067
 
1068
1068
  function outputJsonSync (file, data, options) {
1069
1069
  const str = stringify(data, options)
@@ -1076,14 +1076,14 @@ module.exports = outputJsonSync
1076
1076
 
1077
1077
  /***/ }),
1078
1078
 
1079
- /***/ 386:
1079
+ /***/ 543:
1080
1080
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
1081
1081
 
1082
1082
  "use strict";
1083
1083
 
1084
1084
 
1085
- const { stringify } = __nccwpck_require__(830)
1086
- const { outputFile } = __nccwpck_require__(656)
1085
+ const { stringify } = __nccwpck_require__(931)
1086
+ const { outputFile } = __nccwpck_require__(631)
1087
1087
 
1088
1088
  async function outputJson (file, data, options = {}) {
1089
1089
  const str = stringify(data, options)
@@ -1096,13 +1096,13 @@ module.exports = outputJson
1096
1096
 
1097
1097
  /***/ }),
1098
1098
 
1099
- /***/ 382:
1099
+ /***/ 539:
1100
1100
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
1101
1101
 
1102
1102
  "use strict";
1103
1103
 
1104
- const u = (__nccwpck_require__(979).fromPromise)
1105
- const { makeDir: _makeDir, makeDirSync } = __nccwpck_require__(892)
1104
+ const u = (__nccwpck_require__(282).fromPromise)
1105
+ const { makeDir: _makeDir, makeDirSync } = __nccwpck_require__(35)
1106
1106
  const makeDir = u(_makeDir)
1107
1107
 
1108
1108
  module.exports = {
@@ -1118,13 +1118,13 @@ module.exports = {
1118
1118
 
1119
1119
  /***/ }),
1120
1120
 
1121
- /***/ 892:
1121
+ /***/ 35:
1122
1122
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
1123
1123
 
1124
1124
  "use strict";
1125
1125
 
1126
- const fs = __nccwpck_require__(489)
1127
- const { checkPath } = __nccwpck_require__(751)
1126
+ const fs = __nccwpck_require__(312)
1127
+ const { checkPath } = __nccwpck_require__(550)
1128
1128
 
1129
1129
  const getMode = options => {
1130
1130
  const defaults = { mode: 0o777 }
@@ -1153,7 +1153,7 @@ module.exports.makeDirSync = (dir, options) => {
1153
1153
 
1154
1154
  /***/ }),
1155
1155
 
1156
- /***/ 751:
1156
+ /***/ 550:
1157
1157
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
1158
1158
 
1159
1159
  "use strict";
@@ -1182,33 +1182,33 @@ module.exports.checkPath = function checkPath (pth) {
1182
1182
 
1183
1183
  /***/ }),
1184
1184
 
1185
- /***/ 535:
1185
+ /***/ 914:
1186
1186
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
1187
1187
 
1188
1188
  "use strict";
1189
1189
 
1190
1190
 
1191
- const u = (__nccwpck_require__(979).fromPromise)
1191
+ const u = (__nccwpck_require__(282).fromPromise)
1192
1192
  module.exports = {
1193
- move: u(__nccwpck_require__(706)),
1194
- moveSync: __nccwpck_require__(404)
1193
+ move: u(__nccwpck_require__(522)),
1194
+ moveSync: __nccwpck_require__(957)
1195
1195
  }
1196
1196
 
1197
1197
 
1198
1198
  /***/ }),
1199
1199
 
1200
- /***/ 404:
1200
+ /***/ 957:
1201
1201
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
1202
1202
 
1203
1203
  "use strict";
1204
1204
 
1205
1205
 
1206
- const fs = __nccwpck_require__(219)
1206
+ const fs = __nccwpck_require__(692)
1207
1207
  const path = __nccwpck_require__(928)
1208
- const copySync = (__nccwpck_require__(967).copySync)
1209
- const removeSync = (__nccwpck_require__(654).removeSync)
1210
- const mkdirpSync = (__nccwpck_require__(382).mkdirpSync)
1211
- const stat = __nccwpck_require__(742)
1208
+ const copySync = (__nccwpck_require__(74).copySync)
1209
+ const removeSync = (__nccwpck_require__(647).removeSync)
1210
+ const mkdirpSync = (__nccwpck_require__(539).mkdirpSync)
1211
+ const stat = __nccwpck_require__(809)
1212
1212
 
1213
1213
  function moveSync (src, dest, opts) {
1214
1214
  opts = opts || {}
@@ -1260,19 +1260,19 @@ module.exports = moveSync
1260
1260
 
1261
1261
  /***/ }),
1262
1262
 
1263
- /***/ 706:
1263
+ /***/ 522:
1264
1264
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
1265
1265
 
1266
1266
  "use strict";
1267
1267
 
1268
1268
 
1269
- const fs = __nccwpck_require__(489)
1269
+ const fs = __nccwpck_require__(312)
1270
1270
  const path = __nccwpck_require__(928)
1271
- const { copy } = __nccwpck_require__(967)
1272
- const { remove } = __nccwpck_require__(654)
1273
- const { mkdirp } = __nccwpck_require__(382)
1274
- const { pathExists } = __nccwpck_require__(432)
1275
- const stat = __nccwpck_require__(742)
1271
+ const { copy } = __nccwpck_require__(74)
1272
+ const { remove } = __nccwpck_require__(647)
1273
+ const { mkdirp } = __nccwpck_require__(539)
1274
+ const { pathExists } = __nccwpck_require__(427)
1275
+ const stat = __nccwpck_require__(809)
1276
1276
 
1277
1277
  async function move (src, dest, opts = {}) {
1278
1278
  const overwrite = opts.overwrite || opts.clobber || false
@@ -1327,17 +1327,17 @@ module.exports = move
1327
1327
 
1328
1328
  /***/ }),
1329
1329
 
1330
- /***/ 656:
1330
+ /***/ 631:
1331
1331
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
1332
1332
 
1333
1333
  "use strict";
1334
1334
 
1335
1335
 
1336
- const u = (__nccwpck_require__(979).fromPromise)
1337
- const fs = __nccwpck_require__(489)
1336
+ const u = (__nccwpck_require__(282).fromPromise)
1337
+ const fs = __nccwpck_require__(312)
1338
1338
  const path = __nccwpck_require__(928)
1339
- const mkdir = __nccwpck_require__(382)
1340
- const pathExists = (__nccwpck_require__(432).pathExists)
1339
+ const mkdir = __nccwpck_require__(539)
1340
+ const pathExists = (__nccwpck_require__(427).pathExists)
1341
1341
 
1342
1342
  async function outputFile (file, data, encoding = 'utf-8') {
1343
1343
  const dir = path.dirname(file)
@@ -1366,13 +1366,13 @@ module.exports = {
1366
1366
 
1367
1367
  /***/ }),
1368
1368
 
1369
- /***/ 432:
1369
+ /***/ 427:
1370
1370
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
1371
1371
 
1372
1372
  "use strict";
1373
1373
 
1374
- const u = (__nccwpck_require__(979).fromPromise)
1375
- const fs = __nccwpck_require__(489)
1374
+ const u = (__nccwpck_require__(282).fromPromise)
1375
+ const fs = __nccwpck_require__(312)
1376
1376
 
1377
1377
  function pathExists (path) {
1378
1378
  return fs.access(path).then(() => true).catch(() => false)
@@ -1386,14 +1386,14 @@ module.exports = {
1386
1386
 
1387
1387
  /***/ }),
1388
1388
 
1389
- /***/ 654:
1389
+ /***/ 647:
1390
1390
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
1391
1391
 
1392
1392
  "use strict";
1393
1393
 
1394
1394
 
1395
- const fs = __nccwpck_require__(219)
1396
- const u = (__nccwpck_require__(979).fromCallback)
1395
+ const fs = __nccwpck_require__(692)
1396
+ const u = (__nccwpck_require__(282).fromCallback)
1397
1397
 
1398
1398
  function remove (path, callback) {
1399
1399
  fs.rm(path, { recursive: true, force: true }, callback)
@@ -1411,15 +1411,15 @@ module.exports = {
1411
1411
 
1412
1412
  /***/ }),
1413
1413
 
1414
- /***/ 742:
1414
+ /***/ 809:
1415
1415
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
1416
1416
 
1417
1417
  "use strict";
1418
1418
 
1419
1419
 
1420
- const fs = __nccwpck_require__(489)
1420
+ const fs = __nccwpck_require__(312)
1421
1421
  const path = __nccwpck_require__(928)
1422
- const u = (__nccwpck_require__(979).fromPromise)
1422
+ const u = (__nccwpck_require__(282).fromPromise)
1423
1423
 
1424
1424
  function getStats (src, dest, opts) {
1425
1425
  const statFunc = opts.dereference
@@ -1577,14 +1577,14 @@ module.exports = {
1577
1577
 
1578
1578
  /***/ }),
1579
1579
 
1580
- /***/ 235:
1580
+ /***/ 656:
1581
1581
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
1582
1582
 
1583
1583
  "use strict";
1584
1584
 
1585
1585
 
1586
- const fs = __nccwpck_require__(489)
1587
- const u = (__nccwpck_require__(979).fromPromise)
1586
+ const fs = __nccwpck_require__(312)
1587
+ const u = (__nccwpck_require__(282).fromPromise)
1588
1588
 
1589
1589
  async function utimesMillis (path, atime, mtime) {
1590
1590
  // if (!HAS_MILLIS_RES) return fs.utimes(path, atime, mtime, callback)
@@ -1621,7 +1621,7 @@ module.exports = {
1621
1621
 
1622
1622
  /***/ }),
1623
1623
 
1624
- /***/ 767:
1624
+ /***/ 648:
1625
1625
  /***/ ((module) => {
1626
1626
 
1627
1627
  "use strict";
@@ -1652,13 +1652,13 @@ function clone (obj) {
1652
1652
 
1653
1653
  /***/ }),
1654
1654
 
1655
- /***/ 219:
1655
+ /***/ 692:
1656
1656
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
1657
1657
 
1658
1658
  var fs = __nccwpck_require__(896)
1659
- var polyfills = __nccwpck_require__(190)
1660
- var legacy = __nccwpck_require__(383)
1661
- var clone = __nccwpck_require__(767)
1659
+ var polyfills = __nccwpck_require__(161)
1660
+ var legacy = __nccwpck_require__(50)
1661
+ var clone = __nccwpck_require__(648)
1662
1662
 
1663
1663
  var util = __nccwpck_require__(23)
1664
1664
 
@@ -2107,7 +2107,7 @@ function retry () {
2107
2107
 
2108
2108
  /***/ }),
2109
2109
 
2110
- /***/ 383:
2110
+ /***/ 50:
2111
2111
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
2112
2112
 
2113
2113
  var Stream = (__nccwpck_require__(203).Stream)
@@ -2232,7 +2232,7 @@ function legacy (fs) {
2232
2232
 
2233
2233
  /***/ }),
2234
2234
 
2235
- /***/ 190:
2235
+ /***/ 161:
2236
2236
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
2237
2237
 
2238
2238
  var constants = __nccwpck_require__(140)
@@ -2594,17 +2594,17 @@ function patch (fs) {
2594
2594
 
2595
2595
  /***/ }),
2596
2596
 
2597
- /***/ 779:
2597
+ /***/ 306:
2598
2598
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
2599
2599
 
2600
2600
  let _fs
2601
2601
  try {
2602
- _fs = __nccwpck_require__(219)
2602
+ _fs = __nccwpck_require__(692)
2603
2603
  } catch (_) {
2604
2604
  _fs = __nccwpck_require__(896)
2605
2605
  }
2606
- const universalify = __nccwpck_require__(979)
2607
- const { stringify, stripBom } = __nccwpck_require__(830)
2606
+ const universalify = __nccwpck_require__(282)
2607
+ const { stringify, stripBom } = __nccwpck_require__(931)
2608
2608
 
2609
2609
  async function _readFile (file, options = {}) {
2610
2610
  if (typeof options === 'string') {
@@ -2689,7 +2689,7 @@ module.exports = jsonfile
2689
2689
 
2690
2690
  /***/ }),
2691
2691
 
2692
- /***/ 830:
2692
+ /***/ 931:
2693
2693
  /***/ ((module) => {
2694
2694
 
2695
2695
  function stringify (obj, { EOL = '\n', finalEOL = true, replacer = null, spaces } = {}) {
@@ -2710,7 +2710,7 @@ module.exports = { stringify, stripBom }
2710
2710
 
2711
2711
  /***/ }),
2712
2712
 
2713
- /***/ 979:
2713
+ /***/ 282:
2714
2714
  /***/ ((__unused_webpack_module, exports) => {
2715
2715
 
2716
2716
  "use strict";
@@ -2832,7 +2832,7 @@ module.exports = require("util");
2832
2832
  /******/ // startup
2833
2833
  /******/ // Load entry module and return exports
2834
2834
  /******/ // This entry module is referenced by other modules so it can't be inlined
2835
- /******/ var __webpack_exports__ = __nccwpck_require__(829);
2835
+ /******/ var __webpack_exports__ = __nccwpck_require__(350);
2836
2836
  /******/ module.exports = __webpack_exports__;
2837
2837
  /******/
2838
2838
  /******/ })()
package/dist/index.cjs CHANGED
@@ -190,7 +190,7 @@ var __webpack_modules__ = {
190
190
  },
191
191
  "../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/types/urlencoded.js" (module, __unused_rspack_exports, __webpack_require__) {
192
192
  "use strict";
193
- var createError = __webpack_require__("../../node_modules/.pnpm/http-errors@2.0.1/node_modules/http-errors/index.js"), debug = __webpack_require__("../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js")('body-parser:urlencoded'), read = __webpack_require__("../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/read.js"), qs = __webpack_require__("../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/index.js"), { normalizeOptions } = __webpack_require__("../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/utils.js");
193
+ var createError = __webpack_require__("../../node_modules/.pnpm/http-errors@2.0.1/node_modules/http-errors/index.js"), debug = __webpack_require__("../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js")('body-parser:urlencoded'), read = __webpack_require__("../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/read.js"), qs = __webpack_require__("../../node_modules/.pnpm/qs@6.14.2/node_modules/qs/lib/index.js"), { normalizeOptions } = __webpack_require__("../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/utils.js");
194
194
  module.exports = function(options) {
195
195
  let normalizedOptions = normalizeOptions(options, 'application/x-www-form-urlencoded');
196
196
  if ('utf-8' !== normalizedOptions.defaultCharset && 'iso-8859-1' !== normalizedOptions.defaultCharset) throw TypeError('option defaultCharset must be either utf-8 or iso-8859-1');
@@ -1872,7 +1872,7 @@ var __webpack_modules__ = {
1872
1872
  xxbig5: "big5hkscs"
1873
1873
  };
1874
1874
  },
1875
- "../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/index.js" (__unused_rspack_module, exports1, __webpack_require__) {
1875
+ "../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/index.js" (__unused_rspack___webpack_module__, exports1, __webpack_require__) {
1876
1876
  "use strict";
1877
1877
  for(var mergeModules = __webpack_require__("../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/lib/helpers/merge-exports.js"), modules = [
1878
1878
  __webpack_require__("../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/internal.js"),
@@ -3580,7 +3580,7 @@ var __webpack_modules__ = {
3580
3580
  return 'boolean' == typeof msg.finished ? !!(msg.finished || socket && !socket.writable) : 'boolean' == typeof msg.complete ? !!(msg.upgrade || !socket || !socket.readable || msg.complete && !msg.readable) : void 0;
3581
3581
  }
3582
3582
  },
3583
- "../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/formats.js" (module) {
3583
+ "../../node_modules/.pnpm/qs@6.14.2/node_modules/qs/lib/formats.js" (module) {
3584
3584
  "use strict";
3585
3585
  var replace = String.prototype.replace, percentTwenties = /%20/g, Format_RFC3986 = 'RFC3986';
3586
3586
  module.exports = {
@@ -3597,18 +3597,18 @@ var __webpack_modules__ = {
3597
3597
  RFC3986: Format_RFC3986
3598
3598
  };
3599
3599
  },
3600
- "../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/index.js" (module, __unused_rspack_exports, __webpack_require__) {
3600
+ "../../node_modules/.pnpm/qs@6.14.2/node_modules/qs/lib/index.js" (module, __unused_rspack_exports, __webpack_require__) {
3601
3601
  "use strict";
3602
- var stringify = __webpack_require__("../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/stringify.js"), parse = __webpack_require__("../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/parse.js");
3602
+ var stringify = __webpack_require__("../../node_modules/.pnpm/qs@6.14.2/node_modules/qs/lib/stringify.js"), parse = __webpack_require__("../../node_modules/.pnpm/qs@6.14.2/node_modules/qs/lib/parse.js");
3603
3603
  module.exports = {
3604
- formats: __webpack_require__("../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/formats.js"),
3604
+ formats: __webpack_require__("../../node_modules/.pnpm/qs@6.14.2/node_modules/qs/lib/formats.js"),
3605
3605
  parse: parse,
3606
3606
  stringify: stringify
3607
3607
  };
3608
3608
  },
3609
- "../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/parse.js" (module, __unused_rspack_exports, __webpack_require__) {
3609
+ "../../node_modules/.pnpm/qs@6.14.2/node_modules/qs/lib/parse.js" (module, __unused_rspack_exports, __webpack_require__) {
3610
3610
  "use strict";
3611
- var utils = __webpack_require__("../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/utils.js"), has = Object.prototype.hasOwnProperty, isArray = Array.isArray, defaults = {
3611
+ var utils = __webpack_require__("../../node_modules/.pnpm/qs@6.14.2/node_modules/qs/lib/utils.js"), has = Object.prototype.hasOwnProperty, isArray = Array.isArray, defaults = {
3612
3612
  allowDots: !1,
3613
3613
  allowEmptyArrays: !1,
3614
3614
  allowPrototypes: !1,
@@ -3651,7 +3651,11 @@ var __webpack_modules__ = {
3651
3651
  return String.fromCharCode(parseInt(numberStr, 10));
3652
3652
  })), part.indexOf('[]=') > -1 && (val = isArray(val) ? [
3653
3653
  val
3654
- ] : val), null !== key) {
3654
+ ] : val), options.comma && isArray(val) && val.length > options.arrayLimit) {
3655
+ if (options.throwOnLimitExceeded) throw RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (1 === options.arrayLimit ? '' : 's') + ' allowed in an array.');
3656
+ val = utils.combine([], val, options.arrayLimit, options.plainObjects);
3657
+ }
3658
+ if (null !== key) {
3655
3659
  var existing = has.call(obj, key);
3656
3660
  existing && 'combine' === options.duplicates ? obj[key] = utils.combine(obj[key], val, options.arrayLimit, options.plainObjects) : existing && 'last' !== options.duplicates || (obj[key] = val);
3657
3661
  }
@@ -3670,8 +3674,11 @@ var __webpack_modules__ = {
3670
3674
  obj = options.plainObjects ? {
3671
3675
  __proto__: null
3672
3676
  } : {};
3673
- var cleanRoot = '[' === root.charAt(0) && ']' === root.charAt(root.length - 1) ? root.slice(1, -1) : root, decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot, index = parseInt(decodedRoot, 10);
3674
- options.parseArrays || '' !== decodedRoot ? !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays && index <= options.arrayLimit ? (obj = [])[index] = leaf : '__proto__' !== decodedRoot && (obj[decodedRoot] = leaf) : obj = {
3677
+ var cleanRoot = '[' === root.charAt(0) && ']' === root.charAt(root.length - 1) ? root.slice(1, -1) : root, decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot, index = parseInt(decodedRoot, 10), isValidArrayIndex = !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays;
3678
+ if (options.parseArrays || '' !== decodedRoot) if (isValidArrayIndex && index < options.arrayLimit) (obj = [])[index] = leaf;
3679
+ else if (isValidArrayIndex && options.throwOnLimitExceeded) throw RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (1 === options.arrayLimit ? '' : 's') + ' allowed in an array.');
3680
+ else isValidArrayIndex ? (obj[index] = leaf, utils.markOverflow(obj, index)) : '__proto__' !== decodedRoot && (obj[decodedRoot] = leaf);
3681
+ else obj = {
3675
3682
  0: leaf
3676
3683
  };
3677
3684
  }
@@ -3689,17 +3696,17 @@ var __webpack_modules__ = {
3689
3696
  var child = /(\[[^[\]]*])/g, segment = /(\[[^[\]]*])/.exec(key), parent = segment ? key.slice(0, segment.index) : key, keys = [];
3690
3697
  if (parent) {
3691
3698
  if (!options.plainObjects && has.call(Object.prototype, parent) && !options.allowPrototypes) return;
3692
- keys.push(parent);
3699
+ keys[keys.length] = parent;
3693
3700
  }
3694
3701
  for(var i = 0; null !== (segment = child.exec(key)) && i < options.depth;){
3695
3702
  i += 1;
3696
3703
  var segmentContent = segment[1].slice(1, -1);
3697
3704
  if (!options.plainObjects && has.call(Object.prototype, segmentContent) && !options.allowPrototypes) return;
3698
- keys.push(segment[1]);
3705
+ keys[keys.length] = segment[1];
3699
3706
  }
3700
3707
  if (segment) {
3701
3708
  if (!0 === options.strictDepth) throw RangeError('Input depth exceeded depth option of ' + options.depth + ' and strictDepth is true');
3702
- keys.push('[' + key.slice(segment.index) + ']');
3709
+ keys[keys.length] = '[' + key.slice(segment.index) + ']';
3703
3710
  }
3704
3711
  return keys;
3705
3712
  }, parseKeys = function(givenKey, val, options, valuesParsed) {
@@ -3754,9 +3761,9 @@ var __webpack_modules__ = {
3754
3761
  return !0 === options.allowSparse ? obj : utils.compact(obj);
3755
3762
  };
3756
3763
  },
3757
- "../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/stringify.js" (module, __unused_rspack_exports, __webpack_require__) {
3764
+ "../../node_modules/.pnpm/qs@6.14.2/node_modules/qs/lib/stringify.js" (module, __unused_rspack_exports, __webpack_require__) {
3758
3765
  "use strict";
3759
- var getSideChannel = __webpack_require__("../../node_modules/.pnpm/side-channel@1.1.0/node_modules/side-channel/index.js"), utils = __webpack_require__("../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/utils.js"), formats = __webpack_require__("../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/formats.js"), has = Object.prototype.hasOwnProperty, arrayPrefixGenerators = {
3766
+ var getSideChannel = __webpack_require__("../../node_modules/.pnpm/side-channel@1.1.0/node_modules/side-channel/index.js"), utils = __webpack_require__("../../node_modules/.pnpm/qs@6.14.2/node_modules/qs/lib/utils.js"), formats = __webpack_require__("../../node_modules/.pnpm/qs@6.14.2/node_modules/qs/lib/formats.js"), has = Object.prototype.hasOwnProperty, arrayPrefixGenerators = {
3760
3767
  brackets: function(prefix) {
3761
3768
  return prefix + '[]';
3762
3769
  },
@@ -3887,9 +3894,9 @@ var __webpack_modules__ = {
3887
3894
  return options.charsetSentinel && ('iso-8859-1' === options.charset ? prefix += 'utf8=%26%2310003%3B&' : prefix += 'utf8=%E2%9C%93&'), joined.length > 0 ? prefix + joined : '';
3888
3895
  };
3889
3896
  },
3890
- "../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/utils.js" (module, __unused_rspack_exports, __webpack_require__) {
3897
+ "../../node_modules/.pnpm/qs@6.14.2/node_modules/qs/lib/utils.js" (module, __unused_rspack_exports, __webpack_require__) {
3891
3898
  "use strict";
3892
- var formats = __webpack_require__("../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/formats.js"), getSideChannel = __webpack_require__("../../node_modules/.pnpm/side-channel@1.1.0/node_modules/side-channel/index.js"), has = Object.prototype.hasOwnProperty, isArray = Array.isArray, overflowChannel = getSideChannel(), markOverflow = function(obj, maxIndex) {
3899
+ var formats = __webpack_require__("../../node_modules/.pnpm/qs@6.14.2/node_modules/qs/lib/formats.js"), getSideChannel = __webpack_require__("../../node_modules/.pnpm/side-channel@1.1.0/node_modules/side-channel/index.js"), has = Object.prototype.hasOwnProperty, isArray = Array.isArray, overflowChannel = getSideChannel(), markOverflow = function(obj, maxIndex) {
3893
3900
  return overflowChannel.set(obj, maxIndex), obj;
3894
3901
  }, isOverflow = function(obj) {
3895
3902
  return overflowChannel.has(obj);
@@ -3898,13 +3905,13 @@ var __webpack_modules__ = {
3898
3905
  }, setMaxIndex = function(obj, maxIndex) {
3899
3906
  overflowChannel.set(obj, maxIndex);
3900
3907
  }, hexTable = function() {
3901
- for(var array = [], i = 0; i < 256; ++i)array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
3908
+ for(var array = [], i = 0; i < 256; ++i)array[array.length] = '%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase();
3902
3909
  return array;
3903
3910
  }(), compactQueue = function(queue) {
3904
3911
  for(; queue.length > 1;){
3905
3912
  var item = queue.pop(), obj = item.obj[item.prop];
3906
3913
  if (isArray(obj)) {
3907
- for(var compacted = [], j = 0; j < obj.length; ++j)void 0 !== obj[j] && compacted.push(obj[j]);
3914
+ for(var compacted = [], j = 0; j < obj.length; ++j)void 0 !== obj[j] && (compacted[compacted.length] = obj[j]);
3908
3915
  item.obj[item.prop] = compacted;
3909
3916
  }
3910
3917
  }
@@ -3941,10 +3948,10 @@ var __webpack_modules__ = {
3941
3948
  }
3942
3949
  ], refs = [], i = 0; i < queue.length; ++i)for(var item = queue[i], obj = item.obj[item.prop], keys = Object.keys(obj), j = 0; j < keys.length; ++j){
3943
3950
  var key = keys[j], val = obj[key];
3944
- 'object' == typeof val && null !== val && -1 === refs.indexOf(val) && (queue.push({
3951
+ 'object' == typeof val && null !== val && -1 === refs.indexOf(val) && (queue[queue.length] = {
3945
3952
  obj: obj,
3946
3953
  prop: key
3947
- }), refs.push(val));
3954
+ }, refs[refs.length] = val);
3948
3955
  }
3949
3956
  return compactQueue(queue), value;
3950
3957
  },
@@ -3995,9 +4002,10 @@ var __webpack_modules__ = {
3995
4002
  isRegExp: function(obj) {
3996
4003
  return '[object RegExp]' === Object.prototype.toString.call(obj);
3997
4004
  },
4005
+ markOverflow: markOverflow,
3998
4006
  maybeMap: function(val, fn) {
3999
4007
  if (isArray(val)) {
4000
- for(var mapped = [], i = 0; i < val.length; i += 1)mapped.push(fn(val[i]));
4008
+ for(var mapped = [], i = 0; i < val.length; i += 1)mapped[mapped.length] = fn(val[i]);
4001
4009
  return mapped;
4002
4010
  }
4003
4011
  return fn(val);
@@ -4005,8 +4013,11 @@ var __webpack_modules__ = {
4005
4013
  merge: function merge(target, source, options) {
4006
4014
  if (!source) return target;
4007
4015
  if ('object' != typeof source && 'function' != typeof source) {
4008
- if (isArray(target)) target.push(source);
4009
- else if (!target || 'object' != typeof target) return [
4016
+ if (isArray(target)) {
4017
+ var nextIndex = target.length;
4018
+ if (options && 'number' == typeof options.arrayLimit && nextIndex > options.arrayLimit) return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
4019
+ target[nextIndex] = source;
4020
+ } else if (!target || 'object' != typeof target) return [
4010
4021
  target,
4011
4022
  source
4012
4023
  ];
@@ -4026,19 +4037,24 @@ var __webpack_modules__ = {
4026
4037
  }, m = 0; m < sourceKeys.length; m++)result[parseInt(sourceKeys[m], 10) + 1] = source[sourceKeys[m]];
4027
4038
  return markOverflow(result, getMaxIndex(source) + 1);
4028
4039
  }
4029
- return [
4040
+ var combined = [
4030
4041
  target
4031
4042
  ].concat(source);
4043
+ return options && 'number' == typeof options.arrayLimit && combined.length > options.arrayLimit ? markOverflow(arrayToObject(combined, options), combined.length - 1) : combined;
4032
4044
  }
4033
4045
  var mergeTarget = target;
4034
4046
  return (isArray(target) && !isArray(source) && (mergeTarget = arrayToObject(target, options)), isArray(target) && isArray(source)) ? (source.forEach(function(item, i) {
4035
4047
  if (has.call(target, i)) {
4036
4048
  var targetItem = target[i];
4037
- targetItem && 'object' == typeof targetItem && item && 'object' == typeof item ? target[i] = merge(targetItem, item, options) : target.push(item);
4049
+ targetItem && 'object' == typeof targetItem && item && 'object' == typeof item ? target[i] = merge(targetItem, item, options) : target[target.length] = item;
4038
4050
  } else target[i] = item;
4039
4051
  }), target) : Object.keys(source).reduce(function(acc, key) {
4040
4052
  var value = source[key];
4041
- return has.call(acc, key) ? acc[key] = merge(acc[key], value, options) : acc[key] = value, acc;
4053
+ if (has.call(acc, key) ? acc[key] = merge(acc[key], value, options) : acc[key] = value, isOverflow(source) && !isOverflow(acc) && markOverflow(acc, getMaxIndex(source)), isOverflow(acc)) {
4054
+ var keyNum = parseInt(key, 10);
4055
+ String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc) && setMaxIndex(acc, keyNum);
4056
+ }
4057
+ return acc;
4042
4058
  }, mergeTarget);
4043
4059
  }
4044
4060
  };
@@ -6518,7 +6534,26 @@ for(var __rspack_i in (()=>{
6518
6534
  };
6519
6535
  }(clientDistPath, {
6520
6536
  dev: !0
6521
- })), await this._router.setup(), process.once('exit', ()=>this.dispose()), process.once('SIGINT', ()=>this.dispose(0)), process.once('SIGTERM', ()=>this.dispose(0)), process.once('unhandledRejection', (reason)=>{
6537
+ })), this.app.use('/__open-in-editor', (req, res, next)=>{
6538
+ if ('GET' !== req.method && 'HEAD' !== req.method) return next();
6539
+ let url = new URL(req.url || '', "http://localhost"), file = url.searchParams.get('file'), editor = url.searchParams.get('editor') || void 0;
6540
+ if (!file) {
6541
+ res.statusCode = 400, res.end('Missing file parameter');
6542
+ return;
6543
+ }
6544
+ try {
6545
+ let launch = server_require('launch-editor'), responded = !1, safeEnd = (code, body)=>{
6546
+ responded || (responded = !0, res.statusCode = code, res.end(body));
6547
+ };
6548
+ launch(file, editor, (_fileName, errorMessage)=>{
6549
+ errorMessage && safeEnd(500, errorMessage);
6550
+ }), setTimeout(()=>{
6551
+ safeEnd(200, '');
6552
+ }, 200);
6553
+ } catch (err) {
6554
+ res.writableEnded || (res.statusCode = 500, res.end(err.message));
6555
+ }
6556
+ }), await this._router.setup(), process.once('exit', ()=>this.dispose()), process.once('SIGINT', ()=>this.dispose(0)), process.once('SIGTERM', ()=>this.dispose(0)), process.once('unhandledRejection', (reason)=>{
6522
6557
  console.error('Unhandled promise rejection:', reason), this.dispose(1);
6523
6558
  }), process.once('uncaughtException', (err, origin)=>{
6524
6559
  console.error('Uncaught exception:', err), origin && console.error('Exception origin:', origin), this.dispose(1);
@@ -6930,6 +6965,10 @@ for(var __rspack_i in (()=>{
6930
6965
  dependencies: []
6931
6966
  };
6932
6967
  },
6968
+ get treeShaking () {
6969
+ if (ctx.extraConfig?.mode === types_namespaceObject.SDK.IMode[types_namespaceObject.SDK.IMode.brief] || !ctx.extraConfig?.features?.treeShaking) return;
6970
+ return ctx._moduleGraph.toTreeShakingData();
6971
+ },
6933
6972
  get otherReports () {
6934
6973
  return {
6935
6974
  treemapReportHtml: ''
package/dist/index.js CHANGED
@@ -216,7 +216,7 @@ var installedChunks, installChunk, __webpack_modules__ = {
216
216
  };
217
217
  },
218
218
  "../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/types/urlencoded.js" (module, __unused_rspack_exports, __webpack_require__) {
219
- var createError = __webpack_require__("../../node_modules/.pnpm/http-errors@2.0.1/node_modules/http-errors/index.js"), debug = __webpack_require__("../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js")('body-parser:urlencoded'), read = __webpack_require__("../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/read.js"), qs = __webpack_require__("../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/index.js"), { normalizeOptions } = __webpack_require__("../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/utils.js");
219
+ var createError = __webpack_require__("../../node_modules/.pnpm/http-errors@2.0.1/node_modules/http-errors/index.js"), debug = __webpack_require__("../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js")('body-parser:urlencoded'), read = __webpack_require__("../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/read.js"), qs = __webpack_require__("../../node_modules/.pnpm/qs@6.14.2/node_modules/qs/lib/index.js"), { normalizeOptions } = __webpack_require__("../../node_modules/.pnpm/body-parser@2.2.2/node_modules/body-parser/lib/utils.js");
220
220
  module.exports = function(options) {
221
221
  let normalizedOptions = normalizeOptions(options, 'application/x-www-form-urlencoded');
222
222
  if ('utf-8' !== normalizedOptions.defaultCharset && 'iso-8859-1' !== normalizedOptions.defaultCharset) throw TypeError('option defaultCharset must be either utf-8 or iso-8859-1');
@@ -1863,7 +1863,7 @@ var installedChunks, installChunk, __webpack_modules__ = {
1863
1863
  xxbig5: "big5hkscs"
1864
1864
  };
1865
1865
  },
1866
- "../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/index.js" (__unused_rspack_module, exports, __webpack_require__) {
1866
+ "../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/index.js" (__unused_rspack___webpack_module__, exports, __webpack_require__) {
1867
1867
  for(var mergeModules = __webpack_require__("../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/lib/helpers/merge-exports.js"), modules = [
1868
1868
  __webpack_require__("../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/internal.js"),
1869
1869
  __webpack_require__("../../node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/utf32.js"),
@@ -3548,7 +3548,7 @@ var installedChunks, installChunk, __webpack_modules__ = {
3548
3548
  return 'boolean' == typeof msg.finished ? !!(msg.finished || socket && !socket.writable) : 'boolean' == typeof msg.complete ? !!(msg.upgrade || !socket || !socket.readable || msg.complete && !msg.readable) : void 0;
3549
3549
  }
3550
3550
  },
3551
- "../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/formats.js" (module) {
3551
+ "../../node_modules/.pnpm/qs@6.14.2/node_modules/qs/lib/formats.js" (module) {
3552
3552
  var replace = String.prototype.replace, percentTwenties = /%20/g, Format_RFC3986 = 'RFC3986';
3553
3553
  module.exports = {
3554
3554
  default: Format_RFC3986,
@@ -3564,16 +3564,16 @@ var installedChunks, installChunk, __webpack_modules__ = {
3564
3564
  RFC3986: Format_RFC3986
3565
3565
  };
3566
3566
  },
3567
- "../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/index.js" (module, __unused_rspack_exports, __webpack_require__) {
3568
- var stringify = __webpack_require__("../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/stringify.js"), parse = __webpack_require__("../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/parse.js");
3567
+ "../../node_modules/.pnpm/qs@6.14.2/node_modules/qs/lib/index.js" (module, __unused_rspack_exports, __webpack_require__) {
3568
+ var stringify = __webpack_require__("../../node_modules/.pnpm/qs@6.14.2/node_modules/qs/lib/stringify.js"), parse = __webpack_require__("../../node_modules/.pnpm/qs@6.14.2/node_modules/qs/lib/parse.js");
3569
3569
  module.exports = {
3570
- formats: __webpack_require__("../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/formats.js"),
3570
+ formats: __webpack_require__("../../node_modules/.pnpm/qs@6.14.2/node_modules/qs/lib/formats.js"),
3571
3571
  parse: parse,
3572
3572
  stringify: stringify
3573
3573
  };
3574
3574
  },
3575
- "../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/parse.js" (module, __unused_rspack_exports, __webpack_require__) {
3576
- var utils = __webpack_require__("../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/utils.js"), has = Object.prototype.hasOwnProperty, isArray = Array.isArray, defaults = {
3575
+ "../../node_modules/.pnpm/qs@6.14.2/node_modules/qs/lib/parse.js" (module, __unused_rspack_exports, __webpack_require__) {
3576
+ var utils = __webpack_require__("../../node_modules/.pnpm/qs@6.14.2/node_modules/qs/lib/utils.js"), has = Object.prototype.hasOwnProperty, isArray = Array.isArray, defaults = {
3577
3577
  allowDots: !1,
3578
3578
  allowEmptyArrays: !1,
3579
3579
  allowPrototypes: !1,
@@ -3616,7 +3616,11 @@ var installedChunks, installChunk, __webpack_modules__ = {
3616
3616
  return String.fromCharCode(parseInt(numberStr, 10));
3617
3617
  })), part.indexOf('[]=') > -1 && (val = isArray(val) ? [
3618
3618
  val
3619
- ] : val), null !== key) {
3619
+ ] : val), options.comma && isArray(val) && val.length > options.arrayLimit) {
3620
+ if (options.throwOnLimitExceeded) throw RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (1 === options.arrayLimit ? '' : 's') + ' allowed in an array.');
3621
+ val = utils.combine([], val, options.arrayLimit, options.plainObjects);
3622
+ }
3623
+ if (null !== key) {
3620
3624
  var existing = has.call(obj, key);
3621
3625
  existing && 'combine' === options.duplicates ? obj[key] = utils.combine(obj[key], val, options.arrayLimit, options.plainObjects) : existing && 'last' !== options.duplicates || (obj[key] = val);
3622
3626
  }
@@ -3635,8 +3639,11 @@ var installedChunks, installChunk, __webpack_modules__ = {
3635
3639
  obj = options.plainObjects ? {
3636
3640
  __proto__: null
3637
3641
  } : {};
3638
- var cleanRoot = '[' === root.charAt(0) && ']' === root.charAt(root.length - 1) ? root.slice(1, -1) : root, decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot, index = parseInt(decodedRoot, 10);
3639
- options.parseArrays || '' !== decodedRoot ? !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays && index <= options.arrayLimit ? (obj = [])[index] = leaf : '__proto__' !== decodedRoot && (obj[decodedRoot] = leaf) : obj = {
3642
+ var cleanRoot = '[' === root.charAt(0) && ']' === root.charAt(root.length - 1) ? root.slice(1, -1) : root, decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot, index = parseInt(decodedRoot, 10), isValidArrayIndex = !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays;
3643
+ if (options.parseArrays || '' !== decodedRoot) if (isValidArrayIndex && index < options.arrayLimit) (obj = [])[index] = leaf;
3644
+ else if (isValidArrayIndex && options.throwOnLimitExceeded) throw RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (1 === options.arrayLimit ? '' : 's') + ' allowed in an array.');
3645
+ else isValidArrayIndex ? (obj[index] = leaf, utils.markOverflow(obj, index)) : '__proto__' !== decodedRoot && (obj[decodedRoot] = leaf);
3646
+ else obj = {
3640
3647
  0: leaf
3641
3648
  };
3642
3649
  }
@@ -3654,17 +3661,17 @@ var installedChunks, installChunk, __webpack_modules__ = {
3654
3661
  var child = /(\[[^[\]]*])/g, segment = /(\[[^[\]]*])/.exec(key), parent = segment ? key.slice(0, segment.index) : key, keys = [];
3655
3662
  if (parent) {
3656
3663
  if (!options.plainObjects && has.call(Object.prototype, parent) && !options.allowPrototypes) return;
3657
- keys.push(parent);
3664
+ keys[keys.length] = parent;
3658
3665
  }
3659
3666
  for(var i = 0; null !== (segment = child.exec(key)) && i < options.depth;){
3660
3667
  i += 1;
3661
3668
  var segmentContent = segment[1].slice(1, -1);
3662
3669
  if (!options.plainObjects && has.call(Object.prototype, segmentContent) && !options.allowPrototypes) return;
3663
- keys.push(segment[1]);
3670
+ keys[keys.length] = segment[1];
3664
3671
  }
3665
3672
  if (segment) {
3666
3673
  if (!0 === options.strictDepth) throw RangeError('Input depth exceeded depth option of ' + options.depth + ' and strictDepth is true');
3667
- keys.push('[' + key.slice(segment.index) + ']');
3674
+ keys[keys.length] = '[' + key.slice(segment.index) + ']';
3668
3675
  }
3669
3676
  return keys;
3670
3677
  }, parseKeys = function(givenKey, val, options, valuesParsed) {
@@ -3719,8 +3726,8 @@ var installedChunks, installChunk, __webpack_modules__ = {
3719
3726
  return !0 === options.allowSparse ? obj : utils.compact(obj);
3720
3727
  };
3721
3728
  },
3722
- "../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/stringify.js" (module, __unused_rspack_exports, __webpack_require__) {
3723
- var getSideChannel = __webpack_require__("../../node_modules/.pnpm/side-channel@1.1.0/node_modules/side-channel/index.js"), utils = __webpack_require__("../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/utils.js"), formats = __webpack_require__("../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/formats.js"), has = Object.prototype.hasOwnProperty, arrayPrefixGenerators = {
3729
+ "../../node_modules/.pnpm/qs@6.14.2/node_modules/qs/lib/stringify.js" (module, __unused_rspack_exports, __webpack_require__) {
3730
+ var getSideChannel = __webpack_require__("../../node_modules/.pnpm/side-channel@1.1.0/node_modules/side-channel/index.js"), utils = __webpack_require__("../../node_modules/.pnpm/qs@6.14.2/node_modules/qs/lib/utils.js"), formats = __webpack_require__("../../node_modules/.pnpm/qs@6.14.2/node_modules/qs/lib/formats.js"), has = Object.prototype.hasOwnProperty, arrayPrefixGenerators = {
3724
3731
  brackets: function(prefix) {
3725
3732
  return prefix + '[]';
3726
3733
  },
@@ -3851,8 +3858,8 @@ var installedChunks, installChunk, __webpack_modules__ = {
3851
3858
  return options.charsetSentinel && ('iso-8859-1' === options.charset ? prefix += 'utf8=%26%2310003%3B&' : prefix += 'utf8=%E2%9C%93&'), joined.length > 0 ? prefix + joined : '';
3852
3859
  };
3853
3860
  },
3854
- "../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/utils.js" (module, __unused_rspack_exports, __webpack_require__) {
3855
- var formats = __webpack_require__("../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/formats.js"), getSideChannel = __webpack_require__("../../node_modules/.pnpm/side-channel@1.1.0/node_modules/side-channel/index.js"), has = Object.prototype.hasOwnProperty, isArray = Array.isArray, overflowChannel = getSideChannel(), markOverflow = function(obj, maxIndex) {
3861
+ "../../node_modules/.pnpm/qs@6.14.2/node_modules/qs/lib/utils.js" (module, __unused_rspack_exports, __webpack_require__) {
3862
+ var formats = __webpack_require__("../../node_modules/.pnpm/qs@6.14.2/node_modules/qs/lib/formats.js"), getSideChannel = __webpack_require__("../../node_modules/.pnpm/side-channel@1.1.0/node_modules/side-channel/index.js"), has = Object.prototype.hasOwnProperty, isArray = Array.isArray, overflowChannel = getSideChannel(), markOverflow = function(obj, maxIndex) {
3856
3863
  return overflowChannel.set(obj, maxIndex), obj;
3857
3864
  }, isOverflow = function(obj) {
3858
3865
  return overflowChannel.has(obj);
@@ -3861,13 +3868,13 @@ var installedChunks, installChunk, __webpack_modules__ = {
3861
3868
  }, setMaxIndex = function(obj, maxIndex) {
3862
3869
  overflowChannel.set(obj, maxIndex);
3863
3870
  }, hexTable = function() {
3864
- for(var array = [], i = 0; i < 256; ++i)array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
3871
+ for(var array = [], i = 0; i < 256; ++i)array[array.length] = '%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase();
3865
3872
  return array;
3866
3873
  }(), compactQueue = function(queue) {
3867
3874
  for(; queue.length > 1;){
3868
3875
  var item = queue.pop(), obj = item.obj[item.prop];
3869
3876
  if (isArray(obj)) {
3870
- for(var compacted = [], j = 0; j < obj.length; ++j)void 0 !== obj[j] && compacted.push(obj[j]);
3877
+ for(var compacted = [], j = 0; j < obj.length; ++j)void 0 !== obj[j] && (compacted[compacted.length] = obj[j]);
3871
3878
  item.obj[item.prop] = compacted;
3872
3879
  }
3873
3880
  }
@@ -3904,10 +3911,10 @@ var installedChunks, installChunk, __webpack_modules__ = {
3904
3911
  }
3905
3912
  ], refs = [], i = 0; i < queue.length; ++i)for(var item = queue[i], obj = item.obj[item.prop], keys = Object.keys(obj), j = 0; j < keys.length; ++j){
3906
3913
  var key = keys[j], val = obj[key];
3907
- 'object' == typeof val && null !== val && -1 === refs.indexOf(val) && (queue.push({
3914
+ 'object' == typeof val && null !== val && -1 === refs.indexOf(val) && (queue[queue.length] = {
3908
3915
  obj: obj,
3909
3916
  prop: key
3910
- }), refs.push(val));
3917
+ }, refs[refs.length] = val);
3911
3918
  }
3912
3919
  return compactQueue(queue), value;
3913
3920
  },
@@ -3958,9 +3965,10 @@ var installedChunks, installChunk, __webpack_modules__ = {
3958
3965
  isRegExp: function(obj) {
3959
3966
  return '[object RegExp]' === Object.prototype.toString.call(obj);
3960
3967
  },
3968
+ markOverflow: markOverflow,
3961
3969
  maybeMap: function(val, fn) {
3962
3970
  if (isArray(val)) {
3963
- for(var mapped = [], i = 0; i < val.length; i += 1)mapped.push(fn(val[i]));
3971
+ for(var mapped = [], i = 0; i < val.length; i += 1)mapped[mapped.length] = fn(val[i]);
3964
3972
  return mapped;
3965
3973
  }
3966
3974
  return fn(val);
@@ -3968,8 +3976,11 @@ var installedChunks, installChunk, __webpack_modules__ = {
3968
3976
  merge: function merge(target, source, options) {
3969
3977
  if (!source) return target;
3970
3978
  if ('object' != typeof source && 'function' != typeof source) {
3971
- if (isArray(target)) target.push(source);
3972
- else if (!target || 'object' != typeof target) return [
3979
+ if (isArray(target)) {
3980
+ var nextIndex = target.length;
3981
+ if (options && 'number' == typeof options.arrayLimit && nextIndex > options.arrayLimit) return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
3982
+ target[nextIndex] = source;
3983
+ } else if (!target || 'object' != typeof target) return [
3973
3984
  target,
3974
3985
  source
3975
3986
  ];
@@ -3989,19 +4000,24 @@ var installedChunks, installChunk, __webpack_modules__ = {
3989
4000
  }, m = 0; m < sourceKeys.length; m++)result[parseInt(sourceKeys[m], 10) + 1] = source[sourceKeys[m]];
3990
4001
  return markOverflow(result, getMaxIndex(source) + 1);
3991
4002
  }
3992
- return [
4003
+ var combined = [
3993
4004
  target
3994
4005
  ].concat(source);
4006
+ return options && 'number' == typeof options.arrayLimit && combined.length > options.arrayLimit ? markOverflow(arrayToObject(combined, options), combined.length - 1) : combined;
3995
4007
  }
3996
4008
  var mergeTarget = target;
3997
4009
  return (isArray(target) && !isArray(source) && (mergeTarget = arrayToObject(target, options)), isArray(target) && isArray(source)) ? (source.forEach(function(item, i) {
3998
4010
  if (has.call(target, i)) {
3999
4011
  var targetItem = target[i];
4000
- targetItem && 'object' == typeof targetItem && item && 'object' == typeof item ? target[i] = merge(targetItem, item, options) : target.push(item);
4012
+ targetItem && 'object' == typeof targetItem && item && 'object' == typeof item ? target[i] = merge(targetItem, item, options) : target[target.length] = item;
4001
4013
  } else target[i] = item;
4002
4014
  }), target) : Object.keys(source).reduce(function(acc, key) {
4003
4015
  var value = source[key];
4004
- return has.call(acc, key) ? acc[key] = merge(acc[key], value, options) : acc[key] = value, acc;
4016
+ if (has.call(acc, key) ? acc[key] = merge(acc[key], value, options) : acc[key] = value, isOverflow(source) && !isOverflow(acc) && markOverflow(acc, getMaxIndex(source)), isOverflow(acc)) {
4017
+ var keyNum = parseInt(key, 10);
4018
+ String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc) && setMaxIndex(acc, keyNum);
4019
+ }
4020
+ return acc;
4005
4021
  }, mergeTarget);
4006
4022
  }
4007
4023
  };
@@ -6415,7 +6431,26 @@ class RsdoctorServer {
6415
6431
  };
6416
6432
  }(clientDistPath, {
6417
6433
  dev: !0
6418
- })), await this._router.setup(), process.once('exit', ()=>this.dispose()), process.once('SIGINT', ()=>this.dispose(0)), process.once('SIGTERM', ()=>this.dispose(0)), process.once('unhandledRejection', (reason)=>{
6434
+ })), this.app.use('/__open-in-editor', (req, res, next)=>{
6435
+ if ('GET' !== req.method && 'HEAD' !== req.method) return next();
6436
+ let url = new URL(req.url || '', "http://localhost"), file = url.searchParams.get('file'), editor = url.searchParams.get('editor') || void 0;
6437
+ if (!file) {
6438
+ res.statusCode = 400, res.end('Missing file parameter');
6439
+ return;
6440
+ }
6441
+ try {
6442
+ let launch = server_require('launch-editor'), responded = !1, safeEnd = (code, body)=>{
6443
+ responded || (responded = !0, res.statusCode = code, res.end(body));
6444
+ };
6445
+ launch(file, editor, (_fileName, errorMessage)=>{
6446
+ errorMessage && safeEnd(500, errorMessage);
6447
+ }), setTimeout(()=>{
6448
+ safeEnd(200, '');
6449
+ }, 200);
6450
+ } catch (err) {
6451
+ res.writableEnded || (res.statusCode = 500, res.end(err.message));
6452
+ }
6453
+ }), await this._router.setup(), process.once('exit', ()=>this.dispose()), process.once('SIGINT', ()=>this.dispose(0)), process.once('SIGTERM', ()=>this.dispose(0)), process.once('unhandledRejection', (reason)=>{
6419
6454
  console.error('Unhandled promise rejection:', reason), this.dispose(1);
6420
6455
  }), process.once('uncaughtException', (err, origin)=>{
6421
6456
  console.error('Uncaught exception:', err), origin && console.error('Exception origin:', origin), this.dispose(1);
@@ -6825,6 +6860,10 @@ class RsdoctorSDK extends SDKCore {
6825
6860
  dependencies: []
6826
6861
  };
6827
6862
  },
6863
+ get treeShaking () {
6864
+ if (ctx.extraConfig?.mode === SDK.IMode[SDK.IMode.brief] || !ctx.extraConfig?.features?.treeShaking) return;
6865
+ return ctx._moduleGraph.toTreeShakingData();
6866
+ },
6828
6867
  get otherReports () {
6829
6868
  return {
6830
6869
  treemapReportHtml: ''
@@ -25,8 +25,8 @@ export declare class RsdoctorPrimarySDK extends RsdoctorSDK implements SDK.Rsdoc
25
25
  get isMaster(): boolean;
26
26
  protected writePieces(): Promise<void>;
27
27
  protected writeManifest(): Promise<string>;
28
- getSeriesData(serverUrl?: boolean): import("@rsdoctor/types/dist/manifest").RsdoctorManifestSeriesData[];
28
+ getSeriesData(serverUrl?: boolean): import("node_modules/@rsdoctor/types/dist/manifest").RsdoctorManifestSeriesData[];
29
29
  setName(name: string): void;
30
- getManifestData(): import("@rsdoctor/types/dist/manifest").RsdoctorManifestWithShardingFiles;
30
+ getManifestData(): import("node_modules/@rsdoctor/types/dist/manifest").RsdoctorManifestWithShardingFiles;
31
31
  }
32
32
  export {};
@@ -10,6 +10,6 @@ export declare class SocketAPILoader implements Manifest.ManifestDataLoader {
10
10
  loadManifest(): Promise<Manifest.RsdoctorManifestWithShardingFiles>;
11
11
  loadData<T extends Manifest.RsdoctorManifestMappingKeys>(key: T): Promise<Manifest.InferManifestDataValue<T>>;
12
12
  loadData(key: string): Promise<void>;
13
- get loadAPIData(): <T extends SDK.ServerAPI.API, B extends SDK.ServerAPI.InferRequestBodyType<T> = import("@rsdoctor/types/dist/common").Get<SDK.ServerAPI.RequestBodyTypes, T, void>, R extends SDK.ServerAPI.InferResponseType<T> = import("@rsdoctor/types/dist/common").Get<SDK.ServerAPI.ResponseTypes, T, void>>(...args: B extends void ? [api: T] : [api: T, body: B]) => Promise<SDK.ServerAPI.InferResponseType<T>>;
13
+ get loadAPIData(): <T extends SDK.ServerAPI.API, B extends SDK.ServerAPI.InferRequestBodyType<T> = import("node_modules/@rsdoctor/types/dist/common").Get<SDK.ServerAPI.RequestBodyTypes, T, void>, R extends SDK.ServerAPI.InferResponseType<T> = import("node_modules/@rsdoctor/types/dist/common").Get<SDK.ServerAPI.ResponseTypes, T, void>>(...args: B extends void ? [api: T] : [api: T, body: B]) => Promise<SDK.ServerAPI.InferResponseType<T>>;
14
14
  }
15
15
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsdoctor/sdk",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/web-infra-dev/rsdoctor",
@@ -23,13 +23,14 @@
23
23
  "compiled"
24
24
  ],
25
25
  "dependencies": {
26
+ "launch-editor": "^2.10.0",
26
27
  "safer-buffer": "2.1.2",
27
28
  "socket.io": "4.8.1",
28
29
  "tapable": "2.2.3",
29
- "@rsdoctor/client": "1.5.2",
30
- "@rsdoctor/graph": "1.5.2",
31
- "@rsdoctor/utils": "1.5.2",
32
- "@rsdoctor/types": "1.5.2"
30
+ "@rsdoctor/client": "1.5.3",
31
+ "@rsdoctor/types": "1.5.3",
32
+ "@rsdoctor/graph": "1.5.3",
33
+ "@rsdoctor/utils": "1.5.3"
33
34
  },
34
35
  "devDependencies": {
35
36
  "@types/body-parser": "1.19.6",
@@ -44,7 +45,7 @@
44
45
  "open": "^10.2.0",
45
46
  "sirv": "3.0.2",
46
47
  "source-map": "^0.7.6",
47
- "prebundle": "1.4.2",
48
+ "prebundle": "1.6.2",
48
49
  "tslib": "2.8.1",
49
50
  "typescript": "^5.9.2"
50
51
  },