@pubinfo/core 2.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/AppSetting-BXQHV5F8.js +125 -0
- package/es/HButton.vue_vue_type_script_setup_true_lang-CYAzn9Mg.js +25 -0
- package/es/HCheckList.vue_vue_type_script_setup_true_lang-DanhyVxU.js +41 -0
- package/es/HDivider-DgXBhPr0.js +21 -0
- package/es/HInput.vue_vue_type_script_setup_true_lang-DBqCXRnn.js +33 -0
- package/es/HToggle-Cd71WKvG.js +34 -0
- package/es/PreferencesContent-CQkwkQ_1.js +972 -0
- package/es/SettingBreadcrumb-Bp_66IFN.js +50 -0
- package/es/SettingCopyright-BPSnoTQb.js +62 -0
- package/es/SettingEnableTransition-Rx2-0Wxj.js +78 -0
- package/es/SettingHome-BW27PQqs.js +55 -0
- package/es/SettingMenu-D5gdNfal.js +120 -0
- package/es/SettingMode-B4_HGVez.js +69 -0
- package/es/SettingNavSearch-CRovYxzh.js +46 -0
- package/es/SettingOther-D0zo11vM.js +81 -0
- package/es/SettingPage-B8GHuoKV.js +29 -0
- package/es/SettingTabbar-Cn_QzvA8.js +154 -0
- package/es/SettingThemes-D_DpEncn.js +144 -0
- package/es/SettingToolbar-Csl2gnfi.js +85 -0
- package/es/SettingTopbar-CaHjQULM.js +52 -0
- package/es/SettingWidthMode-BGiP7gTw.js +68 -0
- package/es/TopThinMode-DWm0oY5Y.js +35 -0
- package/es/_...all_-DI_QAUox.js +52 -0
- package/es/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/es/api/enum/code.d.ts +67 -0
- package/es/api/helper.d.ts +32 -0
- package/es/api/index.d.ts +12 -0
- package/es/api/interface.d.ts +14 -0
- package/es/api/modules/auth/index.d.ts +1 -0
- package/es/api/modules/auth/renzhengfuwu.d.ts +50 -0
- package/es/api/modules/configData/heibaimingdanfuwu.d.ts +36 -0
- package/es/api/modules/configData/index.d.ts +3 -0
- package/es/api/modules/configData/xitongpeizhifuwu.d.ts +99 -0
- package/es/api/modules/configData/zidianfuwu.d.ts +71 -0
- package/es/api/modules/rbac/gangweijiekou.d.ts +43 -0
- package/es/api/modules/rbac/index.d.ts +11 -0
- package/es/api/modules/rbac/jiaosejiekou.d.ts +50 -0
- package/es/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +43 -0
- package/es/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +64 -0
- package/es/api/modules/rbac/yonghujiekou.d.ts +106 -0
- package/es/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +36 -0
- package/es/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +29 -0
- package/es/api/modules/rbac/ziyuanjiekou.d.ts +85 -0
- package/es/api/modules/rbac/zuhuguanlijiekou.d.ts +36 -0
- package/es/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +29 -0
- package/es/api/modules/rbac/zuzhijiekou.d.ts +64 -0
- package/es/api/request.d.ts +2 -0
- package/es/api/system/app.d.ts +17 -0
- package/es/api/system/user.d.ts +24 -0
- package/es/assets/styles/index.d.ts +6 -0
- package/es/colors-oRlAXMUC.js +25 -0
- package/es/components/NotAllowed/index.vue.d.ts +2 -0
- package/es/components/PageHeader/index.vue.d.ts +23 -0
- package/es/components/PageMain/index.vue.d.ts +27 -0
- package/es/components/PassStrengthValidator/index.vue.d.ts +26 -0
- package/es/components/PassStrengthValidator/rule.vue.d.ts +8 -0
- package/es/components/PubinfoApp/index.vue.d.ts +2 -0
- package/es/components/PubinfoIcon/index.vue.d.ts +10 -0
- package/es/components/PubinfoProvider/index.d.ts +8 -0
- package/es/components/index.d.ts +8 -0
- package/es/composables/auth.d.ts +8 -0
- package/es/composables/index.d.ts +4 -0
- package/es/composables/log.d.ts +6 -0
- package/es/composables/theme.d.ts +3 -0
- package/es/composables/watchDiff.d.ts +2 -0
- package/es/config/index.d.ts +1 -0
- package/es/config/settings.d.ts +3 -0
- package/es/context.d.ts +14 -0
- package/es/create.d.ts +3 -0
- package/es/directives/index.d.ts +4 -0
- package/es/directives/plugins/permission.d.ts +6 -0
- package/es/index-B9I6Pru6.js +276 -0
- package/es/index-BHkrq701.js +137 -0
- package/es/index-BkqnOkyO.js +49 -0
- package/es/index-BvVAS3S-.js +35841 -0
- package/es/index-ChOUZNbk.js +354 -0
- package/es/index-D8eeneI_.js +271 -0
- package/es/index-DTQQt_XY.js +10 -0
- package/es/index-Dav3jQVP.js +8228 -0
- package/es/index-DvHnVMX5.js +12913 -0
- package/es/index-P2cA5UeU.js +230 -0
- package/es/index.d.ts +11 -0
- package/es/index.js +76 -0
- package/es/index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-BBe8CvCV.js +2300 -0
- package/es/interface.d.ts +29 -0
- package/es/layout/Layout.vue.d.ts +20 -0
- package/es/layout/components/BackTop/index.vue.d.ts +2 -0
- package/es/layout/components/Content/IframeView.vue.d.ts +4 -0
- package/es/layout/components/Content/LinkView.vue.d.ts +2 -0
- package/es/layout/components/Content/index.vue.d.ts +2 -0
- package/es/layout/components/Copyright/index.vue.d.ts +2 -0
- package/es/layout/components/Header/TopMode/More.vue.d.ts +26 -0
- package/es/layout/components/Header/TopMode/NotCursor.vue.d.ts +25 -0
- package/es/layout/components/Header/TopMode/index.vue.d.ts +4 -0
- package/es/layout/components/Header/TopThinMode.vue.d.ts +4 -0
- package/es/layout/components/Header/index.vue.d.ts +19 -0
- package/es/layout/components/Logo/index.vue.d.ts +26 -0
- package/es/layout/components/Menu/index.vue.d.ts +10 -0
- package/es/layout/components/Menu/item.vue.d.ts +11 -0
- package/es/layout/components/Menu/sub.vue.d.ts +219 -0
- package/es/layout/components/Menu/types.d.ts +42 -0
- package/es/layout/components/SettingBar/AppSetting.vue.d.ts +12 -0
- package/es/layout/components/SettingBar/components/DayNightToggle.vue.d.ts +9 -0
- package/es/layout/components/SettingBar/components/SettingBreadcrumb.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingCopyright.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingEnableTransition.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingHome.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingMenu.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingMode.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingNavSearch.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingOther.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingPage.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingTabbar.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingThemes.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingToolbar.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingTopbar.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingWidthMode.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/index.vue.d.ts +2 -0
- package/es/layout/components/Sidebar/MainSidebar.vue.d.ts +2 -0
- package/es/layout/components/Sidebar/SubSidebar.vue.d.ts +2 -0
- package/es/layout/components/Sidebar/index.vue.d.ts +2 -0
- package/es/layout/components/Tools/Breadcrumb/index.vue.d.ts +17 -0
- package/es/layout/components/Tools/Breadcrumb/item.vue.d.ts +25 -0
- package/es/layout/components/Tools/DayNightSwitch.vue.d.ts +2 -0
- package/es/layout/components/Tools/HotkeysIntro.vue.d.ts +4 -0
- package/es/layout/components/Tools/Preferences/PreferencesContent.vue.d.ts +2 -0
- package/es/layout/components/Tools/Preferences/index.vue.d.ts +4 -0
- package/es/layout/components/Tools/Search.vue.d.ts +199 -0
- package/es/layout/components/Tools/index.vue.d.ts +233 -0
- package/es/layout/components/Topbar/Tabbar/MoreAction.vue.d.ts +217 -0
- package/es/layout/components/Topbar/Tabbar/index.vue.d.ts +14 -0
- package/es/layout/components/Topbar/Toolbar/Favorites.vue.d.ts +4 -0
- package/es/layout/components/Topbar/Toolbar/Star.vue.d.ts +2 -0
- package/es/layout/components/Topbar/Toolbar/index.vue.d.ts +2 -0
- package/es/layout/components/Topbar/index.vue.d.ts +2 -0
- package/es/layout/composables/useContext.d.ts +18 -0
- package/es/layout/composables/useGetComputedStyle.d.ts +15 -0
- package/es/layout/composables/useHotkey.d.ts +5 -0
- package/es/layout/composables/useMainPage.d.ts +14 -0
- package/es/layout/composables/useMenu.d.ts +8 -0
- package/es/layout/composables/useTabbar.d.ts +14 -0
- package/es/layout/composables/useTitle.d.ts +3 -0
- package/es/layout/composables/useViewTransition.d.ts +3 -0
- package/es/layout/composables/useWatermark.d.ts +4 -0
- package/es/layout/index.d.ts +19 -0
- package/es/layout/provider.d.ts +1 -0
- package/es/layout/ui-kit/HBadge.vue.d.ts +20 -0
- package/es/layout/ui-kit/HButton.vue.d.ts +26 -0
- package/es/layout/ui-kit/HCheckList.vue.d.ts +20 -0
- package/es/layout/ui-kit/HDialog.vue.d.ts +28 -0
- package/es/layout/ui-kit/HDivider.vue.d.ts +20 -0
- package/es/layout/ui-kit/HDropdown.vue.d.ts +18 -0
- package/es/layout/ui-kit/HDropdownMenu.vue.d.ts +26 -0
- package/es/layout/ui-kit/HDropdownTree.vue.d.ts +32 -0
- package/es/layout/ui-kit/HInput.vue.d.ts +17 -0
- package/es/layout/ui-kit/HKbd.vue.d.ts +17 -0
- package/es/layout/ui-kit/HSelect.vue.d.ts +17 -0
- package/es/layout/ui-kit/HSlideover.vue.d.ts +30 -0
- package/es/layout/ui-kit/HTabList.vue.d.ts +22 -0
- package/es/layout/ui-kit/HToggle.vue.d.ts +14 -0
- package/es/layout/ui-kit/HTooltip.vue.d.ts +23 -0
- package/es/locales/index.d.ts +301 -0
- package/es/locales/lang/en.json.d.ts +99 -0
- package/es/locales/lang/zh-cn.json.d.ts +100 -0
- package/es/locales/lang/zh-tw.json.d.ts +100 -0
- package/es/locales/ui.d.ts +3 -0
- package/es/modules.d.ts +11 -0
- package/es/notification-6D5hA7Bp.js +15347 -0
- package/es/pages/personal/profile/index.vue.d.ts +2 -0
- package/es/pages/system/[...all].vue.d.ts +2 -0
- package/es/pages/system/change-organization/index.vue.d.ts +2 -0
- package/es/pages/system/change-password/components/ChangePasswordForm/index.vue.d.ts +18 -0
- package/es/pages/system/change-password/index.vue.d.ts +31 -0
- package/es/pages/system/index.vue.d.ts +2 -0
- package/es/pages/system/not-permission/index.vue.d.ts +2 -0
- package/es/pages/system/reload.vue.d.ts +2 -0
- package/es/pick-Br-UKn7B.js +19 -0
- package/es/question-line-CfkciTFq.js +18 -0
- package/es/reload-CUcPYtl7.js +14 -0
- package/es/request.js +1811 -0
- package/es/right-Bfe2p1o0.js +36 -0
- package/es/route/async.d.ts +9 -0
- package/es/route/guard/auth.d.ts +3 -0
- package/es/route/guard/basic.d.ts +3 -0
- package/es/route/guard/index.d.ts +3 -0
- package/es/route/guard/setting.d.ts +3 -0
- package/es/route/index.d.ts +7 -0
- package/es/route/routes.d.ts +3 -0
- package/es/stores/enum/index.d.ts +20 -0
- package/es/stores/helper.d.ts +2 -0
- package/es/stores/index.d.ts +5 -0
- package/es/stores/modules/favorites.d.ts +32 -0
- package/es/stores/modules/iframe.d.ts +41 -0
- package/es/stores/modules/index.d.ts +9 -0
- package/es/stores/modules/keepAlive.d.ts +23 -0
- package/es/stores/modules/menu.d.ts +32 -0
- package/es/stores/modules/notification.d.ts +18 -0
- package/es/stores/modules/route.d.ts +42 -0
- package/es/stores/modules/settings.d.ts +85 -0
- package/es/stores/modules/tabbar.d.ts +59 -0
- package/es/stores/modules/user.d.ts +3 -0
- package/es/stores/plugin/persist.d.ts +5 -0
- package/es/stores/plugin/sideEffect/cleanup.d.ts +5 -0
- package/es/stores/plugin/sideEffect/favoritesStorage.d.ts +5 -0
- package/es/stores/plugin/sideEffect/iframeCache.d.ts +5 -0
- package/es/stores/plugin/sideEffect/index.d.ts +5 -0
- package/es/stores/plugin/sideEffect/tabbarStorage.d.ts +5 -0
- package/es/style.css +9 -0
- package/es/utils/cleanup.d.ts +8 -0
- package/es/utils/crypto.d.ts +4 -0
- package/es/utils/eventBus.d.ts +5 -0
- package/es/utils/index.d.ts +14 -0
- package/es/utils/injectionKeys.d.ts +2 -0
- package/es/utils/storage.d.ts +21 -0
- package/es/utils/utils.d.ts +3 -0
- package/es/utils/watermark.d.ts +51 -0
- package/lib/AppSetting-CCiwpjoq.cjs +1 -0
- package/lib/HButton.vue_vue_type_script_setup_true_lang-D-XkyoXl.cjs +1 -0
- package/lib/HCheckList.vue_vue_type_script_setup_true_lang-DwA8einQ.cjs +1 -0
- package/lib/HDivider-DCfDgE8l.cjs +1 -0
- package/lib/HInput.vue_vue_type_script_setup_true_lang-CwS0mGyL.cjs +1 -0
- package/lib/HToggle-BP6YYf-s.cjs +1 -0
- package/lib/PreferencesContent-DgL-Jc_J.cjs +3 -0
- package/lib/SettingBreadcrumb-BQ78yEP4.cjs +1 -0
- package/lib/SettingCopyright-x7aPlkQy.cjs +1 -0
- package/lib/SettingEnableTransition-CD3-44Iy.cjs +1 -0
- package/lib/SettingHome-u52oz6i8.cjs +1 -0
- package/lib/SettingMenu-DsElOvvv.cjs +1 -0
- package/lib/SettingMode-C_kgpTxw.cjs +1 -0
- package/lib/SettingNavSearch-3auTi8UW.cjs +1 -0
- package/lib/SettingOther-6XGQq7OA.cjs +1 -0
- package/lib/SettingPage-C8yIHpLc.cjs +1 -0
- package/lib/SettingTabbar-K-nHb89z.cjs +1 -0
- package/lib/SettingThemes-BeNwFz7K.cjs +1 -0
- package/lib/SettingToolbar-Be1V7lwV.cjs +1 -0
- package/lib/SettingTopbar-C-j8O3c8.cjs +1 -0
- package/lib/SettingWidthMode-GMjAF-s3.cjs +1 -0
- package/lib/TopThinMode-DGUvyHT2.cjs +1 -0
- package/lib/_...all_-C4CXjAo9.cjs +1 -0
- package/lib/_plugin-vue_export-helper-BHFhmbuH.cjs +1 -0
- package/lib/api/enum/code.d.ts +67 -0
- package/lib/api/helper.d.ts +32 -0
- package/lib/api/index.d.ts +12 -0
- package/lib/api/interface.d.ts +14 -0
- package/lib/api/modules/auth/index.d.ts +1 -0
- package/lib/api/modules/auth/renzhengfuwu.d.ts +50 -0
- package/lib/api/modules/configData/heibaimingdanfuwu.d.ts +36 -0
- package/lib/api/modules/configData/index.d.ts +3 -0
- package/lib/api/modules/configData/xitongpeizhifuwu.d.ts +99 -0
- package/lib/api/modules/configData/zidianfuwu.d.ts +71 -0
- package/lib/api/modules/rbac/gangweijiekou.d.ts +43 -0
- package/lib/api/modules/rbac/index.d.ts +11 -0
- package/lib/api/modules/rbac/jiaosejiekou.d.ts +50 -0
- package/lib/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +43 -0
- package/lib/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +64 -0
- package/lib/api/modules/rbac/yonghujiekou.d.ts +106 -0
- package/lib/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +36 -0
- package/lib/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +29 -0
- package/lib/api/modules/rbac/ziyuanjiekou.d.ts +85 -0
- package/lib/api/modules/rbac/zuhuguanlijiekou.d.ts +36 -0
- package/lib/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +29 -0
- package/lib/api/modules/rbac/zuzhijiekou.d.ts +64 -0
- package/lib/api/request.d.ts +2 -0
- package/lib/api/system/app.d.ts +17 -0
- package/lib/api/system/user.d.ts +24 -0
- package/lib/assets/styles/index.d.ts +6 -0
- package/lib/colors-KAaBT84S.cjs +1 -0
- package/lib/components/NotAllowed/index.vue.d.ts +2 -0
- package/lib/components/PageHeader/index.vue.d.ts +23 -0
- package/lib/components/PageMain/index.vue.d.ts +27 -0
- package/lib/components/PassStrengthValidator/index.vue.d.ts +26 -0
- package/lib/components/PassStrengthValidator/rule.vue.d.ts +8 -0
- package/lib/components/PubinfoApp/index.vue.d.ts +2 -0
- package/lib/components/PubinfoIcon/index.vue.d.ts +10 -0
- package/lib/components/PubinfoProvider/index.d.ts +8 -0
- package/lib/components/index.d.ts +8 -0
- package/lib/composables/auth.d.ts +8 -0
- package/lib/composables/index.d.ts +4 -0
- package/lib/composables/log.d.ts +6 -0
- package/lib/composables/theme.d.ts +3 -0
- package/lib/composables/watchDiff.d.ts +2 -0
- package/lib/config/index.d.ts +1 -0
- package/lib/config/settings.d.ts +3 -0
- package/lib/context.d.ts +14 -0
- package/lib/create.d.ts +3 -0
- package/lib/directives/index.d.ts +4 -0
- package/lib/directives/plugins/permission.d.ts +6 -0
- package/lib/index-38bsQrho.cjs +1 -0
- package/lib/index-BEqD62a0.cjs +1 -0
- package/lib/index-Bbm9CQRP.cjs +1 -0
- package/lib/index-BqHsuJkr.cjs +1 -0
- package/lib/index-JZl6Zh3L.cjs +44 -0
- package/lib/index-VGR0Mt4q.cjs +240 -0
- package/lib/index-WMo0GAa6.cjs +1 -0
- package/lib/index-_YsHduAE.cjs +1 -0
- package/lib/index-gr8kFwPx.cjs +18 -0
- package/lib/index-zvGq9tSu.cjs +1 -0
- package/lib/index.cjs +1 -0
- package/lib/index.d.ts +11 -0
- package/lib/index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-SCJ5qyPu.cjs +1 -0
- package/lib/interface.d.ts +29 -0
- package/lib/layout/Layout.vue.d.ts +20 -0
- package/lib/layout/components/BackTop/index.vue.d.ts +2 -0
- package/lib/layout/components/Content/IframeView.vue.d.ts +4 -0
- package/lib/layout/components/Content/LinkView.vue.d.ts +2 -0
- package/lib/layout/components/Content/index.vue.d.ts +2 -0
- package/lib/layout/components/Copyright/index.vue.d.ts +2 -0
- package/lib/layout/components/Header/TopMode/More.vue.d.ts +26 -0
- package/lib/layout/components/Header/TopMode/NotCursor.vue.d.ts +25 -0
- package/lib/layout/components/Header/TopMode/index.vue.d.ts +4 -0
- package/lib/layout/components/Header/TopThinMode.vue.d.ts +4 -0
- package/lib/layout/components/Header/index.vue.d.ts +19 -0
- package/lib/layout/components/Logo/index.vue.d.ts +26 -0
- package/lib/layout/components/Menu/index.vue.d.ts +10 -0
- package/lib/layout/components/Menu/item.vue.d.ts +11 -0
- package/lib/layout/components/Menu/sub.vue.d.ts +219 -0
- package/lib/layout/components/Menu/types.d.ts +42 -0
- package/lib/layout/components/SettingBar/AppSetting.vue.d.ts +12 -0
- package/lib/layout/components/SettingBar/components/DayNightToggle.vue.d.ts +9 -0
- package/lib/layout/components/SettingBar/components/SettingBreadcrumb.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingCopyright.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingEnableTransition.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingHome.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingMenu.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingMode.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingNavSearch.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingOther.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingPage.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingTabbar.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingThemes.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingToolbar.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingTopbar.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingWidthMode.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/index.vue.d.ts +2 -0
- package/lib/layout/components/Sidebar/MainSidebar.vue.d.ts +2 -0
- package/lib/layout/components/Sidebar/SubSidebar.vue.d.ts +2 -0
- package/lib/layout/components/Sidebar/index.vue.d.ts +2 -0
- package/lib/layout/components/Tools/Breadcrumb/index.vue.d.ts +17 -0
- package/lib/layout/components/Tools/Breadcrumb/item.vue.d.ts +25 -0
- package/lib/layout/components/Tools/DayNightSwitch.vue.d.ts +2 -0
- package/lib/layout/components/Tools/HotkeysIntro.vue.d.ts +4 -0
- package/lib/layout/components/Tools/Preferences/PreferencesContent.vue.d.ts +2 -0
- package/lib/layout/components/Tools/Preferences/index.vue.d.ts +4 -0
- package/lib/layout/components/Tools/Search.vue.d.ts +199 -0
- package/lib/layout/components/Tools/index.vue.d.ts +233 -0
- package/lib/layout/components/Topbar/Tabbar/MoreAction.vue.d.ts +217 -0
- package/lib/layout/components/Topbar/Tabbar/index.vue.d.ts +14 -0
- package/lib/layout/components/Topbar/Toolbar/Favorites.vue.d.ts +4 -0
- package/lib/layout/components/Topbar/Toolbar/Star.vue.d.ts +2 -0
- package/lib/layout/components/Topbar/Toolbar/index.vue.d.ts +2 -0
- package/lib/layout/components/Topbar/index.vue.d.ts +2 -0
- package/lib/layout/composables/useContext.d.ts +18 -0
- package/lib/layout/composables/useGetComputedStyle.d.ts +15 -0
- package/lib/layout/composables/useHotkey.d.ts +5 -0
- package/lib/layout/composables/useMainPage.d.ts +14 -0
- package/lib/layout/composables/useMenu.d.ts +8 -0
- package/lib/layout/composables/useTabbar.d.ts +14 -0
- package/lib/layout/composables/useTitle.d.ts +3 -0
- package/lib/layout/composables/useViewTransition.d.ts +3 -0
- package/lib/layout/composables/useWatermark.d.ts +4 -0
- package/lib/layout/index.d.ts +19 -0
- package/lib/layout/provider.d.ts +1 -0
- package/lib/layout/ui-kit/HBadge.vue.d.ts +20 -0
- package/lib/layout/ui-kit/HButton.vue.d.ts +26 -0
- package/lib/layout/ui-kit/HCheckList.vue.d.ts +20 -0
- package/lib/layout/ui-kit/HDialog.vue.d.ts +28 -0
- package/lib/layout/ui-kit/HDivider.vue.d.ts +20 -0
- package/lib/layout/ui-kit/HDropdown.vue.d.ts +18 -0
- package/lib/layout/ui-kit/HDropdownMenu.vue.d.ts +26 -0
- package/lib/layout/ui-kit/HDropdownTree.vue.d.ts +32 -0
- package/lib/layout/ui-kit/HInput.vue.d.ts +17 -0
- package/lib/layout/ui-kit/HKbd.vue.d.ts +17 -0
- package/lib/layout/ui-kit/HSelect.vue.d.ts +17 -0
- package/lib/layout/ui-kit/HSlideover.vue.d.ts +30 -0
- package/lib/layout/ui-kit/HTabList.vue.d.ts +22 -0
- package/lib/layout/ui-kit/HToggle.vue.d.ts +14 -0
- package/lib/layout/ui-kit/HTooltip.vue.d.ts +23 -0
- package/lib/locales/index.d.ts +301 -0
- package/lib/locales/lang/en.json.d.ts +99 -0
- package/lib/locales/lang/zh-cn.json.d.ts +100 -0
- package/lib/locales/lang/zh-tw.json.d.ts +100 -0
- package/lib/locales/ui.d.ts +3 -0
- package/lib/modules.d.ts +11 -0
- package/lib/notification-IZqPm_OK.cjs +199 -0
- package/lib/pages/personal/profile/index.vue.d.ts +2 -0
- package/lib/pages/system/[...all].vue.d.ts +2 -0
- package/lib/pages/system/change-organization/index.vue.d.ts +2 -0
- package/lib/pages/system/change-password/components/ChangePasswordForm/index.vue.d.ts +18 -0
- package/lib/pages/system/change-password/index.vue.d.ts +31 -0
- package/lib/pages/system/index.vue.d.ts +2 -0
- package/lib/pages/system/not-permission/index.vue.d.ts +2 -0
- package/lib/pages/system/reload.vue.d.ts +2 -0
- package/lib/pick-y2yLda1R.cjs +1 -0
- package/lib/question-line-Cd0CU4hr.cjs +1 -0
- package/lib/reload-6L7Dzs7h.cjs +1 -0
- package/lib/request.cjs +6 -0
- package/lib/right-C5JQ_uRB.cjs +1 -0
- package/lib/route/async.d.ts +9 -0
- package/lib/route/guard/auth.d.ts +3 -0
- package/lib/route/guard/basic.d.ts +3 -0
- package/lib/route/guard/index.d.ts +3 -0
- package/lib/route/guard/setting.d.ts +3 -0
- package/lib/route/index.d.ts +7 -0
- package/lib/route/routes.d.ts +3 -0
- package/lib/stores/enum/index.d.ts +20 -0
- package/lib/stores/helper.d.ts +2 -0
- package/lib/stores/index.d.ts +5 -0
- package/lib/stores/modules/favorites.d.ts +32 -0
- package/lib/stores/modules/iframe.d.ts +41 -0
- package/lib/stores/modules/index.d.ts +9 -0
- package/lib/stores/modules/keepAlive.d.ts +23 -0
- package/lib/stores/modules/menu.d.ts +32 -0
- package/lib/stores/modules/notification.d.ts +18 -0
- package/lib/stores/modules/route.d.ts +42 -0
- package/lib/stores/modules/settings.d.ts +85 -0
- package/lib/stores/modules/tabbar.d.ts +59 -0
- package/lib/stores/modules/user.d.ts +3 -0
- package/lib/stores/plugin/persist.d.ts +5 -0
- package/lib/stores/plugin/sideEffect/cleanup.d.ts +5 -0
- package/lib/stores/plugin/sideEffect/favoritesStorage.d.ts +5 -0
- package/lib/stores/plugin/sideEffect/iframeCache.d.ts +5 -0
- package/lib/stores/plugin/sideEffect/index.d.ts +5 -0
- package/lib/stores/plugin/sideEffect/tabbarStorage.d.ts +5 -0
- package/lib/style.css +9 -0
- package/lib/utils/cleanup.d.ts +8 -0
- package/lib/utils/crypto.d.ts +4 -0
- package/lib/utils/eventBus.d.ts +5 -0
- package/lib/utils/index.d.ts +14 -0
- package/lib/utils/injectionKeys.d.ts +2 -0
- package/lib/utils/storage.d.ts +21 -0
- package/lib/utils/utils.d.ts +3 -0
- package/lib/utils/watermark.d.ts +51 -0
- package/package.json +101 -0
- package/src/api/enum/code.ts +78 -0
- package/src/api/helper.ts +64 -0
- package/src/api/index.ts +75 -0
- package/src/api/interface.ts +15 -0
- package/src/api/modules/auth/index.ts +3 -0
- package/src/api/modules/auth/renzhengfuwu.ts +131 -0
- package/src/api/modules/auth/typings.d.ts +97 -0
- package/src/api/modules/configData/heibaimingdanfuwu.ts +95 -0
- package/src/api/modules/configData/index.ts +5 -0
- package/src/api/modules/configData/typings.d.ts +357 -0
- package/src/api/modules/configData/xitongpeizhifuwu.ts +322 -0
- package/src/api/modules/configData/zidianfuwu.ts +193 -0
- package/src/api/modules/rbac/gangweijiekou.ts +114 -0
- package/src/api/modules/rbac/index.ts +13 -0
- package/src/api/modules/rbac/jiaosejiekou.ts +124 -0
- package/src/api/modules/rbac/pubJiaosezukongzhiqi.ts +113 -0
- package/src/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.ts +186 -0
- package/src/api/modules/rbac/typings.d.ts +2030 -0
- package/src/api/modules/rbac/yonghujiekou.ts +294 -0
- package/src/api/modules/rbac/yonghushoucangbiaojiekou.ts +93 -0
- package/src/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.ts +72 -0
- package/src/api/modules/rbac/ziyuanjiekou.ts +223 -0
- package/src/api/modules/rbac/zuhuguanlijiekou.ts +91 -0
- package/src/api/modules/rbac/zuzhijiaosebiaokongzhiqi.ts +76 -0
- package/src/api/modules/rbac/zuzhijiekou.ts +171 -0
- package/src/api/request.ts +4 -0
- package/src/api/system/app.ts +28 -0
- package/src/api/system/typings.d.ts +77 -0
- package/src/api/system/user.ts +47 -0
- package/src/assets/fonts/digital-7/digital-7-webfont.eot +0 -0
- package/src/assets/fonts/digital-7/digital-7-webfont.svg +135 -0
- package/src/assets/fonts/digital-7/digital-7-webfont.woff +0 -0
- package/src/assets/fonts/digital-7/digital-7-webfont.woff2 +0 -0
- package/src/assets/fonts/digital-7/stylesheet.css +12 -0
- package/src/assets/fonts/digital-7_mono/digital-7_mono-webfont.eot +0 -0
- package/src/assets/fonts/digital-7_mono/digital-7_mono-webfont.svg +134 -0
- package/src/assets/fonts/digital-7_mono/digital-7_mono-webfont.woff +0 -0
- package/src/assets/fonts/digital-7_mono/digital-7_mono-webfont.woff2 +0 -0
- package/src/assets/fonts/digital-7_mono/stylesheet.css +12 -0
- package/src/assets/fonts/title.otf +0 -0
- package/src/assets/icons/403.svg +1 -0
- package/src/assets/icons/403_dark.svg +1 -0
- package/src/assets/icons/404.svg +1 -0
- package/src/assets/icons/404_dark.svg +1 -0
- package/src/assets/icons/add-child.svg +1 -0
- package/src/assets/icons/authority.svg +1 -0
- package/src/assets/icons/authorize.svg +1 -0
- package/src/assets/icons/blacklist-disable.svg +1 -0
- package/src/assets/icons/blacklist-enable.svg +1 -0
- package/src/assets/icons/browser-360.svg +1 -0
- package/src/assets/icons/browser-chrome.svg +1 -0
- package/src/assets/icons/browser-edge.svg +1 -0
- package/src/assets/icons/browser-ie.svg +1 -0
- package/src/assets/icons/browser-other.svg +1 -0
- package/src/assets/icons/browser-qq.svg +1 -0
- package/src/assets/icons/browser-safari.svg +1 -0
- package/src/assets/icons/browser-uc.svg +1 -0
- package/src/assets/icons/change-org.svg +1 -0
- package/src/assets/icons/edit.svg +1 -0
- package/src/assets/icons/empty-data.svg +1 -0
- package/src/assets/icons/favorites.svg +1 -0
- package/src/assets/icons/icard.svg +1 -0
- package/src/assets/icons/icon_animation.svg +1 -0
- package/src/assets/icons/icon_breadcrumb.svg +1 -0
- package/src/assets/icons/icon_copyright.svg +1 -0
- package/src/assets/icons/icon_jt.svg +1 -0
- package/src/assets/icons/icon_layout.svg +1 -0
- package/src/assets/icons/icon_mainpage.svg +1 -0
- package/src/assets/icons/icon_menu.svg +1 -0
- package/src/assets/icons/icon_page_size.svg +1 -0
- package/src/assets/icons/icon_position_type.svg +1 -0
- package/src/assets/icons/icon_safe_manage.svg +1 -0
- package/src/assets/icons/icon_screen_scale.svg +6 -0
- package/src/assets/icons/icon_system_manage.svg +1 -0
- package/src/assets/icons/icon_tabbar.svg +1 -0
- package/src/assets/icons/icon_toolbar.svg +1 -0
- package/src/assets/icons/icon_topbar.svg +1 -0
- package/src/assets/icons/icon_watermark.svg +1 -0
- package/src/assets/icons/image-load-fail.svg +1 -0
- package/src/assets/icons/log-center.svg +1 -0
- package/src/assets/icons/logo-sig.svg +1 -0
- package/src/assets/icons/mima.svg +1 -0
- package/src/assets/icons/not-data.svg +1 -0
- package/src/assets/icons/org-main.svg +1 -0
- package/src/assets/icons/org-unmain.svg +1 -0
- package/src/assets/icons/process-management.svg +1 -0
- package/src/assets/icons/project-management.svg +1 -0
- package/src/assets/icons/rbac.svg +1 -0
- package/src/assets/icons/remove.svg +1 -0
- package/src/assets/icons/resource-app.svg +1 -0
- package/src/assets/icons/resource-btn.svg +1 -0
- package/src/assets/icons/resource-index.svg +1 -0
- package/src/assets/icons/resource-menu.svg +1 -0
- package/src/assets/icons/resource-nonmenu.svg +1 -0
- package/src/assets/icons/setting-manage.svg +1 -0
- package/src/assets/icons/test.svg +1 -0
- package/src/assets/icons/theme-check-mark.svg +1 -0
- package/src/assets/icons/theme-title.svg +1 -0
- package/src/assets/icons/toolbar-collapse.svg +1 -0
- package/src/assets/icons/tree_icon.svg +1 -0
- package/src/assets/icons/tree_icon_checked.svg +1 -0
- package/src/assets/icons/view.svg +1 -0
- package/src/assets/icons/workbench.svg +1 -0
- package/src/assets/icons/zddata.svg +1 -0
- package/src/assets/icons/zy_checked.svg +1 -0
- package/src/assets/icons/zy_default.svg +1 -0
- package/src/assets/images/change-org-bc.webp +0 -0
- package/src/assets/images/header-bg.png +0 -0
- package/src/assets/images/layout/item1.webp +0 -0
- package/src/assets/images/layout/item1_dark.webp +0 -0
- package/src/assets/images/layout/item2.webp +0 -0
- package/src/assets/images/layout/item2_dark.webp +0 -0
- package/src/assets/images/layout/item3.webp +0 -0
- package/src/assets/images/layout/item3_dark.webp +0 -0
- package/src/assets/images/layout/item4.webp +0 -0
- package/src/assets/images/layout/item4_dark.webp +0 -0
- package/src/assets/images/layout/item5.webp +0 -0
- package/src/assets/images/layout/item5_dark.webp +0 -0
- package/src/assets/images/login-small.png +0 -0
- package/src/assets/images/login-small_dark.webp +0 -0
- package/src/assets/images/logo.png +0 -0
- package/src/assets/images/not-cursor.png +0 -0
- package/src/assets/images/org.svg +19 -0
- package/src/assets/images/page-width/anto_min_w_dark.webp +0 -0
- package/src/assets/images/page-width/auto.webp +0 -0
- package/src/assets/images/page-width/auto_dark.webp +0 -0
- package/src/assets/images/page-width/auto_min_w.webp +0 -0
- package/src/assets/images/page-width/auto_min_w_dark.webp +0 -0
- package/src/assets/images/page-width/icon_auto.webp +0 -0
- package/src/assets/images/page-width/icon_auto_dark.webp +0 -0
- package/src/assets/images/page-width/icon_auto_min_w.webp +0 -0
- package/src/assets/images/page-width/icon_auto_min_w_dark.webp +0 -0
- package/src/assets/images/page-width/icon_middle.webp +0 -0
- package/src/assets/images/page-width/icon_middle_dark.webp +0 -0
- package/src/assets/images/page-width/icon_middle_max_w.webp +0 -0
- package/src/assets/images/page-width/icon_middle_max_w_dark.webp +0 -0
- package/src/assets/images/page-width/middle.webp +0 -0
- package/src/assets/images/page-width/middle_dark.webp +0 -0
- package/src/assets/images/page-width/middle_max_w.webp +0 -0
- package/src/assets/images/page-width/middle_max_w_dark.webp +0 -0
- package/src/assets/images/slider-bg.png +0 -0
- package/src/assets/styles/globals.scss +189 -0
- package/src/assets/styles/index.ts +6 -0
- package/src/assets/styles/nprogress.scss +63 -0
- package/src/assets/styles/rbac.scss +61 -0
- package/src/assets/styles/resources/utils.scss +53 -0
- package/src/assets/styles/resources/variables.scss +6 -0
- package/src/components/NotAllowed/index.vue +76 -0
- package/src/components/PageHeader/index.vue +32 -0
- package/src/components/PageMain/index.vue +51 -0
- package/src/components/PassStrengthValidator/index.vue +213 -0
- package/src/components/PassStrengthValidator/rule.vue +51 -0
- package/src/components/PubinfoApp/index.vue +21 -0
- package/src/components/PubinfoIcon/index.vue +85 -0
- package/src/components/PubinfoProvider/index.ts +34 -0
- package/src/components/index.ts +8 -0
- package/src/composables/auth.ts +53 -0
- package/src/composables/index.ts +4 -0
- package/src/composables/log.ts +44 -0
- package/src/composables/theme.ts +16 -0
- package/src/composables/watchDiff.ts +53 -0
- package/src/config/index.ts +1 -0
- package/src/config/settings.ts +107 -0
- package/src/context.ts +30 -0
- package/src/create.ts +88 -0
- package/src/directives/index.ts +6 -0
- package/src/directives/plugins/permission.ts +23 -0
- package/src/index.ts +12 -0
- package/src/interface.ts +35 -0
- package/src/layout/Layout.vue +330 -0
- package/src/layout/components/BackTop/index.vue +47 -0
- package/src/layout/components/Content/IframeView.vue +120 -0
- package/src/layout/components/Content/LinkView.vue +118 -0
- package/src/layout/components/Content/index.vue +100 -0
- package/src/layout/components/Copyright/index.vue +49 -0
- package/src/layout/components/Header/TopMode/More.vue +103 -0
- package/src/layout/components/Header/TopMode/NotCursor.vue +77 -0
- package/src/layout/components/Header/TopMode/index.vue +151 -0
- package/src/layout/components/Header/TopThinMode.vue +45 -0
- package/src/layout/components/Header/index.vue +263 -0
- package/src/layout/components/Logo/index.vue +70 -0
- package/src/layout/components/Menu/index.vue +195 -0
- package/src/layout/components/Menu/item.vue +166 -0
- package/src/layout/components/Menu/sub.vue +220 -0
- package/src/layout/components/Menu/types.ts +49 -0
- package/src/layout/components/SettingBar/AppSetting.vue +146 -0
- package/src/layout/components/SettingBar/components/DayNightToggle.vue +238 -0
- package/src/layout/components/SettingBar/components/SettingBreadcrumb.vue +42 -0
- package/src/layout/components/SettingBar/components/SettingCopyright.vue +44 -0
- package/src/layout/components/SettingBar/components/SettingEnableTransition.vue +215 -0
- package/src/layout/components/SettingBar/components/SettingHome.vue +33 -0
- package/src/layout/components/SettingBar/components/SettingMenu.vue +108 -0
- package/src/layout/components/SettingBar/components/SettingMode.vue +164 -0
- package/src/layout/components/SettingBar/components/SettingNavSearch.vue +30 -0
- package/src/layout/components/SettingBar/components/SettingOther.vue +53 -0
- package/src/layout/components/SettingBar/components/SettingPage.vue +20 -0
- package/src/layout/components/SettingBar/components/SettingTabbar.vue +70 -0
- package/src/layout/components/SettingBar/components/SettingThemes.vue +202 -0
- package/src/layout/components/SettingBar/components/SettingToolbar.vue +54 -0
- package/src/layout/components/SettingBar/components/SettingTopbar.vue +37 -0
- package/src/layout/components/SettingBar/components/SettingWidthMode.vue +149 -0
- package/src/layout/components/SettingBar/index.vue +112 -0
- package/src/layout/components/Sidebar/MainSidebar.vue +240 -0
- package/src/layout/components/Sidebar/SubSidebar.vue +165 -0
- package/src/layout/components/Sidebar/index.vue +13 -0
- package/src/layout/components/Tools/Breadcrumb/index.vue +21 -0
- package/src/layout/components/Tools/Breadcrumb/item.vue +44 -0
- package/src/layout/components/Tools/DayNightSwitch.vue +93 -0
- package/src/layout/components/Tools/HotkeysIntro.vue +103 -0
- package/src/layout/components/Tools/I18nSelector.vue +52 -0
- package/src/layout/components/Tools/Notification.vue +152 -0
- package/src/layout/components/Tools/Preferences/PreferencesContent.vue +722 -0
- package/src/layout/components/Tools/Preferences/index.vue +20 -0
- package/src/layout/components/Tools/Search.vue +380 -0
- package/src/layout/components/Tools/index.vue +241 -0
- package/src/layout/components/Topbar/Tabbar/MoreAction.vue +304 -0
- package/src/layout/components/Topbar/Tabbar/index.vue +781 -0
- package/src/layout/components/Topbar/Toolbar/Favorites.vue +138 -0
- package/src/layout/components/Topbar/Toolbar/Star.vue +30 -0
- package/src/layout/components/Topbar/Toolbar/index.vue +307 -0
- package/src/layout/components/Topbar/index.vue +106 -0
- package/src/layout/composables/useContext.ts +38 -0
- package/src/layout/composables/useGetComputedStyle.ts +70 -0
- package/src/layout/composables/useHotkey.ts +49 -0
- package/src/layout/composables/useMainPage.ts +68 -0
- package/src/layout/composables/useMenu.ts +29 -0
- package/src/layout/composables/useTabbar.ts +165 -0
- package/src/layout/composables/useTitle.ts +41 -0
- package/src/layout/composables/useViewTransition.ts +16 -0
- package/src/layout/composables/useWatermark.ts +67 -0
- package/src/layout/index.ts +59 -0
- package/src/layout/provider.ts +61 -0
- package/src/layout/ui-kit/HBadge.vue +41 -0
- package/src/layout/ui-kit/HButton.vue +28 -0
- package/src/layout/ui-kit/HCheckList.vue +49 -0
- package/src/layout/ui-kit/HDialog.vue +108 -0
- package/src/layout/ui-kit/HDivider.vue +53 -0
- package/src/layout/ui-kit/HDropdown.vue +13 -0
- package/src/layout/ui-kit/HDropdownMenu.vue +50 -0
- package/src/layout/ui-kit/HDropdownTree.vue +79 -0
- package/src/layout/ui-kit/HInput.vue +40 -0
- package/src/layout/ui-kit/HKbd.vue +33 -0
- package/src/layout/ui-kit/HSelect.vue +66 -0
- package/src/layout/ui-kit/HSlideover.vue +119 -0
- package/src/layout/ui-kit/HTabList.vue +56 -0
- package/src/layout/ui-kit/HToggle.vue +177 -0
- package/src/layout/ui-kit/HTooltip.vue +21 -0
- package/src/locales/index.ts +80 -0
- package/src/locales/lang/en.json +96 -0
- package/src/locales/lang/zh-cn.json +97 -0
- package/src/locales/lang/zh-tw.json +97 -0
- package/src/locales/ui.ts +3 -0
- package/src/modules.ts +49 -0
- package/src/pages/personal/notification.vue +58 -0
- package/src/pages/personal/profile/index.vue +125 -0
- package/src/pages/system/[...all].vue +74 -0
- package/src/pages/system/change-organization/index.vue +174 -0
- package/src/pages/system/change-password/components/ChangePasswordForm/index.vue +144 -0
- package/src/pages/system/change-password/index.vue +102 -0
- package/src/pages/system/change-password/page.vue +58 -0
- package/src/pages/system/index.vue +5 -0
- package/src/pages/system/not-permission/index.vue +73 -0
- package/src/pages/system/reload.vue +11 -0
- package/src/route/async.ts +18 -0
- package/src/route/guard/auth.ts +92 -0
- package/src/route/guard/basic.ts +23 -0
- package/src/route/guard/index.ts +3 -0
- package/src/route/guard/setting.ts +122 -0
- package/src/route/index.ts +12 -0
- package/src/route/routes.ts +110 -0
- package/src/stores/enum/index.ts +29 -0
- package/src/stores/helper.ts +37 -0
- package/src/stores/index.ts +10 -0
- package/src/stores/modules/favorites.ts +152 -0
- package/src/stores/modules/iframe.ts +114 -0
- package/src/stores/modules/index.ts +9 -0
- package/src/stores/modules/keepAlive.ts +68 -0
- package/src/stores/modules/menu.ts +207 -0
- package/src/stores/modules/notification.ts +34 -0
- package/src/stores/modules/route.ts +435 -0
- package/src/stores/modules/settings.ts +371 -0
- package/src/stores/modules/tabbar.ts +338 -0
- package/src/stores/modules/user.ts +210 -0
- package/src/stores/plugin/persist.ts +27 -0
- package/src/stores/plugin/sideEffect/cleanup.ts +20 -0
- package/src/stores/plugin/sideEffect/favoritesStorage.ts +62 -0
- package/src/stores/plugin/sideEffect/iframeCache.ts +32 -0
- package/src/stores/plugin/sideEffect/index.ts +15 -0
- package/src/stores/plugin/sideEffect/tabbarStorage.ts +98 -0
- package/src/utils/cleanup.ts +20 -0
- package/src/utils/crypto.ts +27 -0
- package/src/utils/eventBus.ts +15 -0
- package/src/utils/index.ts +44 -0
- package/src/utils/injectionKeys.ts +5 -0
- package/src/utils/storage.ts +57 -0
- package/src/utils/utils.ts +12 -0
- package/src/utils/watermark.ts +256 -0
- package/types/auto-imports.d.ts +85 -0
- package/types/components.d.ts +36 -0
- package/types/favorites.d.ts +8 -0
- package/types/iframe.d.ts +8 -0
- package/types/index.d.ts +9 -0
- package/types/menu.d.ts +31 -0
- package/types/module.d.ts +23 -0
- package/types/settings.d.ts +571 -0
- package/types/tabbar.d.ts +23 -0
- package/types/user.d.ts +46 -0
- package/types/vite-env.d.ts +39 -0
- package/types/vue-router.d.ts +68 -0
package/es/request.js
ADDED
|
@@ -0,0 +1,1811 @@
|
|
|
1
|
+
import { createAlova as et } from "alova";
|
|
2
|
+
import { createServerTokenAuthentication as tt } from "alova/client";
|
|
3
|
+
import nt from "alova/vue";
|
|
4
|
+
import { u as ue, $ as rt, e as Ne } from "./notification-6D5hA7Bp.js";
|
|
5
|
+
import "pinia-plugin-persistedstate";
|
|
6
|
+
import "vue";
|
|
7
|
+
const Y = "undefined", st = void 0;
|
|
8
|
+
typeof window === Y && (typeof process !== Y && process.cwd);
|
|
9
|
+
const he = () => {
|
|
10
|
+
}, ot = (e, ...t) => new e(...t);
|
|
11
|
+
function Ue(e, t) {
|
|
12
|
+
return function() {
|
|
13
|
+
return e.apply(t, arguments);
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
const { toString: it } = Object.prototype, { getPrototypeOf: le } = Object, K = /* @__PURE__ */ ((e) => (t) => {
|
|
17
|
+
const n = it.call(t);
|
|
18
|
+
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
19
|
+
})(/* @__PURE__ */ Object.create(null)), C = (e) => (e = e.toLowerCase(), (t) => K(t) === e), v = (e) => (t) => typeof t === e, { isArray: B } = Array, q = v("undefined");
|
|
20
|
+
function at(e) {
|
|
21
|
+
return e !== null && !q(e) && e.constructor !== null && !q(e.constructor) && x(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
22
|
+
}
|
|
23
|
+
const Le = C("ArrayBuffer");
|
|
24
|
+
function ct(e) {
|
|
25
|
+
let t;
|
|
26
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Le(e.buffer), t;
|
|
27
|
+
}
|
|
28
|
+
const ut = v("string"), x = v("function"), _e = v("number"), G = (e) => e !== null && typeof e == "object", lt = (e) => e === !0 || e === !1, $ = (e) => {
|
|
29
|
+
if (K(e) !== "object")
|
|
30
|
+
return !1;
|
|
31
|
+
const t = le(e);
|
|
32
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
33
|
+
}, ft = C("Date"), dt = C("File"), pt = C("Blob"), ht = C("FileList"), mt = (e) => G(e) && x(e.pipe), yt = (e) => {
|
|
34
|
+
let t;
|
|
35
|
+
return e && (typeof FormData == "function" && e instanceof FormData || x(e.append) && ((t = K(e)) === "formdata" || // detect form-data instance
|
|
36
|
+
t === "object" && x(e.toString) && e.toString() === "[object FormData]"));
|
|
37
|
+
}, bt = C("URLSearchParams"), [wt, Rt, gt, Tt] = ["ReadableStream", "Request", "Response", "Headers"].map(C), At = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
38
|
+
function j(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
39
|
+
if (e === null || typeof e > "u")
|
|
40
|
+
return;
|
|
41
|
+
let r, s;
|
|
42
|
+
if (typeof e != "object" && (e = [e]), B(e))
|
|
43
|
+
for (r = 0, s = e.length; r < s; r++)
|
|
44
|
+
t.call(null, e[r], r, e);
|
|
45
|
+
else {
|
|
46
|
+
const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
|
|
47
|
+
let c;
|
|
48
|
+
for (r = 0; r < i; r++)
|
|
49
|
+
c = o[r], t.call(null, e[c], c, e);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
function ke(e, t) {
|
|
53
|
+
t = t.toLowerCase();
|
|
54
|
+
const n = Object.keys(e);
|
|
55
|
+
let r = n.length, s;
|
|
56
|
+
for (; r-- > 0; )
|
|
57
|
+
if (s = n[r], t === s.toLowerCase())
|
|
58
|
+
return s;
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
const k = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Fe = (e) => !q(e) && e !== k;
|
|
62
|
+
function re() {
|
|
63
|
+
const { caseless: e } = Fe(this) && this || {}, t = {}, n = (r, s) => {
|
|
64
|
+
const o = e && ke(t, s) || s;
|
|
65
|
+
$(t[o]) && $(r) ? t[o] = re(t[o], r) : $(r) ? t[o] = re({}, r) : B(r) ? t[o] = r.slice() : t[o] = r;
|
|
66
|
+
};
|
|
67
|
+
for (let r = 0, s = arguments.length; r < s; r++)
|
|
68
|
+
arguments[r] && j(arguments[r], n);
|
|
69
|
+
return t;
|
|
70
|
+
}
|
|
71
|
+
const St = (e, t, n, { allOwnKeys: r } = {}) => (j(t, (s, o) => {
|
|
72
|
+
n && x(s) ? e[o] = Ue(s, n) : e[o] = s;
|
|
73
|
+
}, { allOwnKeys: r }), e), Et = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Ot = (e, t, n, r) => {
|
|
74
|
+
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
75
|
+
value: t.prototype
|
|
76
|
+
}), n && Object.assign(e.prototype, n);
|
|
77
|
+
}, xt = (e, t, n, r) => {
|
|
78
|
+
let s, o, i;
|
|
79
|
+
const c = {};
|
|
80
|
+
if (t = t || {}, e == null) return t;
|
|
81
|
+
do {
|
|
82
|
+
for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
|
|
83
|
+
i = s[o], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
|
|
84
|
+
e = n !== !1 && le(e);
|
|
85
|
+
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
86
|
+
return t;
|
|
87
|
+
}, Ct = (e, t, n) => {
|
|
88
|
+
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
89
|
+
const r = e.indexOf(t, n);
|
|
90
|
+
return r !== -1 && r === n;
|
|
91
|
+
}, Nt = (e) => {
|
|
92
|
+
if (!e) return null;
|
|
93
|
+
if (B(e)) return e;
|
|
94
|
+
let t = e.length;
|
|
95
|
+
if (!_e(t)) return null;
|
|
96
|
+
const n = new Array(t);
|
|
97
|
+
for (; t-- > 0; )
|
|
98
|
+
n[t] = e[t];
|
|
99
|
+
return n;
|
|
100
|
+
}, Ut = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && le(Uint8Array)), Lt = (e, t) => {
|
|
101
|
+
const r = (e && e[Symbol.iterator]).call(e);
|
|
102
|
+
let s;
|
|
103
|
+
for (; (s = r.next()) && !s.done; ) {
|
|
104
|
+
const o = s.value;
|
|
105
|
+
t.call(e, o[0], o[1]);
|
|
106
|
+
}
|
|
107
|
+
}, _t = (e, t) => {
|
|
108
|
+
let n;
|
|
109
|
+
const r = [];
|
|
110
|
+
for (; (n = e.exec(t)) !== null; )
|
|
111
|
+
r.push(n);
|
|
112
|
+
return r;
|
|
113
|
+
}, kt = C("HTMLFormElement"), Ft = (e) => e.toLowerCase().replace(
|
|
114
|
+
/[-_\s]([a-z\d])(\w*)/g,
|
|
115
|
+
function(n, r, s) {
|
|
116
|
+
return r.toUpperCase() + s;
|
|
117
|
+
}
|
|
118
|
+
), me = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Pt = C("RegExp"), Pe = (e, t) => {
|
|
119
|
+
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
120
|
+
j(n, (s, o) => {
|
|
121
|
+
let i;
|
|
122
|
+
(i = t(s, o, e)) !== !1 && (r[o] = i || s);
|
|
123
|
+
}), Object.defineProperties(e, r);
|
|
124
|
+
}, Bt = (e) => {
|
|
125
|
+
Pe(e, (t, n) => {
|
|
126
|
+
if (x(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
127
|
+
return !1;
|
|
128
|
+
const r = e[n];
|
|
129
|
+
if (x(r)) {
|
|
130
|
+
if (t.enumerable = !1, "writable" in t) {
|
|
131
|
+
t.writable = !1;
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
t.set || (t.set = () => {
|
|
135
|
+
throw Error("Can not rewrite read-only method '" + n + "'");
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
}, Dt = (e, t) => {
|
|
140
|
+
const n = {}, r = (s) => {
|
|
141
|
+
s.forEach((o) => {
|
|
142
|
+
n[o] = !0;
|
|
143
|
+
});
|
|
144
|
+
};
|
|
145
|
+
return B(e) ? r(e) : r(String(e).split(t)), n;
|
|
146
|
+
}, It = () => {
|
|
147
|
+
}, qt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
148
|
+
function jt(e) {
|
|
149
|
+
return !!(e && x(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
150
|
+
}
|
|
151
|
+
const Ht = (e) => {
|
|
152
|
+
const t = new Array(10), n = (r, s) => {
|
|
153
|
+
if (G(r)) {
|
|
154
|
+
if (t.indexOf(r) >= 0)
|
|
155
|
+
return;
|
|
156
|
+
if (!("toJSON" in r)) {
|
|
157
|
+
t[s] = r;
|
|
158
|
+
const o = B(r) ? [] : {};
|
|
159
|
+
return j(r, (i, c) => {
|
|
160
|
+
const f = n(i, s + 1);
|
|
161
|
+
!q(f) && (o[c] = f);
|
|
162
|
+
}), t[s] = void 0, o;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
return r;
|
|
166
|
+
};
|
|
167
|
+
return n(e, 0);
|
|
168
|
+
}, Mt = C("AsyncFunction"), $t = (e) => e && (G(e) || x(e)) && x(e.then) && x(e.catch), Be = ((e, t) => e ? setImmediate : t ? ((n, r) => (k.addEventListener("message", ({ source: s, data: o }) => {
|
|
169
|
+
s === k && o === n && r.length && r.shift()();
|
|
170
|
+
}, !1), (s) => {
|
|
171
|
+
r.push(s), k.postMessage(n, "*");
|
|
172
|
+
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
173
|
+
typeof setImmediate == "function",
|
|
174
|
+
x(k.postMessage)
|
|
175
|
+
), zt = typeof queueMicrotask < "u" ? queueMicrotask.bind(k) : typeof process < "u" && process.nextTick || Be, a = {
|
|
176
|
+
isArray: B,
|
|
177
|
+
isArrayBuffer: Le,
|
|
178
|
+
isBuffer: at,
|
|
179
|
+
isFormData: yt,
|
|
180
|
+
isArrayBufferView: ct,
|
|
181
|
+
isString: ut,
|
|
182
|
+
isNumber: _e,
|
|
183
|
+
isBoolean: lt,
|
|
184
|
+
isObject: G,
|
|
185
|
+
isPlainObject: $,
|
|
186
|
+
isReadableStream: wt,
|
|
187
|
+
isRequest: Rt,
|
|
188
|
+
isResponse: gt,
|
|
189
|
+
isHeaders: Tt,
|
|
190
|
+
isUndefined: q,
|
|
191
|
+
isDate: ft,
|
|
192
|
+
isFile: dt,
|
|
193
|
+
isBlob: pt,
|
|
194
|
+
isRegExp: Pt,
|
|
195
|
+
isFunction: x,
|
|
196
|
+
isStream: mt,
|
|
197
|
+
isURLSearchParams: bt,
|
|
198
|
+
isTypedArray: Ut,
|
|
199
|
+
isFileList: ht,
|
|
200
|
+
forEach: j,
|
|
201
|
+
merge: re,
|
|
202
|
+
extend: St,
|
|
203
|
+
trim: At,
|
|
204
|
+
stripBOM: Et,
|
|
205
|
+
inherits: Ot,
|
|
206
|
+
toFlatObject: xt,
|
|
207
|
+
kindOf: K,
|
|
208
|
+
kindOfTest: C,
|
|
209
|
+
endsWith: Ct,
|
|
210
|
+
toArray: Nt,
|
|
211
|
+
forEachEntry: Lt,
|
|
212
|
+
matchAll: _t,
|
|
213
|
+
isHTMLForm: kt,
|
|
214
|
+
hasOwnProperty: me,
|
|
215
|
+
hasOwnProp: me,
|
|
216
|
+
// an alias to avoid ESLint no-prototype-builtins detection
|
|
217
|
+
reduceDescriptors: Pe,
|
|
218
|
+
freezeMethods: Bt,
|
|
219
|
+
toObjectSet: Dt,
|
|
220
|
+
toCamelCase: Ft,
|
|
221
|
+
noop: It,
|
|
222
|
+
toFiniteNumber: qt,
|
|
223
|
+
findKey: ke,
|
|
224
|
+
global: k,
|
|
225
|
+
isContextDefined: Fe,
|
|
226
|
+
isSpecCompliantForm: jt,
|
|
227
|
+
toJSONObject: Ht,
|
|
228
|
+
isAsyncFn: Mt,
|
|
229
|
+
isThenable: $t,
|
|
230
|
+
setImmediate: Be,
|
|
231
|
+
asap: zt
|
|
232
|
+
};
|
|
233
|
+
function m(e, t, n, r, s) {
|
|
234
|
+
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
|
|
235
|
+
}
|
|
236
|
+
a.inherits(m, Error, {
|
|
237
|
+
toJSON: function() {
|
|
238
|
+
return {
|
|
239
|
+
// Standard
|
|
240
|
+
message: this.message,
|
|
241
|
+
name: this.name,
|
|
242
|
+
// Microsoft
|
|
243
|
+
description: this.description,
|
|
244
|
+
number: this.number,
|
|
245
|
+
// Mozilla
|
|
246
|
+
fileName: this.fileName,
|
|
247
|
+
lineNumber: this.lineNumber,
|
|
248
|
+
columnNumber: this.columnNumber,
|
|
249
|
+
stack: this.stack,
|
|
250
|
+
// Axios
|
|
251
|
+
config: a.toJSONObject(this.config),
|
|
252
|
+
code: this.code,
|
|
253
|
+
status: this.status
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
const De = m.prototype, Ie = {};
|
|
258
|
+
[
|
|
259
|
+
"ERR_BAD_OPTION_VALUE",
|
|
260
|
+
"ERR_BAD_OPTION",
|
|
261
|
+
"ECONNABORTED",
|
|
262
|
+
"ETIMEDOUT",
|
|
263
|
+
"ERR_NETWORK",
|
|
264
|
+
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
265
|
+
"ERR_DEPRECATED",
|
|
266
|
+
"ERR_BAD_RESPONSE",
|
|
267
|
+
"ERR_BAD_REQUEST",
|
|
268
|
+
"ERR_CANCELED",
|
|
269
|
+
"ERR_NOT_SUPPORT",
|
|
270
|
+
"ERR_INVALID_URL"
|
|
271
|
+
// eslint-disable-next-line func-names
|
|
272
|
+
].forEach((e) => {
|
|
273
|
+
Ie[e] = { value: e };
|
|
274
|
+
});
|
|
275
|
+
Object.defineProperties(m, Ie);
|
|
276
|
+
Object.defineProperty(De, "isAxiosError", { value: !0 });
|
|
277
|
+
m.from = (e, t, n, r, s, o) => {
|
|
278
|
+
const i = Object.create(De);
|
|
279
|
+
return a.toFlatObject(e, i, function(f) {
|
|
280
|
+
return f !== Error.prototype;
|
|
281
|
+
}, (c) => c !== "isAxiosError"), m.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
|
|
282
|
+
};
|
|
283
|
+
const Vt = null;
|
|
284
|
+
function se(e) {
|
|
285
|
+
return a.isPlainObject(e) || a.isArray(e);
|
|
286
|
+
}
|
|
287
|
+
function qe(e) {
|
|
288
|
+
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
289
|
+
}
|
|
290
|
+
function ye(e, t, n) {
|
|
291
|
+
return e ? e.concat(t).map(function(s, o) {
|
|
292
|
+
return s = qe(s), !n && o ? "[" + s + "]" : s;
|
|
293
|
+
}).join(n ? "." : "") : t;
|
|
294
|
+
}
|
|
295
|
+
function Wt(e) {
|
|
296
|
+
return a.isArray(e) && !e.some(se);
|
|
297
|
+
}
|
|
298
|
+
const Jt = a.toFlatObject(a, {}, null, function(t) {
|
|
299
|
+
return /^is[A-Z]/.test(t);
|
|
300
|
+
});
|
|
301
|
+
function X(e, t, n) {
|
|
302
|
+
if (!a.isObject(e))
|
|
303
|
+
throw new TypeError("target must be an object");
|
|
304
|
+
t = t || new FormData(), n = a.toFlatObject(n, {
|
|
305
|
+
metaTokens: !0,
|
|
306
|
+
dots: !1,
|
|
307
|
+
indexes: !1
|
|
308
|
+
}, !1, function(b, h) {
|
|
309
|
+
return !a.isUndefined(h[b]);
|
|
310
|
+
});
|
|
311
|
+
const r = n.metaTokens, s = n.visitor || l, o = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
|
|
312
|
+
if (!a.isFunction(s))
|
|
313
|
+
throw new TypeError("visitor must be a function");
|
|
314
|
+
function u(p) {
|
|
315
|
+
if (p === null) return "";
|
|
316
|
+
if (a.isDate(p))
|
|
317
|
+
return p.toISOString();
|
|
318
|
+
if (!f && a.isBlob(p))
|
|
319
|
+
throw new m("Blob is not supported. Use a Buffer instead.");
|
|
320
|
+
return a.isArrayBuffer(p) || a.isTypedArray(p) ? f && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
|
321
|
+
}
|
|
322
|
+
function l(p, b, h) {
|
|
323
|
+
let w = p;
|
|
324
|
+
if (p && !h && typeof p == "object") {
|
|
325
|
+
if (a.endsWith(b, "{}"))
|
|
326
|
+
b = r ? b : b.slice(0, -2), p = JSON.stringify(p);
|
|
327
|
+
else if (a.isArray(p) && Wt(p) || (a.isFileList(p) || a.endsWith(b, "[]")) && (w = a.toArray(p)))
|
|
328
|
+
return b = qe(b), w.forEach(function(A, U) {
|
|
329
|
+
!(a.isUndefined(A) || A === null) && t.append(
|
|
330
|
+
// eslint-disable-next-line no-nested-ternary
|
|
331
|
+
i === !0 ? ye([b], U, o) : i === null ? b : b + "[]",
|
|
332
|
+
u(A)
|
|
333
|
+
);
|
|
334
|
+
}), !1;
|
|
335
|
+
}
|
|
336
|
+
return se(p) ? !0 : (t.append(ye(h, b, o), u(p)), !1);
|
|
337
|
+
}
|
|
338
|
+
const d = [], y = Object.assign(Jt, {
|
|
339
|
+
defaultVisitor: l,
|
|
340
|
+
convertValue: u,
|
|
341
|
+
isVisitable: se
|
|
342
|
+
});
|
|
343
|
+
function g(p, b) {
|
|
344
|
+
if (!a.isUndefined(p)) {
|
|
345
|
+
if (d.indexOf(p) !== -1)
|
|
346
|
+
throw Error("Circular reference detected in " + b.join("."));
|
|
347
|
+
d.push(p), a.forEach(p, function(w, T) {
|
|
348
|
+
(!(a.isUndefined(w) || w === null) && s.call(
|
|
349
|
+
t,
|
|
350
|
+
w,
|
|
351
|
+
a.isString(T) ? T.trim() : T,
|
|
352
|
+
b,
|
|
353
|
+
y
|
|
354
|
+
)) === !0 && g(w, b ? b.concat(T) : [T]);
|
|
355
|
+
}), d.pop();
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
if (!a.isObject(e))
|
|
359
|
+
throw new TypeError("data must be an object");
|
|
360
|
+
return g(e), t;
|
|
361
|
+
}
|
|
362
|
+
function be(e) {
|
|
363
|
+
const t = {
|
|
364
|
+
"!": "%21",
|
|
365
|
+
"'": "%27",
|
|
366
|
+
"(": "%28",
|
|
367
|
+
")": "%29",
|
|
368
|
+
"~": "%7E",
|
|
369
|
+
"%20": "+",
|
|
370
|
+
"%00": "\0"
|
|
371
|
+
};
|
|
372
|
+
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
|
|
373
|
+
return t[r];
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
function fe(e, t) {
|
|
377
|
+
this._pairs = [], e && X(e, this, t);
|
|
378
|
+
}
|
|
379
|
+
const je = fe.prototype;
|
|
380
|
+
je.append = function(t, n) {
|
|
381
|
+
this._pairs.push([t, n]);
|
|
382
|
+
};
|
|
383
|
+
je.toString = function(t) {
|
|
384
|
+
const n = t ? function(r) {
|
|
385
|
+
return t.call(this, r, be);
|
|
386
|
+
} : be;
|
|
387
|
+
return this._pairs.map(function(s) {
|
|
388
|
+
return n(s[0]) + "=" + n(s[1]);
|
|
389
|
+
}, "").join("&");
|
|
390
|
+
};
|
|
391
|
+
function Kt(e) {
|
|
392
|
+
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
393
|
+
}
|
|
394
|
+
function He(e, t, n) {
|
|
395
|
+
if (!t)
|
|
396
|
+
return e;
|
|
397
|
+
const r = n && n.encode || Kt;
|
|
398
|
+
a.isFunction(n) && (n = {
|
|
399
|
+
serialize: n
|
|
400
|
+
});
|
|
401
|
+
const s = n && n.serialize;
|
|
402
|
+
let o;
|
|
403
|
+
if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new fe(t, n).toString(r), o) {
|
|
404
|
+
const i = e.indexOf("#");
|
|
405
|
+
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
|
|
406
|
+
}
|
|
407
|
+
return e;
|
|
408
|
+
}
|
|
409
|
+
class we {
|
|
410
|
+
constructor() {
|
|
411
|
+
this.handlers = [];
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* Add a new interceptor to the stack
|
|
415
|
+
*
|
|
416
|
+
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
417
|
+
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
418
|
+
*
|
|
419
|
+
* @return {Number} An ID used to remove interceptor later
|
|
420
|
+
*/
|
|
421
|
+
use(t, n, r) {
|
|
422
|
+
return this.handlers.push({
|
|
423
|
+
fulfilled: t,
|
|
424
|
+
rejected: n,
|
|
425
|
+
synchronous: r ? r.synchronous : !1,
|
|
426
|
+
runWhen: r ? r.runWhen : null
|
|
427
|
+
}), this.handlers.length - 1;
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* Remove an interceptor from the stack
|
|
431
|
+
*
|
|
432
|
+
* @param {Number} id The ID that was returned by `use`
|
|
433
|
+
*
|
|
434
|
+
* @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
|
|
435
|
+
*/
|
|
436
|
+
eject(t) {
|
|
437
|
+
this.handlers[t] && (this.handlers[t] = null);
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* Clear all interceptors from the stack
|
|
441
|
+
*
|
|
442
|
+
* @returns {void}
|
|
443
|
+
*/
|
|
444
|
+
clear() {
|
|
445
|
+
this.handlers && (this.handlers = []);
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* Iterate over all the registered interceptors
|
|
449
|
+
*
|
|
450
|
+
* This method is particularly useful for skipping over any
|
|
451
|
+
* interceptors that may have become `null` calling `eject`.
|
|
452
|
+
*
|
|
453
|
+
* @param {Function} fn The function to call for each interceptor
|
|
454
|
+
*
|
|
455
|
+
* @returns {void}
|
|
456
|
+
*/
|
|
457
|
+
forEach(t) {
|
|
458
|
+
a.forEach(this.handlers, function(r) {
|
|
459
|
+
r !== null && t(r);
|
|
460
|
+
});
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
const Me = {
|
|
464
|
+
silentJSONParsing: !0,
|
|
465
|
+
forcedJSONParsing: !0,
|
|
466
|
+
clarifyTimeoutError: !1
|
|
467
|
+
}, vt = typeof URLSearchParams < "u" ? URLSearchParams : fe, Gt = typeof FormData < "u" ? FormData : null, Xt = typeof Blob < "u" ? Blob : null, Zt = {
|
|
468
|
+
isBrowser: !0,
|
|
469
|
+
classes: {
|
|
470
|
+
URLSearchParams: vt,
|
|
471
|
+
FormData: Gt,
|
|
472
|
+
Blob: Xt
|
|
473
|
+
},
|
|
474
|
+
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
475
|
+
}, de = typeof window < "u" && typeof document < "u", oe = typeof navigator == "object" && navigator || void 0, Qt = de && (!oe || ["ReactNative", "NativeScript", "NS"].indexOf(oe.product) < 0), Yt = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
476
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", en = de && window.location.href || "http://localhost", tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
477
|
+
__proto__: null,
|
|
478
|
+
hasBrowserEnv: de,
|
|
479
|
+
hasStandardBrowserEnv: Qt,
|
|
480
|
+
hasStandardBrowserWebWorkerEnv: Yt,
|
|
481
|
+
navigator: oe,
|
|
482
|
+
origin: en
|
|
483
|
+
}, Symbol.toStringTag, { value: "Module" })), S = {
|
|
484
|
+
...tn,
|
|
485
|
+
...Zt
|
|
486
|
+
};
|
|
487
|
+
function nn(e, t) {
|
|
488
|
+
return X(e, new S.classes.URLSearchParams(), Object.assign({
|
|
489
|
+
visitor: function(n, r, s, o) {
|
|
490
|
+
return S.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
491
|
+
}
|
|
492
|
+
}, t));
|
|
493
|
+
}
|
|
494
|
+
function rn(e) {
|
|
495
|
+
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
496
|
+
}
|
|
497
|
+
function sn(e) {
|
|
498
|
+
const t = {}, n = Object.keys(e);
|
|
499
|
+
let r;
|
|
500
|
+
const s = n.length;
|
|
501
|
+
let o;
|
|
502
|
+
for (r = 0; r < s; r++)
|
|
503
|
+
o = n[r], t[o] = e[o];
|
|
504
|
+
return t;
|
|
505
|
+
}
|
|
506
|
+
function $e(e) {
|
|
507
|
+
function t(n, r, s, o) {
|
|
508
|
+
let i = n[o++];
|
|
509
|
+
if (i === "__proto__") return !0;
|
|
510
|
+
const c = Number.isFinite(+i), f = o >= n.length;
|
|
511
|
+
return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = sn(s[i])), !c);
|
|
512
|
+
}
|
|
513
|
+
if (a.isFormData(e) && a.isFunction(e.entries)) {
|
|
514
|
+
const n = {};
|
|
515
|
+
return a.forEachEntry(e, (r, s) => {
|
|
516
|
+
t(rn(r), s, n, 0);
|
|
517
|
+
}), n;
|
|
518
|
+
}
|
|
519
|
+
return null;
|
|
520
|
+
}
|
|
521
|
+
function on(e, t, n) {
|
|
522
|
+
if (a.isString(e))
|
|
523
|
+
try {
|
|
524
|
+
return (t || JSON.parse)(e), a.trim(e);
|
|
525
|
+
} catch (r) {
|
|
526
|
+
if (r.name !== "SyntaxError")
|
|
527
|
+
throw r;
|
|
528
|
+
}
|
|
529
|
+
return (n || JSON.stringify)(e);
|
|
530
|
+
}
|
|
531
|
+
const H = {
|
|
532
|
+
transitional: Me,
|
|
533
|
+
adapter: ["xhr", "http", "fetch"],
|
|
534
|
+
transformRequest: [function(t, n) {
|
|
535
|
+
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
|
|
536
|
+
if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
537
|
+
return s ? JSON.stringify($e(t)) : t;
|
|
538
|
+
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
|
|
539
|
+
return t;
|
|
540
|
+
if (a.isArrayBufferView(t))
|
|
541
|
+
return t.buffer;
|
|
542
|
+
if (a.isURLSearchParams(t))
|
|
543
|
+
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
544
|
+
let c;
|
|
545
|
+
if (o) {
|
|
546
|
+
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
547
|
+
return nn(t, this.formSerializer).toString();
|
|
548
|
+
if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
549
|
+
const f = this.env && this.env.FormData;
|
|
550
|
+
return X(
|
|
551
|
+
c ? { "files[]": t } : t,
|
|
552
|
+
f && new f(),
|
|
553
|
+
this.formSerializer
|
|
554
|
+
);
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
return o || s ? (n.setContentType("application/json", !1), on(t)) : t;
|
|
558
|
+
}],
|
|
559
|
+
transformResponse: [function(t) {
|
|
560
|
+
const n = this.transitional || H.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
561
|
+
if (a.isResponse(t) || a.isReadableStream(t))
|
|
562
|
+
return t;
|
|
563
|
+
if (t && a.isString(t) && (r && !this.responseType || s)) {
|
|
564
|
+
const i = !(n && n.silentJSONParsing) && s;
|
|
565
|
+
try {
|
|
566
|
+
return JSON.parse(t);
|
|
567
|
+
} catch (c) {
|
|
568
|
+
if (i)
|
|
569
|
+
throw c.name === "SyntaxError" ? m.from(c, m.ERR_BAD_RESPONSE, this, null, this.response) : c;
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
return t;
|
|
573
|
+
}],
|
|
574
|
+
/**
|
|
575
|
+
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
576
|
+
* timeout is not created.
|
|
577
|
+
*/
|
|
578
|
+
timeout: 0,
|
|
579
|
+
xsrfCookieName: "XSRF-TOKEN",
|
|
580
|
+
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
581
|
+
maxContentLength: -1,
|
|
582
|
+
maxBodyLength: -1,
|
|
583
|
+
env: {
|
|
584
|
+
FormData: S.classes.FormData,
|
|
585
|
+
Blob: S.classes.Blob
|
|
586
|
+
},
|
|
587
|
+
validateStatus: function(t) {
|
|
588
|
+
return t >= 200 && t < 300;
|
|
589
|
+
},
|
|
590
|
+
headers: {
|
|
591
|
+
common: {
|
|
592
|
+
Accept: "application/json, text/plain, */*",
|
|
593
|
+
"Content-Type": void 0
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
};
|
|
597
|
+
a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
598
|
+
H.headers[e] = {};
|
|
599
|
+
});
|
|
600
|
+
const an = a.toObjectSet([
|
|
601
|
+
"age",
|
|
602
|
+
"authorization",
|
|
603
|
+
"content-length",
|
|
604
|
+
"content-type",
|
|
605
|
+
"etag",
|
|
606
|
+
"expires",
|
|
607
|
+
"from",
|
|
608
|
+
"host",
|
|
609
|
+
"if-modified-since",
|
|
610
|
+
"if-unmodified-since",
|
|
611
|
+
"last-modified",
|
|
612
|
+
"location",
|
|
613
|
+
"max-forwards",
|
|
614
|
+
"proxy-authorization",
|
|
615
|
+
"referer",
|
|
616
|
+
"retry-after",
|
|
617
|
+
"user-agent"
|
|
618
|
+
]), cn = (e) => {
|
|
619
|
+
const t = {};
|
|
620
|
+
let n, r, s;
|
|
621
|
+
return e && e.split(`
|
|
622
|
+
`).forEach(function(i) {
|
|
623
|
+
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && an[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
624
|
+
}), t;
|
|
625
|
+
}, Re = Symbol("internals");
|
|
626
|
+
function I(e) {
|
|
627
|
+
return e && String(e).trim().toLowerCase();
|
|
628
|
+
}
|
|
629
|
+
function z(e) {
|
|
630
|
+
return e === !1 || e == null ? e : a.isArray(e) ? e.map(z) : String(e);
|
|
631
|
+
}
|
|
632
|
+
function un(e) {
|
|
633
|
+
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
634
|
+
let r;
|
|
635
|
+
for (; r = n.exec(e); )
|
|
636
|
+
t[r[1]] = r[2];
|
|
637
|
+
return t;
|
|
638
|
+
}
|
|
639
|
+
const ln = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
640
|
+
function ee(e, t, n, r, s) {
|
|
641
|
+
if (a.isFunction(r))
|
|
642
|
+
return r.call(this, t, n);
|
|
643
|
+
if (s && (t = n), !!a.isString(t)) {
|
|
644
|
+
if (a.isString(r))
|
|
645
|
+
return t.indexOf(r) !== -1;
|
|
646
|
+
if (a.isRegExp(r))
|
|
647
|
+
return r.test(t);
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
function fn(e) {
|
|
651
|
+
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
652
|
+
}
|
|
653
|
+
function dn(e, t) {
|
|
654
|
+
const n = a.toCamelCase(" " + t);
|
|
655
|
+
["get", "set", "has"].forEach((r) => {
|
|
656
|
+
Object.defineProperty(e, r + n, {
|
|
657
|
+
value: function(s, o, i) {
|
|
658
|
+
return this[r].call(this, t, s, o, i);
|
|
659
|
+
},
|
|
660
|
+
configurable: !0
|
|
661
|
+
});
|
|
662
|
+
});
|
|
663
|
+
}
|
|
664
|
+
let O = class {
|
|
665
|
+
constructor(t) {
|
|
666
|
+
t && this.set(t);
|
|
667
|
+
}
|
|
668
|
+
set(t, n, r) {
|
|
669
|
+
const s = this;
|
|
670
|
+
function o(c, f, u) {
|
|
671
|
+
const l = I(f);
|
|
672
|
+
if (!l)
|
|
673
|
+
throw new Error("header name must be a non-empty string");
|
|
674
|
+
const d = a.findKey(s, l);
|
|
675
|
+
(!d || s[d] === void 0 || u === !0 || u === void 0 && s[d] !== !1) && (s[d || f] = z(c));
|
|
676
|
+
}
|
|
677
|
+
const i = (c, f) => a.forEach(c, (u, l) => o(u, l, f));
|
|
678
|
+
if (a.isPlainObject(t) || t instanceof this.constructor)
|
|
679
|
+
i(t, n);
|
|
680
|
+
else if (a.isString(t) && (t = t.trim()) && !ln(t))
|
|
681
|
+
i(cn(t), n);
|
|
682
|
+
else if (a.isHeaders(t))
|
|
683
|
+
for (const [c, f] of t.entries())
|
|
684
|
+
o(f, c, r);
|
|
685
|
+
else
|
|
686
|
+
t != null && o(n, t, r);
|
|
687
|
+
return this;
|
|
688
|
+
}
|
|
689
|
+
get(t, n) {
|
|
690
|
+
if (t = I(t), t) {
|
|
691
|
+
const r = a.findKey(this, t);
|
|
692
|
+
if (r) {
|
|
693
|
+
const s = this[r];
|
|
694
|
+
if (!n)
|
|
695
|
+
return s;
|
|
696
|
+
if (n === !0)
|
|
697
|
+
return un(s);
|
|
698
|
+
if (a.isFunction(n))
|
|
699
|
+
return n.call(this, s, r);
|
|
700
|
+
if (a.isRegExp(n))
|
|
701
|
+
return n.exec(s);
|
|
702
|
+
throw new TypeError("parser must be boolean|regexp|function");
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
has(t, n) {
|
|
707
|
+
if (t = I(t), t) {
|
|
708
|
+
const r = a.findKey(this, t);
|
|
709
|
+
return !!(r && this[r] !== void 0 && (!n || ee(this, this[r], r, n)));
|
|
710
|
+
}
|
|
711
|
+
return !1;
|
|
712
|
+
}
|
|
713
|
+
delete(t, n) {
|
|
714
|
+
const r = this;
|
|
715
|
+
let s = !1;
|
|
716
|
+
function o(i) {
|
|
717
|
+
if (i = I(i), i) {
|
|
718
|
+
const c = a.findKey(r, i);
|
|
719
|
+
c && (!n || ee(r, r[c], c, n)) && (delete r[c], s = !0);
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
return a.isArray(t) ? t.forEach(o) : o(t), s;
|
|
723
|
+
}
|
|
724
|
+
clear(t) {
|
|
725
|
+
const n = Object.keys(this);
|
|
726
|
+
let r = n.length, s = !1;
|
|
727
|
+
for (; r--; ) {
|
|
728
|
+
const o = n[r];
|
|
729
|
+
(!t || ee(this, this[o], o, t, !0)) && (delete this[o], s = !0);
|
|
730
|
+
}
|
|
731
|
+
return s;
|
|
732
|
+
}
|
|
733
|
+
normalize(t) {
|
|
734
|
+
const n = this, r = {};
|
|
735
|
+
return a.forEach(this, (s, o) => {
|
|
736
|
+
const i = a.findKey(r, o);
|
|
737
|
+
if (i) {
|
|
738
|
+
n[i] = z(s), delete n[o];
|
|
739
|
+
return;
|
|
740
|
+
}
|
|
741
|
+
const c = t ? fn(o) : String(o).trim();
|
|
742
|
+
c !== o && delete n[o], n[c] = z(s), r[c] = !0;
|
|
743
|
+
}), this;
|
|
744
|
+
}
|
|
745
|
+
concat(...t) {
|
|
746
|
+
return this.constructor.concat(this, ...t);
|
|
747
|
+
}
|
|
748
|
+
toJSON(t) {
|
|
749
|
+
const n = /* @__PURE__ */ Object.create(null);
|
|
750
|
+
return a.forEach(this, (r, s) => {
|
|
751
|
+
r != null && r !== !1 && (n[s] = t && a.isArray(r) ? r.join(", ") : r);
|
|
752
|
+
}), n;
|
|
753
|
+
}
|
|
754
|
+
[Symbol.iterator]() {
|
|
755
|
+
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
756
|
+
}
|
|
757
|
+
toString() {
|
|
758
|
+
return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
|
|
759
|
+
`);
|
|
760
|
+
}
|
|
761
|
+
get [Symbol.toStringTag]() {
|
|
762
|
+
return "AxiosHeaders";
|
|
763
|
+
}
|
|
764
|
+
static from(t) {
|
|
765
|
+
return t instanceof this ? t : new this(t);
|
|
766
|
+
}
|
|
767
|
+
static concat(t, ...n) {
|
|
768
|
+
const r = new this(t);
|
|
769
|
+
return n.forEach((s) => r.set(s)), r;
|
|
770
|
+
}
|
|
771
|
+
static accessor(t) {
|
|
772
|
+
const r = (this[Re] = this[Re] = {
|
|
773
|
+
accessors: {}
|
|
774
|
+
}).accessors, s = this.prototype;
|
|
775
|
+
function o(i) {
|
|
776
|
+
const c = I(i);
|
|
777
|
+
r[c] || (dn(s, i), r[c] = !0);
|
|
778
|
+
}
|
|
779
|
+
return a.isArray(t) ? t.forEach(o) : o(t), this;
|
|
780
|
+
}
|
|
781
|
+
};
|
|
782
|
+
O.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
783
|
+
a.reduceDescriptors(O.prototype, ({ value: e }, t) => {
|
|
784
|
+
let n = t[0].toUpperCase() + t.slice(1);
|
|
785
|
+
return {
|
|
786
|
+
get: () => e,
|
|
787
|
+
set(r) {
|
|
788
|
+
this[n] = r;
|
|
789
|
+
}
|
|
790
|
+
};
|
|
791
|
+
});
|
|
792
|
+
a.freezeMethods(O);
|
|
793
|
+
function te(e, t) {
|
|
794
|
+
const n = this || H, r = t || n, s = O.from(r.headers);
|
|
795
|
+
let o = r.data;
|
|
796
|
+
return a.forEach(e, function(c) {
|
|
797
|
+
o = c.call(n, o, s.normalize(), t ? t.status : void 0);
|
|
798
|
+
}), s.normalize(), o;
|
|
799
|
+
}
|
|
800
|
+
function ze(e) {
|
|
801
|
+
return !!(e && e.__CANCEL__);
|
|
802
|
+
}
|
|
803
|
+
function D(e, t, n) {
|
|
804
|
+
m.call(this, e ?? "canceled", m.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
805
|
+
}
|
|
806
|
+
a.inherits(D, m, {
|
|
807
|
+
__CANCEL__: !0
|
|
808
|
+
});
|
|
809
|
+
function Ve(e, t, n) {
|
|
810
|
+
const r = n.config.validateStatus;
|
|
811
|
+
!n.status || !r || r(n.status) ? e(n) : t(new m(
|
|
812
|
+
"Request failed with status code " + n.status,
|
|
813
|
+
[m.ERR_BAD_REQUEST, m.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
814
|
+
n.config,
|
|
815
|
+
n.request,
|
|
816
|
+
n
|
|
817
|
+
));
|
|
818
|
+
}
|
|
819
|
+
function pn(e) {
|
|
820
|
+
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
821
|
+
return t && t[1] || "";
|
|
822
|
+
}
|
|
823
|
+
function hn(e, t) {
|
|
824
|
+
e = e || 10;
|
|
825
|
+
const n = new Array(e), r = new Array(e);
|
|
826
|
+
let s = 0, o = 0, i;
|
|
827
|
+
return t = t !== void 0 ? t : 1e3, function(f) {
|
|
828
|
+
const u = Date.now(), l = r[o];
|
|
829
|
+
i || (i = u), n[s] = f, r[s] = u;
|
|
830
|
+
let d = o, y = 0;
|
|
831
|
+
for (; d !== s; )
|
|
832
|
+
y += n[d++], d = d % e;
|
|
833
|
+
if (s = (s + 1) % e, s === o && (o = (o + 1) % e), u - i < t)
|
|
834
|
+
return;
|
|
835
|
+
const g = l && u - l;
|
|
836
|
+
return g ? Math.round(y * 1e3 / g) : void 0;
|
|
837
|
+
};
|
|
838
|
+
}
|
|
839
|
+
function mn(e, t) {
|
|
840
|
+
let n = 0, r = 1e3 / t, s, o;
|
|
841
|
+
const i = (u, l = Date.now()) => {
|
|
842
|
+
n = l, s = null, o && (clearTimeout(o), o = null), e.apply(null, u);
|
|
843
|
+
};
|
|
844
|
+
return [(...u) => {
|
|
845
|
+
const l = Date.now(), d = l - n;
|
|
846
|
+
d >= r ? i(u, l) : (s = u, o || (o = setTimeout(() => {
|
|
847
|
+
o = null, i(s);
|
|
848
|
+
}, r - d)));
|
|
849
|
+
}, () => s && i(s)];
|
|
850
|
+
}
|
|
851
|
+
const W = (e, t, n = 3) => {
|
|
852
|
+
let r = 0;
|
|
853
|
+
const s = hn(50, 250);
|
|
854
|
+
return mn((o) => {
|
|
855
|
+
const i = o.loaded, c = o.lengthComputable ? o.total : void 0, f = i - r, u = s(f), l = i <= c;
|
|
856
|
+
r = i;
|
|
857
|
+
const d = {
|
|
858
|
+
loaded: i,
|
|
859
|
+
total: c,
|
|
860
|
+
progress: c ? i / c : void 0,
|
|
861
|
+
bytes: f,
|
|
862
|
+
rate: u || void 0,
|
|
863
|
+
estimated: u && c && l ? (c - i) / u : void 0,
|
|
864
|
+
event: o,
|
|
865
|
+
lengthComputable: c != null,
|
|
866
|
+
[t ? "download" : "upload"]: !0
|
|
867
|
+
};
|
|
868
|
+
e(d);
|
|
869
|
+
}, n);
|
|
870
|
+
}, ge = (e, t) => {
|
|
871
|
+
const n = e != null;
|
|
872
|
+
return [(r) => t[0]({
|
|
873
|
+
lengthComputable: n,
|
|
874
|
+
total: e,
|
|
875
|
+
loaded: r
|
|
876
|
+
}), t[1]];
|
|
877
|
+
}, Te = (e) => (...t) => a.asap(() => e(...t)), yn = S.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, S.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
878
|
+
new URL(S.origin),
|
|
879
|
+
S.navigator && /(msie|trident)/i.test(S.navigator.userAgent)
|
|
880
|
+
) : () => !0, bn = S.hasStandardBrowserEnv ? (
|
|
881
|
+
// Standard browser envs support document.cookie
|
|
882
|
+
{
|
|
883
|
+
write(e, t, n, r, s, o) {
|
|
884
|
+
const i = [e + "=" + encodeURIComponent(t)];
|
|
885
|
+
a.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), a.isString(r) && i.push("path=" + r), a.isString(s) && i.push("domain=" + s), o === !0 && i.push("secure"), document.cookie = i.join("; ");
|
|
886
|
+
},
|
|
887
|
+
read(e) {
|
|
888
|
+
const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
|
|
889
|
+
return t ? decodeURIComponent(t[3]) : null;
|
|
890
|
+
},
|
|
891
|
+
remove(e) {
|
|
892
|
+
this.write(e, "", Date.now() - 864e5);
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
) : (
|
|
896
|
+
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
897
|
+
{
|
|
898
|
+
write() {
|
|
899
|
+
},
|
|
900
|
+
read() {
|
|
901
|
+
return null;
|
|
902
|
+
},
|
|
903
|
+
remove() {
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
);
|
|
907
|
+
function wn(e) {
|
|
908
|
+
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
909
|
+
}
|
|
910
|
+
function Rn(e, t) {
|
|
911
|
+
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
912
|
+
}
|
|
913
|
+
function We(e, t, n) {
|
|
914
|
+
let r = !wn(t);
|
|
915
|
+
return e && r || n == !1 ? Rn(e, t) : t;
|
|
916
|
+
}
|
|
917
|
+
const Ae = (e) => e instanceof O ? { ...e } : e;
|
|
918
|
+
function P(e, t) {
|
|
919
|
+
t = t || {};
|
|
920
|
+
const n = {};
|
|
921
|
+
function r(u, l, d, y) {
|
|
922
|
+
return a.isPlainObject(u) && a.isPlainObject(l) ? a.merge.call({ caseless: y }, u, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
|
|
923
|
+
}
|
|
924
|
+
function s(u, l, d, y) {
|
|
925
|
+
if (a.isUndefined(l)) {
|
|
926
|
+
if (!a.isUndefined(u))
|
|
927
|
+
return r(void 0, u, d, y);
|
|
928
|
+
} else return r(u, l, d, y);
|
|
929
|
+
}
|
|
930
|
+
function o(u, l) {
|
|
931
|
+
if (!a.isUndefined(l))
|
|
932
|
+
return r(void 0, l);
|
|
933
|
+
}
|
|
934
|
+
function i(u, l) {
|
|
935
|
+
if (a.isUndefined(l)) {
|
|
936
|
+
if (!a.isUndefined(u))
|
|
937
|
+
return r(void 0, u);
|
|
938
|
+
} else return r(void 0, l);
|
|
939
|
+
}
|
|
940
|
+
function c(u, l, d) {
|
|
941
|
+
if (d in t)
|
|
942
|
+
return r(u, l);
|
|
943
|
+
if (d in e)
|
|
944
|
+
return r(void 0, u);
|
|
945
|
+
}
|
|
946
|
+
const f = {
|
|
947
|
+
url: o,
|
|
948
|
+
method: o,
|
|
949
|
+
data: o,
|
|
950
|
+
baseURL: i,
|
|
951
|
+
transformRequest: i,
|
|
952
|
+
transformResponse: i,
|
|
953
|
+
paramsSerializer: i,
|
|
954
|
+
timeout: i,
|
|
955
|
+
timeoutMessage: i,
|
|
956
|
+
withCredentials: i,
|
|
957
|
+
withXSRFToken: i,
|
|
958
|
+
adapter: i,
|
|
959
|
+
responseType: i,
|
|
960
|
+
xsrfCookieName: i,
|
|
961
|
+
xsrfHeaderName: i,
|
|
962
|
+
onUploadProgress: i,
|
|
963
|
+
onDownloadProgress: i,
|
|
964
|
+
decompress: i,
|
|
965
|
+
maxContentLength: i,
|
|
966
|
+
maxBodyLength: i,
|
|
967
|
+
beforeRedirect: i,
|
|
968
|
+
transport: i,
|
|
969
|
+
httpAgent: i,
|
|
970
|
+
httpsAgent: i,
|
|
971
|
+
cancelToken: i,
|
|
972
|
+
socketPath: i,
|
|
973
|
+
responseEncoding: i,
|
|
974
|
+
validateStatus: c,
|
|
975
|
+
headers: (u, l, d) => s(Ae(u), Ae(l), d, !0)
|
|
976
|
+
};
|
|
977
|
+
return a.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
|
|
978
|
+
const d = f[l] || s, y = d(e[l], t[l], l);
|
|
979
|
+
a.isUndefined(y) && d !== c || (n[l] = y);
|
|
980
|
+
}), n;
|
|
981
|
+
}
|
|
982
|
+
const Je = (e) => {
|
|
983
|
+
const t = P({}, e);
|
|
984
|
+
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
|
|
985
|
+
t.headers = i = O.from(i), t.url = He(We(t.baseURL, t.url), e.params, e.paramsSerializer), c && i.set(
|
|
986
|
+
"Authorization",
|
|
987
|
+
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
988
|
+
);
|
|
989
|
+
let f;
|
|
990
|
+
if (a.isFormData(n)) {
|
|
991
|
+
if (S.hasStandardBrowserEnv || S.hasStandardBrowserWebWorkerEnv)
|
|
992
|
+
i.setContentType(void 0);
|
|
993
|
+
else if ((f = i.getContentType()) !== !1) {
|
|
994
|
+
const [u, ...l] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : [];
|
|
995
|
+
i.setContentType([u || "multipart/form-data", ...l].join("; "));
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
if (S.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && yn(t.url))) {
|
|
999
|
+
const u = s && o && bn.read(o);
|
|
1000
|
+
u && i.set(s, u);
|
|
1001
|
+
}
|
|
1002
|
+
return t;
|
|
1003
|
+
}, gn = typeof XMLHttpRequest < "u", Tn = gn && function(e) {
|
|
1004
|
+
return new Promise(function(n, r) {
|
|
1005
|
+
const s = Je(e);
|
|
1006
|
+
let o = s.data;
|
|
1007
|
+
const i = O.from(s.headers).normalize();
|
|
1008
|
+
let { responseType: c, onUploadProgress: f, onDownloadProgress: u } = s, l, d, y, g, p;
|
|
1009
|
+
function b() {
|
|
1010
|
+
g && g(), p && p(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
|
|
1011
|
+
}
|
|
1012
|
+
let h = new XMLHttpRequest();
|
|
1013
|
+
h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout;
|
|
1014
|
+
function w() {
|
|
1015
|
+
if (!h)
|
|
1016
|
+
return;
|
|
1017
|
+
const A = O.from(
|
|
1018
|
+
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
1019
|
+
), E = {
|
|
1020
|
+
data: !c || c === "text" || c === "json" ? h.responseText : h.response,
|
|
1021
|
+
status: h.status,
|
|
1022
|
+
statusText: h.statusText,
|
|
1023
|
+
headers: A,
|
|
1024
|
+
config: e,
|
|
1025
|
+
request: h
|
|
1026
|
+
};
|
|
1027
|
+
Ve(function(_) {
|
|
1028
|
+
n(_), b();
|
|
1029
|
+
}, function(_) {
|
|
1030
|
+
r(_), b();
|
|
1031
|
+
}, E), h = null;
|
|
1032
|
+
}
|
|
1033
|
+
"onloadend" in h ? h.onloadend = w : h.onreadystatechange = function() {
|
|
1034
|
+
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(w);
|
|
1035
|
+
}, h.onabort = function() {
|
|
1036
|
+
h && (r(new m("Request aborted", m.ECONNABORTED, e, h)), h = null);
|
|
1037
|
+
}, h.onerror = function() {
|
|
1038
|
+
r(new m("Network Error", m.ERR_NETWORK, e, h)), h = null;
|
|
1039
|
+
}, h.ontimeout = function() {
|
|
1040
|
+
let U = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1041
|
+
const E = s.transitional || Me;
|
|
1042
|
+
s.timeoutErrorMessage && (U = s.timeoutErrorMessage), r(new m(
|
|
1043
|
+
U,
|
|
1044
|
+
E.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
|
|
1045
|
+
e,
|
|
1046
|
+
h
|
|
1047
|
+
)), h = null;
|
|
1048
|
+
}, o === void 0 && i.setContentType(null), "setRequestHeader" in h && a.forEach(i.toJSON(), function(U, E) {
|
|
1049
|
+
h.setRequestHeader(E, U);
|
|
1050
|
+
}), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), u && ([y, p] = W(u, !0), h.addEventListener("progress", y)), f && h.upload && ([d, g] = W(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", g)), (s.cancelToken || s.signal) && (l = (A) => {
|
|
1051
|
+
h && (r(!A || A.type ? new D(null, e, h) : A), h.abort(), h = null);
|
|
1052
|
+
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
1053
|
+
const T = pn(s.url);
|
|
1054
|
+
if (T && S.protocols.indexOf(T) === -1) {
|
|
1055
|
+
r(new m("Unsupported protocol " + T + ":", m.ERR_BAD_REQUEST, e));
|
|
1056
|
+
return;
|
|
1057
|
+
}
|
|
1058
|
+
h.send(o || null);
|
|
1059
|
+
});
|
|
1060
|
+
}, An = (e, t) => {
|
|
1061
|
+
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1062
|
+
if (t || n) {
|
|
1063
|
+
let r = new AbortController(), s;
|
|
1064
|
+
const o = function(u) {
|
|
1065
|
+
if (!s) {
|
|
1066
|
+
s = !0, c();
|
|
1067
|
+
const l = u instanceof Error ? u : this.reason;
|
|
1068
|
+
r.abort(l instanceof m ? l : new D(l instanceof Error ? l.message : l));
|
|
1069
|
+
}
|
|
1070
|
+
};
|
|
1071
|
+
let i = t && setTimeout(() => {
|
|
1072
|
+
i = null, o(new m(`timeout ${t} of ms exceeded`, m.ETIMEDOUT));
|
|
1073
|
+
}, t);
|
|
1074
|
+
const c = () => {
|
|
1075
|
+
e && (i && clearTimeout(i), i = null, e.forEach((u) => {
|
|
1076
|
+
u.unsubscribe ? u.unsubscribe(o) : u.removeEventListener("abort", o);
|
|
1077
|
+
}), e = null);
|
|
1078
|
+
};
|
|
1079
|
+
e.forEach((u) => u.addEventListener("abort", o));
|
|
1080
|
+
const { signal: f } = r;
|
|
1081
|
+
return f.unsubscribe = () => a.asap(c), f;
|
|
1082
|
+
}
|
|
1083
|
+
}, Sn = function* (e, t) {
|
|
1084
|
+
let n = e.byteLength;
|
|
1085
|
+
if (n < t) {
|
|
1086
|
+
yield e;
|
|
1087
|
+
return;
|
|
1088
|
+
}
|
|
1089
|
+
let r = 0, s;
|
|
1090
|
+
for (; r < n; )
|
|
1091
|
+
s = r + t, yield e.slice(r, s), r = s;
|
|
1092
|
+
}, En = async function* (e, t) {
|
|
1093
|
+
for await (const n of On(e))
|
|
1094
|
+
yield* Sn(n, t);
|
|
1095
|
+
}, On = async function* (e) {
|
|
1096
|
+
if (e[Symbol.asyncIterator]) {
|
|
1097
|
+
yield* e;
|
|
1098
|
+
return;
|
|
1099
|
+
}
|
|
1100
|
+
const t = e.getReader();
|
|
1101
|
+
try {
|
|
1102
|
+
for (; ; ) {
|
|
1103
|
+
const { done: n, value: r } = await t.read();
|
|
1104
|
+
if (n)
|
|
1105
|
+
break;
|
|
1106
|
+
yield r;
|
|
1107
|
+
}
|
|
1108
|
+
} finally {
|
|
1109
|
+
await t.cancel();
|
|
1110
|
+
}
|
|
1111
|
+
}, Se = (e, t, n, r) => {
|
|
1112
|
+
const s = En(e, t);
|
|
1113
|
+
let o = 0, i, c = (f) => {
|
|
1114
|
+
i || (i = !0, r && r(f));
|
|
1115
|
+
};
|
|
1116
|
+
return new ReadableStream({
|
|
1117
|
+
async pull(f) {
|
|
1118
|
+
try {
|
|
1119
|
+
const { done: u, value: l } = await s.next();
|
|
1120
|
+
if (u) {
|
|
1121
|
+
c(), f.close();
|
|
1122
|
+
return;
|
|
1123
|
+
}
|
|
1124
|
+
let d = l.byteLength;
|
|
1125
|
+
if (n) {
|
|
1126
|
+
let y = o += d;
|
|
1127
|
+
n(y);
|
|
1128
|
+
}
|
|
1129
|
+
f.enqueue(new Uint8Array(l));
|
|
1130
|
+
} catch (u) {
|
|
1131
|
+
throw c(u), u;
|
|
1132
|
+
}
|
|
1133
|
+
},
|
|
1134
|
+
cancel(f) {
|
|
1135
|
+
return c(f), s.return();
|
|
1136
|
+
}
|
|
1137
|
+
}, {
|
|
1138
|
+
highWaterMark: 2
|
|
1139
|
+
});
|
|
1140
|
+
}, Z = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Ke = Z && typeof ReadableStream == "function", xn = Z && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), ve = (e, ...t) => {
|
|
1141
|
+
try {
|
|
1142
|
+
return !!e(...t);
|
|
1143
|
+
} catch {
|
|
1144
|
+
return !1;
|
|
1145
|
+
}
|
|
1146
|
+
}, Cn = Ke && ve(() => {
|
|
1147
|
+
let e = !1;
|
|
1148
|
+
const t = new Request(S.origin, {
|
|
1149
|
+
body: new ReadableStream(),
|
|
1150
|
+
method: "POST",
|
|
1151
|
+
get duplex() {
|
|
1152
|
+
return e = !0, "half";
|
|
1153
|
+
}
|
|
1154
|
+
}).headers.has("Content-Type");
|
|
1155
|
+
return e && !t;
|
|
1156
|
+
}), Ee = 64 * 1024, ie = Ke && ve(() => a.isReadableStream(new Response("").body)), J = {
|
|
1157
|
+
stream: ie && ((e) => e.body)
|
|
1158
|
+
};
|
|
1159
|
+
Z && ((e) => {
|
|
1160
|
+
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
1161
|
+
!J[t] && (J[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
|
|
1162
|
+
throw new m(`Response type '${t}' is not supported`, m.ERR_NOT_SUPPORT, r);
|
|
1163
|
+
});
|
|
1164
|
+
});
|
|
1165
|
+
})(new Response());
|
|
1166
|
+
const Nn = async (e) => {
|
|
1167
|
+
if (e == null)
|
|
1168
|
+
return 0;
|
|
1169
|
+
if (a.isBlob(e))
|
|
1170
|
+
return e.size;
|
|
1171
|
+
if (a.isSpecCompliantForm(e))
|
|
1172
|
+
return (await new Request(S.origin, {
|
|
1173
|
+
method: "POST",
|
|
1174
|
+
body: e
|
|
1175
|
+
}).arrayBuffer()).byteLength;
|
|
1176
|
+
if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
|
|
1177
|
+
return e.byteLength;
|
|
1178
|
+
if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
|
|
1179
|
+
return (await xn(e)).byteLength;
|
|
1180
|
+
}, Un = async (e, t) => {
|
|
1181
|
+
const n = a.toFiniteNumber(e.getContentLength());
|
|
1182
|
+
return n ?? Nn(t);
|
|
1183
|
+
}, Ln = Z && (async (e) => {
|
|
1184
|
+
let {
|
|
1185
|
+
url: t,
|
|
1186
|
+
method: n,
|
|
1187
|
+
data: r,
|
|
1188
|
+
signal: s,
|
|
1189
|
+
cancelToken: o,
|
|
1190
|
+
timeout: i,
|
|
1191
|
+
onDownloadProgress: c,
|
|
1192
|
+
onUploadProgress: f,
|
|
1193
|
+
responseType: u,
|
|
1194
|
+
headers: l,
|
|
1195
|
+
withCredentials: d = "same-origin",
|
|
1196
|
+
fetchOptions: y
|
|
1197
|
+
} = Je(e);
|
|
1198
|
+
u = u ? (u + "").toLowerCase() : "text";
|
|
1199
|
+
let g = An([s, o && o.toAbortSignal()], i), p;
|
|
1200
|
+
const b = g && g.unsubscribe && (() => {
|
|
1201
|
+
g.unsubscribe();
|
|
1202
|
+
});
|
|
1203
|
+
let h;
|
|
1204
|
+
try {
|
|
1205
|
+
if (f && Cn && n !== "get" && n !== "head" && (h = await Un(l, r)) !== 0) {
|
|
1206
|
+
let E = new Request(t, {
|
|
1207
|
+
method: "POST",
|
|
1208
|
+
body: r,
|
|
1209
|
+
duplex: "half"
|
|
1210
|
+
}), L;
|
|
1211
|
+
if (a.isFormData(r) && (L = E.headers.get("content-type")) && l.setContentType(L), E.body) {
|
|
1212
|
+
const [_, M] = ge(
|
|
1213
|
+
h,
|
|
1214
|
+
W(Te(f))
|
|
1215
|
+
);
|
|
1216
|
+
r = Se(E.body, Ee, _, M);
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
a.isString(d) || (d = d ? "include" : "omit");
|
|
1220
|
+
const w = "credentials" in Request.prototype;
|
|
1221
|
+
p = new Request(t, {
|
|
1222
|
+
...y,
|
|
1223
|
+
signal: g,
|
|
1224
|
+
method: n.toUpperCase(),
|
|
1225
|
+
headers: l.normalize().toJSON(),
|
|
1226
|
+
body: r,
|
|
1227
|
+
duplex: "half",
|
|
1228
|
+
credentials: w ? d : void 0
|
|
1229
|
+
});
|
|
1230
|
+
let T = await fetch(p);
|
|
1231
|
+
const A = ie && (u === "stream" || u === "response");
|
|
1232
|
+
if (ie && (c || A && b)) {
|
|
1233
|
+
const E = {};
|
|
1234
|
+
["status", "statusText", "headers"].forEach((pe) => {
|
|
1235
|
+
E[pe] = T[pe];
|
|
1236
|
+
});
|
|
1237
|
+
const L = a.toFiniteNumber(T.headers.get("content-length")), [_, M] = c && ge(
|
|
1238
|
+
L,
|
|
1239
|
+
W(Te(c), !0)
|
|
1240
|
+
) || [];
|
|
1241
|
+
T = new Response(
|
|
1242
|
+
Se(T.body, Ee, _, () => {
|
|
1243
|
+
M && M(), b && b();
|
|
1244
|
+
}),
|
|
1245
|
+
E
|
|
1246
|
+
);
|
|
1247
|
+
}
|
|
1248
|
+
u = u || "text";
|
|
1249
|
+
let U = await J[a.findKey(J, u) || "text"](T, e);
|
|
1250
|
+
return !A && b && b(), await new Promise((E, L) => {
|
|
1251
|
+
Ve(E, L, {
|
|
1252
|
+
data: U,
|
|
1253
|
+
headers: O.from(T.headers),
|
|
1254
|
+
status: T.status,
|
|
1255
|
+
statusText: T.statusText,
|
|
1256
|
+
config: e,
|
|
1257
|
+
request: p
|
|
1258
|
+
});
|
|
1259
|
+
});
|
|
1260
|
+
} catch (w) {
|
|
1261
|
+
throw b && b(), w && w.name === "TypeError" && /fetch/i.test(w.message) ? Object.assign(
|
|
1262
|
+
new m("Network Error", m.ERR_NETWORK, e, p),
|
|
1263
|
+
{
|
|
1264
|
+
cause: w.cause || w
|
|
1265
|
+
}
|
|
1266
|
+
) : m.from(w, w && w.code, e, p);
|
|
1267
|
+
}
|
|
1268
|
+
}), ae = {
|
|
1269
|
+
http: Vt,
|
|
1270
|
+
xhr: Tn,
|
|
1271
|
+
fetch: Ln
|
|
1272
|
+
};
|
|
1273
|
+
a.forEach(ae, (e, t) => {
|
|
1274
|
+
if (e) {
|
|
1275
|
+
try {
|
|
1276
|
+
Object.defineProperty(e, "name", { value: t });
|
|
1277
|
+
} catch {
|
|
1278
|
+
}
|
|
1279
|
+
Object.defineProperty(e, "adapterName", { value: t });
|
|
1280
|
+
}
|
|
1281
|
+
});
|
|
1282
|
+
const Oe = (e) => `- ${e}`, _n = (e) => a.isFunction(e) || e === null || e === !1, Ge = {
|
|
1283
|
+
getAdapter: (e) => {
|
|
1284
|
+
e = a.isArray(e) ? e : [e];
|
|
1285
|
+
const { length: t } = e;
|
|
1286
|
+
let n, r;
|
|
1287
|
+
const s = {};
|
|
1288
|
+
for (let o = 0; o < t; o++) {
|
|
1289
|
+
n = e[o];
|
|
1290
|
+
let i;
|
|
1291
|
+
if (r = n, !_n(n) && (r = ae[(i = String(n)).toLowerCase()], r === void 0))
|
|
1292
|
+
throw new m(`Unknown adapter '${i}'`);
|
|
1293
|
+
if (r)
|
|
1294
|
+
break;
|
|
1295
|
+
s[i || "#" + o] = r;
|
|
1296
|
+
}
|
|
1297
|
+
if (!r) {
|
|
1298
|
+
const o = Object.entries(s).map(
|
|
1299
|
+
([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1300
|
+
);
|
|
1301
|
+
let i = t ? o.length > 1 ? `since :
|
|
1302
|
+
` + o.map(Oe).join(`
|
|
1303
|
+
`) : " " + Oe(o[0]) : "as no adapter specified";
|
|
1304
|
+
throw new m(
|
|
1305
|
+
"There is no suitable adapter to dispatch the request " + i,
|
|
1306
|
+
"ERR_NOT_SUPPORT"
|
|
1307
|
+
);
|
|
1308
|
+
}
|
|
1309
|
+
return r;
|
|
1310
|
+
},
|
|
1311
|
+
adapters: ae
|
|
1312
|
+
};
|
|
1313
|
+
function ne(e) {
|
|
1314
|
+
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1315
|
+
throw new D(null, e);
|
|
1316
|
+
}
|
|
1317
|
+
function xe(e) {
|
|
1318
|
+
return ne(e), e.headers = O.from(e.headers), e.data = te.call(
|
|
1319
|
+
e,
|
|
1320
|
+
e.transformRequest
|
|
1321
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ge.getAdapter(e.adapter || H.adapter)(e).then(function(r) {
|
|
1322
|
+
return ne(e), r.data = te.call(
|
|
1323
|
+
e,
|
|
1324
|
+
e.transformResponse,
|
|
1325
|
+
r
|
|
1326
|
+
), r.headers = O.from(r.headers), r;
|
|
1327
|
+
}, function(r) {
|
|
1328
|
+
return ze(r) || (ne(e), r && r.response && (r.response.data = te.call(
|
|
1329
|
+
e,
|
|
1330
|
+
e.transformResponse,
|
|
1331
|
+
r.response
|
|
1332
|
+
), r.response.headers = O.from(r.response.headers))), Promise.reject(r);
|
|
1333
|
+
});
|
|
1334
|
+
}
|
|
1335
|
+
const Xe = "1.8.1", Q = {};
|
|
1336
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1337
|
+
Q[e] = function(r) {
|
|
1338
|
+
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1339
|
+
};
|
|
1340
|
+
});
|
|
1341
|
+
const Ce = {};
|
|
1342
|
+
Q.transitional = function(t, n, r) {
|
|
1343
|
+
function s(o, i) {
|
|
1344
|
+
return "[Axios v" + Xe + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
|
|
1345
|
+
}
|
|
1346
|
+
return (o, i, c) => {
|
|
1347
|
+
if (t === !1)
|
|
1348
|
+
throw new m(
|
|
1349
|
+
s(i, " has been removed" + (n ? " in " + n : "")),
|
|
1350
|
+
m.ERR_DEPRECATED
|
|
1351
|
+
);
|
|
1352
|
+
return n && !Ce[i] && (Ce[i] = !0, console.warn(
|
|
1353
|
+
s(
|
|
1354
|
+
i,
|
|
1355
|
+
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
1356
|
+
)
|
|
1357
|
+
)), t ? t(o, i, c) : !0;
|
|
1358
|
+
};
|
|
1359
|
+
};
|
|
1360
|
+
Q.spelling = function(t) {
|
|
1361
|
+
return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
|
|
1362
|
+
};
|
|
1363
|
+
function kn(e, t, n) {
|
|
1364
|
+
if (typeof e != "object")
|
|
1365
|
+
throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
|
|
1366
|
+
const r = Object.keys(e);
|
|
1367
|
+
let s = r.length;
|
|
1368
|
+
for (; s-- > 0; ) {
|
|
1369
|
+
const o = r[s], i = t[o];
|
|
1370
|
+
if (i) {
|
|
1371
|
+
const c = e[o], f = c === void 0 || i(c, o, e);
|
|
1372
|
+
if (f !== !0)
|
|
1373
|
+
throw new m("option " + o + " must be " + f, m.ERR_BAD_OPTION_VALUE);
|
|
1374
|
+
continue;
|
|
1375
|
+
}
|
|
1376
|
+
if (n !== !0)
|
|
1377
|
+
throw new m("Unknown option " + o, m.ERR_BAD_OPTION);
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
const V = {
|
|
1381
|
+
assertOptions: kn,
|
|
1382
|
+
validators: Q
|
|
1383
|
+
}, N = V.validators;
|
|
1384
|
+
let F = class {
|
|
1385
|
+
constructor(t) {
|
|
1386
|
+
this.defaults = t, this.interceptors = {
|
|
1387
|
+
request: new we(),
|
|
1388
|
+
response: new we()
|
|
1389
|
+
};
|
|
1390
|
+
}
|
|
1391
|
+
/**
|
|
1392
|
+
* Dispatch a request
|
|
1393
|
+
*
|
|
1394
|
+
* @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
|
|
1395
|
+
* @param {?Object} config
|
|
1396
|
+
*
|
|
1397
|
+
* @returns {Promise} The Promise to be fulfilled
|
|
1398
|
+
*/
|
|
1399
|
+
async request(t, n) {
|
|
1400
|
+
try {
|
|
1401
|
+
return await this._request(t, n);
|
|
1402
|
+
} catch (r) {
|
|
1403
|
+
if (r instanceof Error) {
|
|
1404
|
+
let s = {};
|
|
1405
|
+
Error.captureStackTrace ? Error.captureStackTrace(s) : s = new Error();
|
|
1406
|
+
const o = s.stack ? s.stack.replace(/^.+\n/, "") : "";
|
|
1407
|
+
try {
|
|
1408
|
+
r.stack ? o && !String(r.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (r.stack += `
|
|
1409
|
+
` + o) : r.stack = o;
|
|
1410
|
+
} catch {
|
|
1411
|
+
}
|
|
1412
|
+
}
|
|
1413
|
+
throw r;
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1416
|
+
_request(t, n) {
|
|
1417
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = P(this.defaults, n);
|
|
1418
|
+
const { transitional: r, paramsSerializer: s, headers: o } = n;
|
|
1419
|
+
r !== void 0 && V.assertOptions(r, {
|
|
1420
|
+
silentJSONParsing: N.transitional(N.boolean),
|
|
1421
|
+
forcedJSONParsing: N.transitional(N.boolean),
|
|
1422
|
+
clarifyTimeoutError: N.transitional(N.boolean)
|
|
1423
|
+
}, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
|
|
1424
|
+
serialize: s
|
|
1425
|
+
} : V.assertOptions(s, {
|
|
1426
|
+
encode: N.function,
|
|
1427
|
+
serialize: N.function
|
|
1428
|
+
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), V.assertOptions(n, {
|
|
1429
|
+
baseUrl: N.spelling("baseURL"),
|
|
1430
|
+
withXsrfToken: N.spelling("withXSRFToken")
|
|
1431
|
+
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1432
|
+
let i = o && a.merge(
|
|
1433
|
+
o.common,
|
|
1434
|
+
o[n.method]
|
|
1435
|
+
);
|
|
1436
|
+
o && a.forEach(
|
|
1437
|
+
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1438
|
+
(p) => {
|
|
1439
|
+
delete o[p];
|
|
1440
|
+
}
|
|
1441
|
+
), n.headers = O.concat(i, o);
|
|
1442
|
+
const c = [];
|
|
1443
|
+
let f = !0;
|
|
1444
|
+
this.interceptors.request.forEach(function(b) {
|
|
1445
|
+
typeof b.runWhen == "function" && b.runWhen(n) === !1 || (f = f && b.synchronous, c.unshift(b.fulfilled, b.rejected));
|
|
1446
|
+
});
|
|
1447
|
+
const u = [];
|
|
1448
|
+
this.interceptors.response.forEach(function(b) {
|
|
1449
|
+
u.push(b.fulfilled, b.rejected);
|
|
1450
|
+
});
|
|
1451
|
+
let l, d = 0, y;
|
|
1452
|
+
if (!f) {
|
|
1453
|
+
const p = [xe.bind(this), void 0];
|
|
1454
|
+
for (p.unshift.apply(p, c), p.push.apply(p, u), y = p.length, l = Promise.resolve(n); d < y; )
|
|
1455
|
+
l = l.then(p[d++], p[d++]);
|
|
1456
|
+
return l;
|
|
1457
|
+
}
|
|
1458
|
+
y = c.length;
|
|
1459
|
+
let g = n;
|
|
1460
|
+
for (d = 0; d < y; ) {
|
|
1461
|
+
const p = c[d++], b = c[d++];
|
|
1462
|
+
try {
|
|
1463
|
+
g = p(g);
|
|
1464
|
+
} catch (h) {
|
|
1465
|
+
b.call(this, h);
|
|
1466
|
+
break;
|
|
1467
|
+
}
|
|
1468
|
+
}
|
|
1469
|
+
try {
|
|
1470
|
+
l = xe.call(this, g);
|
|
1471
|
+
} catch (p) {
|
|
1472
|
+
return Promise.reject(p);
|
|
1473
|
+
}
|
|
1474
|
+
for (d = 0, y = u.length; d < y; )
|
|
1475
|
+
l = l.then(u[d++], u[d++]);
|
|
1476
|
+
return l;
|
|
1477
|
+
}
|
|
1478
|
+
getUri(t) {
|
|
1479
|
+
t = P(this.defaults, t);
|
|
1480
|
+
const n = We(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1481
|
+
return He(n, t.params, t.paramsSerializer);
|
|
1482
|
+
}
|
|
1483
|
+
};
|
|
1484
|
+
a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1485
|
+
F.prototype[t] = function(n, r) {
|
|
1486
|
+
return this.request(P(r || {}, {
|
|
1487
|
+
method: t,
|
|
1488
|
+
url: n,
|
|
1489
|
+
data: (r || {}).data
|
|
1490
|
+
}));
|
|
1491
|
+
};
|
|
1492
|
+
});
|
|
1493
|
+
a.forEach(["post", "put", "patch"], function(t) {
|
|
1494
|
+
function n(r) {
|
|
1495
|
+
return function(o, i, c) {
|
|
1496
|
+
return this.request(P(c || {}, {
|
|
1497
|
+
method: t,
|
|
1498
|
+
headers: r ? {
|
|
1499
|
+
"Content-Type": "multipart/form-data"
|
|
1500
|
+
} : {},
|
|
1501
|
+
url: o,
|
|
1502
|
+
data: i
|
|
1503
|
+
}));
|
|
1504
|
+
};
|
|
1505
|
+
}
|
|
1506
|
+
F.prototype[t] = n(), F.prototype[t + "Form"] = n(!0);
|
|
1507
|
+
});
|
|
1508
|
+
let Fn = class Ze {
|
|
1509
|
+
constructor(t) {
|
|
1510
|
+
if (typeof t != "function")
|
|
1511
|
+
throw new TypeError("executor must be a function.");
|
|
1512
|
+
let n;
|
|
1513
|
+
this.promise = new Promise(function(o) {
|
|
1514
|
+
n = o;
|
|
1515
|
+
});
|
|
1516
|
+
const r = this;
|
|
1517
|
+
this.promise.then((s) => {
|
|
1518
|
+
if (!r._listeners) return;
|
|
1519
|
+
let o = r._listeners.length;
|
|
1520
|
+
for (; o-- > 0; )
|
|
1521
|
+
r._listeners[o](s);
|
|
1522
|
+
r._listeners = null;
|
|
1523
|
+
}), this.promise.then = (s) => {
|
|
1524
|
+
let o;
|
|
1525
|
+
const i = new Promise((c) => {
|
|
1526
|
+
r.subscribe(c), o = c;
|
|
1527
|
+
}).then(s);
|
|
1528
|
+
return i.cancel = function() {
|
|
1529
|
+
r.unsubscribe(o);
|
|
1530
|
+
}, i;
|
|
1531
|
+
}, t(function(o, i, c) {
|
|
1532
|
+
r.reason || (r.reason = new D(o, i, c), n(r.reason));
|
|
1533
|
+
});
|
|
1534
|
+
}
|
|
1535
|
+
/**
|
|
1536
|
+
* Throws a `CanceledError` if cancellation has been requested.
|
|
1537
|
+
*/
|
|
1538
|
+
throwIfRequested() {
|
|
1539
|
+
if (this.reason)
|
|
1540
|
+
throw this.reason;
|
|
1541
|
+
}
|
|
1542
|
+
/**
|
|
1543
|
+
* Subscribe to the cancel signal
|
|
1544
|
+
*/
|
|
1545
|
+
subscribe(t) {
|
|
1546
|
+
if (this.reason) {
|
|
1547
|
+
t(this.reason);
|
|
1548
|
+
return;
|
|
1549
|
+
}
|
|
1550
|
+
this._listeners ? this._listeners.push(t) : this._listeners = [t];
|
|
1551
|
+
}
|
|
1552
|
+
/**
|
|
1553
|
+
* Unsubscribe from the cancel signal
|
|
1554
|
+
*/
|
|
1555
|
+
unsubscribe(t) {
|
|
1556
|
+
if (!this._listeners)
|
|
1557
|
+
return;
|
|
1558
|
+
const n = this._listeners.indexOf(t);
|
|
1559
|
+
n !== -1 && this._listeners.splice(n, 1);
|
|
1560
|
+
}
|
|
1561
|
+
toAbortSignal() {
|
|
1562
|
+
const t = new AbortController(), n = (r) => {
|
|
1563
|
+
t.abort(r);
|
|
1564
|
+
};
|
|
1565
|
+
return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
|
|
1566
|
+
}
|
|
1567
|
+
/**
|
|
1568
|
+
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
1569
|
+
* cancels the `CancelToken`.
|
|
1570
|
+
*/
|
|
1571
|
+
static source() {
|
|
1572
|
+
let t;
|
|
1573
|
+
return {
|
|
1574
|
+
token: new Ze(function(s) {
|
|
1575
|
+
t = s;
|
|
1576
|
+
}),
|
|
1577
|
+
cancel: t
|
|
1578
|
+
};
|
|
1579
|
+
}
|
|
1580
|
+
};
|
|
1581
|
+
function Pn(e) {
|
|
1582
|
+
return function(n) {
|
|
1583
|
+
return e.apply(null, n);
|
|
1584
|
+
};
|
|
1585
|
+
}
|
|
1586
|
+
function Bn(e) {
|
|
1587
|
+
return a.isObject(e) && e.isAxiosError === !0;
|
|
1588
|
+
}
|
|
1589
|
+
const ce = {
|
|
1590
|
+
Continue: 100,
|
|
1591
|
+
SwitchingProtocols: 101,
|
|
1592
|
+
Processing: 102,
|
|
1593
|
+
EarlyHints: 103,
|
|
1594
|
+
Ok: 200,
|
|
1595
|
+
Created: 201,
|
|
1596
|
+
Accepted: 202,
|
|
1597
|
+
NonAuthoritativeInformation: 203,
|
|
1598
|
+
NoContent: 204,
|
|
1599
|
+
ResetContent: 205,
|
|
1600
|
+
PartialContent: 206,
|
|
1601
|
+
MultiStatus: 207,
|
|
1602
|
+
AlreadyReported: 208,
|
|
1603
|
+
ImUsed: 226,
|
|
1604
|
+
MultipleChoices: 300,
|
|
1605
|
+
MovedPermanently: 301,
|
|
1606
|
+
Found: 302,
|
|
1607
|
+
SeeOther: 303,
|
|
1608
|
+
NotModified: 304,
|
|
1609
|
+
UseProxy: 305,
|
|
1610
|
+
Unused: 306,
|
|
1611
|
+
TemporaryRedirect: 307,
|
|
1612
|
+
PermanentRedirect: 308,
|
|
1613
|
+
BadRequest: 400,
|
|
1614
|
+
Unauthorized: 401,
|
|
1615
|
+
PaymentRequired: 402,
|
|
1616
|
+
Forbidden: 403,
|
|
1617
|
+
NotFound: 404,
|
|
1618
|
+
MethodNotAllowed: 405,
|
|
1619
|
+
NotAcceptable: 406,
|
|
1620
|
+
ProxyAuthenticationRequired: 407,
|
|
1621
|
+
RequestTimeout: 408,
|
|
1622
|
+
Conflict: 409,
|
|
1623
|
+
Gone: 410,
|
|
1624
|
+
LengthRequired: 411,
|
|
1625
|
+
PreconditionFailed: 412,
|
|
1626
|
+
PayloadTooLarge: 413,
|
|
1627
|
+
UriTooLong: 414,
|
|
1628
|
+
UnsupportedMediaType: 415,
|
|
1629
|
+
RangeNotSatisfiable: 416,
|
|
1630
|
+
ExpectationFailed: 417,
|
|
1631
|
+
ImATeapot: 418,
|
|
1632
|
+
MisdirectedRequest: 421,
|
|
1633
|
+
UnprocessableEntity: 422,
|
|
1634
|
+
Locked: 423,
|
|
1635
|
+
FailedDependency: 424,
|
|
1636
|
+
TooEarly: 425,
|
|
1637
|
+
UpgradeRequired: 426,
|
|
1638
|
+
PreconditionRequired: 428,
|
|
1639
|
+
TooManyRequests: 429,
|
|
1640
|
+
RequestHeaderFieldsTooLarge: 431,
|
|
1641
|
+
UnavailableForLegalReasons: 451,
|
|
1642
|
+
InternalServerError: 500,
|
|
1643
|
+
NotImplemented: 501,
|
|
1644
|
+
BadGateway: 502,
|
|
1645
|
+
ServiceUnavailable: 503,
|
|
1646
|
+
GatewayTimeout: 504,
|
|
1647
|
+
HttpVersionNotSupported: 505,
|
|
1648
|
+
VariantAlsoNegotiates: 506,
|
|
1649
|
+
InsufficientStorage: 507,
|
|
1650
|
+
LoopDetected: 508,
|
|
1651
|
+
NotExtended: 510,
|
|
1652
|
+
NetworkAuthenticationRequired: 511
|
|
1653
|
+
};
|
|
1654
|
+
Object.entries(ce).forEach(([e, t]) => {
|
|
1655
|
+
ce[t] = e;
|
|
1656
|
+
});
|
|
1657
|
+
function Qe(e) {
|
|
1658
|
+
const t = new F(e), n = Ue(F.prototype.request, t);
|
|
1659
|
+
return a.extend(n, F.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1660
|
+
return Qe(P(e, s));
|
|
1661
|
+
}, n;
|
|
1662
|
+
}
|
|
1663
|
+
const R = Qe(H);
|
|
1664
|
+
R.Axios = F;
|
|
1665
|
+
R.CanceledError = D;
|
|
1666
|
+
R.CancelToken = Fn;
|
|
1667
|
+
R.isCancel = ze;
|
|
1668
|
+
R.VERSION = Xe;
|
|
1669
|
+
R.toFormData = X;
|
|
1670
|
+
R.AxiosError = m;
|
|
1671
|
+
R.Cancel = R.CanceledError;
|
|
1672
|
+
R.all = function(t) {
|
|
1673
|
+
return Promise.all(t);
|
|
1674
|
+
};
|
|
1675
|
+
R.spread = Pn;
|
|
1676
|
+
R.isAxiosError = Bn;
|
|
1677
|
+
R.mergeConfig = P;
|
|
1678
|
+
R.AxiosHeaders = O;
|
|
1679
|
+
R.formToJSON = (e) => $e(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1680
|
+
R.getAdapter = Ge.getAdapter;
|
|
1681
|
+
R.HttpStatusCode = ce;
|
|
1682
|
+
R.default = R;
|
|
1683
|
+
const {
|
|
1684
|
+
Axios: tr,
|
|
1685
|
+
AxiosError: nr,
|
|
1686
|
+
CanceledError: rr,
|
|
1687
|
+
isCancel: sr,
|
|
1688
|
+
CancelToken: or,
|
|
1689
|
+
VERSION: ir,
|
|
1690
|
+
all: ar,
|
|
1691
|
+
Cancel: cr,
|
|
1692
|
+
isAxiosError: ur,
|
|
1693
|
+
spread: lr,
|
|
1694
|
+
toFormData: fr,
|
|
1695
|
+
AxiosHeaders: Dn,
|
|
1696
|
+
HttpStatusCode: dr,
|
|
1697
|
+
formToJSON: pr,
|
|
1698
|
+
getAdapter: hr,
|
|
1699
|
+
mergeConfig: mr
|
|
1700
|
+
} = R;
|
|
1701
|
+
function In(e = {}) {
|
|
1702
|
+
const t = e.axios || R;
|
|
1703
|
+
return (r, s) => {
|
|
1704
|
+
let o = he, i = he;
|
|
1705
|
+
const { config: c } = s, f = new AbortController(), { baseURL: u, timeout: l } = t.defaults, d = t({
|
|
1706
|
+
url: s.url,
|
|
1707
|
+
method: s.type,
|
|
1708
|
+
baseURL: u || s.baseURL,
|
|
1709
|
+
timeout: l || s.config.timeout,
|
|
1710
|
+
data: s.data,
|
|
1711
|
+
signal: f.signal,
|
|
1712
|
+
// `onUploadProgress` allows handling progress events for uploads
|
|
1713
|
+
onUploadProgress: process.env.NODE_ENV !== "test" ? (y) => {
|
|
1714
|
+
i(y.loaded, y.total || 1);
|
|
1715
|
+
} : st,
|
|
1716
|
+
// `onDownloadProgress` allows handling progress events for downloads
|
|
1717
|
+
onDownloadProgress: (y) => {
|
|
1718
|
+
o(y.loaded, y.total || 1);
|
|
1719
|
+
},
|
|
1720
|
+
...c
|
|
1721
|
+
});
|
|
1722
|
+
return {
|
|
1723
|
+
response: () => d,
|
|
1724
|
+
headers: () => d.then((y) => (y == null ? void 0 : y.headers) || ot(Dn)),
|
|
1725
|
+
abort: () => {
|
|
1726
|
+
f.abort();
|
|
1727
|
+
},
|
|
1728
|
+
onDownload: (y) => {
|
|
1729
|
+
o = y;
|
|
1730
|
+
},
|
|
1731
|
+
onUpload: (y) => {
|
|
1732
|
+
i = y;
|
|
1733
|
+
}
|
|
1734
|
+
};
|
|
1735
|
+
};
|
|
1736
|
+
}
|
|
1737
|
+
var Ye = /* @__PURE__ */ ((e) => (e[e.SUCCESS = 0] = "SUCCESS", e[e.ERROR = -1] = "ERROR", e[e.BUSINESS_ERROR = 4] = "BUSINESS_ERROR", e[e.ACCOUNT_LOCKED = 400001001] = "ACCOUNT_LOCKED", e[e.LOGINNAME_PASSWORD_WRONG = 400001002] = "LOGINNAME_PASSWORD_WRONG", e[e.ACCOUT_NOT_ENABLE = 400001003] = "ACCOUT_NOT_ENABLE", e[e.ACCESS_TOKEN_INVALID = 400001006] = "ACCESS_TOKEN_INVALID", e[e.LOGIN_TOKEN_INVALID = 400001004] = "LOGIN_TOKEN_INVALID", e[e.UNAUTHORIZED_ACCESS = 400001007] = "UNAUTHORIZED_ACCESS", e[e.CODE_OVERTIME = 400002001] = "CODE_OVERTIME", e[e.CODE_WRONG = 400002002] = "CODE_WRONG", e[e.CHANGE_INIT_PASSWORD = 400003001] = "CHANGE_INIT_PASSWORD", e[e.PASSWORD_EXPIRED = 400003002] = "PASSWORD_EXPIRED", e))(Ye || {});
|
|
1738
|
+
function qn(e) {
|
|
1739
|
+
const t = ue();
|
|
1740
|
+
t.isLogin && (e.config.headers.Authorization = t.user.token);
|
|
1741
|
+
}
|
|
1742
|
+
function jn(e) {
|
|
1743
|
+
const t = Ne();
|
|
1744
|
+
e.config.headers["Accept-Language"] = t.settings.app.defaultLang;
|
|
1745
|
+
}
|
|
1746
|
+
function Hn(e) {
|
|
1747
|
+
const t = Ne();
|
|
1748
|
+
e.config.headers["X-ResourceMark"] = e.config.headers["X-ResourceMark"] || t.auth;
|
|
1749
|
+
}
|
|
1750
|
+
function Mn() {
|
|
1751
|
+
const e = ue(), t = rt({ refreshToken: e.user.refreshToken });
|
|
1752
|
+
return t.meta = {
|
|
1753
|
+
authRole: "refreshToken"
|
|
1754
|
+
}, t;
|
|
1755
|
+
}
|
|
1756
|
+
function $n(e) {
|
|
1757
|
+
return e === Ye.ACCESS_TOKEN_INVALID;
|
|
1758
|
+
}
|
|
1759
|
+
function zn(e, t) {
|
|
1760
|
+
const n = ue();
|
|
1761
|
+
n.user.token = e, n.user.refreshToken = t;
|
|
1762
|
+
}
|
|
1763
|
+
function Vn() {
|
|
1764
|
+
return tt({
|
|
1765
|
+
/**
|
|
1766
|
+
* @description
|
|
1767
|
+
* 给权限接口添加Authorization
|
|
1768
|
+
*/
|
|
1769
|
+
assignToken: (e) => {
|
|
1770
|
+
qn(e);
|
|
1771
|
+
},
|
|
1772
|
+
/**
|
|
1773
|
+
* @description
|
|
1774
|
+
* 鉴权处理
|
|
1775
|
+
*/
|
|
1776
|
+
refreshTokenOnSuccess: {
|
|
1777
|
+
/**
|
|
1778
|
+
* @description
|
|
1779
|
+
* 检测token是否过期
|
|
1780
|
+
* @returns 是否token过期
|
|
1781
|
+
*/
|
|
1782
|
+
isExpired: (e) => $n(e.data.code),
|
|
1783
|
+
/**
|
|
1784
|
+
* @description
|
|
1785
|
+
* 当token过期时触发,在此函数中触发刷新token
|
|
1786
|
+
*/
|
|
1787
|
+
handler: async () => {
|
|
1788
|
+
const e = await Mn(), { accessToken: t, refreshToken: n } = e.data;
|
|
1789
|
+
zn(t, n);
|
|
1790
|
+
}
|
|
1791
|
+
}
|
|
1792
|
+
});
|
|
1793
|
+
}
|
|
1794
|
+
const { onAuthRequired: Wn, onResponseRefreshToken: Jn } = Vn();
|
|
1795
|
+
function yr(e) {
|
|
1796
|
+
const { axios: t, beforeRequest: n, responded: r } = e;
|
|
1797
|
+
return et({
|
|
1798
|
+
statesHook: nt,
|
|
1799
|
+
requestAdapter: In(t),
|
|
1800
|
+
cacheFor: null,
|
|
1801
|
+
timeout: 60 * 1e3,
|
|
1802
|
+
...e,
|
|
1803
|
+
beforeRequest: Wn((o) => (Hn(o), jn(o), n == null ? void 0 : n(o))),
|
|
1804
|
+
responded: Jn(r)
|
|
1805
|
+
});
|
|
1806
|
+
}
|
|
1807
|
+
export {
|
|
1808
|
+
Ye as RESPONSE_CODE,
|
|
1809
|
+
yr as createRequest,
|
|
1810
|
+
Vn as createTokenAuthentication
|
|
1811
|
+
};
|