(self["webpackChunkpj_process"] = self["webpackChunkpj_process"] || []).push([[5369],{

/***/ 17532:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "IL": () => (/* binding */ GlobalThemeStyleEnum),
/* harmony export */   "UN": () => (/* binding */ RouterTransitionEnum),
/* harmony export */   "bY": () => (/* binding */ ThemeEnum),
/* harmony export */   "gL": () => (/* binding */ ContentEnum),
/* harmony export */   "o6": () => (/* binding */ PermissionModeEnum),
/* harmony export */   "xk": () => (/* binding */ SettingButtonPositionEnum)
/* harmony export */ });
/* unused harmony exports SIDE_BAR_MINI_WIDTH, SIDE_BAR_SHOW_TIT_MINI_WIDTH, ThemeModeEnum, ThemeModeEnum2 */
var SIDE_BAR_MINI_WIDTH = 48;
var SIDE_BAR_SHOW_TIT_MINI_WIDTH = 80;
var ContentEnum;
(function (ContentEnum) {
  ContentEnum["FULL"] = "full";
  ContentEnum["FIXED"] = "fixed";
})(ContentEnum || (ContentEnum = {}));
var ThemeModeEnum;
(function (ThemeModeEnum) {
  ThemeModeEnum["LIGHT"] = "light-mode";
  ThemeModeEnum["DARK"] = "dark-mode";
  ThemeModeEnum["SEMI_DARK"] = "semi-dark-mode";
})(ThemeModeEnum || (ThemeModeEnum = {}));
var ThemeModeEnum2 = {
  LIGHT: 'light-mode',
  DARK: 'dark-mode',
  SEMI_DARK: 'semi-dark-mode'
};
//@ts-ignore
ThemeModeEnum.LIGHT = 'light-mode';
ThemeModeEnum2.LIGHT = 'light-mode2';
var ThemeEnum;
(function (ThemeEnum) {
  ThemeEnum["DARK"] = "dark";
  ThemeEnum["LIGHT"] = "light";
})(ThemeEnum || (ThemeEnum = {}));
var SettingButtonPositionEnum;
(function (SettingButtonPositionEnum) {
  SettingButtonPositionEnum["AUTO"] = "auto";
  SettingButtonPositionEnum["HEADER"] = "header";
  SettingButtonPositionEnum["FIXED"] = "fixed";
})(SettingButtonPositionEnum || (SettingButtonPositionEnum = {}));
var PermissionModeEnum;
(function (PermissionModeEnum) {
  PermissionModeEnum["ROLE"] = "ROLE";
  PermissionModeEnum["BACK"] = "BACK";
})(PermissionModeEnum || (PermissionModeEnum = {}));
var RouterTransitionEnum;
(function (RouterTransitionEnum) {
  RouterTransitionEnum["ZOOM_FADE"] = "zoom-fade";
  RouterTransitionEnum["ZOOM_OUT"] = "zoom-out";
  RouterTransitionEnum["FADE_SIDE"] = "fade-slide";
  RouterTransitionEnum["FADE"] = "fade";
  RouterTransitionEnum["FADE_BOTTOM"] = "fade-bottom";
  RouterTransitionEnum["FADE_SCALE"] = "fade-scale";
})(RouterTransitionEnum || (RouterTransitionEnum = {}));
var GlobalThemeStyleEnum;
(function (GlobalThemeStyleEnum) {
  GlobalThemeStyleEnum["LIGHT"] = "lightTheme";
  GlobalThemeStyleEnum["DARK"] = "darkTheme";
})(GlobalThemeStyleEnum || (GlobalThemeStyleEnum = {}));

/***/ }),

/***/ 90960:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "d": () => (/* binding */ PageEnum)
/* harmony export */ });
/**

 * @ Description: 页面枚举
 * @ URL:
 */
var PageEnum;
(function (PageEnum) {
  // basic home path
  PageEnum["BASE_HOME"] = "/home";
  // error page path
  PageEnum["ERROR_PAGE"] = "/exception";
  // error log page path
  PageEnum["ERROR_LOG_PAGE"] = "/error-log/list";
})(PageEnum || (PageEnum = {}));

/***/ }),

/***/ 87373:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "mO": () => (/* binding */ SizeEnum)
/* harmony export */ });
/* unused harmony exports SizeNumberEnum, sizeMap */
var SizeEnum;
(function (SizeEnum) {
  SizeEnum["DEFAULT"] = "default";
  SizeEnum["SMALL"] = "small";
  SizeEnum["LARGE"] = "large";
})(SizeEnum || (SizeEnum = {}));
var SizeNumberEnum;
(function (SizeNumberEnum) {
  SizeNumberEnum[SizeNumberEnum["DEFAULT"] = 48] = "DEFAULT";
  SizeNumberEnum[SizeNumberEnum["SMALL"] = 16] = "SMALL";
  SizeNumberEnum[SizeNumberEnum["LARGE"] = 64] = "LARGE";
})(SizeNumberEnum || (SizeNumberEnum = {}));
var sizeMap = function () {
  var map = new Map();
  map.set(SizeEnum.DEFAULT, SizeNumberEnum.DEFAULT);
  map.set(SizeEnum.SMALL, SizeNumberEnum.SMALL);
  map.set(SizeEnum.LARGE, SizeNumberEnum.LARGE);
  return map;
}();

/***/ }),

/***/ 28089:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "h": () => (/* binding */ useDesign)
/* harmony export */ });
//  设置class前缀，用于命名空间
function useDesign(scope) {
  return {
    prefixCls: "gszs-".concat(scope)
  };
}

/***/ }),

/***/ 73662:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "_": () => (/* binding */ LAYOUT),
/* harmony export */   "aD": () => (/* binding */ NOT_FIND_PAGE),
/* harmony export */   "fP": () => (/* binding */ ERROR_PAGE),
/* harmony export */   "gS": () => (/* binding */ PAGE_NOT_FOUND_NAME),
/* harmony export */   "wU": () => (/* binding */ REDIRECT_NAME)
/* harmony export */ });
/* unused harmony exports PARENT_LAYOUT_NAME, EXCEPTION_COMPONENT, getParentLayout */
var REDIRECT_NAME = 'Redirect';
var PARENT_LAYOUT_NAME = 'ParentLayout';
var PAGE_NOT_FOUND_NAME = 'PageNotFound';
var EXCEPTION_COMPONENT = function EXCEPTION_COMPONENT() {
  return __webpack_require__.e(/* import() */ 5621).then(__webpack_require__.bind(__webpack_require__, 35621));
};
var NOT_FIND_PAGE = function NOT_FIND_PAGE() {
  return __webpack_require__.e(/* import() */ 4919).then(__webpack_require__.bind(__webpack_require__, 84919));
};
var ERROR_PAGE = function ERROR_PAGE() {
  return __webpack_require__.e(/* import() */ 9917).then(__webpack_require__.bind(__webpack_require__, 49917));
};
/**
 * @description: default layout
 */
var LAYOUT = function LAYOUT() {
  return __webpack_require__.e(/* import() */ 9717).then(__webpack_require__.bind(__webpack_require__, 49717));
};
/**
 * @description: parent-layout
 */
// eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars
var getParentLayout = function getParentLayout(_name) {
  return function () {
    return new Promise(function (resolve) {
      resolve({
        name: PARENT_LAYOUT_NAME
      });
    });
  };
};

/***/ }),

/***/ 45354:
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {

"use strict";

// EXTERNAL MODULE: ./src/router/index.ts
var router = __webpack_require__(76920);
// EXTERNAL MODULE: ./node_modules/.pnpm/@vue+runtime-core@3.3.1/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js
var runtime_core_esm_bundler = __webpack_require__(27520);
// EXTERNAL MODULE: ./node_modules/.pnpm/@vue+reactivity@3.3.1/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js
var reactivity_esm_bundler = __webpack_require__(83270);
// EXTERNAL MODULE: ./node_modules/.pnpm/vuex-module-decorators@1.0.1_vue@3.3.1_vuex@4.0.0/node_modules/vuex-module-decorators/dist/esm/index.js
var esm = __webpack_require__(57779);
// EXTERNAL MODULE: ./src/store/index.ts
var store = __webpack_require__(11593);
;// CONCATENATED MODULE: ./src/enums/cacheEnum.ts
var TOKEN_KEY = 'TOKEN__';
var LOCALE_KEY = 'LOCALE__';
var USER_INFO_KEY = 'USER__INFO__';
var ROLES_KEY = 'ROLES__KEY__';
var PROJ_CFG_KEY = 'PROJ__CFG__KEY__';
var LOCK_INFO_KEY = 'LOCK__INFO__KEY__';
var MULTIPLE_TABS_KEY = 'MULTIPLE_TABS__KEY__';
var APP_DARK_MODE_KEY_ = '__APP__DARK__MODE__';
var APP_LOCAL_CACHE_KEY = 'VUE_TPL';
var APP_SESSION_CACHE_KEY = 'COMMON__SESSION__KEY__';
var CacheTypeEnum;
(function (CacheTypeEnum) {
  CacheTypeEnum[CacheTypeEnum["SESSION"] = 0] = "SESSION";
  CacheTypeEnum[CacheTypeEnum["LOCAL"] = 1] = "LOCAL";
})(CacheTypeEnum || (CacheTypeEnum = {}));
;// CONCATENATED MODULE: ./src/utils/helper/vuexHelper.ts

function hotModuleUnregisterModule(name) {
  if (!name) return;
  if (store/* default.state */.Z.state[name]) {
    store/* default.unregisterModule */.Z.unregisterModule(name);
  }
}
// EXTERNAL MODULE: ./src/utils/env.ts
var env = __webpack_require__(34385);
;// CONCATENATED MODULE: ./src/enums/encryptionCacheEnum.ts

var CacheTimesEnum;
(function (CacheTimesEnum) {
  CacheTimesEnum[CacheTimesEnum["DEFAULT_CACHE_TIME"] = 604800] = "DEFAULT_CACHE_TIME";
})(CacheTimesEnum || (CacheTimesEnum = {}));
var CacheCipherEnum;
(function (CacheCipherEnum) {
  CacheCipherEnum["KEY"] = "_11111000001111@";
  CacheCipherEnum["IV"] = "@11111000001111_";
})(CacheCipherEnum || (CacheCipherEnum = {}));
var enableStorageEncryption = !(0,env/* isDevMode */.X6)();
// EXTERNAL MODULE: ./node_modules/.pnpm/crypto-js@4.0.0/node_modules/crypto-js/aes.js
var aes = __webpack_require__(86728);
// EXTERNAL MODULE: ./node_modules/.pnpm/crypto-js@4.0.0/node_modules/crypto-js/enc-utf8.js
var enc_utf8 = __webpack_require__(2551);
var enc_utf8_default = /*#__PURE__*/__webpack_require__.n(enc_utf8);
// EXTERNAL MODULE: ./node_modules/.pnpm/crypto-js@4.0.0/node_modules/crypto-js/pad-pkcs7.js
var pad_pkcs7 = __webpack_require__(38662);
var pad_pkcs7_default = /*#__PURE__*/__webpack_require__.n(pad_pkcs7);
// EXTERNAL MODULE: ./node_modules/.pnpm/crypto-js@4.0.0/node_modules/crypto-js/mode-ecb.js
var mode_ecb = __webpack_require__(57961);
var mode_ecb_default = /*#__PURE__*/__webpack_require__.n(mode_ecb);
// EXTERNAL MODULE: ./node_modules/.pnpm/crypto-js@4.0.0/node_modules/crypto-js/md5.js
var crypto_js_md5 = __webpack_require__(26356);
// EXTERNAL MODULE: ./node_modules/.pnpm/crypto-js@4.0.0/node_modules/crypto-js/enc-base64.js
var enc_base64 = __webpack_require__(36742);
;// CONCATENATED MODULE: ./src/utils/cipher.ts
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }







var AesEncryption = /*#__PURE__*/function () {
  function AesEncryption() {
    var opt = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
    _classCallCheck(this, AesEncryption);
    _defineProperty(this, "key", void 0);
    _defineProperty(this, "iv", void 0);
    var key = opt.key,
      iv = opt.iv;
    if (key) {
      this.key = (0,enc_utf8.parse)(key);
    }
    if (iv) {
      this.iv = (0,enc_utf8.parse)(iv);
    }
  }
  return _createClass(AesEncryption, [{
    key: "getOptions",
    get: function get() {
      return {
        mode: (mode_ecb_default()),
        padding: (pad_pkcs7_default()),
        iv: this.iv
      };
    }
  }, {
    key: "encryptByAES",
    value: function encryptByAES(cipherText) {
      return (0,aes.encrypt)(cipherText, this.key, this.getOptions).toString();
    }
  }, {
    key: "decryptByAES",
    value: function decryptByAES(cipherText) {
      return (0,aes.decrypt)(cipherText, this.key, this.getOptions).toString((enc_utf8_default()));
    }
  }]);
}();
function encryptByBase64(cipherText) {
  return Base64.parse(cipherText).toString(UTF8);
}
function decodeByBase64(cipherText) {
  return Base64.parse(cipherText).toString(UTF8);
}
function encryptByMd5(password) {
  return md5(password).toString();
}
// EXTERNAL MODULE: ./src/utils/is.ts
var is = __webpack_require__(61050);
;// CONCATENATED MODULE: ./src/utils/cache/storageCache.ts
function storageCache_typeof(o) { "@babel/helpers - typeof"; return storageCache_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, storageCache_typeof(o); }
function storageCache_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
function storageCache_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, storageCache_toPropertyKey(o.key), o); } }
function storageCache_createClass(e, r, t) { return r && storageCache_defineProperties(e.prototype, r), t && storageCache_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
function storageCache_defineProperty(e, r, t) { return (r = storageCache_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
function storageCache_toPropertyKey(t) { var i = storageCache_toPrimitive(t, "string"); return "symbol" == storageCache_typeof(i) ? i : i + ""; }
function storageCache_toPrimitive(t, r) { if ("object" != storageCache_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != storageCache_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }



var storageCache_createStorage = function createStorage() {
  var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
    _ref$prefixKey = _ref.prefixKey,
    prefixKey = _ref$prefixKey === void 0 ? '' : _ref$prefixKey,
    _ref$storage = _ref.storage,
    storage = _ref$storage === void 0 ? sessionStorage : _ref$storage,
    _ref$key = _ref.key,
    key = _ref$key === void 0 ? CacheCipherEnum.KEY : _ref$key,
    _ref$iv = _ref.iv,
    iv = _ref$iv === void 0 ? CacheCipherEnum.IV : _ref$iv,
    _ref$timeout = _ref.timeout,
    timeout = _ref$timeout === void 0 ? null : _ref$timeout,
    _ref$hasEncrypt = _ref.hasEncrypt,
    hasEncrypt = _ref$hasEncrypt === void 0 ? true : _ref$hasEncrypt;
  if (hasEncrypt && [key.length, iv.length].some(function (item) {
    return item !== 16;
  })) {
    throw new Error('When hasEncrypt is true, the key or iv must be 16 bits!');
  }
  var encryption = new AesEncryption({
    key: key,
    iv: iv
  });
  /**
   *Cache class
   *Construction parameters can be passed into sessionStorage, localStorage,
   * @class Cache
   * @example
   */
  var WebStorage = /*#__PURE__*/function () {
    /**
     *
     * @param {*} storage
     */
    function WebStorage() {
      storageCache_classCallCheck(this, WebStorage);
      storageCache_defineProperty(this, "storage", void 0);
      storageCache_defineProperty(this, "prefixKey", void 0);
      storageCache_defineProperty(this, "encryption", void 0);
      storageCache_defineProperty(this, "hasEncrypt", void 0);
      this.storage = storage;
      this.prefixKey = prefixKey;
      this.encryption = encryption;
      this.hasEncrypt = hasEncrypt;
    }
    return storageCache_createClass(WebStorage, [{
      key: "getKey",
      value: function getKey(key) {
        return "".concat(this.prefixKey).concat(key).toUpperCase();
      }
      /**
       *
       *  Set cache
       * @param {string} key
       * @param {*} value
       * @expire Expiration time in seconds
       * @memberof Cache
       */
    }, {
      key: "set",
      value: function set(key, value) {
        var expire = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : timeout;
        var stringData = JSON.stringify({
          value: value,
          time: Date.now(),
          expire: !(0,is/* isNullOrUnDef */.BD)(expire) ? new Date().getTime() + expire * 1000 : null
        });
        var stringifyValue = this.hasEncrypt ? this.encryption.encryptByAES(stringData) : stringData;
        this.storage.setItem(this.getKey(key), stringifyValue);
      }
      /**
       *Read cache
       * @param {string} key
       * @memberof Cache
       */
    }, {
      key: "get",
      value: function get(key) {
        var def = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
        var val = this.storage.getItem(this.getKey(key));
        if (!val) return def;
        try {
          var decVal = this.hasEncrypt ? this.encryption.decryptByAES(val) : val;
          var data = JSON.parse(decVal);
          var value = data.value,
            expire = data.expire;
          if ((0,is/* isNullOrUnDef */.BD)(expire) || expire >= new Date().getTime()) {
            return value;
          }
          this.remove(key);
        } catch (e) {
          return def;
        }
      }
      /**
       * Delete cache based on key
       * @param {string} key
       * @memberof Cache
       */
    }, {
      key: "remove",
      value: function remove(key) {
        this.storage.removeItem(this.getKey(key));
      }
      /**
       * Delete all caches of this instance
       */
    }, {
      key: "clear",
      value: function clear() {
        this.storage.clear();
      }
    }]);
  }();
  return new WebStorage();
};
;// CONCATENATED MODULE: ./src/utils/cache/index.ts
function cache_typeof(o) { "@babel/helpers - typeof"; return cache_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, cache_typeof(o); }
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { cache_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function cache_defineProperty(e, r, t) { return (r = cache_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
function cache_toPropertyKey(t) { var i = cache_toPrimitive(t, "string"); return "symbol" == cache_typeof(i) ? i : i + ""; }
function cache_toPrimitive(t, r) { if ("object" != cache_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != cache_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
// import { getStorageShortName } from '@/utils/env';


var createOptions = function createOptions(storage) {
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  return _objectSpread({
    // No encryption in debug mode
    hasEncrypt: enableStorageEncryption,
    storage: storage
  }, options);
};
var WebStorage = storageCache_createStorage(createOptions(sessionStorage));
var createStorage = function createStorage() {
  var storage = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : sessionStorage;
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  return storageCache_createStorage(createOptions(storage, options));
};
var createSessionStorage = function createSessionStorage() {
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  return createStorage(sessionStorage, _objectSpread(_objectSpread({}, options), {}, {
    timeout: CacheTimesEnum.DEFAULT_CACHE_TIME
  }));
};
var createLocalStorage = function createLocalStorage() {
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  return createStorage(localStorage, _objectSpread(_objectSpread({}, options), {}, {
    timeout: CacheTimesEnum.DEFAULT_CACHE_TIME
  }));
};
/* harmony default export */ const cache = ((/* unused pure expression or super */ null && (WebStorage)));
;// CONCATENATED MODULE: ./src/utils/cache/memory.ts
function memory_typeof(o) { "@babel/helpers - typeof"; return memory_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, memory_typeof(o); }
function memory_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
function memory_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, memory_toPropertyKey(o.key), o); } }
function memory_createClass(e, r, t) { return r && memory_defineProperties(e.prototype, r), t && memory_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
function memory_defineProperty(e, r, t) { return (r = memory_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
function memory_toPropertyKey(t) { var i = memory_toPrimitive(t, "string"); return "symbol" == memory_typeof(i) ? i : i + ""; }
function memory_toPrimitive(t, r) { if ("object" != memory_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != memory_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
var NOT_ALIVE = 0;
var Memory = /*#__PURE__*/function () {
  function Memory() {
    var alive = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : NOT_ALIVE;
    memory_classCallCheck(this, Memory);
    memory_defineProperty(this, "cache", {});
    memory_defineProperty(this, "alive", void 0);
    // Unit second
    this.alive = alive * 1000;
  }
  return memory_createClass(Memory, [{
    key: "getCache",
    get: function get() {
      return this.cache;
    }
  }, {
    key: "setCache",
    value: function setCache(cache) {
      this.cache = cache;
    }
  }, {
    key: "get",
    value: function get(key) {
      return this.cache[key];
    }
  }, {
    key: "set",
    value: function set(key, value, expires) {
      var _this = this;
      var item = this.get(key);
      if (!expires || expires <= 0) {
        expires = this.alive;
      }
      if (item) {
        if (item.timeoutId) {
          clearTimeout(item.timeoutId);
          item.timeoutId = undefined;
        }
        item.value = value;
      } else {
        item = {
          value: value,
          alive: expires
        };
        this.cache[key] = item;
      }
      if (!expires) {
        return value;
      }
      var now = new Date().getTime();
      item.time = now + this.alive;
      item.timeoutId = setTimeout(function () {
        _this.remove(key);
      }, expires > now ? expires - now : expires);
      return value;
    }
  }, {
    key: "remove",
    value: function remove(key) {
      var item = this.get(key);
      Reflect.deleteProperty(this.cache, key);
      if (item) {
        clearTimeout(item.timeoutId);
        return item.value;
      }
    }
  }, {
    key: "resetCache",
    value: function resetCache(cache) {
      var _this2 = this;
      Object.keys(cache).forEach(function (key) {
        var k = key;
        var item = cache[k];
        if (item && item.time) {
          var now = new Date().getTime();
          var expire = item.time;
          if (expire > now) {
            _this2.set(k, item.value, expire);
          }
        }
      });
    }
  }, {
    key: "clear",
    value: function clear() {
      var _this3 = this;
      Object.keys(this.cache).forEach(function (key) {
        var item = _this3.cache[key];
        item.timeoutId && clearTimeout(item.timeoutId);
      });
      this.cache = {};
    }
  }]);
}();
;// CONCATENATED MODULE: ./src/utils/cache/persistent.ts
function persistent_typeof(o) { "@babel/helpers - typeof"; return persistent_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, persistent_typeof(o); }
function persistent_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
function persistent_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, persistent_toPropertyKey(o.key), o); } }
function persistent_createClass(e, r, t) { return r && persistent_defineProperties(e.prototype, r), t && persistent_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
function persistent_toPropertyKey(t) { var i = persistent_toPrimitive(t, "string"); return "symbol" == persistent_typeof(i) ? i : i + ""; }
function persistent_toPrimitive(t, r) { if ("object" != persistent_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != persistent_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }





var ls = createLocalStorage();
var ss = createSessionStorage();
var localMemory = new Memory(CacheTimesEnum.DEFAULT_CACHE_TIME);
var sessionMemory = new Memory(CacheTimesEnum.DEFAULT_CACHE_TIME);
function initPersistentMemory() {
  var localCache = ls.get(APP_LOCAL_CACHE_KEY);
  var sessionCache = ss.get(APP_SESSION_CACHE_KEY);
  localCache && localMemory.resetCache(localCache);
  sessionCache && sessionMemory.resetCache(sessionCache);
}
var Persistent = /*#__PURE__*/function () {
  function Persistent() {
    persistent_classCallCheck(this, Persistent);
  }
  return persistent_createClass(Persistent, null, [{
    key: "getLocal",
    value: function getLocal(key) {
      var _localMemory$get;
      return (_localMemory$get = localMemory.get(key)) === null || _localMemory$get === void 0 ? void 0 : _localMemory$get.value;
    }
  }, {
    key: "setLocal",
    value: function setLocal(key, value) {
      var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
      localMemory.set(key, (0,reactivity_esm_bundler/* toRaw */.IU)(value));
      immediate && ls.set(APP_LOCAL_CACHE_KEY, localMemory.getCache);
    }
  }, {
    key: "removeLocal",
    value: function removeLocal(key) {
      localMemory.remove(key);
    }
  }, {
    key: "clearLocal",
    value: function clearLocal() {
      localMemory.clear();
    }
  }, {
    key: "getSession",
    value: function getSession(key) {
      var _sessionMemory$get;
      return (_sessionMemory$get = sessionMemory.get(key)) === null || _sessionMemory$get === void 0 ? void 0 : _sessionMemory$get.value;
    }
  }, {
    key: "setSession",
    value: function setSession(key, value) {
      var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
      sessionMemory.set(key, (0,reactivity_esm_bundler/* toRaw */.IU)(value));
      immediate && ss.set(APP_SESSION_CACHE_KEY, sessionMemory.getCache);
    }
  }, {
    key: "removeSession",
    value: function removeSession(key) {
      sessionMemory.remove(key);
    }
  }, {
    key: "clearSession",
    value: function clearSession() {
      sessionMemory.clear();
    }
  }, {
    key: "clearAll",
    value: function clearAll() {
      sessionMemory.clear();
      localMemory.clear();
    }
  }]);
}();
window.addEventListener('beforeunload', function () {
  ls.set(APP_LOCAL_CACHE_KEY, localMemory.getCache);
  ss.set(APP_SESSION_CACHE_KEY, sessionMemory.getCache);
});
function storageChange(e) {
  var key = e.key,
    newValue = e.newValue,
    oldValue = e.oldValue;
  if (!key) {
    Persistent.clearAll();
    return;
  }
  if (!!newValue && !!oldValue) {
    if (APP_LOCAL_CACHE_KEY === key) {
      Persistent.clearLocal();
    }
    if (APP_SESSION_CACHE_KEY === key) {
      Persistent.clearSession();
    }
  }
}
window.addEventListener('storage', storageChange);
initPersistentMemory();
;// CONCATENATED MODULE: ./src/utils/index.ts
var _excluded = ["matched"];
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
function utils_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function utils_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? utils_ownKeys(Object(t), !0).forEach(function (r) { utils_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : utils_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function utils_defineProperty(e, r, t) { return (r = utils_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
function utils_toPropertyKey(t) { var i = utils_toPrimitive(t, "string"); return "symbol" == utils_typeof(i) ? i : i + ""; }
function utils_toPrimitive(t, r) { if ("object" != utils_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != utils_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
function utils_typeof(o) { "@babel/helpers - typeof"; return utils_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, utils_typeof(o); }


var noop = function noop() {};
/**
 * @description:  Set ui mount node
 */
function getPopupContainer(node) {
  var _node$parentNode;
  return (_node$parentNode = node === null || node === void 0 ? void 0 : node.parentNode) !== null && _node$parentNode !== void 0 ? _node$parentNode : document.body;
}
function getYearWeek(a) {
  var date1 = new Date();
  var date2 = new Date(a, 0, 1);
  var d = Math.round((date1.valueOf() - date2.valueOf()) / 86400000);
  return Math.ceil((d + (date2.getDay() + 1 - 1)) / 7);
}
function parseTime(time, cFormat) {
  if (!time) {
    return '-';
  }
  var format = cFormat || '{y}-{m}-{d} {h}:{i}:{s}';
  var date;
  if (utils_typeof(time) === 'object') {
    date = time;
  } else {
    if (typeof time === 'string' && /^[0-9]+$/.test(time)) {
      time = parseInt(time);
    }
    if (typeof time === 'number' && time.toString().length === 10) {
      time = time * 1000;
    }
    date = new Date(time);
  }
  var formatObj = {
    y: date.getFullYear(),
    m: date.getMonth() + 1,
    d: date.getDate(),
    h: date.getHours(),
    i: date.getMinutes(),
    s: date.getSeconds(),
    a: date.getDay(),
    A: date.getDay(),
    w: getYearWeek(date.getFullYear())
  };
  var time_str = format.replace(/{(y|m|d|h|i|s|a|A|w)+}/g, function (result, key) {
    var value = formatObj[key];
    // Note: getDay() returns 0 on Sunday
    if (key === 'a') {
      return ['日', '一', '二', '三', '四', '五', '六'][value];
    }
    if (result.length > 0 && value < 10) {
      value = '0' + value;
    }
    return value || 0;
  });
  return time_str;
}
/**
 * Add the object as a parameter to the URL
 * @param baseUrl url
 * @param obj
 * @returns {string}
 * eg:
 *  let obj = {a: '3', b: '4'}
 *  setObjToUrlParams('www.baidu.com', obj)
 *  ==>www.baidu.com?a=3&b=4
 */
function setObjToUrlParams(baseUrl, obj) {
  var parameters = '';
  for (var key in obj) {
    parameters += key + '=' + encodeURIComponent(obj[key]) + '&';
  }
  parameters = parameters.replace(/&$/, '');
  return /\?$/.test(baseUrl) ? baseUrl + parameters : baseUrl.replace(/\/?$/, '?') + parameters;
}
function deepMerge() {
  var src = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  var key;
  for (key in target) {
    src[key] = (0,is/* isObject */.Kn)(src[key]) ? deepMerge(src[key], target[key]) : src[key] = target[key];
  }
  return src;
}
function openWindow(url, opt) {
  var _ref = opt || {},
    _ref$target = _ref.target,
    target = _ref$target === void 0 ? '__blank' : _ref$target,
    _ref$noopener = _ref.noopener,
    noopener = _ref$noopener === void 0 ? true : _ref$noopener,
    _ref$noreferrer = _ref.noreferrer,
    noreferrer = _ref$noreferrer === void 0 ? true : _ref$noreferrer;
  var feature = [];
  noopener && feature.push('noopener=yes');
  noreferrer && feature.push('noreferrer=yes');
  window.open(url, target, feature.join(','));
}
// dynamic use hook props
function getDynamicProps(props) {
  var ret = {};
  // @ts-ignore
  Object.keys(props).map(function (key) {
    ret[key] = unref(props[key]);
  });
  return ret;
}
function getRawRoute(route) {
  if (!route) return route;
  var matched = route.matched,
    opt = _objectWithoutProperties(route, _excluded);
  return utils_objectSpread(utils_objectSpread({}, opt), {}, {
    matched: matched ? matched.map(function (item) {
      return {
        meta: item.meta,
        name: item.name,
        path: item.path
      };
    }) : undefined
  });
}
var withInstall = function withInstall(component, alias) {
  component.install = function (app) {
    var compName = component.name || component.displayName;
    if (!compName) return;
    app.component(compName, component);
    if (alias) {
      app.config.globalProperties[alias] = component;
    }
  };
  return component;
};
/**
 * @description: 数字格式化
 * @param {
 *  price: 价格数字,
 *  type: 输出类型，cn(中文，转成X万), num(数字，转成千分位，默认)
 * }
 * @return: X万 / 300,000
 */
function numFormat(price, type) {
  if (type === 'cn') {
    return price >= 100000 ? (price / 10000).toFixed(2) + '万' : price;
  } else {
    if ((price === null || price === void 0 ? void 0 : price.toString().indexOf('.')) !== -1) {
      // 如果是带有小数
      var b = price === null || price === void 0 ? void 0 : price.toLocaleString();
      return b;
    } else {
      var c = price === null || price === void 0 ? void 0 : price.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,');
      return c;
    }
  }
}
// 节流
function debounce(func, wait) {
  var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  var timeout;
  return function executedFunction() {
    var _this = this;
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    var later = function later() {
      timeout = null;
      if (!immediate) func.apply(_this, args);
    };
    var callNow = immediate && !timeout;
    clearTimeout(timeout);
    timeout = setTimeout(later, wait);
    if (callNow) func.apply(this, args);
  };
}
/**
 * 获取百分比
 */
function getPercent(num, total) {
  var symbol = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  num = parseFloat(num);
  total = parseFloat(total);
  if (isNaN(num) || isNaN(total)) {
    return '';
  }
  var res = total <= 0 ? '0' : Math.round(num / total * 10000) / 100.0;
  return "".concat(res).concat(symbol ? '%' : '');
}
/**
 * 获取字符串长度
 */
function getStringLength(str) {
  var length = 0;
  var _iterator = _createForOfIteratorHelper(str),
    _step;
  try {
    for (_iterator.s(); !(_step = _iterator.n()).done;) {
      var _char = _step.value;
      // 使用正则表达式判断是否是中文字符
      if (/[\u4e00-\u9fa5]/.test(_char)) {
        length += 2;
      } else {
        length += 1;
      }
    }
  } catch (err) {
    _iterator.e(err);
  } finally {
    _iterator.f();
  }
  return length;
}
/**
 * 获取url参数
 */
function param2Obj(url) {
  var search = url.split('?')[1];
  if (!search) {
    return {};
  }
  // @ts-ignore
  return decodeURIComponent(search).match(/([^?=&]+)(=([^&]*))/g).reduce(function (a, v) {
    return a[v.slice(0, v.indexOf('='))] = v.slice(v.indexOf('=') + 1), a;
  }, {});
}
// 首字母大写
function firstLetterCapital(word) {
  var capitalizedWord = '';
  if (word && word !== null && word !== void 0 && word.charAt) {
    var firstLetter = word.charAt(0);
    var firstLetterCap = firstLetter.toUpperCase();
    var remainingLetters = word.slice(1);
    capitalizedWord = firstLetterCap + remainingLetters;
  }
  return capitalizedWord;
}
;// CONCATENATED MODULE: ./src/store/modules/app.ts
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == app_typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(app_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
function app_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
function app_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, app_toPropertyKey(o.key), o); } }
function app_createClass(e, r, t) { return r && app_defineProperties(e.prototype, r), t && app_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
function _possibleConstructorReturn(t, e) { if (e && ("object" == app_typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
function app_defineProperty(e, r, t) { return (r = app_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
function app_toPropertyKey(t) { var i = app_toPrimitive(t, "string"); return "symbol" == app_typeof(i) ? i : i + ""; }
function app_toPrimitive(t, r) { if ("object" != app_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != app_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
function app_typeof(o) { "@babel/helpers - typeof"; return app_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, app_typeof(o); }
var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
  var c = arguments.length,
    r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
    d;
  if ((typeof Reflect === "undefined" ? "undefined" : app_typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
  return c > 3 && r && Object.defineProperty(target, key, r), r;
};







var timeId;
var NAME = 'app';
hotModuleUnregisterModule(NAME);
var App = /*#__PURE__*/function (_VuexModule) {
  function App() {
    var _this;
    app_classCallCheck(this, App);
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    _this = _callSuper(this, App, [].concat(args));
    // Page loading status
    app_defineProperty(_this, "pageLoadingState", false);
    // project config
    app_defineProperty(_this, "projectConfigState", Persistent.getLocal(PROJ_CFG_KEY));
    // set main overflow hidden
    app_defineProperty(_this, "lockMainScrollState", false);
    // When the window shrinks, remember some states, and restore these states when the window is restored
    app_defineProperty(_this, "beforeMiniState", {});
    return _this;
  }
  _inherits(App, _VuexModule);
  return app_createClass(App, [{
    key: "getPageLoading",
    get: function get() {
      return this.pageLoadingState;
    }
  }, {
    key: "getBeforeMiniState",
    get: function get() {
      return this.beforeMiniState;
    }
  }, {
    key: "getLockMainScrollState",
    get: function get() {
      return this.lockMainScrollState;
    }
  }, {
    key: "getProjectConfig",
    get: function get() {
      return this.projectConfigState || {};
    }
  }, {
    key: "commitPageLoadingState",
    value: function commitPageLoadingState(loading) {
      this.pageLoadingState = loading;
    }
  }, {
    key: "commitBeforeMiniState",
    value: function commitBeforeMiniState(state) {
      this.beforeMiniState = state;
    }
  }, {
    key: "commitLockMainScrollState",
    value: function commitLockMainScrollState(lock) {
      this.lockMainScrollState = lock;
    }
    // 更改整体项目配置
  }, {
    key: "commitProjectConfigState",
    value: function commitProjectConfigState(proCfg) {
      this.projectConfigState = deepMerge(this.projectConfigState || {}, proCfg);
      Persistent.setLocal(PROJ_CFG_KEY, this.projectConfigState);
    }
  }, {
    key: "resumeAllState",
    value: function () {
      var _resumeAllState = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
        return _regeneratorRuntime().wrap(function _callee$(_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              (0,router/* resetRouter */.P)();
              Persistent.clearAll();
            case 2:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }));
      function resumeAllState() {
        return _resumeAllState.apply(this, arguments);
      }
      return resumeAllState;
    }()
  }, {
    key: "setPageLoadingAction",
    value: function () {
      var _setPageLoadingAction = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(loading) {
        var _this2 = this;
        return _regeneratorRuntime().wrap(function _callee2$(_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              if (loading) {
                clearTimeout(timeId);
                // Prevent flicker
                timeId = setTimeout(function () {
                  _this2.commitPageLoadingState(loading);
                }, 50);
              } else {
                this.commitPageLoadingState(loading);
                clearTimeout(timeId);
              }
            case 1:
            case "end":
              return _context2.stop();
          }
        }, _callee2, this);
      }));
      function setPageLoadingAction(_x) {
        return _setPageLoadingAction.apply(this, arguments);
      }
      return setPageLoadingAction;
    }()
  }]);
}(esm/* VuexModule */.g4);
__decorate([esm/* Mutation */.mm], App.prototype, "commitPageLoadingState", null);
__decorate([esm/* Mutation */.mm], App.prototype, "commitBeforeMiniState", null);
__decorate([esm/* Mutation */.mm], App.prototype, "commitLockMainScrollState", null);
__decorate([esm/* Mutation */.mm], App.prototype, "commitProjectConfigState", null);
__decorate([esm/* Action */.aU], App.prototype, "resumeAllState", null);
__decorate([esm/* Action */.aU], App.prototype, "setPageLoadingAction", null);
App = __decorate([(0,esm/* Module */.Yl)({
  dynamic: true,
  namespaced: true,
  store: store/* default */.Z,
  name: NAME
})], App);
/* harmony default export */ const app = ((/* unused pure expression or super */ null && (App)));
var appStore = (0,esm/* getModule */.rT)(App);
;// CONCATENATED MODULE: ./src/hooks/setting/useTransitionSetting.ts


var getTransitionSetting = (0,runtime_core_esm_bundler/* computed */.Fl)(function () {
  return appStore.getProjectConfig.transitionSetting;
});
var getEnableTransition = (0,runtime_core_esm_bundler/* computed */.Fl)(function () {
  var _unref;
  return (_unref = (0,reactivity_esm_bundler/* unref */.SU)(getTransitionSetting)) === null || _unref === void 0 ? void 0 : _unref.enable;
});
var getOpenNProgress = (0,runtime_core_esm_bundler/* computed */.Fl)(function () {
  var _unref2;
  return (_unref2 = (0,reactivity_esm_bundler/* unref */.SU)(getTransitionSetting)) === null || _unref2 === void 0 ? void 0 : _unref2.openNProgress;
});
var getOpenPageLoading = (0,runtime_core_esm_bundler/* computed */.Fl)(function () {
  var _unref3;
  return !!((_unref3 = (0,reactivity_esm_bundler/* unref */.SU)(getTransitionSetting)) !== null && _unref3 !== void 0 && _unref3.openPageLoading);
});
var getBasicTransition = (0,runtime_core_esm_bundler/* computed */.Fl)(function () {
  var _unref4;
  return (_unref4 = (0,reactivity_esm_bundler/* unref */.SU)(getTransitionSetting)) === null || _unref4 === void 0 ? void 0 : _unref4.basicTransition;
});
function setTransitionSetting(transitionSetting) {
  appStore.commitProjectConfigState({
    transitionSetting: transitionSetting
  });
}
function useTransitionSetting() {
  return {
    setTransitionSetting: setTransitionSetting,
    getTransitionSetting: getTransitionSetting,
    getEnableTransition: getEnableTransition,
    getOpenNProgress: getOpenNProgress,
    getOpenPageLoading: getOpenPageLoading,
    getBasicTransition: getBasicTransition
  };
}
// EXTERNAL MODULE: ./node_modules/.pnpm/nprogress@0.2.0/node_modules/nprogress/nprogress.js
var nprogress = __webpack_require__(29981);
var nprogress_default = /*#__PURE__*/__webpack_require__.n(nprogress);
;// CONCATENATED MODULE: ./src/router/guard/progressGuard.ts
function progressGuard_typeof(o) { "@babel/helpers - typeof"; return progressGuard_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, progressGuard_typeof(o); }
function progressGuard_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ progressGuard_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == progressGuard_typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(progressGuard_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
function progressGuard_asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
function progressGuard_asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { progressGuard_asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { progressGuard_asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
/**
 * @ Description: 顶部进度条
 * @ URL:
 */



var _useTransitionSetting = useTransitionSetting(),
  progressGuard_getOpenNProgress = _useTransitionSetting.getOpenNProgress;
function createProgressGuard(router) {
  router.beforeEach(/*#__PURE__*/function () {
    var _ref = progressGuard_asyncToGenerator(/*#__PURE__*/progressGuard_regeneratorRuntime().mark(function _callee(to) {
      return progressGuard_regeneratorRuntime().wrap(function _callee$(_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            if (!to.meta.loaded) {
              _context.next = 2;
              break;
            }
            return _context.abrupt("return", true);
          case 2:
            (0,reactivity_esm_bundler/* unref */.SU)(progressGuard_getOpenNProgress) && nprogress_default().start();
            return _context.abrupt("return", true);
          case 4:
          case "end":
            return _context.stop();
        }
      }, _callee);
    }));
    return function (_x) {
      return _ref.apply(this, arguments);
    };
  }());
  router.afterEach(/*#__PURE__*/progressGuard_asyncToGenerator(/*#__PURE__*/progressGuard_regeneratorRuntime().mark(function _callee2() {
    return progressGuard_regeneratorRuntime().wrap(function _callee2$(_context2) {
      while (1) switch (_context2.prev = _context2.next) {
        case 0:
          // if (to.meta.loaded) return true;
          (0,reactivity_esm_bundler/* unref */.SU)(progressGuard_getOpenNProgress) && nprogress_default().done();
          return _context2.abrupt("return", true);
        case 2:
        case "end":
          return _context2.stop();
      }
    }, _callee2);
  })));
}
;// CONCATENATED MODULE: ./src/router/guard/permissionGuard.ts
// Description: 菜单权限路由控制守卫
function createPermissionGuard(router) {
  router.beforeEach(function () {
    return;
  });
}
;// CONCATENATED MODULE: ./src/router/guard/pageLoadingGuard.ts
function pageLoadingGuard_typeof(o) { "@babel/helpers - typeof"; return pageLoadingGuard_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, pageLoadingGuard_typeof(o); }
function pageLoadingGuard_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ pageLoadingGuard_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == pageLoadingGuard_typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(pageLoadingGuard_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
function pageLoadingGuard_asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
function pageLoadingGuard_asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { pageLoadingGuard_asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { pageLoadingGuard_asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
/**
 * @ Description: 页面切换loading效果
 * @ URL:
 */



var pageLoadingGuard_useTransitionSetting = useTransitionSetting(),
  pageLoadingGuard_getOpenPageLoading = pageLoadingGuard_useTransitionSetting.getOpenPageLoading;
function createPageLoadingGuard(router) {
  router.beforeEach(/*#__PURE__*/function () {
    var _ref = pageLoadingGuard_asyncToGenerator(/*#__PURE__*/pageLoadingGuard_regeneratorRuntime().mark(function _callee(to) {
      return pageLoadingGuard_regeneratorRuntime().wrap(function _callee$(_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            if (!to.meta.loaded) {
              _context.next = 2;
              break;
            }
            return _context.abrupt("return", true);
          case 2:
            if (!(0,reactivity_esm_bundler/* unref */.SU)(pageLoadingGuard_getOpenPageLoading)) {
              _context.next = 5;
              break;
            }
            appStore.setPageLoadingAction(true);
            return _context.abrupt("return", true);
          case 5:
            return _context.abrupt("return", true);
          case 6:
          case "end":
            return _context.stop();
        }
      }, _callee);
    }));
    return function (_x) {
      return _ref.apply(this, arguments);
    };
  }());
  router.afterEach(/*#__PURE__*/pageLoadingGuard_asyncToGenerator(/*#__PURE__*/pageLoadingGuard_regeneratorRuntime().mark(function _callee2() {
    return pageLoadingGuard_regeneratorRuntime().wrap(function _callee2$(_context2) {
      while (1) switch (_context2.prev = _context2.next) {
        case 0:
          if ((0,reactivity_esm_bundler/* unref */.SU)(pageLoadingGuard_getOpenPageLoading)) {
            setTimeout(function () {
              appStore.commitPageLoadingState(false);
            }, 220);
          }
          return _context2.abrupt("return", true);
        case 2:
        case "end":
          return _context2.stop();
      }
    }, _callee2);
  })));
}
// EXTERNAL MODULE: ./node_modules/.pnpm/ant-design-vue@4.2.5_vue@3.3.1/node_modules/ant-design-vue/es/modal/index.js
var modal = __webpack_require__(84790);
// EXTERNAL MODULE: ./node_modules/.pnpm/ant-design-vue@4.2.5_vue@3.3.1/node_modules/ant-design-vue/es/notification/index.js
var notification = __webpack_require__(62249);
;// CONCATENATED MODULE: ./src/enums/menuEnum.ts
/**
 * @description: menu type
 */
var MenuTypeEnum;
(function (MenuTypeEnum) {
  // left menu
  MenuTypeEnum["SIDEBAR"] = "sidebar";
  MenuTypeEnum["MIX_SIDEBAR"] = "mix-sidebar";
  // mixin menu
  MenuTypeEnum["MIX"] = "mix";
  // top menu
  MenuTypeEnum["TOP_MENU"] = "top-menu";
})(MenuTypeEnum || (MenuTypeEnum = {}));
// 折叠触发器位置
var TriggerEnum;
(function (TriggerEnum) {
  // 不显示
  TriggerEnum["NONE"] = "NONE";
  // 菜单底部
  TriggerEnum["FOOTER"] = "FOOTER";
  // 头部
  TriggerEnum["HEADER"] = "HEADER";
})(TriggerEnum || (TriggerEnum = {}));
// 菜单模式
var MenuModeEnum;
(function (MenuModeEnum) {
  MenuModeEnum["VERTICAL"] = "vertical";
  MenuModeEnum["HORIZONTAL"] = "horizontal";
  MenuModeEnum["VERTICAL_RIGHT"] = "vertical-right";
  MenuModeEnum["INLINE"] = "inline";
})(MenuModeEnum || (MenuModeEnum = {}));
var MenuSplitTyeEnum;
(function (MenuSplitTyeEnum) {
  MenuSplitTyeEnum[MenuSplitTyeEnum["NONE"] = 0] = "NONE";
  MenuSplitTyeEnum[MenuSplitTyeEnum["TOP"] = 1] = "TOP";
  MenuSplitTyeEnum[MenuSplitTyeEnum["LEFT"] = 2] = "LEFT";
})(MenuSplitTyeEnum || (MenuSplitTyeEnum = {}));
var TopMenuAlignEnum;
(function (TopMenuAlignEnum) {
  TopMenuAlignEnum["CENTER"] = "center";
  TopMenuAlignEnum["START"] = "start";
  TopMenuAlignEnum["END"] = "end";
})(TopMenuAlignEnum || (TopMenuAlignEnum = {}));
var MixSidebarTriggerEnum;
(function (MixSidebarTriggerEnum) {
  MixSidebarTriggerEnum["HOVER"] = "hover";
  MixSidebarTriggerEnum["CLICK"] = "click";
})(MixSidebarTriggerEnum || (MixSidebarTriggerEnum = {}));
// EXTERNAL MODULE: ./src/enums/appEnum.ts
var appEnum = __webpack_require__(17532);
;// CONCATENATED MODULE: ./src/enums/themeColorEnum.ts
var AppPresetColorList;
(function (AppPresetColorList) {
  AppPresetColorList["BLUE"] = "#0960bd";
  AppPresetColorList["SKY_BLUE"] = "#0084f4";
  AppPresetColorList["TEAL"] = "#009688";
  AppPresetColorList["INDIGO"] = "#536dfe";
  AppPresetColorList["PINK"] = "#ff5c93";
  AppPresetColorList["ORANGE"] = "#ee4f12";
  AppPresetColorList["LIGHT_BLUE"] = "#0096c7";
  AppPresetColorList["PURPLE"] = "#9c27b0";
  AppPresetColorList["ORANGE_YELLOW"] = "#ff9800";
})(AppPresetColorList || (AppPresetColorList = {}));
var HeaderPresetBgColorList;
(function (HeaderPresetBgColorList) {
  HeaderPresetBgColorList["WHITE"] = "#ffffff";
  HeaderPresetBgColorList["TEAL"] = "#009688";
  HeaderPresetBgColorList["INDIGO"] = "#5172DC";
  HeaderPresetBgColorList["LIGHT_BLUE"] = "#018ffb";
  HeaderPresetBgColorList["BLUE"] = "#409eff";
  HeaderPresetBgColorList["RED"] = "#e74c3c";
  HeaderPresetBgColorList["DARK_GRAY"] = "#24292e";
  HeaderPresetBgColorList["MEDIUM_GRAY"] = "#394664";
  HeaderPresetBgColorList["BLACK"] = "#141414";
  HeaderPresetBgColorList["DARK_GRAY2"] = "#383f45";
})(HeaderPresetBgColorList || (HeaderPresetBgColorList = {}));
var SideBarBgColorList;
(function (SideBarBgColorList) {
  SideBarBgColorList["DARK_BLUE"] = "#273352";
  SideBarBgColorList["WHITE"] = "#ffffff";
  SideBarBgColorList["DARK_GRAY"] = "#191b24";
  SideBarBgColorList["DARK_GRAY2"] = "#191a23";
  SideBarBgColorList["MEDIUM_GRAY"] = "#304156";
  SideBarBgColorList["DARK_BLUE2"] = "#001628";
  SideBarBgColorList["SLATE_GRAY"] = "#28333E";
  SideBarBgColorList["SLATE_GRAY2"] = "#344058";
  SideBarBgColorList["BLACK"] = "#141414";
  SideBarBgColorList["DARK_GRAY3"] = "#383f45";
})(SideBarBgColorList || (SideBarBgColorList = {}));
var PrefixCls;
(function (PrefixCls) {
  PrefixCls["GSZS"] = "gszs";
})(PrefixCls || (PrefixCls = {}));
var ThemeColorsEnum = {
  PREFIX_CLS: PrefixCls.GSZS,
  APP_PRESET_COLOR_LIST: AppPresetColorList,
  HEADER_PRESET_BG_COLOR_LIST: HeaderPresetBgColorList,
  SIDE_BAR_BG_COLOR_LIST: SideBarBgColorList
};
// EXTERNAL MODULE: ./build/config/themeConfig.ts
var themeConfig = __webpack_require__(33581);
;// CONCATENATED MODULE: ./src/enums/frontDeskEnum.ts
// 定义 Header 主题的枚举类型
var HeaderTheme;
(function (HeaderTheme) {
  HeaderTheme["LIGHT"] = "light";
  HeaderTheme["DARK"] = "dark";
})(HeaderTheme || (HeaderTheme = {}));
// 定义 Menu 主题的枚举类型
var MenuTheme;
(function (MenuTheme) {
  MenuTheme["LIGHT"] = "light";
  MenuTheme["DARK"] = "dark";
})(MenuTheme || (MenuTheme = {}));
// 定义 Menu 模式的枚举类型
var MenuMode;
(function (MenuMode) {
  MenuMode["HORIZONTAL"] = "horizontal";
  MenuMode["VERTICAL"] = "vertical";
})(MenuMode || (MenuMode = {}));
// 定义 Menu 类型的枚举类型
var MenuType;
(function (MenuType) {
  MenuType["TOP_MENU"] = "top-menu";
  MenuType["SIDE_MENU"] = "side-menu";
})(MenuType || (MenuType = {}));
// 定义 Menu 触发方式的枚举类型
var MenuTrigger;
(function (MenuTrigger) {
  MenuTrigger["HEADER"] = "HEADER";
  MenuTrigger["SIDEBAR"] = "SIDEBAR";
})(MenuTrigger || (MenuTrigger = {}));
// 定义过渡效果的枚举类型
var TransitionEffect;
(function (TransitionEffect) {
  TransitionEffect["FADE_SLIDE"] = "fade-slide";
  // 可以添加更多过渡效果
})(TransitionEffect || (TransitionEffect = {}));
var frontDesk = {
  headerSetting: {
    theme: HeaderTheme.LIGHT,
    bgColor: '#fff',
    fixed: true,
    show: true,
    showFullScreen: true,
    showDoc: true,
    showNotice: true,
    showSearch: false
  },
  menuSetting: {
    theme: MenuTheme.LIGHT,
    bgColor: '#fff',
    fixed: true,
    collapsed: false,
    collapsedShowTitle: false,
    canDrag: true,
    show: true,
    hidden: false,
    menuWidth: 218,
    mode: MenuMode.HORIZONTAL,
    type: MenuType.TOP_MENU,
    topMenuAlign: 'center',
    trigger: MenuTrigger.HEADER,
    accordion: true,
    closeMixSidebarOnChange: false,
    mixSideTrigger: 'click',
    mixSideFixed: false
  },
  showSettingButton: true,
  settingButtonPosition: 'auto',
  permissionMode: 'ROLE',
  permissionCacheType: 1,
  themeColor: '#0096c7',
  themeMode: HeaderTheme.LIGHT,
  themeStyle: 'lightTheme',
  grayMode: false,
  colorWeak: false,
  fullContent: false,
  contentMode: 'full',
  showLogo: true,
  showFooter: false,
  multiTabsSetting: {
    show: false,
    canDrag: true,
    showQuick: true,
    showRedo: true,
    showFold: true
  },
  transitionSetting: {
    enable: true,
    basicTransition: TransitionEffect.FADE_SLIDE,
    openPageLoading: true,
    openNProgress: false
  },
  openKeepAlive: true,
  lockTime: 0,
  showBreadCrumb: true,
  showBreadCrumbIcon: false,
  useErrorHandle: false,
  useOpenBackTop: true,
  canEmbedIFramePage: true,
  closeMessageOnSwitch: true,
  removeAllHttpPending: false
};
;// CONCATENATED MODULE: ./src/settings/projectSetting.ts
function projectSetting_typeof(o) { "@babel/helpers - typeof"; return projectSetting_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, projectSetting_typeof(o); }
function projectSetting_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function projectSetting_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? projectSetting_ownKeys(Object(t), !0).forEach(function (r) { projectSetting_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : projectSetting_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function projectSetting_defineProperty(e, r, t) { return (r = projectSetting_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
function projectSetting_toPropertyKey(t) { var i = projectSetting_toPrimitive(t, "string"); return "symbol" == projectSetting_typeof(i) ? i : i + ""; }
function projectSetting_toPrimitive(t, r) { if ("object" != projectSetting_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != projectSetting_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
/**
 * @ Description: 项目整体配置
 * @ URL:
 */







// 更改后你需要清除浏览器缓存
var setting = projectSetting_objectSpread(projectSetting_objectSpread({}, frontDesk), {}, {
  // 是否显示设置按钮
  showSettingButton: true,
  // 设置按钮的位置坐标
  settingButtonPosition: appEnum/* SettingButtonPositionEnum.AUTO */.xk.AUTO,
  // 设置权限模式
  permissionMode: appEnum/* PermissionModeEnum.ROLE */.o6.ROLE,
  // 设置权限相关的缓存存储在"sessionStorage"还是"localStorage"中。
  permissionCacheType: CacheTypeEnum.LOCAL,
  // 主题颜色
  themeColor: themeConfig/* primaryColor */.lr,
  // 主题模式：暗/亮
  themeMode: themeConfig/* themeMode */.sN,
  // TODO: 主题风格：暗/亮(与themeMode会有冲突待处理)
  themeStyle: appEnum/* GlobalThemeStyleEnum.LIGHT */.IL.LIGHT,
  // 整体风格灰色，用于哀悼日或其他沉重节日
  grayMode: false,
  // 色弱模式
  colorWeak: false,
  // 是否取消菜单、顶部、多标签页的显示
  fullContent: false,
  // 设置内容是否全屏
  contentMode: appEnum/* ContentEnum.FULL */.gL.FULL,
  // 设置是否显示Logo
  showLogo: true,
  // 设置是否显示脚部
  showFooter: false,
  // 顶部配置
  headerSetting: {
    // 顶部背景色
    bgColor: ThemeColorsEnum.HEADER_PRESET_BG_COLOR_LIST.WHITE,
    // 是否固定顶部
    fixed: true,
    // 是否显示顶栏
    show: true,
    // 顶部主题:暗/亮
    theme: appEnum/* ThemeEnum.LIGHT */.bY.LIGHT,
    // 是否展示全屏按钮
    showFullScreen: true,
    showDoc: true,
    // 是否显示消息提示小铃铛
    showNotice: true,
    // 是否展示顶部的菜单搜索
    showSearch: true
  },
  // 菜单配置
  menuSetting: {
    // 侧边栏菜单背景色
    bgColor: ThemeColorsEnum.SIDE_BAR_BG_COLOR_LIST.DARK_BLUE,
    //  是否固定侧边栏菜单
    fixed: true,
    // 菜单折叠
    collapsed: false,
    // 折叠菜单时是否显示菜单名称
    collapsedShowTitle: false,
    // 是否可以拖动侧边导航栏，用于拖动设置侧栏宽度
    canDrag: false,
    // 是否在主DOM中显示
    show: true,
    // 是否在主DOM中隐藏
    hidden: false,
    // 侧边菜单栏的宽度
    menuWidth: 210,
    // 菜单栏模式
    mode: MenuModeEnum.INLINE,
    // 菜单类型
    type: MenuTypeEnum.SIDEBAR,
    // 菜单主题
    theme: appEnum/* ThemeEnum.DARK */.bY.DARK,
    // 菜单分割
    split: false,
    // 顶部菜单布局：居左/中/右
    topMenuAlign: 'center',
    // 菜单触发器的相对位置
    trigger: TriggerEnum.HEADER,
    // 是否打开菜单手风琴模式,打开后只显示一个菜单
    accordion: true,
    // 切换页面是否关闭菜单
    closeMixSidebarOnChange: false,
    // 侧边菜单栏的trigger的触发方式，"click"还是"hover"
    mixSideTrigger: MixSidebarTriggerEnum.CLICK,
    // 固定展开菜单栏
    mixSideFixed: false
  },
  // 多标签设置
  multiTabsSetting: {
    // 开启多标签设置
    show: true,
    // 是否可以拖动标签
    canDrag: true,
    // 是否显示标签页快捷按钮
    showQuick: true,
    // 是否显示标签页刷新按钮
    showRedo: true,
    // 是否显示折叠按钮
    showFold: true
  },
  // 过渡动画设置
  transitionSetting: {
    // 切换页面是否显示过渡效果
    enable: true,
    // 路由基础动画
    basicTransition: appEnum/* RouterTransitionEnum.FADE_SIDE */.UN.FADE_SIDE,
    // 是否在页面切换时显示loading效果
    openPageLoading: true,
    // 是否激活顶部进度条
    openNProgress: false
  },
  // 是否启用KeepAlive缓存最好在开发期间关闭，否则每次都需要清除缓存
  openKeepAlive: true,
  // 设置自动锁屏时间
  lockTime: 0,
  // 是否显示面包屑
  showBreadCrumb: true,
  // 是否显示面包屑icon
  showBreadCrumbIcon: false,
  // 激活错误集成插件
  useErrorHandle: false,
  // 是否显示返回顶部的滚动条
  useOpenBackTop: true,
  // 激活iframe
  canEmbedIFramePage: true,
  // 配置页面切换时是否关闭还存活的消息提示框(一般是与接口相关的消息提示框)
  closeMessageOnSwitch: true,
  // 在切换接口时，是否取消已经发送但没有回应的http请求。
  // 如果启用，我想覆盖单个接口。可以在一个单独的接口中设置
  removeAllHttpPending: false
});
;// CONCATENATED MODULE: ./src/utils/log.ts
var projectName = "xxx";
function warn(message) {
  console.warn("[".concat(projectName, " warn]:").concat(message));
}
function error(message) {
  throw new Error("[".concat(projectName, " error]:").concat(message));
}
;// CONCATENATED MODULE: ./src/router/guard/messageGuard.ts
function messageGuard_typeof(o) { "@babel/helpers - typeof"; return messageGuard_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, messageGuard_typeof(o); }
function messageGuard_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ messageGuard_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == messageGuard_typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(messageGuard_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
function messageGuard_asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
function messageGuard_asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { messageGuard_asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { messageGuard_asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
/**
 * @ Description: 用于页面切换时关闭某些还存活的消息提示框
 * @ URL:
 */



function createMessageGuard(router) {
  var closeMessageOnSwitch = setting.closeMessageOnSwitch;
  router.beforeEach(/*#__PURE__*/messageGuard_asyncToGenerator(/*#__PURE__*/messageGuard_regeneratorRuntime().mark(function _callee() {
    return messageGuard_regeneratorRuntime().wrap(function _callee$(_context) {
      while (1) switch (_context.prev = _context.next) {
        case 0:
          try {
            if (closeMessageOnSwitch) {
              modal/* default.destroyAll */.Z.destroyAll();
              notification/* default.destroy */.Z.destroy();
            }
          } catch (error) {
            warn('message guard error:' + error);
          }
          return _context.abrupt("return", true);
        case 2:
        case "end":
          return _context.stop();
      }
    }, _callee);
  })));
}
;// CONCATENATED MODULE: ./src/router/guard/scrollGuard.ts
function scrollGuard_typeof(o) { "@babel/helpers - typeof"; return scrollGuard_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, scrollGuard_typeof(o); }
function scrollGuard_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ scrollGuard_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == scrollGuard_typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(scrollGuard_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
function scrollGuard_asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
function scrollGuard_asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { scrollGuard_asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { scrollGuard_asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
var isHash = function isHash(href) {
  return /^#/.test(href);
};
function createScrollGuard(router) {
  var body = document.body;
  router.afterEach(/*#__PURE__*/function () {
    var _ref = scrollGuard_asyncToGenerator(/*#__PURE__*/scrollGuard_regeneratorRuntime().mark(function _callee(to) {
      return scrollGuard_regeneratorRuntime().wrap(function _callee$(_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            // scroll top
            isHash(to === null || to === void 0 ? void 0 : to.href) && body.scrollTo(0, 0);
            return _context.abrupt("return", true);
          case 2:
          case "end":
            return _context.stop();
        }
      }, _callee);
    }));
    return function (_x) {
      return _ref.apply(this, arguments);
    };
  }());
}
;// CONCATENATED MODULE: ./src/utils/mitt.ts
function mitt_typeof(o) { "@babel/helpers - typeof"; return mitt_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, mitt_typeof(o); }
function mitt_createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = mitt_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
function mitt_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return mitt_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? mitt_arrayLikeToArray(r, a) : void 0; } }
function mitt_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
function mitt_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
function mitt_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, mitt_toPropertyKey(o.key), o); } }
function mitt_createClass(e, r, t) { return r && mitt_defineProperties(e.prototype, r), t && mitt_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
function mitt_defineProperty(e, r, t) { return (r = mitt_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
function mitt_toPropertyKey(t) { var i = mitt_toPrimitive(t, "string"); return "symbol" == mitt_typeof(i) ? i : i + ""; }
function mitt_toPrimitive(t, r) { if ("object" != mitt_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != mitt_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
/**
 * Mitt: Tiny functional event emitter / pubsub
 *
 * @name mitt
 * @param {Array} [all] Optional array of event names to registered handler functions
 * @returns {Function} The function's instance
 */
var Mitt = /*#__PURE__*/function () {
  function Mitt() {
    var all = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
    mitt_classCallCheck(this, Mitt);
    mitt_defineProperty(this, "cache", void 0);
    // A Map of event names to registered handler functions.
    this.cache = new Map(all);
  }
  return mitt_createClass(Mitt, [{
    key: "once",
    value: function once(type, handler) {
      var _this = this;
      var _decor = function decor() {
        for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
          args[_key] = arguments[_key];
        }
        handler && handler.apply(_this, args);
        _this.off(type, _decor);
      };
      this.on(type, _decor);
      return this;
    }
    /**
     * Register an event handler for the given type.
     *
     * @param {string|symbol} type Type of event to listen for, or `"*"` for all events
     * @param {Function} handler Function to call in response to given event
     */
  }, {
    key: "on",
    value: function on(type, handler) {
      var _this$cache;
      var handlers = (_this$cache = this.cache) === null || _this$cache === void 0 ? void 0 : _this$cache.get(type);
      var added = handlers && handlers.push(handler);
      if (!added) {
        this.cache.set(type, [handler]);
      }
    }
    /**
     * Remove an event handler for the given type.
     *
     * @param {string|symbol} type Type of event to unregister `handler` from, or `"*"`
     * @param {Function} handler Handler function to remove
     */
  }, {
    key: "off",
    value: function off(type, handler) {
      var handlers = this.cache.get(type);
      if (handlers) {
        handlers.splice(handlers.indexOf(handler) >>> 0, 1);
      }
    }
    /**
     * Invoke all handlers for the given type.
     * If present, `"*"` handlers are invoked after type-matched handlers.
     *
     * Note: Manually firing "*" handlers is not supported.
     *
     * @param {string|symbol} type The event type to invoke
     * @param {*} [evt] Any value (object is recommended and powerful), passed to each handler
     */
  }, {
    key: "emit",
    value: function emit(type, evt) {
      var _iterator = mitt_createForOfIteratorHelper((this.cache.get(type) || []).slice()),
        _step;
      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var handler = _step.value;
          handler(evt);
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }
      var _iterator2 = mitt_createForOfIteratorHelper((this.cache.get('*') || []).slice()),
        _step2;
      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var _handler = _step2.value;
          _handler(type, evt);
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }
    }
    /**
     * Remove all event handlers.
     *
     * Note: This will also remove event handlers passed via `mitt(all: EventHandlerMap)`.
     */
  }, {
    key: "clear",
    value: function clear() {
      this.cache.clear();
    }
  }]);
}();

;// CONCATENATED MODULE: ./src/utils/mitt/routeChange.ts
/**
 * 用于监控路由变化，以更改菜单和选项卡的状态。无需监控路由，因为路由状态的变化受页面呈现时间的影响，会比较慢
 */


var mitt = new Mitt();
var key = Symbol();
var lastChangeTab;
function setRouteChange(lastChangeRoute) {
  var r = getRawRoute(lastChangeRoute);
  mitt.emit(key, r);
  lastChangeTab = r;
}
function listenerRouteChange(callback) {
  var immediate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  mitt.on(key, callback);
  immediate && lastChangeTab && callback(lastChangeTab);
}
function removeTabChangeListener() {
  mitt.clear();
}
;// CONCATENATED MODULE: ./src/router/guard/pageGuard.ts
function pageGuard_typeof(o) { "@babel/helpers - typeof"; return pageGuard_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, pageGuard_typeof(o); }
function pageGuard_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ pageGuard_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == pageGuard_typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(pageGuard_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
function pageGuard_asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
function pageGuard_asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { pageGuard_asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { pageGuard_asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }

function createPageGuard(router) {
  var loadedPageMap = new Map();
  router.beforeEach(/*#__PURE__*/function () {
    var _ref = pageGuard_asyncToGenerator(/*#__PURE__*/pageGuard_regeneratorRuntime().mark(function _callee(to) {
      return pageGuard_regeneratorRuntime().wrap(function _callee$(_context) {
        while (1) switch (_context.prev = _context.next) {
          case 0:
            to.meta.loaded = !!loadedPageMap.get(to.path);
            // Notify routing changes
            setRouteChange(to);
            return _context.abrupt("return", true);
          case 3:
          case "end":
            return _context.stop();
        }
      }, _callee);
    }));
    return function (_x) {
      return _ref.apply(this, arguments);
    };
  }());
  router.afterEach(function (to) {
    loadedPageMap.set(to.path, true);
  });
}
;// CONCATENATED MODULE: ./src/router/guard/index.ts







createPageGuard(router/* default */.Z);
createPageLoadingGuard(router/* default */.Z);
createScrollGuard(router/* default */.Z);
createMessageGuard(router/* default */.Z);
createProgressGuard(router/* default */.Z);
createPermissionGuard(router/* default */.Z);

/***/ }),

/***/ 76920:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "P": () => (/* binding */ resetRouter),
/* harmony export */   "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var vue_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3689);
/* harmony import */ var _router_routes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(46799);
/* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(73662);



var WHITE_NAME_LIST = [_constant__WEBPACK_IMPORTED_MODULE_1__/* .REDIRECT_NAME */ .wU];
var router = (0,vue_router__WEBPACK_IMPORTED_MODULE_2__/* .createRouter */ .p7)({
  history: (0,vue_router__WEBPACK_IMPORTED_MODULE_2__/* .createWebHistory */ .PO)(({"NODE_ENV":"production","VUE_APP_API_URL_PREFIX":"/api","VUE_APP_BASE_API":"","VUE_APP_BUNDLE_ANALYZE":"false","VUE_APP_EXT_CDN_HOST":"mirrors.sustech.edu.cn/cdnjs/ajax/libs","VUE_APP_GLOB_APP_TITLE":"xxx","VUE_APP_PJ2_CDN_HOST":"xxx","VUE_APP_PJ_CDN_HOST":"xxx","VUE_APP_PROJECT_NAME":"vue-tpl","VUE_APP_PROJECT_TYPE":"vue","BASE_URL":"//xxx/"}).VUE_APP_PUBLIC_PATH),
  routes: _router_routes__WEBPACK_IMPORTED_MODULE_0__/* .basicRoutes */ .mq,
  strict: false,
  scrollBehavior: function scrollBehavior() {
    return {
      left: 0,
      top: 0
    };
  }
});
// reset router
function resetRouter() {
  router.getRoutes().forEach(function (route) {
    var name = route.name;
    if (name && !WHITE_NAME_LIST.includes(name)) {
      router.hasRoute(name) && router.removeRoute(name);
    }
  });
}
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (router);

/***/ }),

/***/ 46799:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  "aP": () => (/* binding */ asyncRoutes),
  "mq": () => (/* binding */ basicRoutes)
});

// UNUSED EXPORTS: RootRoute

// EXTERNAL MODULE: ./src/router/constant.ts
var constant = __webpack_require__(73662);
;// CONCATENATED MODULE: ./src/router/routes/basic.ts

// 404 on a page
var PAGE_NOT_FOUND_ROUTE = {
  path: '/:path(.*)*',
  name: constant/* PAGE_NOT_FOUND_NAME */.gS,
  component: constant/* LAYOUT */._,
  meta: {
    hideMenu: true,
    hideBreadcrumb: true
  },
  children: [{
    path: '/:path(.*)*',
    name: constant/* PAGE_NOT_FOUND_NAME */.gS,
    component: constant/* NOT_FIND_PAGE */.aD,
    meta: {
      title: 'ErrorPage',
      hideBreadcrumb: true
    }
  }]
};
var REDIRECT_ROUTE = {
  path: '/redirect',
  name: constant/* REDIRECT_NAME */.wU,
  component: constant/* LAYOUT */._,
  meta: {
    title: constant/* REDIRECT_NAME */.wU,
    hideBreadcrumb: true
  },
  children: [{
    path: '/redirect/:path(.*)',
    name: constant/* REDIRECT_NAME */.wU,
    component: function component() {
      return __webpack_require__.e(/* import() */ 3746).then(__webpack_require__.bind(__webpack_require__, 43746));
    },
    meta: {
      title: constant/* REDIRECT_NAME */.wU,
      hideBreadcrumb: true
    }
  }]
};
var ERROR_LOG_ROUTE = {
  path: '/error-log',
  name: 'errorLog',
  component: constant/* LAYOUT */._,
  meta: {
    title: 'ErrorLog',
    hideBreadcrumb: true
  },
  children: [{
    path: 'list',
    name: 'errorLogList',
    component: constant/* ERROR_PAGE */.fP,
    meta: {
      title: '错误日志列表',
      hideBreadcrumb: true
    }
  }]
};
// EXTERNAL MODULE: ./src/enums/pageEnum.ts
var pageEnum = __webpack_require__(90960);
;// CONCATENATED MODULE: ./src/router/routes/index.ts
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }


var req = __webpack_require__(17701);
var requireAll = function requireAll(requireContext) {
  return requireContext.keys().map(requireContext);
};
var modules = requireAll(req);
var routeModuleList = [];
Object.keys(modules).forEach(function (key) {
  var _mod$children, _mod$side, _routeModuleList;
  var mod = modules[key]["default"] || {};
  var children = mod !== null && mod !== void 0 && (_mod$children = mod['children']) !== null && _mod$children !== void 0 && _mod$children.length ? mod.children : [];
  var side = mod !== null && mod !== void 0 && (_mod$side = mod['side']) !== null && _mod$side !== void 0 && _mod$side.length ? mod.side : [];
  mod.children = [].concat(_toConsumableArray(side), _toConsumableArray(children));
  var modList = Array.isArray(mod) ? _toConsumableArray(mod) : [mod];
  (_routeModuleList = routeModuleList).push.apply(_routeModuleList, _toConsumableArray(modList));
});
// 排序顶部导航路由顺序
function sortByOrderNo(data) {
  var hasOrderNo = function hasOrderNo(item) {
    return item.hasOwnProperty('orderNo');
  };
  var withOrderNo = data.filter(hasOrderNo).sort(function (a, b) {
    return a.orderNo - b.orderNo;
  });
  var withoutOrderNo = data.filter(function (item) {
    return !hasOrderNo(item);
  });
  return [].concat(_toConsumableArray(withOrderNo), _toConsumableArray(withoutOrderNo));
}
var RootRoute = {
  path: '/',
  name: 'Root',
  redirect: pageEnum/* PageEnum.BASE_HOME */.d.BASE_HOME,
  meta: {
    title: 'Root'
  }
};
// 路由排序
routeModuleList = sortByOrderNo(routeModuleList);
// 动态路由
var asyncRoutes = _toConsumableArray(routeModuleList);
// Basic routing without permission
var basicRoutes = [RootRoute, PAGE_NOT_FOUND_ROUTE].concat(_toConsumableArray(asyncRoutes));

/***/ }),

/***/ 87502:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _router_constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73662);

var ProjectPortal = {
  orderNo: 4,
  path: '/conference-portall',
  name: '会议活动',
  component: _router_constant__WEBPACK_IMPORTED_MODULE_0__/* .LAYOUT */ ._,
  showFooter: false,
  // 显示页脚
  hideHead: true,
  // 不显示在头部
  meta: {
    icon: 'nimg45_5',
    iconSelect: 'nimg45_5on',
    affix: true,
    afterIcon: 'hotY',
    showSide: {
      openKey: ['/conference-portall'] // 需要高亮的项目 KEY，用 path 表示就行
    }
  },
  children: [{
    path: '',
    name: 'ProjectPortal',
    component: function component() {
      return __webpack_require__.e(/* import() */ 5672).then(__webpack_require__.bind(__webpack_require__, 55672));
    },
    meta: {
      affix: true,
      ignoreAuth: true
    }
  }]
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ProjectPortal);

/***/ }),

/***/ 84734:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _router_constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73662);

var DepartmentPortal = {
  orderNo: 2,
  path: '/department-portal',
  name: '部门门户',
  component: _router_constant__WEBPACK_IMPORTED_MODULE_0__/* .LAYOUT */ ._,
  showFooter: false,
  // 显示页脚
  hideHead: true,
  // 不显示在头部
  meta: {
    icon: 'nimg45_3',
    iconSelect: 'nimg45_3on',
    affix: true,
    afterIcon: 'hotY',
    showSide: {
      openKey: ['/department-portal'] // 需要高亮的项目 KEY，用 path 表示就行
    }
  },
  children: [{
    path: '',
    name: 'DepartmentPortal',
    component: function component() {
      return __webpack_require__.e(/* import() */ 6855).then(__webpack_require__.bind(__webpack_require__, 76855));
    },
    meta: {
      affix: true,
      ignoreAuth: true
    }
  }]
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (DepartmentPortal);

/***/ }),

/***/ 45047:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _router_constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73662);

var home = {
  orderNo: 0,
  path: '/home',
  name: '领导门户',
  component: _router_constant__WEBPACK_IMPORTED_MODULE_0__/* .LAYOUT */ ._,
  showFooter: false,
  // 显示页脚
  hideHead: true,
  // 不显示在头部
  meta: {
    icon: 'nimg45_1',
    iconSelect: 'nimg45_1on',
    affix: true,
    afterIcon: 'hotY',
    showSide: {
      openKey: ['/home'] // 需要高亮的项目 KEY，用 path 表示就行
    }
  },
  children: [{
    path: '',
    name: 'home',
    component: function component() {
      return __webpack_require__.e(/* import() */ 7948).then(__webpack_require__.bind(__webpack_require__, 78913));
    },
    meta: {
      affix: true,
      ignoreAuth: true
    }
  }]
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (home);

/***/ }),

/***/ 25730:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _router_constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73662);

var ProjectPortal = {
  orderNo: 7,
  path: '/my-contract',
  name: '我的合同',
  component: _router_constant__WEBPACK_IMPORTED_MODULE_0__/* .LAYOUT */ ._,
  showFooter: false,
  // 显示页脚
  hideHead: true,
  // 不显示在头部
  meta: {
    icon: 'nimg45_8',
    iconSelect: 'nimg45_8on',
    affix: true,
    afterIcon: 'hotY',
    showSide: {
      openKey: ['/my-contract'] // 需要高亮的项目 KEY，用 path 表示就行
    }
  },
  children: [{
    path: '',
    name: 'ProjectPortal',
    component: function component() {
      return __webpack_require__.e(/* import() */ 5672).then(__webpack_require__.bind(__webpack_require__, 55672));
    },
    meta: {
      affix: true,
      ignoreAuth: true
    }
  }]
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ProjectPortal);

/***/ }),

/***/ 23665:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _router_constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73662);

var ProjectPortal = {
  orderNo: 9,
  path: '/my-manuscript',
  name: '我的稿件',
  component: _router_constant__WEBPACK_IMPORTED_MODULE_0__/* .LAYOUT */ ._,
  showFooter: false,
  // 显示页脚
  hideHead: true,
  // 不显示在头部
  meta: {
    icon: 'nimg45_10',
    iconSelect: 'nimg45_10on',
    affix: true,
    afterIcon: 'hotY',
    showSide: {
      openKey: ['/my-manuscript'] // 需要高亮的项目 KEY，用 path 表示就行
    }
  },
  children: [{
    path: '',
    name: 'ProjectPortal',
    component: function component() {
      return __webpack_require__.e(/* import() */ 5672).then(__webpack_require__.bind(__webpack_require__, 55672));
    },
    meta: {
      affix: true,
      ignoreAuth: true
    }
  }]
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ProjectPortal);

/***/ }),

/***/ 44597:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _router_constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73662);

var ProjectPortal = {
  orderNo: 5,
  path: '/my-pj',
  name: '我的项目',
  component: _router_constant__WEBPACK_IMPORTED_MODULE_0__/* .LAYOUT */ ._,
  showFooter: false,
  // 显示页脚
  hideHead: true,
  // 不显示在头部
  meta: {
    icon: 'nimg45_6',
    iconSelect: 'nimg45_6on',
    affix: true,
    afterIcon: 'hotY',
    showSide: {
      openKey: ['/my-pj'] // 需要高亮的项目 KEY，用 path 表示就行
    }
  },
  children: [{
    path: '',
    name: 'ProjectPortal',
    component: function component() {
      return __webpack_require__.e(/* import() */ 5672).then(__webpack_require__.bind(__webpack_require__, 55672));
    },
    meta: {
      affix: true,
      ignoreAuth: true
    }
  }]
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ProjectPortal);

/***/ }),

/***/ 82566:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _router_constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73662);

var ProjectPortal = {
  orderNo: 8,
  path: '/pending-trial',
  name: '待审合同',
  component: _router_constant__WEBPACK_IMPORTED_MODULE_0__/* .LAYOUT */ ._,
  showFooter: false,
  // 显示页脚
  hideHead: true,
  // 不显示在头部
  meta: {
    icon: 'nimg45_9',
    iconSelect: 'nimg45_9on',
    affix: true,
    afterIcon: 'hotY',
    showSide: {
      openKey: ['/pending-trial'] // 需要高亮的项目 KEY，用 path 表示就行
    }
  },
  children: [{
    path: '',
    name: 'ProjectPortal',
    component: function component() {
      return __webpack_require__.e(/* import() */ 5672).then(__webpack_require__.bind(__webpack_require__, 55672));
    },
    meta: {
      affix: true,
      ignoreAuth: true
    }
  }]
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ProjectPortal);

/***/ }),

/***/ 82510:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _router_constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73662);

var ProjectPortal = {
  orderNo: 1,
  path: '/project-portal',
  name: '项目门户',
  component: _router_constant__WEBPACK_IMPORTED_MODULE_0__/* .LAYOUT */ ._,
  showFooter: false,
  // 显示页脚
  hideHead: true,
  // 不显示在头部
  meta: {
    icon: 'nimg45_2',
    iconSelect: 'nimg45_2on',
    affix: true,
    afterIcon: 'hotY',
    showSide: {
      openKey: ['/project-portal'] // 需要高亮的项目 KEY，用 path 表示就行
    }
  },
  children: [{
    path: '',
    name: 'ProjectPortal',
    component: function component() {
      return __webpack_require__.e(/* import() */ 5672).then(__webpack_require__.bind(__webpack_require__, 55672));
    },
    meta: {
      affix: true,
      ignoreAuth: true
    }
  }]
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ProjectPortal);

/***/ }),

/***/ 60199:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _router_constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73662);

var ProjectPortal = {
  orderNo: 6,
  path: '/section-pj',
  name: '部门项目',
  component: _router_constant__WEBPACK_IMPORTED_MODULE_0__/* .LAYOUT */ ._,
  showFooter: false,
  // 显示页脚
  hideHead: true,
  // 不显示在头部
  meta: {
    icon: 'nimg45_7',
    iconSelect: 'nimg45_7on',
    affix: true,
    afterIcon: 'hotY',
    showSide: {
      openKey: ['/section-pj'] // 需要高亮的项目 KEY，用 path 表示就行
    }
  },
  children: [{
    path: '',
    name: 'ProjectPortal',
    component: function component() {
      return __webpack_require__.e(/* import() */ 5672).then(__webpack_require__.bind(__webpack_require__, 55672));
    },
    meta: {
      affix: true,
      ignoreAuth: true
    }
  }]
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ProjectPortal);

/***/ }),

/***/ 5796:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _router_constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73662);

var ProjectPortal = {
  orderNo: 3,
  path: '/work-portal',
  name: '工作门户',
  component: _router_constant__WEBPACK_IMPORTED_MODULE_0__/* .LAYOUT */ ._,
  showFooter: false,
  // 显示页脚
  hideHead: true,
  // 不显示在头部
  meta: {
    icon: 'nimg45_4',
    iconSelect: 'nimg45_4on',
    affix: true,
    afterIcon: 'hotY',
    showSide: {
      openKey: ['/work-portal'] // 需要高亮的项目 KEY，用 path 表示就行
    }
  },
  children: [{
    path: '',
    name: 'ProjectPortal',
    component: function component() {
      return __webpack_require__.e(/* import() */ 5672).then(__webpack_require__.bind(__webpack_require__, 55672));
    },
    meta: {
      affix: true,
      ignoreAuth: true
    }
  }]
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ProjectPortal);

/***/ }),

/***/ 11593:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Z": () => (__WEBPACK_DEFAULT_EXPORT__),
/* harmony export */   "z": () => (/* binding */ setupStore)
/* harmony export */ });
/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10563);
/* harmony import */ var vuex_module_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(57779);
/* harmony import */ var _utils_env__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(34385);



vuex_module_decorators__WEBPACK_IMPORTED_MODULE_1__/* .config.rawError */ .vc.rawError = true;
var store = (0,vuex__WEBPACK_IMPORTED_MODULE_2__/* .createStore */ .MT)({
  strict: (0,_utils_env__WEBPACK_IMPORTED_MODULE_0__/* .isDevMode */ .X6)()
});
function setupStore(app) {
  app.use(store);
}
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (store);

/***/ }),

/***/ 34385:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "X6": () => (/* binding */ isDevMode)
/* harmony export */ });
/* unused harmony exports getCommonStoragePrefix, getStorageShortName, getAppEnvConfig, devMode, prodMode, getEnv, isProdMode */
/* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4147);
/**
 * @ Description: 与环境相关操作
 */

function getCommonStoragePrefix() {
  var _getAppEnvConfig = getAppEnvConfig(),
    VUE_APP_GLOB_APP_SHORT_NAME = _getAppEnvConfig.VUE_APP_GLOB_APP_SHORT_NAME;
  return "".concat(VUE_APP_GLOB_APP_SHORT_NAME, "__").concat(getEnv()).toUpperCase();
}
// Generate cache key according to version
function getStorageShortName() {
  return "".concat(getCommonStoragePrefix(), "__".concat(pkg.version), "__").toUpperCase();
}
function getAppEnvConfig() {
  var _process$env = ({"NODE_ENV":"production","VUE_APP_API_URL_PREFIX":"/api","VUE_APP_BASE_API":"","VUE_APP_BUNDLE_ANALYZE":"false","VUE_APP_EXT_CDN_HOST":"mirrors.sustech.edu.cn/cdnjs/ajax/libs","VUE_APP_GLOB_APP_TITLE":"xxx","VUE_APP_PJ2_CDN_HOST":"xxx","VUE_APP_PJ_CDN_HOST":"xxx","VUE_APP_PROJECT_NAME":"vue-tpl","VUE_APP_PROJECT_TYPE":"vue","BASE_URL":"//xxx/"}),
    VUE_APP_GLOB_APP_TITLE = _process$env.VUE_APP_GLOB_APP_TITLE,
    VUE_APP_GLOB_API_URL = _process$env.VUE_APP_GLOB_API_URL,
    VUE_APP_GLOB_APP_SHORT_NAME = _process$env.VUE_APP_GLOB_APP_SHORT_NAME,
    VUE_APP_API_URL_PREFIX = _process$env.VUE_APP_API_URL_PREFIX,
    VUE_APP_GLOB_UPLOAD_URL = _process$env.VUE_APP_GLOB_UPLOAD_URL;
  return {
    VUE_APP_GLOB_APP_TITLE: VUE_APP_GLOB_APP_TITLE,
    VUE_APP_GLOB_API_URL: VUE_APP_GLOB_API_URL,
    VUE_APP_GLOB_APP_SHORT_NAME: VUE_APP_GLOB_APP_SHORT_NAME,
    VUE_APP_API_URL_PREFIX: VUE_APP_API_URL_PREFIX,
    VUE_APP_GLOB_UPLOAD_URL: VUE_APP_GLOB_UPLOAD_URL
  };
}
/**
 * @description: Development model
 */
var devMode = 'development';
/**
 * @description: Production mode
 */
var prodMode = 'production';
/**
 * @description: Get environment variables
 * @returns:
 * @example:
 */
function getEnv() {
  return "production";
}
/**
 * @description: Is it a development mode
 * @returns:
 * @example:
 */
function isDevMode() {
  return "production" === 'development';
}
/**
 * @description: Is it a production mode
 * @returns:
 * @example:
 */
function isProdMode() {
  return "production" === 'production';
}

/***/ }),

/***/ 61050:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "BD": () => (/* binding */ isNullOrUnDef),
/* harmony export */   "HD": () => (/* binding */ isString),
/* harmony export */   "Kn": () => (/* binding */ isObject)
/* harmony export */ });
/* unused harmony exports is, isDef, isUnDef, isEmpty, isDate, isNull, isNullAndUnDef, isNumber, isPromise, isFunction, isBoolean, isRegExp, isArray, isWindow, isElement, isServer, isClient, isUrl, isMap */
var toString = Object.prototype.toString;
function is(val, type) {
  return toString.call(val) === "[object ".concat(type, "]");
}
function isDef(val) {
  return typeof val !== 'undefined';
}
function isUnDef(val) {
  return !isDef(val);
}
function isObject(val) {
  return val !== null && is(val, 'Object');
}
function isEmpty(val) {
  if (isArray(val) || isString(val)) {
    return val.length === 0;
  }
  if (val instanceof Map || val instanceof Set) {
    return val.size === 0;
  }
  if (isObject(val)) {
    return Object.keys(val).length === 0;
  }
  return false;
}
function isDate(val) {
  return is(val, 'Date');
}
function isNull(val) {
  return val === null;
}
function isNullAndUnDef(val) {
  return isUnDef(val) && isNull(val);
}
function isNullOrUnDef(val) {
  return isUnDef(val) || isNull(val);
}
function isNumber(val) {
  return is(val, 'Number');
}
function isPromise(val) {
  return is(val, 'Promise') && isObject(val) && isFunction(val.then) && isFunction(val["catch"]);
}
function isString(val) {
  return is(val, 'String');
}
function isFunction(val) {
  return typeof val === 'function';
}
function isBoolean(val) {
  return is(val, 'Boolean');
}
function isRegExp(val) {
  return is(val, 'RegExp');
}
function isArray(val) {
  return val && Array.isArray(val);
}
function isWindow(val) {
  return typeof window !== 'undefined' && is(val, 'Window');
}
function isElement(val) {
  return isObject(val) && !!val.tagName;
}
var isServer = typeof window === 'undefined';
var isClient = !isServer;
function isUrl(path) {
  var reg = /(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/;
  return reg.test(path);
}
function isMap(val) {
  return is(val, 'Map');
}

/***/ }),

/***/ 62063:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "i": () => (/* binding */ propTypes)
/* harmony export */ });
/* harmony import */ var vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28492);
/**

 * @ Description: 使用"vue-types"模块强化Vue.js props
 * @ URL:
 */

// 自定义命名空间
var propTypes = (0,vue_types__WEBPACK_IMPORTED_MODULE_0__/* .createTypes */ .Dl)({
  func: undefined,
  bool: undefined,
  string: undefined,
  number: undefined,
  object: undefined,
  integer: undefined
});
propTypes.extend([{
  name: 'style',
  getter: true,
  type: [String, Object],
  "default": undefined
}, {
  name: 'VNodeChild',
  getter: true,
  type: undefined
}
// {
//   name: 'trueBool',
//   getter: true,
//   type: Boolean,
//   default: true,
// },
]);


/***/ }),

/***/ 17701:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var map = {
	"./conferencePortal.ts": 87502,
	"./departmentPortal.ts": 84734,
	"./home.ts": 45047,
	"./myContract.ts": 25730,
	"./myManuscript.ts": 23665,
	"./myPj.ts": 44597,
	"./pendingTrial.ts": 82566,
	"./projectPortal.ts": 82510,
	"./sectionPj.ts": 60199,
	"./workPortal.ts": 5796
};


function webpackContext(req) {
	var id = webpackContextResolve(req);
	return __webpack_require__(id);
}
function webpackContextResolve(req) {
	if(!__webpack_require__.o(map, req)) {
		var e = new Error("Cannot find module '" + req + "'");
		e.code = 'MODULE_NOT_FOUND';
		throw e;
	}
	return map[req];
}
webpackContext.keys = function webpackContextKeys() {
	return Object.keys(map);
};
webpackContext.resolve = webpackContextResolve;
module.exports = webpackContext;
webpackContext.id = 17701;

/***/ })

}]);