@airpower/web 1.10.8 → 1.10.12

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/main.js CHANGED
@@ -536,16 +536,7 @@ var zhCn = {
536
536
  confirmFilter: "筛选",
537
537
  resetFilter: "重置",
538
538
  clearFilter: "全部",
539
- sumText: "合计",
540
- selectAllLabel: "选择所有行",
541
- selectRowLabel: "选择当前行",
542
- expandRowLabel: "展开当前行",
543
- collapseRowLabel: "收起当前行",
544
- sortLabel: "按 {column} 排序",
545
- filterLabel: "按 {column} 过滤"
546
- },
547
- tag: {
548
- close: "关闭此标签"
539
+ sumText: "合计"
549
540
  },
550
541
  tour: {
551
542
  next: "下一步",
@@ -1379,18 +1370,18 @@ var hasRequiredClipboard;
1379
1370
  function requireClipboard() {
1380
1371
  if (hasRequiredClipboard) return clipboard$1.exports;
1381
1372
  hasRequiredClipboard = 1;
1382
- (function(module, exports$1) {
1373
+ (function(module, exports) {
1383
1374
  (function webpackUniversalModuleDefinition(root, factory) {
1384
1375
  module.exports = factory();
1385
1376
  })(clipboard, function() {
1386
1377
  return (
1387
1378
  /******/
1388
- (function() {
1379
+ function() {
1389
1380
  var __webpack_modules__ = {
1390
1381
  /***/
1391
1382
  686: (
1392
1383
  /***/
1393
- (function(__unused_webpack_module, __webpack_exports__, __webpack_require__2) {
1384
+ function(__unused_webpack_module, __webpack_exports__, __webpack_require__2) {
1394
1385
  __webpack_require__2.d(__webpack_exports__, {
1395
1386
  "default": function() {
1396
1387
  return (
@@ -1596,7 +1587,7 @@ function requireClipboard() {
1596
1587
  }
1597
1588
  return element.getAttribute(attribute);
1598
1589
  }
1599
- var Clipboard2 = /* @__PURE__ */ (function(_Emitter) {
1590
+ var Clipboard2 = /* @__PURE__ */ function(_Emitter) {
1600
1591
  _inherits(Clipboard3, _Emitter);
1601
1592
  var _super = _createSuper(Clipboard3);
1602
1593
  function Clipboard3(trigger, options) {
@@ -1735,14 +1726,14 @@ function requireClipboard() {
1735
1726
  }
1736
1727
  }]);
1737
1728
  return Clipboard3;
1738
- })(tiny_emitter_default());
1729
+ }(tiny_emitter_default());
1739
1730
  var clipboard2 = Clipboard2;
1740
- })
1731
+ }
1741
1732
  ),
1742
1733
  /***/
1743
1734
  828: (
1744
1735
  /***/
1745
- (function(module2) {
1736
+ function(module2) {
1746
1737
  var DOCUMENT_NODE_TYPE = 9;
1747
1738
  if (typeof Element !== "undefined" && !Element.prototype.matches) {
1748
1739
  var proto = Element.prototype;
@@ -1757,12 +1748,12 @@ function requireClipboard() {
1757
1748
  }
1758
1749
  }
1759
1750
  module2.exports = closest;
1760
- })
1751
+ }
1761
1752
  ),
1762
1753
  /***/
1763
1754
  438: (
1764
1755
  /***/
1765
- (function(module2, __unused_webpack_exports, __webpack_require__2) {
1756
+ function(module2, __unused_webpack_exports, __webpack_require__2) {
1766
1757
  var closest = __webpack_require__2(828);
1767
1758
  function _delegate(element, selector, type, callback, useCapture) {
1768
1759
  var listenerFn = listener.apply(this, arguments);
@@ -1796,32 +1787,32 @@ function requireClipboard() {
1796
1787
  };
1797
1788
  }
1798
1789
  module2.exports = delegate;
1799
- })
1790
+ }
1800
1791
  ),
1801
1792
  /***/
1802
1793
  879: (
1803
1794
  /***/
1804
- (function(__unused_webpack_module, exports$12) {
1805
- exports$12.node = function(value) {
1795
+ function(__unused_webpack_module, exports2) {
1796
+ exports2.node = function(value) {
1806
1797
  return value !== void 0 && value instanceof HTMLElement && value.nodeType === 1;
1807
1798
  };
1808
- exports$12.nodeList = function(value) {
1799
+ exports2.nodeList = function(value) {
1809
1800
  var type = Object.prototype.toString.call(value);
1810
- return value !== void 0 && (type === "[object NodeList]" || type === "[object HTMLCollection]") && "length" in value && (value.length === 0 || exports$12.node(value[0]));
1801
+ return value !== void 0 && (type === "[object NodeList]" || type === "[object HTMLCollection]") && "length" in value && (value.length === 0 || exports2.node(value[0]));
1811
1802
  };
1812
- exports$12.string = function(value) {
1803
+ exports2.string = function(value) {
1813
1804
  return typeof value === "string" || value instanceof String;
1814
1805
  };
1815
- exports$12.fn = function(value) {
1806
+ exports2.fn = function(value) {
1816
1807
  var type = Object.prototype.toString.call(value);
1817
1808
  return type === "[object Function]";
1818
1809
  };
1819
- })
1810
+ }
1820
1811
  ),
1821
1812
  /***/
1822
1813
  370: (
1823
1814
  /***/
1824
- (function(module2, __unused_webpack_exports, __webpack_require__2) {
1815
+ function(module2, __unused_webpack_exports, __webpack_require__2) {
1825
1816
  var is = __webpack_require__2(879);
1826
1817
  var delegate = __webpack_require__2(438);
1827
1818
  function listen(target, type, callback) {
@@ -1868,12 +1859,12 @@ function requireClipboard() {
1868
1859
  return delegate(document.body, selector, type, callback);
1869
1860
  }
1870
1861
  module2.exports = listen;
1871
- })
1862
+ }
1872
1863
  ),
1873
1864
  /***/
1874
1865
  817: (
1875
1866
  /***/
1876
- (function(module2) {
1867
+ function(module2) {
1877
1868
  function select(element) {
1878
1869
  var selectedText;
1879
1870
  if (element.nodeName === "SELECT") {
@@ -1904,12 +1895,12 @@ function requireClipboard() {
1904
1895
  return selectedText;
1905
1896
  }
1906
1897
  module2.exports = select;
1907
- })
1898
+ }
1908
1899
  ),
1909
1900
  /***/
1910
1901
  279: (
1911
1902
  /***/
1912
- (function(module2) {
1903
+ function(module2) {
1913
1904
  function E() {
1914
1905
  }
1915
1906
  E.prototype = {
@@ -1956,7 +1947,7 @@ function requireClipboard() {
1956
1947
  };
1957
1948
  module2.exports = E;
1958
1949
  module2.exports.TinyEmitter = E;
1959
- })
1950
+ }
1960
1951
  )
1961
1952
  /******/
1962
1953
  };
@@ -1977,7 +1968,7 @@ function requireClipboard() {
1977
1968
  __webpack_modules__[moduleId](module2, module2.exports, __webpack_require__);
1978
1969
  return module2.exports;
1979
1970
  }
1980
- !(function() {
1971
+ !function() {
1981
1972
  __webpack_require__.n = function(module2) {
1982
1973
  var getter = module2 && module2.__esModule ? (
1983
1974
  /******/
@@ -1993,23 +1984,23 @@ function requireClipboard() {
1993
1984
  __webpack_require__.d(getter, { a: getter });
1994
1985
  return getter;
1995
1986
  };
1996
- })();
1997
- !(function() {
1998
- __webpack_require__.d = function(exports$12, definition) {
1987
+ }();
1988
+ !function() {
1989
+ __webpack_require__.d = function(exports2, definition) {
1999
1990
  for (var key in definition) {
2000
- if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports$12, key)) {
2001
- Object.defineProperty(exports$12, key, { enumerable: true, get: definition[key] });
1991
+ if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports2, key)) {
1992
+ Object.defineProperty(exports2, key, { enumerable: true, get: definition[key] });
2002
1993
  }
2003
1994
  }
2004
1995
  };
2005
- })();
2006
- !(function() {
1996
+ }();
1997
+ !function() {
2007
1998
  __webpack_require__.o = function(obj, prop) {
2008
1999
  return Object.prototype.hasOwnProperty.call(obj, prop);
2009
2000
  };
2010
- })();
2001
+ }();
2011
2002
  return __webpack_require__(686);
2012
- })().default
2003
+ }().default
2013
2004
  );
2014
2005
  });
2015
2006
  })(clipboard$1);
@@ -2440,13 +2431,13 @@ var hasRequiredCore;
2440
2431
  function requireCore() {
2441
2432
  if (hasRequiredCore) return core$1.exports;
2442
2433
  hasRequiredCore = 1;
2443
- (function(module, exports$1) {
2434
+ (function(module, exports) {
2444
2435
  (function(root, factory) {
2445
2436
  {
2446
2437
  module.exports = factory();
2447
2438
  }
2448
2439
  })(core, function() {
2449
- var CryptoJS2 = CryptoJS2 || (function(Math2, undefined$1) {
2440
+ var CryptoJS2 = CryptoJS2 || function(Math2, undefined$1) {
2450
2441
  var crypto;
2451
2442
  if (typeof window !== "undefined" && window.crypto) {
2452
2443
  crypto = window.crypto;
@@ -2486,7 +2477,7 @@ function requireCore() {
2486
2477
  }
2487
2478
  throw new Error("Native crypto module could not be used to get secure random number.");
2488
2479
  };
2489
- var create = Object.create || /* @__PURE__ */ (function() {
2480
+ var create = Object.create || /* @__PURE__ */ function() {
2490
2481
  function F() {
2491
2482
  }
2492
2483
  return function(obj) {
@@ -2496,10 +2487,10 @@ function requireCore() {
2496
2487
  F.prototype = null;
2497
2488
  return subtype;
2498
2489
  };
2499
- })();
2490
+ }();
2500
2491
  var C = {};
2501
2492
  var C_lib = C.lib = {};
2502
- var Base = C_lib.Base = /* @__PURE__ */ (function() {
2493
+ var Base = C_lib.Base = /* @__PURE__ */ function() {
2503
2494
  return {
2504
2495
  /**
2505
2496
  * Creates a new object that inherits from this object.
@@ -2598,7 +2589,7 @@ function requireCore() {
2598
2589
  return this.init.prototype.extend(this);
2599
2590
  }
2600
2591
  };
2601
- })();
2592
+ }();
2602
2593
  var WordArray = C_lib.WordArray = Base.extend({
2603
2594
  /**
2604
2595
  * Initializes a newly created word array.
@@ -3036,7 +3027,7 @@ function requireCore() {
3036
3027
  });
3037
3028
  var C_algo = C.algo = {};
3038
3029
  return C;
3039
- })(Math);
3030
+ }(Math);
3040
3031
  return CryptoJS2;
3041
3032
  });
3042
3033
  })(core$1);
@@ -3048,7 +3039,7 @@ var hasRequiredX64Core;
3048
3039
  function requireX64Core() {
3049
3040
  if (hasRequiredX64Core) return x64Core$1.exports;
3050
3041
  hasRequiredX64Core = 1;
3051
- (function(module, exports$1) {
3042
+ (function(module, exports) {
3052
3043
  (function(root, factory) {
3053
3044
  {
3054
3045
  module.exports = factory(requireCore());
@@ -3305,7 +3296,7 @@ var hasRequiredLibTypedarrays;
3305
3296
  function requireLibTypedarrays() {
3306
3297
  if (hasRequiredLibTypedarrays) return libTypedarrays$1.exports;
3307
3298
  hasRequiredLibTypedarrays = 1;
3308
- (function(module, exports$1) {
3299
+ (function(module, exports) {
3309
3300
  (function(root, factory) {
3310
3301
  {
3311
3302
  module.exports = factory(requireCore());
@@ -3350,7 +3341,7 @@ var hasRequiredEncUtf16;
3350
3341
  function requireEncUtf16() {
3351
3342
  if (hasRequiredEncUtf16) return encUtf16$1.exports;
3352
3343
  hasRequiredEncUtf16 = 1;
3353
- (function(module, exports$1) {
3344
+ (function(module, exports) {
3354
3345
  (function(root, factory) {
3355
3346
  {
3356
3347
  module.exports = factory(requireCore());
@@ -3468,7 +3459,7 @@ var hasRequiredEncBase64;
3468
3459
  function requireEncBase64() {
3469
3460
  if (hasRequiredEncBase64) return encBase64$1.exports;
3470
3461
  hasRequiredEncBase64 = 1;
3471
- (function(module, exports$1) {
3462
+ (function(module, exports) {
3472
3463
  (function(root, factory) {
3473
3464
  {
3474
3465
  module.exports = factory(requireCore());
@@ -3576,7 +3567,7 @@ var hasRequiredEncBase64url;
3576
3567
  function requireEncBase64url() {
3577
3568
  if (hasRequiredEncBase64url) return encBase64url$1.exports;
3578
3569
  hasRequiredEncBase64url = 1;
3579
- (function(module, exports$1) {
3570
+ (function(module, exports) {
3580
3571
  (function(root, factory) {
3581
3572
  {
3582
3573
  module.exports = factory(requireCore());
@@ -3695,7 +3686,7 @@ var hasRequiredMd5;
3695
3686
  function requireMd5() {
3696
3687
  if (hasRequiredMd5) return md5$1.exports;
3697
3688
  hasRequiredMd5 = 1;
3698
- (function(module, exports$1) {
3689
+ (function(module, exports) {
3699
3690
  (function(root, factory) {
3700
3691
  {
3701
3692
  module.exports = factory(requireCore());
@@ -3874,7 +3865,7 @@ var hasRequiredSha1;
3874
3865
  function requireSha1() {
3875
3866
  if (hasRequiredSha1) return sha1$1.exports;
3876
3867
  hasRequiredSha1 = 1;
3877
- (function(module, exports$1) {
3868
+ (function(module, exports) {
3878
3869
  (function(root, factory) {
3879
3870
  {
3880
3871
  module.exports = factory(requireCore());
@@ -3965,7 +3956,7 @@ var hasRequiredSha256;
3965
3956
  function requireSha256() {
3966
3957
  if (hasRequiredSha256) return sha256$1.exports;
3967
3958
  hasRequiredSha256 = 1;
3968
- (function(module, exports$1) {
3959
+ (function(module, exports) {
3969
3960
  (function(root, factory) {
3970
3961
  {
3971
3962
  module.exports = factory(requireCore());
@@ -4086,7 +4077,7 @@ var hasRequiredSha224;
4086
4077
  function requireSha224() {
4087
4078
  if (hasRequiredSha224) return sha224$1.exports;
4088
4079
  hasRequiredSha224 = 1;
4089
- (function(module, exports$1) {
4080
+ (function(module, exports) {
4090
4081
  (function(root, factory, undef) {
4091
4082
  {
4092
4083
  module.exports = factory(requireCore(), requireSha256());
@@ -4131,7 +4122,7 @@ var hasRequiredSha512;
4131
4122
  function requireSha512() {
4132
4123
  if (hasRequiredSha512) return sha512$1.exports;
4133
4124
  hasRequiredSha512 = 1;
4134
- (function(module, exports$1) {
4125
+ (function(module, exports) {
4135
4126
  (function(root, factory, undef) {
4136
4127
  {
4137
4128
  module.exports = factory(requireCore(), requireX64Core());
@@ -4413,7 +4404,7 @@ var hasRequiredSha384;
4413
4404
  function requireSha384() {
4414
4405
  if (hasRequiredSha384) return sha384$1.exports;
4415
4406
  hasRequiredSha384 = 1;
4416
- (function(module, exports$1) {
4407
+ (function(module, exports) {
4417
4408
  (function(root, factory, undef) {
4418
4409
  {
4419
4410
  module.exports = factory(requireCore(), requireX64Core(), requireSha512());
@@ -4459,7 +4450,7 @@ var hasRequiredSha3;
4459
4450
  function requireSha3() {
4460
4451
  if (hasRequiredSha3) return sha3$1.exports;
4461
4452
  hasRequiredSha3 = 1;
4462
- (function(module, exports$1) {
4453
+ (function(module, exports) {
4463
4454
  (function(root, factory, undef) {
4464
4455
  {
4465
4456
  module.exports = factory(requireCore(), requireX64Core());
@@ -4661,7 +4652,7 @@ var hasRequiredRipemd160;
4661
4652
  function requireRipemd160() {
4662
4653
  if (hasRequiredRipemd160) return ripemd160$1.exports;
4663
4654
  hasRequiredRipemd160 = 1;
4664
- (function(module, exports$1) {
4655
+ (function(module, exports) {
4665
4656
  (function(root, factory) {
4666
4657
  {
4667
4658
  module.exports = factory(requireCore());
@@ -5132,7 +5123,7 @@ var hasRequiredHmac;
5132
5123
  function requireHmac() {
5133
5124
  if (hasRequiredHmac) return hmac$1.exports;
5134
5125
  hasRequiredHmac = 1;
5135
- (function(module, exports$1) {
5126
+ (function(module, exports) {
5136
5127
  (function(root, factory) {
5137
5128
  {
5138
5129
  module.exports = factory(requireCore());
@@ -5239,7 +5230,7 @@ var hasRequiredPbkdf2;
5239
5230
  function requirePbkdf2() {
5240
5231
  if (hasRequiredPbkdf2) return pbkdf2$1.exports;
5241
5232
  hasRequiredPbkdf2 = 1;
5242
- (function(module, exports$1) {
5233
+ (function(module, exports) {
5243
5234
  (function(root, factory, undef) {
5244
5235
  {
5245
5236
  module.exports = factory(requireCore(), requireSha256(), requireHmac());
@@ -5337,7 +5328,7 @@ var hasRequiredEvpkdf;
5337
5328
  function requireEvpkdf() {
5338
5329
  if (hasRequiredEvpkdf) return evpkdf$1.exports;
5339
5330
  hasRequiredEvpkdf = 1;
5340
- (function(module, exports$1) {
5331
+ (function(module, exports) {
5341
5332
  (function(root, factory, undef) {
5342
5333
  {
5343
5334
  module.exports = factory(requireCore(), requireSha1(), requireHmac());
@@ -5428,13 +5419,13 @@ var hasRequiredCipherCore;
5428
5419
  function requireCipherCore() {
5429
5420
  if (hasRequiredCipherCore) return cipherCore$1.exports;
5430
5421
  hasRequiredCipherCore = 1;
5431
- (function(module, exports$1) {
5422
+ (function(module, exports) {
5432
5423
  (function(root, factory, undef) {
5433
5424
  {
5434
5425
  module.exports = factory(requireCore(), requireEvpkdf());
5435
5426
  }
5436
5427
  })(cipherCore, function(CryptoJS2) {
5437
- CryptoJS2.lib.Cipher || (function(undefined$1) {
5428
+ CryptoJS2.lib.Cipher || function(undefined$1) {
5438
5429
  var C = CryptoJS2;
5439
5430
  var C_lib = C.lib;
5440
5431
  var Base = C_lib.Base;
@@ -5568,7 +5559,7 @@ function requireCipherCore() {
5568
5559
  *
5569
5560
  * var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);
5570
5561
  */
5571
- _createHelper: /* @__PURE__ */ (function() {
5562
+ _createHelper: /* @__PURE__ */ function() {
5572
5563
  function selectCipherStrategy(key) {
5573
5564
  if (typeof key == "string") {
5574
5565
  return PasswordBasedCipher;
@@ -5586,7 +5577,7 @@ function requireCipherCore() {
5586
5577
  }
5587
5578
  };
5588
5579
  };
5589
- })()
5580
+ }()
5590
5581
  });
5591
5582
  C_lib.StreamCipher = Cipher.extend({
5592
5583
  _doFinalize: function() {
@@ -5642,7 +5633,7 @@ function requireCipherCore() {
5642
5633
  this._iv = iv;
5643
5634
  }
5644
5635
  });
5645
- var CBC = C_mode.CBC = (function() {
5636
+ var CBC = C_mode.CBC = function() {
5646
5637
  var CBC2 = BlockCipherMode.extend();
5647
5638
  CBC2.Encryptor = CBC2.extend({
5648
5639
  /**
@@ -5697,7 +5688,7 @@ function requireCipherCore() {
5697
5688
  }
5698
5689
  }
5699
5690
  return CBC2;
5700
- })();
5691
+ }();
5701
5692
  var C_pad = C.pad = {};
5702
5693
  var Pkcs7 = C_pad.Pkcs7 = {
5703
5694
  /**
@@ -6061,7 +6052,7 @@ function requireCipherCore() {
6061
6052
  return plaintext;
6062
6053
  }
6063
6054
  });
6064
- })();
6055
+ }();
6065
6056
  });
6066
6057
  })(cipherCore$1);
6067
6058
  return cipherCore$1.exports;
@@ -6072,13 +6063,13 @@ var hasRequiredModeCfb;
6072
6063
  function requireModeCfb() {
6073
6064
  if (hasRequiredModeCfb) return modeCfb$1.exports;
6074
6065
  hasRequiredModeCfb = 1;
6075
- (function(module, exports$1) {
6066
+ (function(module, exports) {
6076
6067
  (function(root, factory, undef) {
6077
6068
  {
6078
6069
  module.exports = factory(requireCore(), requireCipherCore());
6079
6070
  }
6080
6071
  })(modeCfb, function(CryptoJS2) {
6081
- CryptoJS2.mode.CFB = (function() {
6072
+ CryptoJS2.mode.CFB = function() {
6082
6073
  var CFB = CryptoJS2.lib.BlockCipherMode.extend();
6083
6074
  CFB.Encryptor = CFB.extend({
6084
6075
  processBlock: function(words, offset) {
@@ -6112,7 +6103,7 @@ function requireModeCfb() {
6112
6103
  }
6113
6104
  }
6114
6105
  return CFB;
6115
- })();
6106
+ }();
6116
6107
  return CryptoJS2.mode.CFB;
6117
6108
  });
6118
6109
  })(modeCfb$1);
@@ -6124,13 +6115,13 @@ var hasRequiredModeCtr;
6124
6115
  function requireModeCtr() {
6125
6116
  if (hasRequiredModeCtr) return modeCtr$1.exports;
6126
6117
  hasRequiredModeCtr = 1;
6127
- (function(module, exports$1) {
6118
+ (function(module, exports) {
6128
6119
  (function(root, factory, undef) {
6129
6120
  {
6130
6121
  module.exports = factory(requireCore(), requireCipherCore());
6131
6122
  }
6132
6123
  })(modeCtr, function(CryptoJS2) {
6133
- CryptoJS2.mode.CTR = (function() {
6124
+ CryptoJS2.mode.CTR = function() {
6134
6125
  var CTR = CryptoJS2.lib.BlockCipherMode.extend();
6135
6126
  var Encryptor = CTR.Encryptor = CTR.extend({
6136
6127
  processBlock: function(words, offset) {
@@ -6152,7 +6143,7 @@ function requireModeCtr() {
6152
6143
  });
6153
6144
  CTR.Decryptor = Encryptor;
6154
6145
  return CTR;
6155
- })();
6146
+ }();
6156
6147
  return CryptoJS2.mode.CTR;
6157
6148
  });
6158
6149
  })(modeCtr$1);
@@ -6164,13 +6155,13 @@ var hasRequiredModeCtrGladman;
6164
6155
  function requireModeCtrGladman() {
6165
6156
  if (hasRequiredModeCtrGladman) return modeCtrGladman$1.exports;
6166
6157
  hasRequiredModeCtrGladman = 1;
6167
- (function(module, exports$1) {
6158
+ (function(module, exports) {
6168
6159
  (function(root, factory, undef) {
6169
6160
  {
6170
6161
  module.exports = factory(requireCore(), requireCipherCore());
6171
6162
  }
6172
6163
  })(modeCtrGladman, function(CryptoJS2) {
6173
- CryptoJS2.mode.CTRGladman = (function() {
6164
+ CryptoJS2.mode.CTRGladman = function() {
6174
6165
  var CTRGladman = CryptoJS2.lib.BlockCipherMode.extend();
6175
6166
  function incWord(word) {
6176
6167
  if ((word >> 24 & 255) === 255) {
@@ -6227,7 +6218,7 @@ function requireModeCtrGladman() {
6227
6218
  });
6228
6219
  CTRGladman.Decryptor = Encryptor;
6229
6220
  return CTRGladman;
6230
- })();
6221
+ }();
6231
6222
  return CryptoJS2.mode.CTRGladman;
6232
6223
  });
6233
6224
  })(modeCtrGladman$1);
@@ -6239,13 +6230,13 @@ var hasRequiredModeOfb;
6239
6230
  function requireModeOfb() {
6240
6231
  if (hasRequiredModeOfb) return modeOfb$1.exports;
6241
6232
  hasRequiredModeOfb = 1;
6242
- (function(module, exports$1) {
6233
+ (function(module, exports) {
6243
6234
  (function(root, factory, undef) {
6244
6235
  {
6245
6236
  module.exports = factory(requireCore(), requireCipherCore());
6246
6237
  }
6247
6238
  })(modeOfb, function(CryptoJS2) {
6248
- CryptoJS2.mode.OFB = (function() {
6239
+ CryptoJS2.mode.OFB = function() {
6249
6240
  var OFB = CryptoJS2.lib.BlockCipherMode.extend();
6250
6241
  var Encryptor = OFB.Encryptor = OFB.extend({
6251
6242
  processBlock: function(words, offset) {
@@ -6265,7 +6256,7 @@ function requireModeOfb() {
6265
6256
  });
6266
6257
  OFB.Decryptor = Encryptor;
6267
6258
  return OFB;
6268
- })();
6259
+ }();
6269
6260
  return CryptoJS2.mode.OFB;
6270
6261
  });
6271
6262
  })(modeOfb$1);
@@ -6277,13 +6268,13 @@ var hasRequiredModeEcb;
6277
6268
  function requireModeEcb() {
6278
6269
  if (hasRequiredModeEcb) return modeEcb$1.exports;
6279
6270
  hasRequiredModeEcb = 1;
6280
- (function(module, exports$1) {
6271
+ (function(module, exports) {
6281
6272
  (function(root, factory, undef) {
6282
6273
  {
6283
6274
  module.exports = factory(requireCore(), requireCipherCore());
6284
6275
  }
6285
6276
  })(modeEcb, function(CryptoJS2) {
6286
- CryptoJS2.mode.ECB = (function() {
6277
+ CryptoJS2.mode.ECB = function() {
6287
6278
  var ECB = CryptoJS2.lib.BlockCipherMode.extend();
6288
6279
  ECB.Encryptor = ECB.extend({
6289
6280
  processBlock: function(words, offset) {
@@ -6296,7 +6287,7 @@ function requireModeEcb() {
6296
6287
  }
6297
6288
  });
6298
6289
  return ECB;
6299
- })();
6290
+ }();
6300
6291
  return CryptoJS2.mode.ECB;
6301
6292
  });
6302
6293
  })(modeEcb$1);
@@ -6308,7 +6299,7 @@ var hasRequiredPadAnsix923;
6308
6299
  function requirePadAnsix923() {
6309
6300
  if (hasRequiredPadAnsix923) return padAnsix923$1.exports;
6310
6301
  hasRequiredPadAnsix923 = 1;
6311
- (function(module, exports$1) {
6302
+ (function(module, exports) {
6312
6303
  (function(root, factory, undef) {
6313
6304
  {
6314
6305
  module.exports = factory(requireCore(), requireCipherCore());
@@ -6340,7 +6331,7 @@ var hasRequiredPadIso10126;
6340
6331
  function requirePadIso10126() {
6341
6332
  if (hasRequiredPadIso10126) return padIso10126$1.exports;
6342
6333
  hasRequiredPadIso10126 = 1;
6343
- (function(module, exports$1) {
6334
+ (function(module, exports) {
6344
6335
  (function(root, factory, undef) {
6345
6336
  {
6346
6337
  module.exports = factory(requireCore(), requireCipherCore());
@@ -6368,7 +6359,7 @@ var hasRequiredPadIso97971;
6368
6359
  function requirePadIso97971() {
6369
6360
  if (hasRequiredPadIso97971) return padIso97971$1.exports;
6370
6361
  hasRequiredPadIso97971 = 1;
6371
- (function(module, exports$1) {
6362
+ (function(module, exports) {
6372
6363
  (function(root, factory, undef) {
6373
6364
  {
6374
6365
  module.exports = factory(requireCore(), requireCipherCore());
@@ -6395,7 +6386,7 @@ var hasRequiredPadZeropadding;
6395
6386
  function requirePadZeropadding() {
6396
6387
  if (hasRequiredPadZeropadding) return padZeropadding$1.exports;
6397
6388
  hasRequiredPadZeropadding = 1;
6398
- (function(module, exports$1) {
6389
+ (function(module, exports) {
6399
6390
  (function(root, factory, undef) {
6400
6391
  {
6401
6392
  module.exports = factory(requireCore(), requireCipherCore());
@@ -6429,7 +6420,7 @@ var hasRequiredPadNopadding;
6429
6420
  function requirePadNopadding() {
6430
6421
  if (hasRequiredPadNopadding) return padNopadding$1.exports;
6431
6422
  hasRequiredPadNopadding = 1;
6432
- (function(module, exports$1) {
6423
+ (function(module, exports) {
6433
6424
  (function(root, factory, undef) {
6434
6425
  {
6435
6426
  module.exports = factory(requireCore(), requireCipherCore());
@@ -6452,7 +6443,7 @@ var hasRequiredFormatHex;
6452
6443
  function requireFormatHex() {
6453
6444
  if (hasRequiredFormatHex) return formatHex$1.exports;
6454
6445
  hasRequiredFormatHex = 1;
6455
- (function(module, exports$1) {
6446
+ (function(module, exports) {
6456
6447
  (function(root, factory, undef) {
6457
6448
  {
6458
6449
  module.exports = factory(requireCore(), requireCipherCore());
@@ -6512,7 +6503,7 @@ var hasRequiredAes;
6512
6503
  function requireAes() {
6513
6504
  if (hasRequiredAes) return aes$1.exports;
6514
6505
  hasRequiredAes = 1;
6515
- (function(module, exports$1) {
6506
+ (function(module, exports) {
6516
6507
  (function(root, factory, undef) {
6517
6508
  {
6518
6509
  module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
@@ -6666,7 +6657,7 @@ var hasRequiredTripledes;
6666
6657
  function requireTripledes() {
6667
6658
  if (hasRequiredTripledes) return tripledes$1.exports;
6668
6659
  hasRequiredTripledes = 1;
6669
- (function(module, exports$1) {
6660
+ (function(module, exports) {
6670
6661
  (function(root, factory, undef) {
6671
6662
  {
6672
6663
  module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
@@ -7447,7 +7438,7 @@ var hasRequiredRc4;
7447
7438
  function requireRc4() {
7448
7439
  if (hasRequiredRc4) return rc4$1.exports;
7449
7440
  hasRequiredRc4 = 1;
7450
- (function(module, exports$1) {
7441
+ (function(module, exports) {
7451
7442
  (function(root, factory, undef) {
7452
7443
  {
7453
7444
  module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
@@ -7530,7 +7521,7 @@ var hasRequiredRabbit;
7530
7521
  function requireRabbit() {
7531
7522
  if (hasRequiredRabbit) return rabbit$1.exports;
7532
7523
  hasRequiredRabbit = 1;
7533
- (function(module, exports$1) {
7524
+ (function(module, exports) {
7534
7525
  (function(root, factory, undef) {
7535
7526
  {
7536
7527
  module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
@@ -7659,7 +7650,7 @@ var hasRequiredRabbitLegacy;
7659
7650
  function requireRabbitLegacy() {
7660
7651
  if (hasRequiredRabbitLegacy) return rabbitLegacy$1.exports;
7661
7652
  hasRequiredRabbitLegacy = 1;
7662
- (function(module, exports$1) {
7653
+ (function(module, exports) {
7663
7654
  (function(root, factory, undef) {
7664
7655
  {
7665
7656
  module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
@@ -7785,7 +7776,7 @@ var hasRequiredBlowfish;
7785
7776
  function requireBlowfish() {
7786
7777
  if (hasRequiredBlowfish) return blowfish$1.exports;
7787
7778
  hasRequiredBlowfish = 1;
7788
- (function(module, exports$1) {
7779
+ (function(module, exports) {
7789
7780
  (function(root, factory, undef) {
7790
7781
  {
7791
7782
  module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
@@ -8973,7 +8964,7 @@ var hasRequiredCryptoJs;
8973
8964
  function requireCryptoJs() {
8974
8965
  if (hasRequiredCryptoJs) return cryptoJs$1.exports;
8975
8966
  hasRequiredCryptoJs = 1;
8976
- (function(module, exports$1) {
8967
+ (function(module, exports) {
8977
8968
  (function(root, factory, undef) {
8978
8969
  {
8979
8970
  module.exports = factory(requireCore(), requireX64Core(), requireLibTypedarrays(), requireEncUtf16(), requireEncBase64(), requireEncBase64url(), requireMd5(), requireSha1(), requireSha256(), requireSha224(), requireSha512(), requireSha384(), requireSha3(), requireRipemd160(), requireHmac(), requirePbkdf2(), requireEvpkdf(), requireCipherCore(), requireModeCfb(), requireModeCtr(), requireModeCtrGladman(), requireModeOfb(), requireModeEcb(), requirePadAnsix923(), requirePadIso10126(), requirePadIso97971(), requirePadZeropadding(), requirePadNopadding(), requireFormatHex(), requireAes(), requireTripledes(), requireRc4(), requireRabbit(), requireRabbitLegacy(), requireBlowfish());
@@ -10801,11 +10792,11 @@ function isSameRouteRecord(a, b) {
10801
10792
  }
10802
10793
  function isSameRouteLocationParams(a, b) {
10803
10794
  if (Object.keys(a).length !== Object.keys(b).length) return false;
10804
- for (var key in a) if (!isSameRouteLocationParamsValue(a[key], b[key])) return false;
10795
+ for (const key in a) if (!isSameRouteLocationParamsValue(a[key], b[key])) return false;
10805
10796
  return true;
10806
10797
  }
10807
10798
  function isSameRouteLocationParamsValue(a, b) {
10808
- return isArray(a) ? isEquivalentArray(a, b) : isArray(b) ? isEquivalentArray(b, a) : a?.valueOf() === b?.valueOf();
10799
+ return isArray(a) ? isEquivalentArray(a, b) : isArray(b) ? isEquivalentArray(b, a) : a === b;
10809
10800
  }
10810
10801
  function isEquivalentArray(a, b) {
10811
10802
  return isArray(b) ? a.length === b.length && a.every((value, i) => value === b[i]) : a.length === 1 && a[0] === b;
@@ -10844,17 +10835,17 @@ const START_LOCATION_NORMALIZED = {
10844
10835
  meta: {},
10845
10836
  redirectedFrom: void 0
10846
10837
  };
10847
- let NavigationType = /* @__PURE__ */ (function(NavigationType$1) {
10838
+ let NavigationType = /* @__PURE__ */ function(NavigationType$1) {
10848
10839
  NavigationType$1["pop"] = "pop";
10849
10840
  NavigationType$1["push"] = "push";
10850
10841
  return NavigationType$1;
10851
- })({});
10852
- let NavigationDirection = /* @__PURE__ */ (function(NavigationDirection$1) {
10842
+ }({});
10843
+ let NavigationDirection = /* @__PURE__ */ function(NavigationDirection$1) {
10853
10844
  NavigationDirection$1["back"] = "back";
10854
10845
  NavigationDirection$1["forward"] = "forward";
10855
10846
  NavigationDirection$1["unknown"] = "";
10856
10847
  return NavigationDirection$1;
10857
- })({});
10848
+ }({});
10858
10849
  function normalizeBase(base) {
10859
10850
  if (!base) if (isBrowser) {
10860
10851
  const baseEl = document.querySelector("base");
@@ -10926,15 +10917,15 @@ function isRouteLocation(route) {
10926
10917
  function isRouteName(name) {
10927
10918
  return typeof name === "string" || typeof name === "symbol";
10928
10919
  }
10929
- let ErrorTypes = /* @__PURE__ */ (function(ErrorTypes$1) {
10920
+ let ErrorTypes = /* @__PURE__ */ function(ErrorTypes$1) {
10930
10921
  ErrorTypes$1[ErrorTypes$1["MATCHER_NOT_FOUND"] = 1] = "MATCHER_NOT_FOUND";
10931
10922
  ErrorTypes$1[ErrorTypes$1["NAVIGATION_GUARD_REDIRECT"] = 2] = "NAVIGATION_GUARD_REDIRECT";
10932
10923
  ErrorTypes$1[ErrorTypes$1["NAVIGATION_ABORTED"] = 4] = "NAVIGATION_ABORTED";
10933
10924
  ErrorTypes$1[ErrorTypes$1["NAVIGATION_CANCELLED"] = 8] = "NAVIGATION_CANCELLED";
10934
10925
  ErrorTypes$1[ErrorTypes$1["NAVIGATION_DUPLICATED"] = 16] = "NAVIGATION_DUPLICATED";
10935
10926
  return ErrorTypes$1;
10936
- })({});
10937
- const NavigationFailureSymbol = /* @__PURE__ */ Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
10927
+ }({});
10928
+ const NavigationFailureSymbol = Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
10938
10929
  const ErrorTypeMessages = {
10939
10930
  [ErrorTypes.MATCHER_NOT_FOUND]({ location: location2, currentLocation }) {
10940
10931
  return `No match for
@@ -11021,11 +11012,11 @@ function normalizeQuery(query) {
11021
11012
  }
11022
11013
  return normalizedQuery;
11023
11014
  }
11024
- const matchedRouteKey = /* @__PURE__ */ Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
11025
- const viewDepthKey = /* @__PURE__ */ Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
11026
- const routerKey = /* @__PURE__ */ Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
11027
- const routeLocationKey = /* @__PURE__ */ Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
11028
- const routerViewLocationKey = /* @__PURE__ */ Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
11015
+ const matchedRouteKey = Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
11016
+ const viewDepthKey = Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
11017
+ const routerKey = Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
11018
+ const routeLocationKey = Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
11019
+ const routerViewLocationKey = Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
11029
11020
  function useCallbacks() {
11030
11021
  let handlers = [];
11031
11022
  function add(handler) {
@@ -11636,20 +11627,20 @@ function createWebHistory(base) {
11636
11627
  });
11637
11628
  return routerHistory;
11638
11629
  }
11639
- let TokenType = /* @__PURE__ */ (function(TokenType$1) {
11630
+ let TokenType = /* @__PURE__ */ function(TokenType$1) {
11640
11631
  TokenType$1[TokenType$1["Static"] = 0] = "Static";
11641
11632
  TokenType$1[TokenType$1["Param"] = 1] = "Param";
11642
11633
  TokenType$1[TokenType$1["Group"] = 2] = "Group";
11643
11634
  return TokenType$1;
11644
- })({});
11645
- var TokenizerState = /* @__PURE__ */ (function(TokenizerState$1) {
11635
+ }({});
11636
+ var TokenizerState = /* @__PURE__ */ function(TokenizerState$1) {
11646
11637
  TokenizerState$1[TokenizerState$1["Static"] = 0] = "Static";
11647
11638
  TokenizerState$1[TokenizerState$1["Param"] = 1] = "Param";
11648
11639
  TokenizerState$1[TokenizerState$1["ParamRegExp"] = 2] = "ParamRegExp";
11649
11640
  TokenizerState$1[TokenizerState$1["ParamRegExpEnd"] = 3] = "ParamRegExpEnd";
11650
11641
  TokenizerState$1[TokenizerState$1["EscapeNext"] = 4] = "EscapeNext";
11651
11642
  return TokenizerState$1;
11652
- })(TokenizerState || {});
11643
+ }(TokenizerState || {});
11653
11644
  const ROOT_TOKEN = {
11654
11645
  type: TokenType.Static,
11655
11646
  value: ""
@@ -11753,7 +11744,7 @@ const BASE_PATH_PARSER_OPTIONS = {
11753
11744
  start: true,
11754
11745
  end: true
11755
11746
  };
11756
- var PathScore = /* @__PURE__ */ (function(PathScore$1) {
11747
+ var PathScore = /* @__PURE__ */ function(PathScore$1) {
11757
11748
  PathScore$1[PathScore$1["_multiplier"] = 10] = "_multiplier";
11758
11749
  PathScore$1[PathScore$1["Root"] = 90] = "Root";
11759
11750
  PathScore$1[PathScore$1["Segment"] = 40] = "Segment";
@@ -11767,7 +11758,7 @@ var PathScore = /* @__PURE__ */ (function(PathScore$1) {
11767
11758
  PathScore$1[PathScore$1["BonusStrict"] = 0.7000000000000001] = "BonusStrict";
11768
11759
  PathScore$1[PathScore$1["BonusCaseSensitive"] = 0.25] = "BonusCaseSensitive";
11769
11760
  return PathScore$1;
11770
- })(PathScore || {});
11761
+ }(PathScore || {});
11771
11762
  const REGEX_CHARS_RE = /[.+*?^${}()[\]/\\]/g;
11772
11763
  function tokensToParser(segments, extraOptions) {
11773
11764
  const options = assign({}, BASE_PATH_PARSER_OPTIONS, extraOptions);
@@ -12265,7 +12256,7 @@ function includesParams(outer, inner) {
12265
12256
  const outerValue = outer[key];
12266
12257
  if (typeof innerValue === "string") {
12267
12258
  if (innerValue !== outerValue) return false;
12268
- } else if (!isArray(outerValue) || outerValue.length !== innerValue.length || innerValue.some((value, i) => value.valueOf() !== outerValue[i].valueOf())) return false;
12259
+ } else if (!isArray(outerValue) || outerValue.length !== innerValue.length || innerValue.some((value, i) => value !== outerValue[i])) return false;
12269
12260
  }
12270
12261
  return true;
12271
12262
  }
@@ -15171,7 +15162,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
15171
15162
  }, {
15172
15163
  default: withCtx(() => [
15173
15164
  createElementVNode("div", _hoisted_1$6, [
15174
- createVNode(unref(Qrcode), {
15165
+ createVNode(unref(AQrcode), {
15175
15166
  content,
15176
15167
  size: 160
15177
15168
  }),
@@ -15280,7 +15271,7 @@ var qrcodegen;
15280
15271
  (function(qrcodegen2) {
15281
15272
  var QrCode = (
15282
15273
  /** @class */
15283
- (function() {
15274
+ function() {
15284
15275
  function QrCode2(version, errorCorrectionLevel, dataCodewords, msk) {
15285
15276
  this.version = version;
15286
15277
  this.errorCorrectionLevel = errorCorrectionLevel;
@@ -15752,7 +15743,7 @@ var qrcodegen;
15752
15743
  // High
15753
15744
  ];
15754
15745
  return QrCode2;
15755
- })()
15746
+ }()
15756
15747
  );
15757
15748
  qrcodegen2.QrCode = QrCode;
15758
15749
  function appendBits(val, len, bb) {
@@ -15770,7 +15761,7 @@ var qrcodegen;
15770
15761
  }
15771
15762
  var QrSegment = (
15772
15763
  /** @class */
15773
- (function() {
15764
+ function() {
15774
15765
  function QrSegment2(mode, numChars, bitData) {
15775
15766
  this.mode = mode;
15776
15767
  this.numChars = numChars;
@@ -15875,7 +15866,7 @@ var qrcodegen;
15875
15866
  QrSegment2.ALPHANUMERIC_REGEX = /^[A-Z0-9 $%*+.\/:-]*$/;
15876
15867
  QrSegment2.ALPHANUMERIC_CHARSET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";
15877
15868
  return QrSegment2;
15878
- })()
15869
+ }()
15879
15870
  );
15880
15871
  qrcodegen2.QrSegment = QrSegment;
15881
15872
  })(qrcodegen || (qrcodegen = {}));
@@ -15883,7 +15874,7 @@ var qrcodegen;
15883
15874
  (function(QrCode) {
15884
15875
  var Ecc = (
15885
15876
  /** @class */
15886
- (function() {
15877
+ function() {
15887
15878
  function Ecc2(ordinal, formatBits) {
15888
15879
  this.ordinal = ordinal;
15889
15880
  this.formatBits = formatBits;
@@ -15893,7 +15884,7 @@ var qrcodegen;
15893
15884
  Ecc2.QUARTILE = new Ecc2(2, 3);
15894
15885
  Ecc2.HIGH = new Ecc2(3, 2);
15895
15886
  return Ecc2;
15896
- })()
15887
+ }()
15897
15888
  );
15898
15889
  QrCode.Ecc = Ecc;
15899
15890
  })(qrcodegen2.QrCode || (qrcodegen2.QrCode = {}));
@@ -15902,7 +15893,7 @@ var qrcodegen;
15902
15893
  (function(QrSegment) {
15903
15894
  var Mode = (
15904
15895
  /** @class */
15905
- (function() {
15896
+ function() {
15906
15897
  function Mode2(modeBits, numBitsCharCount) {
15907
15898
  this.modeBits = modeBits;
15908
15899
  this.numBitsCharCount = numBitsCharCount;
@@ -15916,7 +15907,7 @@ var qrcodegen;
15916
15907
  Mode2.KANJI = new Mode2(8, [8, 10, 12]);
15917
15908
  Mode2.ECI = new Mode2(7, [0, 0, 0]);
15918
15909
  return Mode2;
15919
- })()
15910
+ }()
15920
15911
  );
15921
15912
  QrSegment.Mode = Mode;
15922
15913
  })(qrcodegen2.QrSegment || (qrcodegen2.QrSegment = {}));
@@ -15929,14 +15920,14 @@ var ErrorCorrectLevelMap = {
15929
15920
  Q: QR.QrCode.Ecc.QUARTILE,
15930
15921
  H: QR.QrCode.Ecc.HIGH
15931
15922
  };
15932
- var SUPPORTS_PATH2D = (function() {
15923
+ var SUPPORTS_PATH2D = function() {
15933
15924
  try {
15934
15925
  new Path2D().addPath(new Path2D());
15935
15926
  } catch (e) {
15936
15927
  return false;
15937
15928
  }
15938
15929
  return true;
15939
- })();
15930
+ }();
15940
15931
  function validErrorCorrectLevel(level) {
15941
15932
  return level in ErrorCorrectLevelMap;
15942
15933
  }
@@ -16300,7 +16291,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
16300
16291
  };
16301
16292
  }
16302
16293
  });
16303
- const Qrcode = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-024409f5"]]);
16294
+ const AQrcode = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-024409f5"]]);
16304
16295
  const _sfc_main$9 = /* @__PURE__ */ defineComponent({
16305
16296
  __name: "Select",
16306
16297
  props: /* @__PURE__ */ mergeModels({
@@ -19282,7 +19273,7 @@ class RouterUtil {
19282
19273
  this.componentsDirectory = componentsDirectory;
19283
19274
  localStorage.setItem(menuCacheKey, JSON.stringify(menuList));
19284
19275
  if (!WebConfig.isTimeout) {
19285
- this.addRouterAsync(menuList, parentRouter);
19276
+ this.registerRoute(menuList, parentRouter);
19286
19277
  this.reloadCacheMenuList(menuCacheKey);
19287
19278
  }
19288
19279
  }
@@ -19311,38 +19302,69 @@ class RouterUtil {
19311
19302
  return router;
19312
19303
  }
19313
19304
  /**
19314
- * ### 将菜单添加到 `Vue` 路由中
19305
+ * ### 注册 `Vue` 路由
19315
19306
  * @param menuList 菜单列表
19316
19307
  * @param parentRouter 父级路由名称
19317
19308
  */
19318
- static addRouterAsync(menuList, parentRouter) {
19309
+ static registerRoute(menuList, parentRouter) {
19319
19310
  menuList.forEach((item) => {
19320
- if (item.children && item.children.length > 0) {
19321
- this.addRouterAsync(item.children, parentRouter);
19322
- }
19323
19311
  if (!this.router) {
19324
- FeedbackUtil.toastError("请先调用 createRouter 创建路由");
19312
+ throw new Error("请先调用 createRouter 创建路由");
19313
+ }
19314
+ if (!item.name) {
19315
+ throw new Error("路由初始化失败,缺少参数");
19316
+ }
19317
+ if (this.router.hasRoute(item.id.toString())) {
19325
19318
  return;
19326
19319
  }
19327
- if (!item.name || !item.path && !item.component) {
19328
- FeedbackUtil.toastError("路由初始化失败,缺少参数");
19320
+ if (item.children && item.children.length > 0) {
19321
+ this.registerRoute(item.children, parentRouter);
19322
+ }
19323
+ if (!item.path) {
19329
19324
  return;
19330
19325
  }
19331
- if (this.router.hasRoute(item.id.toString())) {
19326
+ if (item.redirect) {
19327
+ this.addRoute(parentRouter, item);
19332
19328
  return;
19333
19329
  }
19334
- this.router.addRoute(parentRouter, {
19335
- path: item.path,
19336
- name: item.id.toString(),
19337
- meta: {
19338
- name: item.name
19339
- },
19340
- redirect: item.children && item.children.length > 0 ? item.children[0].path : void 0,
19341
- children: [],
19342
- component: this.components[`${this.componentsDirectory}${item.component || item.path}.vue`]
19343
- });
19330
+ const componentPath = item.component || item.path;
19331
+ if (componentPath) {
19332
+ this.addRoute(parentRouter, item, componentPath);
19333
+ }
19344
19334
  });
19345
19335
  }
19336
+ /**
19337
+ * ### 添加路由
19338
+ * @param parentRouter 父级路由名称
19339
+ * @param menu 菜单
19340
+ * @param componentPath 组件路径
19341
+ */
19342
+ static addRoute(parentRouter, menu, componentPath) {
19343
+ const routeRawData = {
19344
+ path: menu.path,
19345
+ name: menu.id.toString(),
19346
+ meta: {
19347
+ ...menu.meta,
19348
+ ...{ name: menu.name }
19349
+ }
19350
+ };
19351
+ if (componentPath) {
19352
+ const route = {
19353
+ ...routeRawData,
19354
+ ...{ component: this.components[`${this.componentsDirectory}${componentPath}.vue`] }
19355
+ };
19356
+ this.router.addRoute(parentRouter, route);
19357
+ return;
19358
+ }
19359
+ if (menu.redirect) {
19360
+ const route = {
19361
+ ...routeRawData,
19362
+ ...{ redirect: menu.redirect }
19363
+ };
19364
+ this.router.addRoute(parentRouter, route);
19365
+ }
19366
+ throw new Error("路由添加失败,不太能走到这里");
19367
+ }
19346
19368
  /**
19347
19369
  * ### 重载缓存中的路由
19348
19370
  * @param menuCacheKey 提供缓存的Key
@@ -19609,7 +19631,7 @@ export {
19609
19631
  APanel,
19610
19632
  APayload,
19611
19633
  APhone,
19612
- Qrcode as AQrcode,
19634
+ AQrcode,
19613
19635
  _sfc_main$9 as ASelect,
19614
19636
  _sfc_main$8 as ASelector,
19615
19637
  _sfc_main$7 as ATab,