@pubinfo/core 2.0.0-beta.9 → 2.0.0-rc.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.
Files changed (628) hide show
  1. package/dist/{AppSetting-BQT7OI6K.js → AppSetting-Bblni_W7.js} +37 -39
  2. package/dist/{HCheckList.vue_vue_type_script_setup_true_lang-D4u_haxr.js → HCheckList.vue_vue_type_script_setup_true_lang-A7PnhNKK.js} +12 -14
  3. package/dist/HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js +20 -0
  4. package/dist/HToggle-xibvPpmf.js +34 -0
  5. package/dist/PreferencesContent--JtPw_LT.js +923 -0
  6. package/dist/{SettingBreadcrumb-CgugOTgx.js → SettingBreadcrumb-BwhdAtkC.js} +9 -9
  7. package/dist/{SettingCopyright-BPeCJBLi.js → SettingCopyright-DPsRDagL.js} +8 -8
  8. package/dist/{SettingEnableTransition-BK0_EH_N.js → SettingEnableTransition-mtHTUb08.js} +20 -21
  9. package/dist/{SettingHome-DGnxlXLd.js → SettingHome-agxHFIKq.js} +20 -20
  10. package/dist/{SettingMenu-BqAd9zbL.js → SettingMenu-D6WwcOw-.js} +26 -26
  11. package/dist/{SettingMode-CgA3XDwW.js → SettingMode-CkmhszlD.js} +11 -12
  12. package/dist/{SettingNavSearch-WFnkcRQ3.js → SettingNavSearch-CEB5DZGf.js} +9 -9
  13. package/dist/{SettingOther-CG4RI6mO.js → SettingOther-Dzs1uwnC.js} +13 -13
  14. package/dist/SettingPage-bOThkL2-.js +29 -0
  15. package/dist/{SettingTabbar-CQA6ZT9l.js → SettingTabbar-L6yQxAeE.js} +18 -18
  16. package/dist/SettingThemes-Cxa5bR66.js +142 -0
  17. package/dist/{SettingToolbar-DdR2940j.js → SettingToolbar-BZ2uHom2.js} +10 -10
  18. package/dist/{SettingTopbar-C_jYO_Ax.js → SettingTopbar-hptxTh8m.js} +16 -16
  19. package/dist/{SettingWidthMode-ir_28SE3.js → SettingWidthMode-D2R2W4-n.js} +19 -20
  20. package/dist/{TopThinMode-jHDpKsma.js → TopThinMode-C26i10py.js} +1 -1
  21. package/dist/built-in/authentication/helper.d.ts +1 -0
  22. package/dist/built-in/authentication/index.d.ts +10 -0
  23. package/dist/built-in/authentication/interface.d.ts +7 -0
  24. package/dist/built-in/authentication/router.d.ts +2 -0
  25. package/dist/built-in/authorization/directives.d.ts +2 -0
  26. package/dist/built-in/authorization/helper.d.ts +6 -0
  27. package/dist/built-in/authorization/index.d.ts +7 -0
  28. package/dist/built-in/authorization/router.d.ts +3 -0
  29. package/dist/built-in/index.d.ts +8 -0
  30. package/dist/{layout → built-in/layout-component}/Layout.vue.d.ts +2 -2
  31. package/dist/{layout → built-in/layout-component}/components/Header/TopMode/More.vue.d.ts +1 -1
  32. package/dist/{layout → built-in/layout-component}/components/Header/TopMode/NotCursor.vue.d.ts +2 -0
  33. package/dist/{layout → built-in/layout-component}/components/Menu/sub.vue.d.ts +43 -43
  34. package/dist/{layout → built-in/layout-component}/components/Menu/types.d.ts +1 -1
  35. package/dist/{layout → built-in/layout-component}/components/Tools/Search.vue.d.ts +43 -43
  36. package/dist/{layout/components/Topbar/Tabbar/MoreAction.vue.d.ts → built-in/layout-component/components/Tools/index.vue.d.ts} +18 -2
  37. package/dist/{layout/components/Tools/index.vue.d.ts → built-in/layout-component/components/Topbar/Tabbar/MoreAction.vue.d.ts} +45 -61
  38. package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HDialog.vue.d.ts +1 -1
  39. package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HSlideover.vue.d.ts +1 -1
  40. package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HTabList.vue.d.ts +2 -2
  41. package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HTooltip.vue.d.ts +1 -1
  42. package/dist/{layout → built-in/layout-component}/composables/useContext.d.ts +1 -1
  43. package/dist/{layout → built-in/layout-component}/composables/useHotkey.d.ts +1 -1
  44. package/dist/{layout → built-in/layout-component}/composables/useMenu.d.ts +1 -1
  45. package/dist/{layout → built-in/layout-component}/index.d.ts +5 -4
  46. package/dist/built-in/layout-component/utils/eventBus.d.ts +5 -0
  47. package/dist/built-in/layout-component/utils/index.d.ts +3 -0
  48. package/dist/{utils → built-in/layout-component/utils}/watermark.d.ts +1 -1
  49. package/dist/built-in/locales/helpler.d.ts +594 -0
  50. package/dist/built-in/locales/index.d.ts +5 -0
  51. package/dist/built-in/n-progress/index.d.ts +6 -0
  52. package/dist/built-in/pinia-plugin/enum.d.ts +1 -0
  53. package/dist/built-in/pinia-plugin/index.d.ts +5 -0
  54. package/dist/built-in/pinia-plugin/plugins/persist.d.ts +3 -0
  55. package/dist/built-in/pre-access/index.d.ts +7 -0
  56. package/dist/built-in/settings/index.d.ts +5 -0
  57. package/dist/built-in/settings/router.d.ts +3 -0
  58. package/dist/{colors-gu4NABiz.js → colors-C8I6Fdyp.js} +1 -1
  59. package/dist/core/create.d.ts +2 -0
  60. package/dist/core/ctx.d.ts +1 -0
  61. package/dist/core/index.d.ts +4 -0
  62. package/dist/core/interface.d.ts +74 -0
  63. package/dist/{modules.d.ts → core/modules.d.ts} +9 -0
  64. package/dist/{api/index.d.ts → core/request.d.ts} +2 -4
  65. package/dist/core/resolver/icon.d.ts +5 -0
  66. package/dist/core/resolver/index.d.ts +4 -0
  67. package/dist/core/resolver/layout.d.ts +2 -0
  68. package/dist/core/resolver/page.d.ts +17 -0
  69. package/dist/core/resolver/resolver.d.ts +10 -0
  70. package/dist/{api → features/api}/modules/auth/renzhengfuwu.d.ts +7 -0
  71. package/dist/{api → features/api}/modules/configData/index.d.ts +1 -1
  72. package/dist/{api → features/api}/modules/rbac/pubJiaosezukongzhiqi.d.ts +7 -0
  73. package/dist/{api → features/api}/modules/rbac/ziyuanjiekou.d.ts +7 -0
  74. package/dist/features/api/request.d.ts +2 -0
  75. package/dist/{assets → features/assets}/styles/index.d.ts +2 -3
  76. package/dist/{composables → features/composables}/auth.d.ts +1 -1
  77. package/dist/features/context/index.d.ts +12 -0
  78. package/dist/features/enum.d.ts +21 -0
  79. package/dist/features/index.d.ts +7 -0
  80. package/dist/features/router/asyncRoutes.d.ts +14 -0
  81. package/dist/features/router/index.d.ts +2 -0
  82. package/dist/features/router/systemRoutes.d.ts +9 -0
  83. package/dist/features/stores/index.d.ts +1 -0
  84. package/dist/{stores → features/stores}/modules/favorites.d.ts +2 -2
  85. package/dist/{stores → features/stores}/modules/route.d.ts +6 -6
  86. package/dist/{stores → features/stores}/modules/tabbar.d.ts +1 -1
  87. package/dist/features/stores/modules/user.d.ts +36 -0
  88. package/dist/features/stores/utils/crypto.d.ts +1 -0
  89. package/dist/features/stores/utils/index.d.ts +2 -0
  90. package/dist/features/stores/utils/routerHelper.d.ts +17 -0
  91. package/dist/{reload-CUcPYtl7.js → index-BD2fkZis.js} +5 -5
  92. package/dist/index-CkyHqPON.js +139 -0
  93. package/dist/{index-NpS61xSA.js → index-D3zjK9rd.js} +54 -54
  94. package/dist/index-D948mfZb.js +49 -0
  95. package/dist/{index-CWIfG62O.js → index-DZ6SbWiv.js} +1804 -1897
  96. package/dist/{index-CjsnFBwd.js → index-DdS6qgK_.js} +7733 -8240
  97. package/dist/index-DeWCd_-p.js +44 -0
  98. package/dist/index-EOTrQlGo.js +258 -0
  99. package/dist/index-RwbJwutI.js +52514 -0
  100. package/dist/index-xzfvpJSq.js +234 -0
  101. package/dist/index.d.ts +23 -11
  102. package/dist/index.js +59 -72
  103. package/dist/pick-D6j4F3UM.js +12 -0
  104. package/dist/style.css +3 -3
  105. package/dist/utils/index.d.ts +4 -13
  106. package/dist/utils/path.d.ts +1 -0
  107. package/dist/utils/proxy.d.ts +1 -0
  108. package/dist/utils/storage.d.ts +1 -2
  109. package/package.json +41 -43
  110. package/src/built-in/authentication/helper.ts +55 -0
  111. package/src/built-in/authentication/index.ts +42 -0
  112. package/src/built-in/authentication/interface.ts +7 -0
  113. package/src/{pages/system → built-in/authentication/pages}/change-organization/index.vue +29 -43
  114. package/src/built-in/authentication/pages/change-password/assets/login-small.png +0 -0
  115. package/src/built-in/authentication/pages/change-password/assets/login-small_dark.webp +0 -0
  116. package/src/{pages/system → built-in/authentication/pages}/change-password/components/ChangePasswordForm/index.vue +1 -1
  117. package/src/{pages/system → built-in/authentication/pages}/change-password/index.vue +19 -36
  118. package/src/built-in/authentication/router.ts +57 -0
  119. package/src/{directives/plugins/permission.ts → built-in/authorization/directives.ts} +6 -7
  120. package/src/built-in/authorization/helper.ts +11 -0
  121. package/src/built-in/authorization/index.ts +25 -0
  122. package/src/{pages/system → built-in/authorization/pages}/not-permission/index.vue +9 -13
  123. package/src/{route/guard/auth.ts → built-in/authorization/router.ts} +39 -9
  124. package/src/built-in/index.ts +8 -0
  125. package/src/built-in/layout-component/Layout.vue +273 -0
  126. package/src/{layout → built-in/layout-component}/components/Content/IframeView.vue +1 -2
  127. package/src/{layout → built-in/layout-component}/components/Content/LinkView.vue +2 -2
  128. package/src/built-in/layout-component/components/Content/index.vue +146 -0
  129. package/src/{layout → built-in/layout-component}/components/Copyright/index.vue +7 -8
  130. package/src/{layout → built-in/layout-component}/components/Header/TopMode/More.vue +26 -34
  131. package/src/built-in/layout-component/components/Header/TopMode/NotCursor.vue +70 -0
  132. package/src/{layout → built-in/layout-component}/components/Header/TopMode/index.vue +14 -18
  133. package/src/built-in/layout-component/components/Header/index.vue +171 -0
  134. package/src/{layout → built-in/layout-component}/components/Logo/index.vue +5 -20
  135. package/src/{layout → built-in/layout-component}/components/Menu/index.vue +3 -3
  136. package/src/{layout → built-in/layout-component}/components/Menu/item.vue +22 -27
  137. package/src/{layout → built-in/layout-component}/components/Menu/types.ts +1 -1
  138. package/src/{layout → built-in/layout-component}/components/SettingBar/AppSetting.vue +11 -11
  139. package/src/{layout → built-in/layout-component}/components/SettingBar/components/DayNightToggle.vue +26 -120
  140. package/src/built-in/layout-component/components/SettingBar/components/SettingEnableTransition.vue +190 -0
  141. package/src/built-in/layout-component/components/SettingBar/components/SettingMode.vue +154 -0
  142. package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingThemes.vue +55 -90
  143. package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingWidthMode.vue +63 -71
  144. package/src/built-in/layout-component/components/SettingBar/index.vue +81 -0
  145. package/src/{layout → built-in/layout-component}/components/Sidebar/MainSidebar.vue +87 -135
  146. package/src/{layout → built-in/layout-component}/components/Sidebar/SubSidebar.vue +50 -59
  147. package/src/built-in/layout-component/components/Tools/Breadcrumb/index.vue +15 -0
  148. package/src/built-in/layout-component/components/Tools/DayNightSwitch.vue +70 -0
  149. package/src/{layout → built-in/layout-component}/components/Tools/Preferences/PreferencesContent.vue +214 -278
  150. package/src/{layout → built-in/layout-component}/components/Tools/Search.vue +5 -5
  151. package/src/{layout → built-in/layout-component}/components/Tools/index.vue +9 -15
  152. package/src/{layout → built-in/layout-component}/components/Topbar/Tabbar/MoreAction.vue +98 -145
  153. package/src/{layout → built-in/layout-component}/components/Topbar/Tabbar/index.vue +293 -405
  154. package/src/{layout → built-in/layout-component}/components/Topbar/Toolbar/Favorites.vue +5 -5
  155. package/src/{layout → built-in/layout-component}/components/Topbar/Toolbar/index.vue +40 -57
  156. package/src/{layout → built-in/layout-component}/components/Topbar/index.vue +16 -19
  157. package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HCheckList.vue +1 -1
  158. package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HDialog.vue +1 -1
  159. package/src/built-in/layout-component/components/ui/HDivider.vue +24 -0
  160. package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HDropdownMenu.vue +1 -1
  161. package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HDropdownTree.vue +1 -1
  162. package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HSlideover.vue +1 -1
  163. package/src/built-in/layout-component/components/ui/HToggle.vue +133 -0
  164. package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HTooltip.vue +1 -1
  165. package/src/{layout → built-in/layout-component}/composables/useContext.ts +2 -2
  166. package/src/{layout → built-in/layout-component}/composables/useGetComputedStyle.ts +1 -1
  167. package/src/{layout → built-in/layout-component}/composables/useHotkey.ts +1 -1
  168. package/src/{layout → built-in/layout-component}/composables/useMainPage.ts +2 -2
  169. package/src/{layout → built-in/layout-component}/composables/useMenu.ts +1 -1
  170. package/src/{layout → built-in/layout-component}/composables/useTabbar.ts +1 -1
  171. package/src/{layout → built-in/layout-component}/composables/useTitle.ts +1 -1
  172. package/src/{layout → built-in/layout-component}/composables/useWatermark.ts +4 -4
  173. package/src/{layout → built-in/layout-component}/index.ts +38 -16
  174. package/src/{layout → built-in/layout-component}/provider.ts +8 -2
  175. package/src/built-in/layout-component/utils/eventBus.ts +8 -0
  176. package/src/built-in/layout-component/utils/index.ts +3 -0
  177. package/src/{utils → built-in/layout-component/utils}/watermark.ts +2 -2
  178. package/src/{locales/index.ts → built-in/locales/helpler.ts} +13 -17
  179. package/src/built-in/locales/index.ts +20 -0
  180. package/src/built-in/n-progress/index.ts +31 -0
  181. package/src/built-in/n-progress/nprogress.css +68 -0
  182. package/src/built-in/pinia-plugin/enum.ts +1 -0
  183. package/src/{stores → built-in/pinia-plugin}/helper.ts +3 -3
  184. package/src/built-in/pinia-plugin/index.ts +27 -0
  185. package/src/{stores/plugin/sideEffect → built-in/pinia-plugin/plugins}/cleanup.ts +1 -1
  186. package/src/{stores/plugin/sideEffect → built-in/pinia-plugin/plugins}/favoritesStorage.ts +6 -7
  187. package/src/{stores/plugin/sideEffect → built-in/pinia-plugin/plugins}/iframeCache.ts +3 -3
  188. package/src/built-in/pinia-plugin/plugins/persist.ts +21 -0
  189. package/src/{stores/plugin/sideEffect → built-in/pinia-plugin/plugins}/tabbarStorage.ts +7 -8
  190. package/src/built-in/pre-access/index.ts +20 -0
  191. package/src/built-in/settings/index.ts +15 -0
  192. package/src/{route/guard/setting.ts → built-in/settings/router.ts} +3 -2
  193. package/src/core/create.ts +70 -0
  194. package/src/core/ctx.ts +3 -0
  195. package/src/core/index.ts +4 -0
  196. package/src/core/interface.ts +89 -0
  197. package/src/{modules.ts → core/modules.ts} +19 -5
  198. package/src/core/request.ts +52 -0
  199. package/src/core/resolver/icon.ts +75 -0
  200. package/src/core/resolver/index.ts +4 -0
  201. package/src/core/resolver/layout.ts +23 -0
  202. package/src/core/resolver/page.ts +89 -0
  203. package/src/core/resolver/resolver.ts +25 -0
  204. package/src/{api → features/api}/modules/auth/renzhengfuwu.ts +47 -15
  205. package/src/{api → features/api}/modules/auth/typings.d.ts +34 -28
  206. package/src/{api → features/api}/modules/configData/heibaimingdanfuwu.ts +13 -4
  207. package/src/{api → features/api}/modules/configData/index.ts +1 -1
  208. package/src/{api → features/api}/modules/configData/typings.d.ts +79 -79
  209. package/src/{api → features/api}/modules/configData/xitongpeizhifuwu.ts +43 -19
  210. package/src/{api/modules/configData/zidianfuwu.ts → features/api/modules/configData/zidifuwu.ts} +41 -11
  211. package/src/{api → features/api}/modules/rbac/gangweijiekou.ts +25 -10
  212. package/src/{api → features/api}/modules/rbac/jiaosejiekou.ts +25 -10
  213. package/src/{api → features/api}/modules/rbac/pubJiaosezukongzhiqi.ts +46 -7
  214. package/src/{api → features/api}/modules/rbac/shujuquanxianzhubiaokongzhiqi.ts +27 -13
  215. package/src/{api → features/api}/modules/rbac/typings.d.ts +323 -304
  216. package/src/{api → features/api}/modules/rbac/yonghujiekou.ts +49 -16
  217. package/src/{api → features/api}/modules/rbac/yonghushoucangbiaojiekou.ts +21 -6
  218. package/src/{api → features/api}/modules/rbac/yonghuzuijinchangyongbiaojiekou.ts +13 -4
  219. package/src/{api → features/api}/modules/rbac/ziyuanjiekou.ts +44 -5
  220. package/src/{api → features/api}/modules/rbac/zuhuguanlijiekou.ts +21 -12
  221. package/src/{api → features/api}/modules/rbac/zuzhijiaosebiaokongzhiqi.ts +13 -4
  222. package/src/{api → features/api}/modules/rbac/zuzhijiekou.ts +29 -11
  223. package/src/features/api/request.ts +5 -0
  224. package/src/{api → features/api}/system/user.ts +1 -1
  225. package/src/features/assets/styles/globals.css +188 -0
  226. package/src/{assets → features/assets}/styles/index.ts +2 -3
  227. package/src/features/assets/styles/rbac.css +51 -0
  228. package/src/features/assets/styles/resources/utils.css +53 -0
  229. package/src/features/assets/styles/resources/variables.css +5 -0
  230. package/src/features/components/MicroAppContainer/index.vue +9 -0
  231. package/src/features/components/NotAllowed/assets/403.svg +1 -0
  232. package/src/features/components/NotAllowed/assets/403_dark.svg +1 -0
  233. package/src/{components → features/components}/NotAllowed/index.vue +6 -8
  234. package/src/{components → features/components}/PassStrengthValidator/index.vue +33 -48
  235. package/src/{components → features/components}/PassStrengthValidator/rule.vue +13 -25
  236. package/src/{components → features/components}/PubinfoApp/index.vue +2 -1
  237. package/src/features/components/PubinfoIcon/index.vue +140 -0
  238. package/src/{components → features/components}/PubinfoProvider/index.ts +1 -2
  239. package/src/{composables → features/composables}/auth.ts +2 -2
  240. package/src/{composables → features/composables}/theme.ts +1 -1
  241. package/src/{composables → features/composables}/watchDiff.ts +1 -1
  242. package/src/features/context/index.ts +40 -0
  243. package/src/features/enum.ts +21 -0
  244. package/src/features/index.ts +8 -0
  245. package/src/{pages/system/[...all].vue → features/pages/not-found/index.vue} +6 -8
  246. package/src/{pages/personal → features/pages}/profile/index.vue +1 -1
  247. package/src/features/router/asyncRoutes.ts +35 -0
  248. package/src/features/router/index.ts +2 -0
  249. package/src/features/router/systemRoutes.ts +45 -0
  250. package/src/{config/settings.ts → features/settings/index.ts} +0 -1
  251. package/src/{stores/enum/index.ts → features/stores/enum.ts} +0 -1
  252. package/src/features/stores/index.ts +1 -0
  253. package/src/{stores → features/stores}/modules/keepAlive.ts +1 -0
  254. package/src/{stores → features/stores}/modules/menu.ts +44 -6
  255. package/src/{stores → features/stores}/modules/route.ts +89 -65
  256. package/src/{stores → features/stores}/modules/settings.ts +27 -10
  257. package/src/{stores → features/stores}/modules/tabbar.ts +8 -5
  258. package/src/{stores → features/stores}/modules/user.ts +60 -25
  259. package/src/{utils → features/stores/utils}/crypto.ts +7 -10
  260. package/src/features/stores/utils/index.ts +2 -0
  261. package/src/features/stores/utils/routerHelper.ts +221 -0
  262. package/src/index.ts +117 -12
  263. package/src/utils/cleanup.ts +1 -1
  264. package/src/utils/index.ts +4 -43
  265. package/src/utils/path.ts +5 -0
  266. package/src/utils/proxy.ts +36 -0
  267. package/src/utils/storage.ts +2 -4
  268. package/types/auto-imports.d.ts +3 -10
  269. package/types/components.d.ts +16 -15
  270. package/types/menu.d.ts +2 -0
  271. package/types/module.d.ts +2 -15
  272. package/types/settings.d.ts +0 -8
  273. package/types/tabbar.d.ts +1 -0
  274. package/types/vue-router.d.ts +11 -7
  275. package/dist/HButton.vue_vue_type_script_setup_true_lang-CYAzn9Mg.js +0 -25
  276. package/dist/HDivider-DgXBhPr0.js +0 -21
  277. package/dist/HToggle-Cd71WKvG.js +0 -34
  278. package/dist/PreferencesContent-MR1Db7z7.js +0 -972
  279. package/dist/SettingPage-C1CT1Mm8.js +0 -29
  280. package/dist/SettingThemes-BJu9czNK.js +0 -144
  281. package/dist/_...all_-18BnHmEa.js +0 -52
  282. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  283. package/dist/api/helper.d.ts +0 -32
  284. package/dist/api/interface.d.ts +0 -14
  285. package/dist/api/request.d.ts +0 -2
  286. package/dist/api/system/app.d.ts +0 -17
  287. package/dist/config/index.d.ts +0 -1
  288. package/dist/context.d.ts +0 -14
  289. package/dist/create.d.ts +0 -3
  290. package/dist/directives/index.d.ts +0 -4
  291. package/dist/directives/plugins/permission.d.ts +0 -6
  292. package/dist/index-C1p_tY7i.js +0 -49
  293. package/dist/index-CCPTQYuB.js +0 -12910
  294. package/dist/index-CNUEMTao.js +0 -354
  295. package/dist/index-CmXo8ShY.js +0 -276
  296. package/dist/index-DL8Y7jFG.js +0 -137
  297. package/dist/index-DTQQt_XY.js +0 -10
  298. package/dist/index-Dj8zy7hH.js +0 -230
  299. package/dist/index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-BCo6Ft-Q.js +0 -2300
  300. package/dist/interface.d.ts +0 -29
  301. package/dist/locales/index.d.ts +0 -301
  302. package/dist/menu-CLiZ1BO_.js +0 -15315
  303. package/dist/pick-C9bU8_xv.js +0 -19
  304. package/dist/request.js +0 -1811
  305. package/dist/route/async.d.ts +0 -9
  306. package/dist/route/guard/auth.d.ts +0 -3
  307. package/dist/route/guard/basic.d.ts +0 -3
  308. package/dist/route/guard/index.d.ts +0 -3
  309. package/dist/route/guard/setting.d.ts +0 -3
  310. package/dist/route/index.d.ts +0 -7
  311. package/dist/route/routes.d.ts +0 -3
  312. package/dist/stores/index.d.ts +0 -5
  313. package/dist/stores/modules/user.d.ts +0 -4
  314. package/dist/stores/plugin/persist.d.ts +0 -5
  315. package/dist/stores/plugin/sideEffect/index.d.ts +0 -5
  316. package/dist/utils/crypto.d.ts +0 -4
  317. package/dist/utils/eventBus.d.ts +0 -5
  318. package/src/api/helper.ts +0 -64
  319. package/src/api/index.ts +0 -75
  320. package/src/api/interface.ts +0 -15
  321. package/src/api/request.ts +0 -4
  322. package/src/api/system/app.ts +0 -28
  323. package/src/assets/icons/add-child.svg +0 -1
  324. package/src/assets/icons/authority.svg +0 -1
  325. package/src/assets/icons/authorize.svg +0 -1
  326. package/src/assets/icons/blacklist-disable.svg +0 -1
  327. package/src/assets/icons/blacklist-enable.svg +0 -1
  328. package/src/assets/icons/browser-360.svg +0 -1
  329. package/src/assets/icons/browser-chrome.svg +0 -1
  330. package/src/assets/icons/browser-edge.svg +0 -1
  331. package/src/assets/icons/browser-ie.svg +0 -1
  332. package/src/assets/icons/browser-other.svg +0 -1
  333. package/src/assets/icons/browser-qq.svg +0 -1
  334. package/src/assets/icons/browser-safari.svg +0 -1
  335. package/src/assets/icons/browser-uc.svg +0 -1
  336. package/src/assets/icons/edit.svg +0 -1
  337. package/src/assets/icons/empty-data.svg +0 -1
  338. package/src/assets/icons/icard.svg +0 -1
  339. package/src/assets/icons/icon_animation.svg +0 -1
  340. package/src/assets/icons/icon_breadcrumb.svg +0 -1
  341. package/src/assets/icons/icon_copyright.svg +0 -1
  342. package/src/assets/icons/icon_jt.svg +0 -1
  343. package/src/assets/icons/icon_layout.svg +0 -1
  344. package/src/assets/icons/icon_mainpage.svg +0 -1
  345. package/src/assets/icons/icon_menu.svg +0 -1
  346. package/src/assets/icons/icon_page_size.svg +0 -1
  347. package/src/assets/icons/icon_position_type.svg +0 -1
  348. package/src/assets/icons/icon_safe_manage.svg +0 -1
  349. package/src/assets/icons/icon_screen_scale.svg +0 -6
  350. package/src/assets/icons/icon_system_manage.svg +0 -1
  351. package/src/assets/icons/icon_tabbar.svg +0 -1
  352. package/src/assets/icons/icon_toolbar.svg +0 -1
  353. package/src/assets/icons/icon_topbar.svg +0 -1
  354. package/src/assets/icons/icon_watermark.svg +0 -1
  355. package/src/assets/icons/image-load-fail.svg +0 -1
  356. package/src/assets/icons/log-center.svg +0 -1
  357. package/src/assets/icons/logo-sig.svg +0 -1
  358. package/src/assets/icons/not-data.svg +0 -1
  359. package/src/assets/icons/org-main.svg +0 -1
  360. package/src/assets/icons/org-unmain.svg +0 -1
  361. package/src/assets/icons/process-management.svg +0 -1
  362. package/src/assets/icons/project-management.svg +0 -1
  363. package/src/assets/icons/rbac.svg +0 -1
  364. package/src/assets/icons/remove.svg +0 -1
  365. package/src/assets/icons/resource-app.svg +0 -1
  366. package/src/assets/icons/resource-btn.svg +0 -1
  367. package/src/assets/icons/resource-index.svg +0 -1
  368. package/src/assets/icons/resource-menu.svg +0 -1
  369. package/src/assets/icons/resource-nonmenu.svg +0 -1
  370. package/src/assets/icons/setting-manage.svg +0 -1
  371. package/src/assets/icons/test.svg +0 -1
  372. package/src/assets/icons/theme-check-mark.svg +0 -1
  373. package/src/assets/icons/theme-title.svg +0 -1
  374. package/src/assets/icons/tree_icon.svg +0 -1
  375. package/src/assets/icons/tree_icon_checked.svg +0 -1
  376. package/src/assets/icons/view.svg +0 -1
  377. package/src/assets/icons/workbench.svg +0 -1
  378. package/src/assets/icons/zddata.svg +0 -1
  379. package/src/assets/icons/zy_checked.svg +0 -1
  380. package/src/assets/icons/zy_default.svg +0 -1
  381. package/src/assets/images/layout/item1.webp +0 -0
  382. package/src/assets/images/layout/item1_dark.webp +0 -0
  383. package/src/assets/images/layout/item2.webp +0 -0
  384. package/src/assets/images/layout/item2_dark.webp +0 -0
  385. package/src/assets/images/layout/item3.webp +0 -0
  386. package/src/assets/images/layout/item3_dark.webp +0 -0
  387. package/src/assets/images/layout/item4.webp +0 -0
  388. package/src/assets/images/layout/item4_dark.webp +0 -0
  389. package/src/assets/images/layout/item5.webp +0 -0
  390. package/src/assets/images/layout/item5_dark.webp +0 -0
  391. package/src/assets/images/page-width/anto_min_w_dark.webp +0 -0
  392. package/src/assets/images/page-width/auto.webp +0 -0
  393. package/src/assets/images/page-width/auto_dark.webp +0 -0
  394. package/src/assets/images/page-width/auto_min_w.webp +0 -0
  395. package/src/assets/images/page-width/auto_min_w_dark.webp +0 -0
  396. package/src/assets/images/page-width/icon_auto.webp +0 -0
  397. package/src/assets/images/page-width/icon_auto_dark.webp +0 -0
  398. package/src/assets/images/page-width/icon_auto_min_w.webp +0 -0
  399. package/src/assets/images/page-width/icon_auto_min_w_dark.webp +0 -0
  400. package/src/assets/images/page-width/icon_middle.webp +0 -0
  401. package/src/assets/images/page-width/icon_middle_dark.webp +0 -0
  402. package/src/assets/images/page-width/icon_middle_max_w.webp +0 -0
  403. package/src/assets/images/page-width/icon_middle_max_w_dark.webp +0 -0
  404. package/src/assets/images/page-width/middle.webp +0 -0
  405. package/src/assets/images/page-width/middle_dark.webp +0 -0
  406. package/src/assets/images/page-width/middle_max_w.webp +0 -0
  407. package/src/assets/images/page-width/middle_max_w_dark.webp +0 -0
  408. package/src/assets/styles/globals.scss +0 -189
  409. package/src/assets/styles/nprogress.scss +0 -63
  410. package/src/assets/styles/rbac.scss +0 -61
  411. package/src/assets/styles/resources/utils.scss +0 -53
  412. package/src/assets/styles/resources/variables.scss +0 -6
  413. package/src/components/PubinfoIcon/index.vue +0 -85
  414. package/src/config/index.ts +0 -1
  415. package/src/context.ts +0 -30
  416. package/src/create.ts +0 -88
  417. package/src/directives/index.ts +0 -6
  418. package/src/interface.ts +0 -35
  419. package/src/layout/Layout.vue +0 -330
  420. package/src/layout/components/Content/index.vue +0 -100
  421. package/src/layout/components/Header/TopMode/NotCursor.vue +0 -77
  422. package/src/layout/components/Header/index.vue +0 -263
  423. package/src/layout/components/SettingBar/components/SettingEnableTransition.vue +0 -215
  424. package/src/layout/components/SettingBar/components/SettingMode.vue +0 -164
  425. package/src/layout/components/SettingBar/index.vue +0 -112
  426. package/src/layout/components/Tools/Breadcrumb/index.vue +0 -21
  427. package/src/layout/components/Tools/DayNightSwitch.vue +0 -93
  428. package/src/layout/components/Tools/I18nSelector.vue +0 -52
  429. package/src/layout/ui-kit/HDivider.vue +0 -53
  430. package/src/layout/ui-kit/HToggle.vue +0 -177
  431. package/src/pages/system/change-password/page.vue +0 -58
  432. package/src/pages/system/index.vue +0 -5
  433. package/src/route/async.ts +0 -18
  434. package/src/route/guard/basic.ts +0 -23
  435. package/src/route/guard/index.ts +0 -3
  436. package/src/route/index.ts +0 -12
  437. package/src/route/routes.ts +0 -101
  438. package/src/stores/index.ts +0 -10
  439. package/src/stores/plugin/persist.ts +0 -27
  440. package/src/stores/plugin/sideEffect/index.ts +0 -15
  441. package/src/utils/eventBus.ts +0 -15
  442. package/dist/{api/enum/code.d.ts → built-in/authentication/enum.d.ts} +0 -0
  443. package/dist/{components/NotAllowed → built-in/authentication/pages/change-organization}/index.vue.d.ts +0 -0
  444. package/dist/{pages/system → built-in/authentication/pages}/change-password/components/ChangePasswordForm/index.vue.d.ts +0 -0
  445. package/dist/{pages/system → built-in/authentication/pages}/change-password/index.vue.d.ts +0 -0
  446. package/dist/{layout/components/Topbar/Toolbar → built-in/authorization/pages/not-permission}/index.vue.d.ts +0 -0
  447. package/dist/{components/PubinfoApp → built-in/layout-component/components/BackTop}/index.vue.d.ts +0 -0
  448. package/dist/{layout → built-in/layout-component}/components/Content/IframeView.vue.d.ts +0 -0
  449. package/dist/{layout → built-in/layout-component}/components/Content/LinkView.vue.d.ts +0 -0
  450. package/dist/{layout/components/BackTop → built-in/layout-component/components/Content}/index.vue.d.ts +0 -0
  451. package/dist/{layout/components/Content → built-in/layout-component/components/Copyright}/index.vue.d.ts +0 -0
  452. package/dist/{layout → built-in/layout-component}/components/Header/TopMode/index.vue.d.ts +0 -0
  453. package/dist/{layout → built-in/layout-component}/components/Header/TopThinMode.vue.d.ts +0 -0
  454. package/dist/{layout → built-in/layout-component}/components/Header/index.vue.d.ts +0 -0
  455. package/dist/{layout → built-in/layout-component}/components/Logo/index.vue.d.ts +0 -0
  456. package/dist/{layout → built-in/layout-component}/components/Menu/index.vue.d.ts +0 -0
  457. package/dist/{layout → built-in/layout-component}/components/Menu/item.vue.d.ts +0 -0
  458. package/dist/{layout → built-in/layout-component}/components/SettingBar/AppSetting.vue.d.ts +0 -0
  459. package/dist/{layout → built-in/layout-component}/components/SettingBar/components/DayNightToggle.vue.d.ts +0 -0
  460. package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingBreadcrumb.vue.d.ts +0 -0
  461. package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingCopyright.vue.d.ts +0 -0
  462. package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingEnableTransition.vue.d.ts +0 -0
  463. package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingHome.vue.d.ts +0 -0
  464. package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingMenu.vue.d.ts +0 -0
  465. package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingMode.vue.d.ts +0 -0
  466. package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingNavSearch.vue.d.ts +0 -0
  467. package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingOther.vue.d.ts +0 -0
  468. package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingPage.vue.d.ts +0 -0
  469. package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingTabbar.vue.d.ts +0 -0
  470. package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingThemes.vue.d.ts +0 -0
  471. package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingToolbar.vue.d.ts +0 -0
  472. package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingTopbar.vue.d.ts +0 -0
  473. package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingWidthMode.vue.d.ts +0 -0
  474. package/dist/{layout/components/Copyright → built-in/layout-component/components/SettingBar}/index.vue.d.ts +0 -0
  475. package/dist/{layout → built-in/layout-component}/components/Sidebar/MainSidebar.vue.d.ts +0 -0
  476. package/dist/{layout → built-in/layout-component}/components/Sidebar/SubSidebar.vue.d.ts +0 -0
  477. package/dist/{layout/components/SettingBar → built-in/layout-component/components/Sidebar}/index.vue.d.ts +0 -0
  478. package/dist/{layout → built-in/layout-component}/components/Tools/Breadcrumb/index.vue.d.ts +0 -0
  479. package/dist/{layout → built-in/layout-component}/components/Tools/Breadcrumb/item.vue.d.ts +0 -0
  480. package/dist/{layout → built-in/layout-component}/components/Tools/DayNightSwitch.vue.d.ts +0 -0
  481. package/dist/{layout → built-in/layout-component}/components/Tools/HotkeysIntro.vue.d.ts +0 -0
  482. package/dist/{layout → built-in/layout-component}/components/Tools/Preferences/PreferencesContent.vue.d.ts +0 -0
  483. package/dist/{layout → built-in/layout-component}/components/Tools/Preferences/index.vue.d.ts +0 -0
  484. package/dist/{layout → built-in/layout-component}/components/Topbar/Tabbar/index.vue.d.ts +0 -0
  485. package/dist/{layout → built-in/layout-component}/components/Topbar/Toolbar/Favorites.vue.d.ts +0 -0
  486. package/dist/{layout → built-in/layout-component}/components/Topbar/Toolbar/Star.vue.d.ts +0 -0
  487. package/dist/{layout/components/Topbar → built-in/layout-component/components/Topbar/Toolbar}/index.vue.d.ts +0 -0
  488. package/dist/{pages/personal/profile → built-in/layout-component/components/Topbar}/index.vue.d.ts +0 -0
  489. package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HBadge.vue.d.ts +0 -0
  490. package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HButton.vue.d.ts +1 -1
  491. package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HCheckList.vue.d.ts +2 -2
  492. package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HDivider.vue.d.ts +0 -0
  493. package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HDropdown.vue.d.ts +0 -0
  494. package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HDropdownMenu.vue.d.ts +0 -0
  495. package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HDropdownTree.vue.d.ts +0 -0
  496. package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HInput.vue.d.ts +0 -0
  497. package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HKbd.vue.d.ts +0 -0
  498. package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HSelect.vue.d.ts +0 -0
  499. package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HToggle.vue.d.ts +0 -0
  500. package/dist/{layout → built-in/layout-component}/composables/useGetComputedStyle.d.ts +0 -0
  501. package/dist/{layout → built-in/layout-component}/composables/useMainPage.d.ts +0 -0
  502. package/dist/{layout → built-in/layout-component}/composables/useTabbar.d.ts +0 -0
  503. package/dist/{layout → built-in/layout-component}/composables/useTitle.d.ts +0 -0
  504. package/dist/{layout → built-in/layout-component}/composables/useViewTransition.d.ts +0 -0
  505. package/dist/{layout → built-in/layout-component}/composables/useWatermark.d.ts +0 -0
  506. package/dist/{pages/system/change-organization → built-in/layout-component/pages/reload}/index.vue.d.ts +0 -0
  507. package/dist/{layout → built-in/layout-component}/provider.d.ts +0 -0
  508. package/dist/{utils → built-in/layout-component/utils}/injectionKeys.d.ts +0 -0
  509. package/dist/{locales → built-in/locales}/lang/en.json.d.ts +0 -0
  510. package/dist/{locales → built-in/locales}/lang/zh-cn.json.d.ts +0 -0
  511. package/dist/{locales → built-in/locales}/lang/zh-tw.json.d.ts +0 -0
  512. package/dist/{locales → built-in/locales}/ui.d.ts +0 -0
  513. package/dist/{stores → built-in/pinia-plugin}/helper.d.ts +0 -0
  514. package/dist/{stores/plugin/sideEffect → built-in/pinia-plugin/plugins}/cleanup.d.ts +0 -0
  515. package/dist/{stores/plugin/sideEffect → built-in/pinia-plugin/plugins}/favoritesStorage.d.ts +0 -0
  516. package/dist/{stores/plugin/sideEffect → built-in/pinia-plugin/plugins}/iframeCache.d.ts +0 -0
  517. package/dist/{stores/plugin/sideEffect → built-in/pinia-plugin/plugins}/tabbarStorage.d.ts +0 -0
  518. package/dist/{utils → core}/utils.d.ts +0 -0
  519. package/dist/{api → features/api}/modules/auth/index.d.ts +0 -0
  520. package/dist/{api → features/api}/modules/configData/heibaimingdanfuwu.d.ts +0 -0
  521. package/dist/{api → features/api}/modules/configData/xitongpeizhifuwu.d.ts +0 -0
  522. package/dist/{api/modules/configData/zidianfuwu.d.ts → features/api/modules/configData/zidifuwu.d.ts} +0 -0
  523. package/dist/{api → features/api}/modules/rbac/gangweijiekou.d.ts +0 -0
  524. package/dist/{api → features/api}/modules/rbac/index.d.ts +0 -0
  525. package/dist/{api → features/api}/modules/rbac/jiaosejiekou.d.ts +0 -0
  526. package/dist/{api → features/api}/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +0 -0
  527. package/dist/{api → features/api}/modules/rbac/yonghujiekou.d.ts +0 -0
  528. package/dist/{api → features/api}/modules/rbac/yonghushoucangbiaojiekou.d.ts +0 -0
  529. package/dist/{api → features/api}/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +0 -0
  530. package/dist/{api → features/api}/modules/rbac/zuhuguanlijiekou.d.ts +0 -0
  531. package/dist/{api → features/api}/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +0 -0
  532. package/dist/{api → features/api}/modules/rbac/zuzhijiekou.d.ts +0 -0
  533. package/dist/{api → features/api}/system/user.d.ts +0 -0
  534. package/dist/{pages/system → features/components/MicroAppContainer}/index.vue.d.ts +0 -0
  535. package/dist/{pages/system/not-permission → features/components/NotAllowed}/index.vue.d.ts +0 -0
  536. package/dist/{components → features/components}/PageHeader/index.vue.d.ts +0 -0
  537. package/dist/{components → features/components}/PageMain/index.vue.d.ts +0 -0
  538. package/dist/{components → features/components}/PassStrengthValidator/index.vue.d.ts +2 -2
  539. package/dist/{components → features/components}/PassStrengthValidator/rule.vue.d.ts +0 -0
  540. package/dist/{layout/components/Sidebar → features/components/PubinfoApp}/index.vue.d.ts +0 -0
  541. package/dist/{components → features/components}/PubinfoIcon/index.vue.d.ts +0 -0
  542. package/dist/{components → features/components}/PubinfoProvider/index.d.ts +0 -0
  543. package/dist/{components → features/components}/index.d.ts +0 -0
  544. package/dist/{composables → features/composables}/index.d.ts +0 -0
  545. package/dist/{composables → features/composables}/log.d.ts +0 -0
  546. package/dist/{composables → features/composables}/theme.d.ts +0 -0
  547. package/dist/{composables → features/composables}/watchDiff.d.ts +0 -0
  548. package/dist/{pages/system/[...all].vue.d.ts → features/pages/not-found/index.vue.d.ts} +0 -0
  549. package/dist/{pages/system/reload.vue.d.ts → features/pages/profile/index.vue.d.ts} +0 -0
  550. package/dist/{config/settings.d.ts → features/settings/index.d.ts} +0 -0
  551. package/dist/{stores/enum/index.d.ts → features/stores/enum.d.ts} +0 -0
  552. package/dist/{stores → features/stores}/modules/iframe.d.ts +0 -0
  553. package/dist/{stores → features/stores}/modules/index.d.ts +0 -0
  554. package/dist/{stores → features/stores}/modules/keepAlive.d.ts +0 -0
  555. package/dist/{stores → features/stores}/modules/menu.d.ts +0 -0
  556. package/dist/{stores → features/stores}/modules/settings.d.ts +0 -0
  557. package/src/{api/enum/code.ts → built-in/authentication/enum.ts} +0 -0
  558. package/src/{assets/icons → built-in/authentication/pages/change-organization/assets}/change-org.svg +0 -0
  559. package/src/{assets/images → built-in/authentication/pages/change-organization/assets}/login-small.png +0 -0
  560. package/src/{assets/images → built-in/authentication/pages/change-organization/assets}/login-small_dark.webp +0 -0
  561. package/src/{assets/icons → built-in/authentication/pages/change-password/assets}/mima.svg +0 -0
  562. package/src/{assets/icons → built-in/authorization/pages/not-permission}/403.svg +0 -0
  563. package/src/{assets/icons → built-in/authorization/pages/not-permission}/403_dark.svg +0 -0
  564. package/src/{assets → built-in/layout-component/assets}/icons/favorites.svg +0 -0
  565. package/src/{assets → built-in/layout-component/assets}/icons/toolbar-collapse.svg +0 -0
  566. package/src/{assets → built-in/layout-component/assets}/images/not-cursor.png +0 -0
  567. package/src/{layout → built-in/layout-component}/components/BackTop/index.vue +0 -0
  568. package/src/{layout → built-in/layout-component}/components/Header/TopThinMode.vue +0 -0
  569. package/src/{layout → built-in/layout-component}/components/Menu/sub.vue +0 -0
  570. package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingBreadcrumb.vue +0 -0
  571. package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingCopyright.vue +0 -0
  572. package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingHome.vue +0 -0
  573. package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingMenu.vue +0 -0
  574. package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingNavSearch.vue +0 -0
  575. package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingOther.vue +0 -0
  576. package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingPage.vue +0 -0
  577. package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingTabbar.vue +0 -0
  578. package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingToolbar.vue +0 -0
  579. package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingTopbar.vue +0 -0
  580. package/src/{layout → built-in/layout-component}/components/Sidebar/index.vue +0 -0
  581. package/src/{layout → built-in/layout-component}/components/Tools/Breadcrumb/item.vue +0 -0
  582. package/src/{layout → built-in/layout-component}/components/Tools/HotkeysIntro.vue +0 -0
  583. package/src/{layout → built-in/layout-component}/components/Tools/Preferences/index.vue +0 -0
  584. package/src/{layout → built-in/layout-component}/components/Topbar/Toolbar/Star.vue +0 -0
  585. package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HBadge.vue +0 -0
  586. package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HButton.vue +0 -0
  587. package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HDropdown.vue +0 -0
  588. package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HInput.vue +0 -0
  589. package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HKbd.vue +0 -0
  590. package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HSelect.vue +0 -0
  591. package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HTabList.vue +0 -0
  592. package/src/{layout → built-in/layout-component}/composables/useViewTransition.ts +0 -0
  593. package/src/{pages/system/reload.vue → built-in/layout-component/pages/reload/index.vue} +0 -0
  594. package/src/{utils → built-in/layout-component/utils}/injectionKeys.ts +0 -0
  595. package/src/{locales → built-in/locales}/lang/en.json +0 -0
  596. package/src/{locales → built-in/locales}/lang/zh-cn.json +0 -0
  597. package/src/{locales → built-in/locales}/lang/zh-tw.json +0 -0
  598. package/src/{locales → built-in/locales}/ui.ts +0 -0
  599. package/src/{utils → core}/utils.ts +0 -0
  600. package/src/{api → features/api}/modules/auth/index.ts +0 -0
  601. package/src/{api → features/api}/modules/rbac/index.ts +0 -0
  602. package/src/{api → features/api}/system/typings.d.ts +0 -0
  603. package/src/{assets → features/assets}/fonts/digital-7/digital-7-webfont.eot +0 -0
  604. package/src/{assets → features/assets}/fonts/digital-7/digital-7-webfont.svg +0 -0
  605. package/src/{assets → features/assets}/fonts/digital-7/digital-7-webfont.woff +0 -0
  606. package/src/{assets → features/assets}/fonts/digital-7/digital-7-webfont.woff2 +0 -0
  607. package/src/{assets → features/assets}/fonts/digital-7/stylesheet.css +0 -0
  608. package/src/{assets → features/assets}/fonts/digital-7_mono/digital-7_mono-webfont.eot +0 -0
  609. package/src/{assets → features/assets}/fonts/digital-7_mono/digital-7_mono-webfont.svg +0 -0
  610. package/src/{assets → features/assets}/fonts/digital-7_mono/digital-7_mono-webfont.woff +0 -0
  611. package/src/{assets → features/assets}/fonts/digital-7_mono/digital-7_mono-webfont.woff2 +0 -0
  612. package/src/{assets → features/assets}/fonts/digital-7_mono/stylesheet.css +0 -0
  613. package/src/{assets → features/assets}/fonts/title.otf +0 -0
  614. package/src/{assets → features/assets}/images/change-org-bc.webp +0 -0
  615. package/src/{assets → features/assets}/images/header-bg.png +0 -0
  616. package/src/{assets → features/assets}/images/logo.png +0 -0
  617. package/src/{assets → features/assets}/images/org.svg +0 -0
  618. package/src/{assets → features/assets}/images/slider-bg.png +0 -0
  619. package/src/{components → features/components}/PageHeader/index.vue +0 -0
  620. package/src/{components → features/components}/PageMain/index.vue +0 -0
  621. package/src/{components → features/components}/index.ts +0 -0
  622. package/src/{composables → features/composables}/index.ts +0 -0
  623. package/src/{composables → features/composables}/log.ts +0 -0
  624. package/src/{assets/icons → features/pages/not-found/assets}/404.svg +0 -0
  625. package/src/{assets/icons → features/pages/not-found/assets}/404_dark.svg +0 -0
  626. package/src/{stores → features/stores}/modules/favorites.ts +1 -1
  627. /package/src/{stores → features/stores}/modules/iframe.ts +0 -0
  628. /package/src/{stores → features/stores}/modules/index.ts +0 -0
package/dist/request.js DELETED
@@ -1,1811 +0,0 @@
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 "./menu-CLiZ1BO_.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, z = (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
- z(t[o]) && z(r) ? t[o] = re(t[o], r) : z(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"), zt = (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
- ), $t = 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: z,
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: zt,
230
- setImmediate: Be,
231
- asap: $t
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 ze(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(ze(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 $(e) {
630
- return e === !1 || e == null ? e : a.isArray(e) ? e.map($) : 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] = $(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] = $(s), delete n[o];
739
- return;
740
- }
741
- const c = t ? fn(o) : String(o).trim();
742
- c !== o && delete n[o], n[c] = $(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 $e(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 $e(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 = $e;
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) => ze(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 zn(e) {
1757
- return e === Ye.ACCESS_TOKEN_INVALID;
1758
- }
1759
- function $n(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) => zn(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
- $n(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
- };