@unicom-cloud/utils 0.1.26 → 0.1.27

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 (387) hide show
  1. package/axios/chunk/BJvTEV6n.js +253 -0
  2. package/axios/{lib/core/AxiosError.js → chunk/CB3wlosT.js} +5 -5
  3. package/axios/index.d.ts +6 -1
  4. package/axios/index.js +22 -20
  5. package/axios/lib/axios.js +1633 -45
  6. package/axios/lib/utils.js +3 -246
  7. package/{axios-mock-adapter → axios/mock-adapter}/index.js +16 -17
  8. package/{axios-mock-adapter → axios/mock-adapter}/request.js +5 -6
  9. package/{axios-mock-adapter → axios/mock-adapter}/utils.js +13 -12
  10. package/case-name/index.js +1 -1
  11. package/caseName.js +1 -1
  12. package/class-name/index.js +1 -1
  13. package/className.js +1 -1
  14. package/clipboard-copy/index.js +1 -1
  15. package/clipboardCopy.js +1 -1
  16. package/constant/address.js +1 -1
  17. package/constant/chineseCharacters.js +1 -1
  18. package/constant/constellations.js +1 -1
  19. package/constant/domain.js +1 -1
  20. package/constant/emoji.js +1 -1
  21. package/constant/identity.js +1 -1
  22. package/constant/index.js +1 -1
  23. package/constant/keyboardCode.js +1 -1
  24. package/constant/licensePlate.js +1 -1
  25. package/constant/name.js +1 -1
  26. package/constant/platform.js +16 -17
  27. package/constant/protocol.js +1 -1
  28. package/constant/ui.js +16 -16
  29. package/constant.js +1 -1
  30. package/content-disposition/index.js +1 -1
  31. package/contentDisposition.js +1 -1
  32. package/cookie/index.js +1 -1
  33. package/cookie/src/index.js +1 -1
  34. package/cookie.js +1 -1
  35. package/date/convertTime.js +1 -1
  36. package/date/convertToDuration.js +1 -1
  37. package/date/index.js +1 -1
  38. package/date.js +1 -1
  39. package/decimal/decimal.js +1 -8
  40. package/decimal/index.js +1 -1
  41. package/decimal.js +1 -1
  42. package/dom-helpers/activeElement.js +1 -1
  43. package/dom-helpers/addClass.js +1 -1
  44. package/dom-helpers/addEventListener.js +1 -1
  45. package/dom-helpers/animate.js +1 -1
  46. package/dom-helpers/animationFrame.js +1 -1
  47. package/dom-helpers/attribute.js +1 -1
  48. package/dom-helpers/camelize.js +1 -1
  49. package/dom-helpers/camelizeStyle.js +1 -1
  50. package/dom-helpers/canUseDOM.js +1 -1
  51. package/dom-helpers/childElements.js +1 -1
  52. package/dom-helpers/childNodes.js +1 -1
  53. package/dom-helpers/clear.js +1 -1
  54. package/dom-helpers/closest.js +1 -1
  55. package/dom-helpers/collectElements.js +1 -1
  56. package/dom-helpers/collectSiblings.js +1 -1
  57. package/dom-helpers/contains.js +1 -1
  58. package/dom-helpers/css.js +1 -1
  59. package/dom-helpers/filterEventHandler.js +1 -1
  60. package/dom-helpers/getComputedStyle.js +1 -1
  61. package/dom-helpers/getScrollAccessor.js +1 -1
  62. package/dom-helpers/hasClass.js +1 -1
  63. package/dom-helpers/height.js +1 -1
  64. package/dom-helpers/hyphenate.js +1 -1
  65. package/dom-helpers/hyphenateStyle.js +1 -1
  66. package/dom-helpers/index.js +1 -1
  67. package/dom-helpers/insertAfter.js +1 -1
  68. package/dom-helpers/isDocument.js +1 -1
  69. package/dom-helpers/isInput.js +1 -1
  70. package/dom-helpers/isTransform.js +1 -1
  71. package/dom-helpers/isVisible.js +1 -1
  72. package/dom-helpers/isWindow.js +1 -1
  73. package/dom-helpers/listen.js +1 -1
  74. package/dom-helpers/matches.js +1 -1
  75. package/dom-helpers/nextUntil.js +1 -1
  76. package/dom-helpers/offset.js +1 -1
  77. package/dom-helpers/offsetParent.js +1 -1
  78. package/dom-helpers/ownerDocument.js +1 -1
  79. package/dom-helpers/ownerWindow.js +1 -1
  80. package/dom-helpers/parents.js +1 -1
  81. package/dom-helpers/position.js +1 -1
  82. package/dom-helpers/prepend.js +1 -1
  83. package/dom-helpers/querySelectorAll.js +1 -1
  84. package/dom-helpers/reflow.js +1 -1
  85. package/dom-helpers/remove.js +1 -1
  86. package/dom-helpers/removeClass.js +1 -1
  87. package/dom-helpers/removeEventListener.js +1 -1
  88. package/dom-helpers/scrollLeft.js +1 -1
  89. package/dom-helpers/scrollParent.js +1 -1
  90. package/dom-helpers/scrollTo.js +1 -1
  91. package/dom-helpers/scrollTop.js +1 -1
  92. package/dom-helpers/scrollbarSize.js +1 -1
  93. package/dom-helpers/siblings.js +1 -1
  94. package/dom-helpers/text.js +1 -1
  95. package/dom-helpers/toggleClass.js +1 -1
  96. package/dom-helpers/transitionEnd.js +1 -1
  97. package/dom-helpers/triggerEvent.js +1 -1
  98. package/dom-helpers/types.js +1 -1
  99. package/dom-helpers/width.js +1 -1
  100. package/domHelpers.js +1 -1
  101. package/emitter/index.js +1 -1
  102. package/emitter/src/index.js +1 -1
  103. package/emitter.js +1 -1
  104. package/file/fileToURL.js +1 -1
  105. package/file/index.js +1 -1
  106. package/file/saveAs.js +1 -1
  107. package/file.js +1 -1
  108. package/idb/index.js +1 -1
  109. package/idb.js +1 -1
  110. package/index.js +1 -1
  111. package/invariant/index.js +1 -1
  112. package/invariant.js +1 -1
  113. package/is/index.js +1 -1
  114. package/is.js +1 -1
  115. package/js-cookie/index.js +1 -1
  116. package/js-cookie/src/api.js +1 -1
  117. package/js-cookie/src/assign.js +1 -1
  118. package/js-cookie/src/converter.js +1 -1
  119. package/jsCookie.js +1 -1
  120. package/lunar/index.js +1 -1
  121. package/lunar/lib/Holiday.js +1 -1
  122. package/lunar/lib/HolidayUtil.js +1 -1
  123. package/lunar/lib/I18n.js +1 -1
  124. package/lunar/lib/JieQi.js +1 -1
  125. package/lunar/lib/Lunar.js +1 -1
  126. package/lunar/lib/LunarMonth.js +1 -1
  127. package/lunar/lib/LunarTime.js +1 -1
  128. package/lunar/lib/LunarUtil.js +1 -1
  129. package/lunar/lib/LunarYear.js +1 -1
  130. package/lunar/lib/ShouXingUtil.js +1 -1
  131. package/lunar/lib/Solar.js +1 -1
  132. package/lunar/lib/SolarHalfYear.js +1 -1
  133. package/lunar/lib/SolarMonth.js +1 -1
  134. package/lunar/lib/SolarSeason.js +1 -1
  135. package/lunar/lib/SolarUtil.js +1 -1
  136. package/lunar/lib/SolarWeek.js +1 -1
  137. package/lunar/lib/SolarYear.js +1 -1
  138. package/lunar/lib/index.js +1 -1
  139. package/lunar.js +1 -1
  140. package/math/index.js +1 -1
  141. package/math.js +1 -1
  142. package/md5/index.js +1 -1
  143. package/md5.js +1 -1
  144. package/mock/MockWebSocket.js +1 -1
  145. package/mock/MockXMLHttpRequest.js +1 -1
  146. package/mock/index.js +1 -1
  147. package/mock.js +1 -1
  148. package/normalize-wheel/ExecutionEnvironment.js +1 -1
  149. package/normalize-wheel/UserAgent_DEPRECATED.js +1 -1
  150. package/normalize-wheel/index.js +1 -1
  151. package/normalize-wheel/isEventSupported.js +1 -15
  152. package/normalizeWheel.js +1 -1
  153. package/number-to-chinese/index.js +1 -1
  154. package/numberToChinese.js +1 -1
  155. package/nzh/cn.js +1 -1
  156. package/nzh/hk.js +1 -1
  157. package/nzh/index.js +1 -1
  158. package/nzh/nzh.js +1 -1
  159. package/nzh/src/autoGet.js +1 -1
  160. package/nzh/src/index.js +1 -1
  161. package/nzh/src/langs/cn_b.js +1 -1
  162. package/nzh/src/langs/cn_s.js +1 -1
  163. package/nzh/src/langs/hk_b.js +1 -1
  164. package/nzh/src/langs/hk_s.js +1 -1
  165. package/nzh/src/utils.js +1 -1
  166. package/nzh.js +1 -1
  167. package/object-keys-sort/index.js +1 -1
  168. package/object-prototype-to-string-call/index.js +1 -1
  169. package/objectKeysSort.js +1 -1
  170. package/objectPrototypeToStringCall.js +1 -1
  171. package/package.json +1 -1
  172. package/pinyin/index.js +1 -1
  173. package/pinyin/simplified.js +1 -1
  174. package/pinyin/src/core.js +1 -1
  175. package/pinyin/src/simplified.js +1 -1
  176. package/pinyin/src/simplified_dict.js +1 -1
  177. package/pinyin/src/traditional.js +1 -1
  178. package/pinyin/src/traditional_dict.js +1 -1
  179. package/pinyin/traditional.js +1 -1
  180. package/pinyin.js +1 -1
  181. package/query-string/base.js +1 -1
  182. package/query-string/index.js +1 -1
  183. package/query-string/splitOnFirst.js +1 -1
  184. package/queryString.js +1 -1
  185. package/random/address.js +1 -1
  186. package/random/constellation.js +1 -1
  187. package/random/image.js +1 -1
  188. package/random/index.js +1 -1
  189. package/random/licensePlate.js +1 -1
  190. package/random/name.js +1 -1
  191. package/random/number.js +1 -1
  192. package/random/text.js +1 -1
  193. package/random/time.js +1 -1
  194. package/random/web.js +1 -1
  195. package/random.js +1 -1
  196. package/screenfull/index.js +1 -1
  197. package/screenfull.js +1 -1
  198. package/sleep/index.js +1 -1
  199. package/sleep.js +1 -1
  200. package/snapdom/index.js +1 -1
  201. package/snapdom/src/api/preCache.js +1 -1
  202. package/snapdom/src/api/snapdom.js +1 -1
  203. package/snapdom/src/core/cache.js +1 -1
  204. package/snapdom/src/core/capture.js +1 -1
  205. package/snapdom/src/core/clone.js +1 -1
  206. package/snapdom/src/core/context.js +1 -1
  207. package/snapdom/src/core/plugins.js +1 -1
  208. package/snapdom/src/core/prepare.js +1 -1
  209. package/snapdom/src/exporters/download.js +1 -1
  210. package/snapdom/src/exporters/toBlob.js +1 -1
  211. package/snapdom/src/exporters/toCanvas.js +1 -1
  212. package/snapdom/src/exporters/toImg.js +1 -1
  213. package/snapdom/src/modules/CSSVar.js +1 -1
  214. package/snapdom/src/modules/background.js +1 -1
  215. package/snapdom/src/modules/changeCSS.js +1 -1
  216. package/snapdom/src/modules/counter.js +1 -1
  217. package/snapdom/src/modules/fonts.js +1 -1
  218. package/snapdom/src/modules/iconFonts.js +1 -1
  219. package/snapdom/src/modules/images.js +1 -1
  220. package/snapdom/src/modules/lineClamp.js +1 -1
  221. package/snapdom/src/modules/pseudo.js +1 -1
  222. package/snapdom/src/modules/rasterize.js +1 -1
  223. package/snapdom/src/modules/snapFetch.js +1 -1
  224. package/snapdom/src/modules/styles.js +1 -1
  225. package/snapdom/src/modules/svgDefs.js +1 -1
  226. package/snapdom/src/utils/browser.js +1 -1
  227. package/snapdom/src/utils/css.js +1 -1
  228. package/snapdom/src/utils/helpers.js +1 -1
  229. package/snapdom/src/utils/image.js +1 -1
  230. package/snapdom.js +1 -1
  231. package/tinycolor/index.js +1 -1
  232. package/tinycolor/src/conversion.js +1 -1
  233. package/tinycolor/src/css-color-names.js +1 -1
  234. package/tinycolor/src/format-input.js +1 -1
  235. package/tinycolor/src/from-ratio.js +1 -1
  236. package/tinycolor/src/index.js +1 -1
  237. package/tinycolor/src/random.js +1 -1
  238. package/tinycolor/src/readability.js +1 -1
  239. package/tinycolor/src/to-ms-filter.js +1 -1
  240. package/tinycolor/src/utils.js +1 -1
  241. package/tinycolor.js +1 -1
  242. package/tree/index.js +1 -1
  243. package/tree/search/index.js +1 -1
  244. package/tree.js +1 -1
  245. package/tween/index.js +1 -1
  246. package/tween/src/easing.js +1 -1
  247. package/tween/src/tween.js +1 -1
  248. package/tween.js +1 -1
  249. package/types/constant/platform.d.ts +8 -7
  250. package/types/snapdom/src/core/context.d.ts +1 -1
  251. package/ui-color/compareColorByRange.js +1 -1
  252. package/ui-color/index.js +1 -1
  253. package/uiColor.js +1 -1
  254. package/url-toolkit/index.js +1 -1
  255. package/url-toolkit/src/url-toolkit.js +1 -1
  256. package/urlToolkit.js +1 -1
  257. package/validate/index.js +1 -1
  258. package/validate/src/index.js +1 -1
  259. package/validate/src/locale/en-US.js +1 -1
  260. package/validate/src/locale/zh-CN.js +1 -1
  261. package/validate/src/message.js +1 -1
  262. package/validate/src/rules/array.js +1 -1
  263. package/validate/src/rules/base.js +1 -1
  264. package/validate/src/rules/boolean.js +1 -1
  265. package/validate/src/rules/custom.js +1 -1
  266. package/validate/src/rules/number.js +1 -1
  267. package/validate/src/rules/object.js +1 -1
  268. package/validate/src/rules/string.js +1 -1
  269. package/validate/src/rules/type.js +1 -1
  270. package/validate/src/utils.js +1 -1
  271. package/validate.js +1 -1
  272. package/version/index.js +1 -1
  273. package/version.js +1 -1
  274. package/axios/lib/adapters/adapters.js +0 -65
  275. package/axios/lib/adapters/fetch.js +0 -186
  276. package/axios/lib/adapters/xhr.js +0 -105
  277. package/axios/lib/cancel/CancelToken.js +0 -78
  278. package/axios/lib/cancel/CanceledError.js +0 -18
  279. package/axios/lib/cancel/isCancel.js +0 -7
  280. package/axios/lib/core/Axios.js +0 -170
  281. package/axios/lib/core/AxiosHeaders.js +0 -192
  282. package/axios/lib/core/InterceptorManager.js +0 -59
  283. package/axios/lib/core/buildFullPath.js +0 -10
  284. package/axios/lib/core/dispatchRequest.js +0 -35
  285. package/axios/lib/core/mergeConfig.js +0 -74
  286. package/axios/lib/core/settle.js +0 -17
  287. package/axios/lib/core/transformData.js +0 -19
  288. package/axios/lib/defaults/index.js +0 -103
  289. package/axios/lib/defaults/transitional.js +0 -9
  290. package/axios/lib/env/data.js +0 -5
  291. package/axios/lib/helpers/AxiosURLSearchParams.js +0 -37
  292. package/axios/lib/helpers/HttpStatusCode.js +0 -78
  293. package/axios/lib/helpers/bind.js +0 -9
  294. package/axios/lib/helpers/buildURL.js +0 -24
  295. package/axios/lib/helpers/combineURLs.js +0 -7
  296. package/axios/lib/helpers/composeSignals.js +0 -38
  297. package/axios/lib/helpers/cookies.js +0 -37
  298. package/axios/lib/helpers/formDataToJSON.js +0 -32
  299. package/axios/lib/helpers/isAbsoluteURL.js +0 -7
  300. package/axios/lib/helpers/isAxiosError.js +0 -8
  301. package/axios/lib/helpers/isURLSameOrigin.js +0 -9
  302. package/axios/lib/helpers/parseHeaders.js +0 -31
  303. package/axios/lib/helpers/parseProtocol.js +0 -8
  304. package/axios/lib/helpers/progressEventReducer.js +0 -39
  305. package/axios/lib/helpers/resolveConfig.js +0 -44
  306. package/axios/lib/helpers/speedometer.js +0 -20
  307. package/axios/lib/helpers/spread.js +0 -9
  308. package/axios/lib/helpers/throttle.js +0 -16
  309. package/axios/lib/helpers/toFormData.js +0 -91
  310. package/axios/lib/helpers/toURLEncodedForm.js +0 -15
  311. package/axios/lib/helpers/trackStream.js +0 -67
  312. package/axios/lib/helpers/validator.js +0 -66
  313. package/axios/lib/platform/browser/classes/Blob.js +0 -5
  314. package/axios/lib/platform/browser/classes/FormData.js +0 -5
  315. package/axios/lib/platform/browser/classes/URLSearchParams.js +0 -6
  316. package/axios/lib/platform/browser/index.js +0 -16
  317. package/axios/lib/platform/common/utils.js +0 -9
  318. package/axios/lib/platform/index.js +0 -10
  319. package/axios.js +0 -24
  320. package/axiosMockAdapter.js +0 -9
  321. package/types/axios/index.d.ts +0 -19
  322. package/types/axios/lib/adapters/adapters.d.ts +0 -28
  323. package/types/axios/lib/adapters/fetch.d.ts +0 -3
  324. package/types/axios/lib/adapters/http.d.ts +0 -12
  325. package/types/axios/lib/adapters/xhr.d.ts +0 -2
  326. package/types/axios/lib/axios.d.ts +0 -3
  327. package/types/axios/lib/cancel/CancelToken.d.ts +0 -34
  328. package/types/axios/lib/cancel/CanceledError.d.ts +0 -24
  329. package/types/axios/lib/cancel/isCancel.d.ts +0 -1
  330. package/types/axios/lib/core/Axios.d.ts +0 -28
  331. package/types/axios/lib/core/AxiosError.d.ts +0 -38
  332. package/types/axios/lib/core/AxiosHeaders.d.ts +0 -23
  333. package/types/axios/lib/core/InterceptorManager.d.ts +0 -38
  334. package/types/axios/lib/core/buildFullPath.d.ts +0 -11
  335. package/types/axios/lib/core/dispatchRequest.d.ts +0 -8
  336. package/types/axios/lib/core/mergeConfig.d.ts +0 -10
  337. package/types/axios/lib/core/settle.d.ts +0 -10
  338. package/types/axios/lib/core/transformData.d.ts +0 -9
  339. package/types/axios/lib/defaults/index.d.ts +0 -30
  340. package/types/axios/lib/defaults/transitional.d.ts +0 -6
  341. package/types/axios/lib/env/classes/FormData.d.ts +0 -2
  342. package/types/axios/lib/env/data.d.ts +0 -1
  343. package/types/axios/lib/helpers/AxiosTransformStream.d.ts +0 -19
  344. package/types/axios/lib/helpers/AxiosURLSearchParams.d.ts +0 -30
  345. package/types/axios/lib/helpers/HttpStatusCode.d.ts +0 -72
  346. package/types/axios/lib/helpers/ZlibHeaderTransformStream.d.ts +0 -5
  347. package/types/axios/lib/helpers/bind.d.ts +0 -8
  348. package/types/axios/lib/helpers/buildURL.d.ts +0 -10
  349. package/types/axios/lib/helpers/callbackify.d.ts +0 -2
  350. package/types/axios/lib/helpers/combineURLs.d.ts +0 -9
  351. package/types/axios/lib/helpers/composeSignals.d.ts +0 -2
  352. package/types/axios/lib/helpers/cookies.d.ts +0 -6
  353. package/types/axios/lib/helpers/deprecatedMethod.d.ts +0 -11
  354. package/types/axios/lib/helpers/estimateDataURLDecodedBytes.d.ts +0 -10
  355. package/types/axios/lib/helpers/formDataToJSON.d.ts +0 -11
  356. package/types/axios/lib/helpers/formDataToStream.d.ts +0 -2
  357. package/types/axios/lib/helpers/fromDataURI.d.ts +0 -11
  358. package/types/axios/lib/helpers/isAbsoluteURL.d.ts +0 -8
  359. package/types/axios/lib/helpers/isAxiosError.d.ts +0 -8
  360. package/types/axios/lib/helpers/isURLSameOrigin.d.ts +0 -2
  361. package/types/axios/lib/helpers/null.d.ts +0 -2
  362. package/types/axios/lib/helpers/parseHeaders.d.ts +0 -2
  363. package/types/axios/lib/helpers/parseProtocol.d.ts +0 -1
  364. package/types/axios/lib/helpers/progressEventReducer.d.ts +0 -3
  365. package/types/axios/lib/helpers/readBlob.d.ts +0 -2
  366. package/types/axios/lib/helpers/resolveConfig.d.ts +0 -2
  367. package/types/axios/lib/helpers/speedometer.d.ts +0 -8
  368. package/types/axios/lib/helpers/spread.d.ts +0 -22
  369. package/types/axios/lib/helpers/throttle.d.ts +0 -8
  370. package/types/axios/lib/helpers/toFormData.d.ts +0 -26
  371. package/types/axios/lib/helpers/toURLEncodedForm.d.ts +0 -1
  372. package/types/axios/lib/helpers/trackStream.d.ts +0 -3
  373. package/types/axios/lib/helpers/validator.d.ts +0 -28
  374. package/types/axios/lib/platform/browser/classes/Blob.d.ts +0 -5
  375. package/types/axios/lib/platform/browser/classes/FormData.d.ts +0 -5
  376. package/types/axios/lib/platform/browser/classes/URLSearchParams.d.ts +0 -6
  377. package/types/axios/lib/platform/browser/index.d.ts +0 -13
  378. package/types/axios/lib/platform/common/utils.d.ts +0 -32
  379. package/types/axios/lib/platform/index.d.ts +0 -24
  380. package/types/axios/lib/platform/node/classes/FormData.d.ts +0 -1
  381. package/types/axios/lib/platform/node/classes/URLSearchParams.d.ts +0 -2
  382. package/types/axios/lib/platform/node/index.d.ts +0 -25
  383. package/types/axios/lib/utils.d.ts +0 -289
  384. package/types/axios-mock-adapter/index.d.ts +0 -19
  385. package/types/axios-mock-adapter/request.d.ts +0 -2
  386. package/types/axios-mock-adapter/utils.d.ts +0 -31
  387. /package/{axios-mock-adapter → axios/mock-adapter}/index.d.ts +0 -0
@@ -1,47 +1,1635 @@
1
- /* 2025-11-04 10:32:44 */
2
- import p from "./adapters/adapters.js";
3
- import f from "./cancel/CanceledError.js";
4
- import l from "./cancel/CancelToken.js";
5
- import c from "./cancel/isCancel.js";
6
- import m from "./core/Axios.js";
7
- import d from "./core/AxiosError.js";
8
- import u from "./core/AxiosHeaders.js";
9
- import i from "./core/mergeConfig.js";
10
- import x from "./defaults/index.js";
11
- import { VERSION as A } from "./env/data.js";
12
- import C from "./helpers/bind.js";
13
- import E from "./helpers/formDataToJSON.js";
14
- import O from "./helpers/HttpStatusCode.js";
15
- import S from "./helpers/isAxiosError.js";
16
- import H from "./helpers/spread.js";
17
- import T from "./helpers/toFormData.js";
18
- import a from "./utils.js";
19
- function n(o) {
20
- const t = new m(o), e = C(m.prototype.request, t);
21
- return a.extend(e, m.prototype, t, { allOwnKeys: !0 }), a.extend(e, t, null, { allOwnKeys: !0 }), e.create = function(s) {
22
- return n(i(o, s));
23
- }, e;
24
- }
25
- const r = n(x);
26
- r.Axios = m;
27
- r.CanceledError = f;
28
- r.CancelToken = l;
29
- r.isCancel = c;
30
- r.VERSION = A;
31
- r.toFormData = T;
32
- r.AxiosError = d;
33
- r.Cancel = r.CanceledError;
34
- r.all = function(t) {
35
- return Promise.all(t);
36
- };
37
- r.spread = H;
38
- r.isAxiosError = S;
39
- r.mergeConfig = i;
40
- r.AxiosHeaders = u;
41
- r.formToJSON = (o) => E(a.isHTMLForm(o) ? new FormData(o) : o);
42
- r.getAdapter = p.getAdapter;
43
- r.HttpStatusCode = O;
44
- r.default = r;
1
+ /* 2025-11-07 13:23:48 */
2
+ import { A as b } from "../chunk/CB3wlosT.js";
3
+ import { A as i, b as ze } from "../chunk/BJvTEV6n.js";
4
+ const $e = i.toObjectSet([
5
+ "age",
6
+ "authorization",
7
+ "content-length",
8
+ "content-type",
9
+ "etag",
10
+ "expires",
11
+ "from",
12
+ "host",
13
+ "if-modified-since",
14
+ "if-unmodified-since",
15
+ "last-modified",
16
+ "location",
17
+ "max-forwards",
18
+ "proxy-authorization",
19
+ "referer",
20
+ "retry-after",
21
+ "user-agent"
22
+ ]), Je = (t) => {
23
+ const e = {};
24
+ let n, r, s;
25
+ return t && t.split(`
26
+ `).forEach(function(o) {
27
+ s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || e[n] && $e[n]) && (n === "set-cookie" ? e[n] ? e[n].push(r) : e[n] = [r] : e[n] = e[n] ? e[n] + ", " + r : r);
28
+ }), e;
29
+ }, pe = Symbol("internals");
30
+ function H(t) {
31
+ return t && String(t).trim().toLowerCase();
32
+ }
33
+ function W(t) {
34
+ return t === !1 || t == null ? t : i.isArray(t) ? t.map(W) : String(t);
35
+ }
36
+ function We(t) {
37
+ const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
38
+ let r;
39
+ for (; r = n.exec(t); )
40
+ e[r[1]] = r[2];
41
+ return e;
42
+ }
43
+ const Ke = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
44
+ function Q(t, e, n, r, s) {
45
+ if (i.isFunction(r))
46
+ return r.call(this, e, n);
47
+ if (s && (e = n), !!i.isString(e)) {
48
+ if (i.isString(r))
49
+ return e.indexOf(r) !== -1;
50
+ if (i.isRegExp(r))
51
+ return r.test(e);
52
+ }
53
+ }
54
+ function Ve(t) {
55
+ return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, r) => n.toUpperCase() + r);
56
+ }
57
+ function Xe(t, e) {
58
+ const n = i.toCamelCase(" " + e);
59
+ ["get", "set", "has"].forEach((r) => {
60
+ Object.defineProperty(t, r + n, {
61
+ value: function(s, a, o) {
62
+ return this[r].call(this, e, s, a, o);
63
+ },
64
+ configurable: !0
65
+ });
66
+ });
67
+ }
68
+ class O {
69
+ constructor(e) {
70
+ e && this.set(e);
71
+ }
72
+ set(e, n, r) {
73
+ const s = this;
74
+ function a(c, h, f) {
75
+ const l = H(h);
76
+ if (!l)
77
+ throw new Error("header name must be a non-empty string");
78
+ const p = i.findKey(s, l);
79
+ (!p || s[p] === void 0 || f === !0 || f === void 0 && s[p] !== !1) && (s[p || h] = W(c));
80
+ }
81
+ const o = (c, h) => i.forEach(
82
+ c,
83
+ (f, l) => a(f, l, h)
84
+ );
85
+ if (i.isPlainObject(e) || e instanceof this.constructor)
86
+ o(e, n);
87
+ else if (i.isString(e) && (e = e.trim()) && !Ke(e))
88
+ o(Je(e), n);
89
+ else if (i.isObject(e) && i.isIterable(e)) {
90
+ let c = {}, h, f;
91
+ for (const l of e) {
92
+ if (!i.isArray(l))
93
+ throw TypeError("Object iterator must return a key-value pair");
94
+ c[f = l[0]] = (h = c[f]) ? i.isArray(h) ? [...h, l[1]] : [h, l[1]] : l[1];
95
+ }
96
+ o(c, n);
97
+ } else
98
+ e != null && a(n, e, r);
99
+ return this;
100
+ }
101
+ get(e, n) {
102
+ if (e = H(e), e) {
103
+ const r = i.findKey(this, e);
104
+ if (r) {
105
+ const s = this[r];
106
+ if (!n)
107
+ return s;
108
+ if (n === !0)
109
+ return We(s);
110
+ if (i.isFunction(n))
111
+ return n.call(this, s, r);
112
+ if (i.isRegExp(n))
113
+ return n.exec(s);
114
+ throw new TypeError("parser must be boolean|regexp|function");
115
+ }
116
+ }
117
+ }
118
+ has(e, n) {
119
+ if (e = H(e), e) {
120
+ const r = i.findKey(this, e);
121
+ return !!(r && this[r] !== void 0 && (!n || Q(this, this[r], r, n)));
122
+ }
123
+ return !1;
124
+ }
125
+ delete(e, n) {
126
+ const r = this;
127
+ let s = !1;
128
+ function a(o) {
129
+ if (o = H(o), o) {
130
+ const c = i.findKey(r, o);
131
+ c && (!n || Q(r, r[c], c, n)) && (delete r[c], s = !0);
132
+ }
133
+ }
134
+ return i.isArray(e) ? e.forEach(a) : a(e), s;
135
+ }
136
+ clear(e) {
137
+ const n = Object.keys(this);
138
+ let r = n.length, s = !1;
139
+ for (; r--; ) {
140
+ const a = n[r];
141
+ (!e || Q(this, this[a], a, e, !0)) && (delete this[a], s = !0);
142
+ }
143
+ return s;
144
+ }
145
+ normalize(e) {
146
+ const n = this, r = {};
147
+ return i.forEach(this, (s, a) => {
148
+ const o = i.findKey(r, a);
149
+ if (o) {
150
+ n[o] = W(s), delete n[a];
151
+ return;
152
+ }
153
+ const c = e ? Ve(a) : String(a).trim();
154
+ c !== a && delete n[a], n[c] = W(s), r[c] = !0;
155
+ }), this;
156
+ }
157
+ concat(...e) {
158
+ return this.constructor.concat(this, ...e);
159
+ }
160
+ toJSON(e) {
161
+ const n = /* @__PURE__ */ Object.create(null);
162
+ return i.forEach(this, (r, s) => {
163
+ r != null && r !== !1 && (n[s] = e && i.isArray(r) ? r.join(", ") : r);
164
+ }), n;
165
+ }
166
+ [Symbol.iterator]() {
167
+ return Object.entries(this.toJSON())[Symbol.iterator]();
168
+ }
169
+ toString() {
170
+ return Object.entries(this.toJSON()).map(([e, n]) => e + ": " + n).join(`
171
+ `);
172
+ }
173
+ getSetCookie() {
174
+ return this.get("set-cookie") || [];
175
+ }
176
+ get [Symbol.toStringTag]() {
177
+ return "AxiosHeaders";
178
+ }
179
+ static from(e) {
180
+ return e instanceof this ? e : new this(e);
181
+ }
182
+ static concat(e, ...n) {
183
+ const r = new this(e);
184
+ return n.forEach((s) => r.set(s)), r;
185
+ }
186
+ static accessor(e) {
187
+ const r = (this[pe] = this[pe] = {
188
+ accessors: {}
189
+ }).accessors, s = this.prototype;
190
+ function a(o) {
191
+ const c = H(o);
192
+ r[c] || (Xe(s, o), r[c] = !0);
193
+ }
194
+ return i.isArray(e) ? e.forEach(a) : a(e), this;
195
+ }
196
+ }
197
+ O.accessor([
198
+ "Content-Type",
199
+ "Content-Length",
200
+ "Accept",
201
+ "Accept-Encoding",
202
+ "User-Agent",
203
+ "Authorization"
204
+ ]);
205
+ i.reduceDescriptors(O.prototype, ({ value: t }, e) => {
206
+ let n = e[0].toUpperCase() + e.slice(1);
207
+ return {
208
+ get: () => t,
209
+ set(r) {
210
+ this[n] = r;
211
+ }
212
+ };
213
+ });
214
+ i.freezeMethods(O);
215
+ function Ue(t, e, n) {
216
+ const r = n.config.validateStatus;
217
+ !n.status || !r || r(n.status) ? t(n) : e(
218
+ new b(
219
+ "Request failed with status code " + n.status,
220
+ [b.ERR_BAD_REQUEST, b.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
221
+ n.config,
222
+ n.request,
223
+ n
224
+ )
225
+ );
226
+ }
227
+ function D(t, e, n) {
228
+ b.call(
229
+ this,
230
+ t ?? "canceled",
231
+ b.ERR_CANCELED,
232
+ e,
233
+ n
234
+ ), this.name = "CanceledError";
235
+ }
236
+ i.inherits(D, b, {
237
+ __CANCEL__: !0
238
+ });
239
+ const Ge = (t, e) => {
240
+ const { length: n } = t = t ? t.filter(Boolean) : [];
241
+ if (e || n) {
242
+ let r = new AbortController(), s;
243
+ const a = function(f) {
244
+ if (!s) {
245
+ s = !0, c();
246
+ const l = f instanceof Error ? f : this.reason;
247
+ r.abort(
248
+ l instanceof b ? l : new D(l instanceof Error ? l.message : l)
249
+ );
250
+ }
251
+ };
252
+ let o = e && setTimeout(() => {
253
+ o = null, a(
254
+ new b(
255
+ `timeout ${e} of ms exceeded`,
256
+ b.ETIMEDOUT
257
+ )
258
+ );
259
+ }, e);
260
+ const c = () => {
261
+ t && (o && clearTimeout(o), o = null, t.forEach((f) => {
262
+ f.unsubscribe ? f.unsubscribe(a) : f.removeEventListener("abort", a);
263
+ }), t = null);
264
+ };
265
+ t.forEach((f) => f.addEventListener("abort", a));
266
+ const { signal: h } = r;
267
+ return h.unsubscribe = () => i.asap(c), h;
268
+ }
269
+ };
270
+ function Ze(t, e) {
271
+ t = t || 10;
272
+ const n = new Array(t), r = new Array(t);
273
+ let s = 0, a = 0, o;
274
+ return e = e !== void 0 ? e : 1e3, function(h) {
275
+ const f = Date.now(), l = r[a];
276
+ o || (o = f), n[s] = h, r[s] = f;
277
+ let p = a, w = 0;
278
+ for (; p !== s; )
279
+ w += n[p++], p = p % t;
280
+ if (s = (s + 1) % t, s === a && (a = (a + 1) % t), f - o < e)
281
+ return;
282
+ const E = l && f - l;
283
+ return E ? Math.round(w * 1e3 / E) : void 0;
284
+ };
285
+ }
286
+ function Qe(t, e) {
287
+ let n = 0, r = 1e3 / e, s, a;
288
+ const o = (f, l = Date.now()) => {
289
+ n = l, s = null, a && (clearTimeout(a), a = null), t(...f);
290
+ };
291
+ return [(...f) => {
292
+ const l = Date.now(), p = l - n;
293
+ p >= r ? o(f, l) : (s = f, a || (a = setTimeout(() => {
294
+ a = null, o(s);
295
+ }, r - p)));
296
+ }, () => s && o(s)];
297
+ }
298
+ const V = (t, e, n = 3) => {
299
+ let r = 0;
300
+ const s = Ze(50, 250);
301
+ return Qe((a) => {
302
+ const o = a.loaded, c = a.lengthComputable ? a.total : void 0, h = o - r, f = s(h), l = o <= c;
303
+ r = o;
304
+ const p = {
305
+ loaded: o,
306
+ total: c,
307
+ progress: c ? o / c : void 0,
308
+ bytes: h,
309
+ rate: f || void 0,
310
+ estimated: f && c && l ? (c - o) / f : void 0,
311
+ event: a,
312
+ lengthComputable: c != null,
313
+ [e ? "download" : "upload"]: !0
314
+ };
315
+ t(p);
316
+ }, n);
317
+ }, me = (t, e) => {
318
+ const n = t != null;
319
+ return [
320
+ (r) => e[0]({
321
+ lengthComputable: n,
322
+ total: t,
323
+ loaded: r
324
+ }),
325
+ e[1]
326
+ ];
327
+ }, be = (t) => (...e) => i.asap(() => t(...e));
328
+ function Ye(t, e) {
329
+ return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
330
+ }
331
+ function et(t) {
332
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
333
+ }
334
+ function Ne(t, e, n) {
335
+ let r = !et(e);
336
+ return t && (r || n == !1) ? Ye(t, e) : e;
337
+ }
338
+ const we = (t) => t instanceof O ? { ...t } : t;
339
+ function k(t, e) {
340
+ e = e || {};
341
+ const n = {};
342
+ function r(f, l, p, w) {
343
+ return i.isPlainObject(f) && i.isPlainObject(l) ? i.merge.call({ caseless: w }, f, l) : i.isPlainObject(l) ? i.merge({}, l) : i.isArray(l) ? l.slice() : l;
344
+ }
345
+ function s(f, l, p, w) {
346
+ if (i.isUndefined(l)) {
347
+ if (!i.isUndefined(f))
348
+ return r(void 0, f, p, w);
349
+ } else return r(f, l, p, w);
350
+ }
351
+ function a(f, l) {
352
+ if (!i.isUndefined(l))
353
+ return r(void 0, l);
354
+ }
355
+ function o(f, l) {
356
+ if (i.isUndefined(l)) {
357
+ if (!i.isUndefined(f))
358
+ return r(void 0, f);
359
+ } else return r(void 0, l);
360
+ }
361
+ function c(f, l, p) {
362
+ if (p in e)
363
+ return r(f, l);
364
+ if (p in t)
365
+ return r(void 0, f);
366
+ }
367
+ const h = {
368
+ url: a,
369
+ method: a,
370
+ data: a,
371
+ baseURL: o,
372
+ transformRequest: o,
373
+ transformResponse: o,
374
+ paramsSerializer: o,
375
+ timeout: o,
376
+ timeoutMessage: o,
377
+ withCredentials: o,
378
+ withXSRFToken: o,
379
+ adapter: o,
380
+ responseType: o,
381
+ xsrfCookieName: o,
382
+ xsrfHeaderName: o,
383
+ onUploadProgress: o,
384
+ onDownloadProgress: o,
385
+ decompress: o,
386
+ maxContentLength: o,
387
+ maxBodyLength: o,
388
+ beforeRedirect: o,
389
+ transport: o,
390
+ httpAgent: o,
391
+ httpsAgent: o,
392
+ cancelToken: o,
393
+ socketPath: o,
394
+ responseEncoding: o,
395
+ validateStatus: c,
396
+ headers: (f, l, p) => s(we(f), we(l), p, !0)
397
+ };
398
+ return i.forEach(
399
+ Object.keys({ ...t, ...e }),
400
+ function(l) {
401
+ const p = h[l] || s, w = p(t[l], e[l], l);
402
+ i.isUndefined(w) && p !== c || (n[l] = w);
403
+ }
404
+ ), n;
405
+ }
406
+ const se = typeof window < "u" && typeof document < "u", te = typeof navigator == "object" && navigator || void 0, tt = se && (!te || ["ReactNative", "NativeScript", "NS"].indexOf(te.product) < 0), nt = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function", rt = se && window.location.href || "http://localhost", st = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
407
+ __proto__: null,
408
+ hasBrowserEnv: se,
409
+ hasStandardBrowserEnv: tt,
410
+ hasStandardBrowserWebWorkerEnv: nt,
411
+ navigator: te,
412
+ origin: rt
413
+ }, Symbol.toStringTag, { value: "Module" })), ot = typeof Blob < "u" ? Blob : null, it = typeof FormData < "u" ? FormData : null;
414
+ function ne(t) {
415
+ return i.isPlainObject(t) || i.isArray(t);
416
+ }
417
+ function Fe(t) {
418
+ return i.endsWith(t, "[]") ? t.slice(0, -2) : t;
419
+ }
420
+ function ye(t, e, n) {
421
+ return t ? t.concat(e).map(function(s, a) {
422
+ return s = Fe(s), !n && a ? "[" + s + "]" : s;
423
+ }).join(n ? "." : "") : e;
424
+ }
425
+ function at(t) {
426
+ return i.isArray(t) && !t.some(ne);
427
+ }
428
+ const ct = i.toFlatObject(i, {}, null, function(e) {
429
+ return /^is[A-Z]/.test(e);
430
+ });
431
+ function I(t, e, n) {
432
+ if (!i.isObject(t))
433
+ throw new TypeError("target must be an object");
434
+ e = e || new (I || FormData)(), n = i.toFlatObject(
435
+ n,
436
+ {
437
+ metaTokens: !0,
438
+ dots: !1,
439
+ indexes: !1
440
+ },
441
+ !1,
442
+ function(m, d) {
443
+ return !i.isUndefined(d[m]);
444
+ }
445
+ );
446
+ const r = n.metaTokens, s = n.visitor || l, a = n.dots, o = n.indexes, h = (n.Blob || typeof Blob < "u" && Blob) && i.isSpecCompliantForm(e);
447
+ if (!i.isFunction(s))
448
+ throw new TypeError("visitor must be a function");
449
+ function f(u) {
450
+ if (u === null) return "";
451
+ if (i.isDate(u))
452
+ return u.toISOString();
453
+ if (i.isBoolean(u))
454
+ return u.toString();
455
+ if (!h && i.isBlob(u))
456
+ throw new b("Blob is not supported. Use a Buffer instead.");
457
+ return i.isArrayBuffer(u) || i.isTypedArray(u) ? h && typeof Blob == "function" ? new Blob([u]) : Buffer.from(u) : u;
458
+ }
459
+ function l(u, m, d) {
460
+ let y = u;
461
+ if (u && !d && typeof u == "object") {
462
+ if (i.endsWith(m, "{}"))
463
+ m = r ? m : m.slice(0, -2), u = JSON.stringify(u);
464
+ else if (i.isArray(u) && at(u) || (i.isFileList(u) || i.endsWith(m, "[]")) && (y = i.toArray(u)))
465
+ return m = Fe(m), y.forEach(function(g, T) {
466
+ !(i.isUndefined(g) || g === null) && e.append(
467
+ o === !0 ? ye([m], T, a) : o === null ? m : m + "[]",
468
+ f(g)
469
+ );
470
+ }), !1;
471
+ }
472
+ return ne(u) ? !0 : (e.append(ye(d, m, a), f(u)), !1);
473
+ }
474
+ const p = [], w = Object.assign(ct, {
475
+ defaultVisitor: l,
476
+ convertValue: f,
477
+ isVisitable: ne
478
+ });
479
+ function E(u, m) {
480
+ if (!i.isUndefined(u)) {
481
+ if (p.indexOf(u) !== -1)
482
+ throw Error("Circular reference detected in " + m.join("."));
483
+ p.push(u), i.forEach(u, function(y, A) {
484
+ (!(i.isUndefined(y) || y === null) && s.call(
485
+ e,
486
+ y,
487
+ i.isString(A) ? A.trim() : A,
488
+ m,
489
+ w
490
+ )) === !0 && E(y, m ? m.concat(A) : [A]);
491
+ }), p.pop();
492
+ }
493
+ }
494
+ if (!i.isObject(t))
495
+ throw new TypeError("data must be an object");
496
+ return E(t), e;
497
+ }
498
+ function Se(t) {
499
+ const e = {
500
+ "!": "%21",
501
+ "'": "%27",
502
+ "(": "%28",
503
+ ")": "%29",
504
+ "~": "%7E",
505
+ "%20": "+",
506
+ "%00": "\0"
507
+ };
508
+ return encodeURIComponent(t).replace(
509
+ /[!'()~]|%20|%00/g,
510
+ function(r) {
511
+ return e[r];
512
+ }
513
+ );
514
+ }
515
+ function oe(t, e) {
516
+ this._pairs = [], t && I(t, this, e);
517
+ }
518
+ const Le = oe.prototype;
519
+ Le.append = function(e, n) {
520
+ this._pairs.push([e, n]);
521
+ };
522
+ Le.toString = function(e) {
523
+ const n = e ? function(r) {
524
+ return e.call(this, r, Se);
525
+ } : Se;
526
+ return this._pairs.map(function(s) {
527
+ return n(s[0]) + "=" + n(s[1]);
528
+ }, "").join("&");
529
+ };
530
+ const lt = typeof URLSearchParams < "u" ? URLSearchParams : oe, ut = {
531
+ isBrowser: !0,
532
+ classes: {
533
+ URLSearchParams: lt,
534
+ FormData: it,
535
+ Blob: ot
536
+ },
537
+ protocols: ["http", "https", "file", "blob", "url", "data"]
538
+ }, R = {
539
+ ...st,
540
+ ...ut
541
+ };
542
+ function ft(t) {
543
+ return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
544
+ }
545
+ function _e(t, e, n) {
546
+ if (!e)
547
+ return t;
548
+ const r = n && n.encode || ft;
549
+ i.isFunction(n) && (n = {
550
+ serialize: n
551
+ });
552
+ const s = n && n.serialize;
553
+ let a;
554
+ if (s ? a = s(e, n) : a = i.isURLSearchParams(e) ? e.toString() : new oe(e, n).toString(r), a) {
555
+ const o = t.indexOf("#");
556
+ o !== -1 && (t = t.slice(0, o)), t += (t.indexOf("?") === -1 ? "?" : "&") + a;
557
+ }
558
+ return t;
559
+ }
560
+ const dt = R.hasStandardBrowserEnv ? (
561
+ // Standard browser envs support document.cookie
562
+ {
563
+ write(t, e, n, r, s, a, o) {
564
+ if (typeof document > "u") return;
565
+ const c = [`${t}=${encodeURIComponent(e)}`];
566
+ i.isNumber(n) && c.push(`expires=${new Date(n).toUTCString()}`), i.isString(r) && c.push(`path=${r}`), i.isString(s) && c.push(`domain=${s}`), a === !0 && c.push("secure"), i.isString(o) && c.push(`SameSite=${o}`), document.cookie = c.join("; ");
567
+ },
568
+ read(t) {
569
+ if (typeof document > "u") return null;
570
+ const e = document.cookie.match(
571
+ new RegExp("(?:^|; )" + t + "=([^;]*)")
572
+ );
573
+ return e ? decodeURIComponent(e[1]) : null;
574
+ },
575
+ remove(t) {
576
+ this.write(t, "", Date.now() - 864e5, "/");
577
+ }
578
+ }
579
+ ) : (
580
+ // Non-standard browser env (web workers, react-native) lack needed support.
581
+ {
582
+ write() {
583
+ },
584
+ read() {
585
+ return null;
586
+ },
587
+ remove() {
588
+ }
589
+ }
590
+ ), ht = R.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (n) => (n = new URL(n, R.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port)))(
591
+ new URL(R.origin),
592
+ R.navigator && /(msie|trident)/i.test(R.navigator.userAgent)
593
+ ) : () => !0, je = (t) => {
594
+ const e = k({}, t);
595
+ let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: a, headers: o, auth: c } = e;
596
+ if (e.headers = o = O.from(o), e.url = _e(
597
+ Ne(
598
+ e.baseURL,
599
+ e.url,
600
+ e.allowAbsoluteUrls
601
+ ),
602
+ t.params,
603
+ t.paramsSerializer
604
+ ), c && o.set(
605
+ "Authorization",
606
+ "Basic " + btoa(
607
+ (c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : "")
608
+ )
609
+ ), i.isFormData(n)) {
610
+ if (R.hasStandardBrowserEnv || R.hasStandardBrowserWebWorkerEnv)
611
+ o.setContentType(void 0);
612
+ else if (i.isFunction(n.getHeaders)) {
613
+ const h = n.getHeaders(), f = ["content-type", "content-length"];
614
+ Object.entries(h).forEach(([l, p]) => {
615
+ f.includes(l.toLowerCase()) && o.set(l, p);
616
+ });
617
+ }
618
+ }
619
+ if (R.hasStandardBrowserEnv && (r && i.isFunction(r) && (r = r(e)), r || r !== !1 && ht(e.url))) {
620
+ const h = s && a && dt.read(a);
621
+ h && o.set(s, h);
622
+ }
623
+ return e;
624
+ }, pt = function* (t, e) {
625
+ let n = t.byteLength;
626
+ if (n < e) {
627
+ yield t;
628
+ return;
629
+ }
630
+ let r = 0, s;
631
+ for (; r < n; )
632
+ s = r + e, yield t.slice(r, s), r = s;
633
+ }, mt = async function* (t, e) {
634
+ for await (const n of bt(t))
635
+ yield* pt(n, e);
636
+ }, bt = async function* (t) {
637
+ if (t[Symbol.asyncIterator]) {
638
+ yield* t;
639
+ return;
640
+ }
641
+ const e = t.getReader();
642
+ try {
643
+ for (; ; ) {
644
+ const { done: n, value: r } = await e.read();
645
+ if (n)
646
+ break;
647
+ yield r;
648
+ }
649
+ } finally {
650
+ await e.cancel();
651
+ }
652
+ }, ge = (t, e, n, r) => {
653
+ const s = mt(t, e);
654
+ let a = 0, o, c = (h) => {
655
+ o || (o = !0, r && r(h));
656
+ };
657
+ return new ReadableStream(
658
+ {
659
+ async pull(h) {
660
+ try {
661
+ const { done: f, value: l } = await s.next();
662
+ if (f) {
663
+ c(), h.close();
664
+ return;
665
+ }
666
+ let p = l.byteLength;
667
+ if (n) {
668
+ let w = a += p;
669
+ n(w);
670
+ }
671
+ h.enqueue(new Uint8Array(l));
672
+ } catch (f) {
673
+ throw c(f), f;
674
+ }
675
+ },
676
+ cancel(h) {
677
+ return c(h), s.return();
678
+ }
679
+ },
680
+ {
681
+ highWaterMark: 2
682
+ }
683
+ );
684
+ }, Ee = 64 * 1024, { isFunction: J } = i, wt = (({ Request: t, Response: e }) => ({
685
+ Request: t,
686
+ Response: e
687
+ }))(i.global), { ReadableStream: Re, TextEncoder: Te } = i.global, Oe = (t, ...e) => {
688
+ try {
689
+ return !!t(...e);
690
+ } catch {
691
+ return !1;
692
+ }
693
+ }, yt = (t) => {
694
+ t = i.merge.call(
695
+ {
696
+ skipUndefined: !0
697
+ },
698
+ wt,
699
+ t
700
+ );
701
+ const { fetch: e, Request: n, Response: r } = t, s = e ? J(e) : typeof fetch == "function", a = J(n), o = J(r);
702
+ if (!s)
703
+ return !1;
704
+ const c = s && J(Re), h = s && (typeof Te == "function" ? /* @__PURE__ */ ((u) => (m) => u.encode(m))(new Te()) : async (u) => new Uint8Array(await new n(u).arrayBuffer())), f = a && c && Oe(() => {
705
+ let u = !1;
706
+ const m = new n(R.origin, {
707
+ body: new Re(),
708
+ method: "POST",
709
+ get duplex() {
710
+ return u = !0, "half";
711
+ }
712
+ }).headers.has("Content-Type");
713
+ return u && !m;
714
+ }), l = o && c && Oe(() => i.isReadableStream(new r("").body)), p = {
715
+ stream: l && ((u) => u.body)
716
+ };
717
+ s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((u) => {
718
+ !p[u] && (p[u] = (m, d) => {
719
+ let y = m && m[u];
720
+ if (y)
721
+ return y.call(m);
722
+ throw new b(
723
+ `Response type '${u}' is not supported`,
724
+ b.ERR_NOT_SUPPORT,
725
+ d
726
+ );
727
+ });
728
+ });
729
+ const w = async (u) => {
730
+ if (u == null)
731
+ return 0;
732
+ if (i.isBlob(u))
733
+ return u.size;
734
+ if (i.isSpecCompliantForm(u))
735
+ return (await new n(R.origin, {
736
+ method: "POST",
737
+ body: u
738
+ }).arrayBuffer()).byteLength;
739
+ if (i.isArrayBufferView(u) || i.isArrayBuffer(u))
740
+ return u.byteLength;
741
+ if (i.isURLSearchParams(u) && (u = u + ""), i.isString(u))
742
+ return (await h(u)).byteLength;
743
+ }, E = async (u, m) => {
744
+ const d = i.toFiniteNumber(u.getContentLength());
745
+ return d ?? w(m);
746
+ };
747
+ return async (u) => {
748
+ let {
749
+ url: m,
750
+ method: d,
751
+ data: y,
752
+ signal: A,
753
+ cancelToken: g,
754
+ timeout: T,
755
+ onDownloadProgress: C,
756
+ onUploadProgress: L,
757
+ responseType: x,
758
+ headers: G,
759
+ withCredentials: M = "same-origin",
760
+ fetchOptions: ce
761
+ } = je(u), le = e || fetch;
762
+ x = x ? (x + "").toLowerCase() : "text";
763
+ let z = Ge(
764
+ [A, g && g.toAbortSignal()],
765
+ T
766
+ ), q = null;
767
+ const _ = z && z.unsubscribe && (() => {
768
+ z.unsubscribe();
769
+ });
770
+ let ue;
771
+ try {
772
+ if (L && f && d !== "get" && d !== "head" && (ue = await E(G, y)) !== 0) {
773
+ let F = new n(m, {
774
+ method: "POST",
775
+ body: y,
776
+ duplex: "half"
777
+ }), B;
778
+ if (i.isFormData(y) && (B = F.headers.get("content-type")) && G.setContentType(B), F.body) {
779
+ const [Z, $] = me(
780
+ ue,
781
+ V(be(L))
782
+ );
783
+ y = ge(
784
+ F.body,
785
+ Ee,
786
+ Z,
787
+ $
788
+ );
789
+ }
790
+ }
791
+ i.isString(M) || (M = M ? "include" : "omit");
792
+ const P = a && "credentials" in n.prototype, fe = {
793
+ ...ce,
794
+ signal: z,
795
+ method: d.toUpperCase(),
796
+ headers: G.normalize().toJSON(),
797
+ body: y,
798
+ duplex: "half",
799
+ credentials: P ? M : void 0
800
+ };
801
+ q = a && new n(m, fe);
802
+ let N = await (a ? le(q, ce) : le(m, fe));
803
+ const de = l && (x === "stream" || x === "response");
804
+ if (l && (C || de && _)) {
805
+ const F = {};
806
+ ["status", "statusText", "headers"].forEach((he) => {
807
+ F[he] = N[he];
808
+ });
809
+ const B = i.toFiniteNumber(
810
+ N.headers.get("content-length")
811
+ ), [Z, $] = C && me(
812
+ B,
813
+ V(be(C), !0)
814
+ ) || [];
815
+ N = new r(
816
+ ge(N.body, Ee, Z, () => {
817
+ $ && $(), _ && _();
818
+ }),
819
+ F
820
+ );
821
+ }
822
+ x = x || "text";
823
+ let Me = await p[i.findKey(p, x) || "text"](N, u);
824
+ return !de && _ && _(), await new Promise((F, B) => {
825
+ Ue(F, B, {
826
+ data: Me,
827
+ headers: O.from(N.headers),
828
+ status: N.status,
829
+ statusText: N.statusText,
830
+ config: u,
831
+ request: q
832
+ });
833
+ });
834
+ } catch (P) {
835
+ throw _ && _(), P && P.name === "TypeError" && /Load failed|fetch/i.test(P.message) ? Object.assign(
836
+ new b(
837
+ "Network Error",
838
+ b.ERR_NETWORK,
839
+ u,
840
+ q
841
+ ),
842
+ {
843
+ cause: P.cause || P
844
+ }
845
+ ) : b.from(P, P && P.code, u, q);
846
+ }
847
+ };
848
+ }, St = /* @__PURE__ */ new Map(), ke = (t) => {
849
+ let e = t && t.env || {};
850
+ const { fetch: n, Request: r, Response: s } = e, a = [r, s, n];
851
+ let o = a.length, c = o, h, f, l = St;
852
+ for (; c--; )
853
+ h = a[c], f = l.get(h), f === void 0 && l.set(h, f = c ? /* @__PURE__ */ new Map() : yt(e)), l = f;
854
+ return f;
855
+ };
856
+ ke();
857
+ const gt = null, Be = {
858
+ silentJSONParsing: !0,
859
+ forcedJSONParsing: !0,
860
+ clarifyTimeoutError: !1
861
+ };
862
+ function Et(t) {
863
+ const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
864
+ return e && e[1] || "";
865
+ }
866
+ const Rt = typeof XMLHttpRequest < "u", Tt = Rt && function(t) {
867
+ return new Promise(function(n, r) {
868
+ const s = je(t);
869
+ let a = s.data;
870
+ const o = O.from(s.headers).normalize();
871
+ let { responseType: c, onUploadProgress: h, onDownloadProgress: f } = s, l, p, w, E, u;
872
+ function m() {
873
+ E && E(), u && u(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
874
+ }
875
+ let d = new XMLHttpRequest();
876
+ d.open(s.method.toUpperCase(), s.url, !0), d.timeout = s.timeout;
877
+ function y() {
878
+ if (!d)
879
+ return;
880
+ const g = O.from(
881
+ "getAllResponseHeaders" in d && d.getAllResponseHeaders()
882
+ ), C = {
883
+ data: !c || c === "text" || c === "json" ? d.responseText : d.response,
884
+ status: d.status,
885
+ statusText: d.statusText,
886
+ headers: g,
887
+ config: t,
888
+ request: d
889
+ };
890
+ Ue(
891
+ function(x) {
892
+ n(x), m();
893
+ },
894
+ function(x) {
895
+ r(x), m();
896
+ },
897
+ C
898
+ ), d = null;
899
+ }
900
+ "onloadend" in d ? d.onloadend = y : d.onreadystatechange = function() {
901
+ !d || d.readyState !== 4 || d.status === 0 && !(d.responseURL && d.responseURL.indexOf("file:") === 0) || setTimeout(y);
902
+ }, d.onabort = function() {
903
+ d && (r(
904
+ new b(
905
+ "Request aborted",
906
+ b.ECONNABORTED,
907
+ t,
908
+ d
909
+ )
910
+ ), d = null);
911
+ }, d.onerror = function(T) {
912
+ const C = T && T.message ? T.message : "Network Error", L = new b(
913
+ C,
914
+ b.ERR_NETWORK,
915
+ t,
916
+ d
917
+ );
918
+ L.event = T || null, r(L), d = null;
919
+ }, d.ontimeout = function() {
920
+ let T = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
921
+ const C = s.transitional || Be;
922
+ s.timeoutErrorMessage && (T = s.timeoutErrorMessage), r(
923
+ new b(
924
+ T,
925
+ C.clarifyTimeoutError ? b.ETIMEDOUT : b.ECONNABORTED,
926
+ t,
927
+ d
928
+ )
929
+ ), d = null;
930
+ }, a === void 0 && o.setContentType(null), "setRequestHeader" in d && i.forEach(
931
+ o.toJSON(),
932
+ function(T, C) {
933
+ d.setRequestHeader(C, T);
934
+ }
935
+ ), i.isUndefined(s.withCredentials) || (d.withCredentials = !!s.withCredentials), c && c !== "json" && (d.responseType = s.responseType), f && ([w, u] = V(
936
+ f,
937
+ !0
938
+ ), d.addEventListener("progress", w)), h && d.upload && ([p, E] = V(h), d.upload.addEventListener("progress", p), d.upload.addEventListener("loadend", E)), (s.cancelToken || s.signal) && (l = (g) => {
939
+ d && (r(
940
+ !g || g.type ? new D(null, t, d) : g
941
+ ), d.abort(), d = null);
942
+ }, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
943
+ const A = Et(s.url);
944
+ if (A && R.protocols.indexOf(A) === -1) {
945
+ r(
946
+ new b(
947
+ "Unsupported protocol " + A + ":",
948
+ b.ERR_BAD_REQUEST,
949
+ t
950
+ )
951
+ );
952
+ return;
953
+ }
954
+ d.send(a || null);
955
+ });
956
+ }, ie = {
957
+ http: gt,
958
+ xhr: Tt,
959
+ fetch: {
960
+ get: ke
961
+ }
962
+ };
963
+ i.forEach(ie, (t, e) => {
964
+ if (t) {
965
+ try {
966
+ Object.defineProperty(t, "name", { value: e });
967
+ } catch {
968
+ }
969
+ Object.defineProperty(t, "adapterName", { value: e });
970
+ }
971
+ });
972
+ const Ae = (t) => `- ${t}`, Ot = (t) => i.isFunction(t) || t === null || t === !1;
973
+ function At(t, e) {
974
+ t = i.isArray(t) ? t : [t];
975
+ const { length: n } = t;
976
+ let r, s;
977
+ const a = {};
978
+ for (let o = 0; o < n; o++) {
979
+ r = t[o];
980
+ let c;
981
+ if (s = r, !Ot(r) && (s = ie[(c = String(r)).toLowerCase()], s === void 0))
982
+ throw new b(`Unknown adapter '${c}'`);
983
+ if (s && (i.isFunction(s) || (s = s.get(e))))
984
+ break;
985
+ a[c || "#" + o] = s;
986
+ }
987
+ if (!s) {
988
+ const o = Object.entries(a).map(
989
+ ([h, f]) => `adapter ${h} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
990
+ );
991
+ let c = n ? o.length > 1 ? `since :
992
+ ` + o.map(Ae).join(`
993
+ `) : " " + Ae(o[0]) : "as no adapter specified";
994
+ throw new b(
995
+ "There is no suitable adapter to dispatch the request " + c,
996
+ "ERR_NOT_SUPPORT"
997
+ );
998
+ }
999
+ return s;
1000
+ }
1001
+ const De = {
1002
+ /**
1003
+ * Resolve an adapter from a list of adapter names or functions.
1004
+ * @type {Function}
1005
+ */
1006
+ getAdapter: At,
1007
+ /**
1008
+ * Exposes all known adapters
1009
+ * @type {Object<string, Function|Object>}
1010
+ */
1011
+ adapters: ie
1012
+ };
1013
+ class ae {
1014
+ constructor(e) {
1015
+ if (typeof e != "function")
1016
+ throw new TypeError("executor must be a function.");
1017
+ let n;
1018
+ this.promise = new Promise(function(a) {
1019
+ n = a;
1020
+ });
1021
+ const r = this;
1022
+ this.promise.then((s) => {
1023
+ if (!r._listeners) return;
1024
+ let a = r._listeners.length;
1025
+ for (; a-- > 0; )
1026
+ r._listeners[a](s);
1027
+ r._listeners = null;
1028
+ }), this.promise.then = (s) => {
1029
+ let a;
1030
+ const o = new Promise((c) => {
1031
+ r.subscribe(c), a = c;
1032
+ }).then(s);
1033
+ return o.cancel = function() {
1034
+ r.unsubscribe(a);
1035
+ }, o;
1036
+ }, e(function(a, o, c) {
1037
+ r.reason || (r.reason = new D(a, o, c), n(r.reason));
1038
+ });
1039
+ }
1040
+ /**
1041
+ * Throws a `CanceledError` if cancellation has been requested.
1042
+ */
1043
+ throwIfRequested() {
1044
+ if (this.reason)
1045
+ throw this.reason;
1046
+ }
1047
+ /**
1048
+ * Subscribe to the cancel signal
1049
+ */
1050
+ subscribe(e) {
1051
+ if (this.reason) {
1052
+ e(this.reason);
1053
+ return;
1054
+ }
1055
+ this._listeners ? this._listeners.push(e) : this._listeners = [e];
1056
+ }
1057
+ /**
1058
+ * Unsubscribe from the cancel signal
1059
+ */
1060
+ unsubscribe(e) {
1061
+ if (!this._listeners)
1062
+ return;
1063
+ const n = this._listeners.indexOf(e);
1064
+ n !== -1 && this._listeners.splice(n, 1);
1065
+ }
1066
+ toAbortSignal() {
1067
+ const e = new AbortController(), n = (r) => {
1068
+ e.abort(r);
1069
+ };
1070
+ return this.subscribe(n), e.signal.unsubscribe = () => this.unsubscribe(n), e.signal;
1071
+ }
1072
+ /**
1073
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
1074
+ * cancels the `CancelToken`.
1075
+ */
1076
+ static source() {
1077
+ let e;
1078
+ return {
1079
+ token: new ae(function(s) {
1080
+ e = s;
1081
+ }),
1082
+ cancel: e
1083
+ };
1084
+ }
1085
+ }
1086
+ function qe(t) {
1087
+ return !!(t && t.__CANCEL__);
1088
+ }
1089
+ const He = "1.13.2", X = {};
1090
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach(
1091
+ (t, e) => {
1092
+ X[t] = function(r) {
1093
+ return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
1094
+ };
1095
+ }
1096
+ );
1097
+ const xe = {};
1098
+ X.transitional = function(e, n, r) {
1099
+ function s(a, o) {
1100
+ return "[Axios v" + He + "] Transitional option '" + a + "'" + o + (r ? ". " + r : "");
1101
+ }
1102
+ return (a, o, c) => {
1103
+ if (e === !1)
1104
+ throw new b(
1105
+ s(
1106
+ o,
1107
+ " has been removed" + (n ? " in " + n : "")
1108
+ ),
1109
+ b.ERR_DEPRECATED
1110
+ );
1111
+ return n && !xe[o] && (xe[o] = !0, console.warn(
1112
+ s(
1113
+ o,
1114
+ " has been deprecated since v" + n + " and will be removed in the near future"
1115
+ )
1116
+ )), e ? e(a, o, c) : !0;
1117
+ };
1118
+ };
1119
+ X.spelling = function(e) {
1120
+ return (n, r) => (console.warn(`${r} is likely a misspelling of ${e}`), !0);
1121
+ };
1122
+ function xt(t, e, n) {
1123
+ if (typeof t != "object")
1124
+ throw new b(
1125
+ "options must be an object",
1126
+ b.ERR_BAD_OPTION_VALUE
1127
+ );
1128
+ const r = Object.keys(t);
1129
+ let s = r.length;
1130
+ for (; s-- > 0; ) {
1131
+ const a = r[s], o = e[a];
1132
+ if (o) {
1133
+ const c = t[a], h = c === void 0 || o(c, a, t);
1134
+ if (h !== !0)
1135
+ throw new b(
1136
+ "option " + a + " must be " + h,
1137
+ b.ERR_BAD_OPTION_VALUE
1138
+ );
1139
+ continue;
1140
+ }
1141
+ if (n !== !0)
1142
+ throw new b("Unknown option " + a, b.ERR_BAD_OPTION);
1143
+ }
1144
+ }
1145
+ const K = {
1146
+ assertOptions: xt,
1147
+ validators: X
1148
+ };
1149
+ class Ce {
1150
+ constructor() {
1151
+ this.handlers = [];
1152
+ }
1153
+ /**
1154
+ * Add a new interceptor to the stack
1155
+ *
1156
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
1157
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
1158
+ *
1159
+ * @return {Number} An ID used to remove interceptor later
1160
+ */
1161
+ use(e, n, r) {
1162
+ return this.handlers.push({
1163
+ fulfilled: e,
1164
+ rejected: n,
1165
+ synchronous: r ? r.synchronous : !1,
1166
+ runWhen: r ? r.runWhen : null
1167
+ }), this.handlers.length - 1;
1168
+ }
1169
+ /**
1170
+ * Remove an interceptor from the stack
1171
+ *
1172
+ * @param {Number} id The ID that was returned by `use`
1173
+ *
1174
+ * @returns {void}
1175
+ */
1176
+ eject(e) {
1177
+ this.handlers[e] && (this.handlers[e] = null);
1178
+ }
1179
+ /**
1180
+ * Clear all interceptors from the stack
1181
+ *
1182
+ * @returns {void}
1183
+ */
1184
+ clear() {
1185
+ this.handlers && (this.handlers = []);
1186
+ }
1187
+ /**
1188
+ * Iterate over all the registered interceptors
1189
+ *
1190
+ * This method is particularly useful for skipping over any
1191
+ * interceptors that may have become `null` calling `eject`.
1192
+ *
1193
+ * @param {Function} fn The function to call for each interceptor
1194
+ *
1195
+ * @returns {void}
1196
+ */
1197
+ forEach(e) {
1198
+ i.forEach(this.handlers, function(r) {
1199
+ r !== null && e(r);
1200
+ });
1201
+ }
1202
+ }
1203
+ function Ct(t) {
1204
+ return i.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
1205
+ }
1206
+ function Pt(t) {
1207
+ const e = {}, n = Object.keys(t);
1208
+ let r;
1209
+ const s = n.length;
1210
+ let a;
1211
+ for (r = 0; r < s; r++)
1212
+ a = n[r], e[a] = t[a];
1213
+ return e;
1214
+ }
1215
+ function Ie(t) {
1216
+ function e(n, r, s, a) {
1217
+ let o = n[a++];
1218
+ if (o === "__proto__") return !0;
1219
+ const c = Number.isFinite(+o), h = a >= n.length;
1220
+ return o = !o && i.isArray(s) ? s.length : o, h ? (i.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !c) : ((!s[o] || !i.isObject(s[o])) && (s[o] = []), e(n, r, s[o], a) && i.isArray(s[o]) && (s[o] = Pt(s[o])), !c);
1221
+ }
1222
+ if (i.isFormData(t) && i.isFunction(t.entries)) {
1223
+ const n = {};
1224
+ return i.forEachEntry(t, (r, s) => {
1225
+ e(Ct(r), s, n, 0);
1226
+ }), n;
1227
+ }
1228
+ return null;
1229
+ }
1230
+ function Ut(t, e) {
1231
+ return I(t, new R.classes.URLSearchParams(), {
1232
+ visitor: function(n, r, s, a) {
1233
+ return R.isNode && i.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
1234
+ },
1235
+ ...e
1236
+ });
1237
+ }
1238
+ function Nt(t, e, n) {
1239
+ if (i.isString(t))
1240
+ try {
1241
+ return (e || JSON.parse)(t), i.trim(t);
1242
+ } catch (r) {
1243
+ if (r.name !== "SyntaxError")
1244
+ throw r;
1245
+ }
1246
+ return (n || JSON.stringify)(t);
1247
+ }
1248
+ const v = {
1249
+ transitional: Be,
1250
+ adapter: ["xhr", "http", "fetch"],
1251
+ transformRequest: [
1252
+ function(e, n) {
1253
+ const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, a = i.isObject(e);
1254
+ if (a && i.isHTMLForm(e) && (e = new FormData(e)), i.isFormData(e))
1255
+ return s ? JSON.stringify(Ie(e)) : e;
1256
+ if (i.isArrayBuffer(e) || i.isBuffer(e) || i.isStream(e) || i.isFile(e) || i.isBlob(e) || i.isReadableStream(e))
1257
+ return e;
1258
+ if (i.isArrayBufferView(e))
1259
+ return e.buffer;
1260
+ if (i.isURLSearchParams(e))
1261
+ return n.setContentType(
1262
+ "application/x-www-form-urlencoded;charset=utf-8",
1263
+ !1
1264
+ ), e.toString();
1265
+ let c;
1266
+ if (a) {
1267
+ if (r.indexOf("application/x-www-form-urlencoded") > -1)
1268
+ return Ut(e, this.formSerializer).toString();
1269
+ if ((c = i.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
1270
+ const h = this.env && this.env.FormData;
1271
+ return I(
1272
+ c ? { "files[]": e } : e,
1273
+ h && new h(),
1274
+ this.formSerializer
1275
+ );
1276
+ }
1277
+ }
1278
+ return a || s ? (n.setContentType("application/json", !1), Nt(e)) : e;
1279
+ }
1280
+ ],
1281
+ transformResponse: [
1282
+ function(e) {
1283
+ const n = this.transitional || v.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
1284
+ if (i.isResponse(e) || i.isReadableStream(e))
1285
+ return e;
1286
+ if (e && i.isString(e) && (r && !this.responseType || s)) {
1287
+ const o = !(n && n.silentJSONParsing) && s;
1288
+ try {
1289
+ return JSON.parse(e, this.parseReviver);
1290
+ } catch (c) {
1291
+ if (o)
1292
+ throw c.name === "SyntaxError" ? b.from(
1293
+ c,
1294
+ b.ERR_BAD_RESPONSE,
1295
+ this,
1296
+ null,
1297
+ this.response
1298
+ ) : c;
1299
+ }
1300
+ }
1301
+ return e;
1302
+ }
1303
+ ],
1304
+ /**
1305
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
1306
+ * timeout is not created.
1307
+ */
1308
+ timeout: 0,
1309
+ xsrfCookieName: "XSRF-TOKEN",
1310
+ xsrfHeaderName: "X-XSRF-TOKEN",
1311
+ maxContentLength: -1,
1312
+ maxBodyLength: -1,
1313
+ env: {
1314
+ FormData: R.classes.FormData,
1315
+ Blob: R.classes.Blob
1316
+ },
1317
+ validateStatus: function(e) {
1318
+ return e >= 200 && e < 300;
1319
+ },
1320
+ headers: {
1321
+ common: {
1322
+ Accept: "application/json, text/plain, */*",
1323
+ "Content-Type": void 0
1324
+ }
1325
+ }
1326
+ };
1327
+ i.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
1328
+ v.headers[t] = {};
1329
+ });
1330
+ function Y(t, e) {
1331
+ const n = this || v, r = e || n, s = O.from(r.headers);
1332
+ let a = r.data;
1333
+ return i.forEach(t, function(c) {
1334
+ a = c.call(
1335
+ n,
1336
+ a,
1337
+ s.normalize(),
1338
+ e ? e.status : void 0
1339
+ );
1340
+ }), s.normalize(), a;
1341
+ }
1342
+ function ee(t) {
1343
+ if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
1344
+ throw new D(null, t);
1345
+ }
1346
+ function Pe(t) {
1347
+ return ee(t), t.headers = O.from(t.headers), t.data = Y.call(t, t.transformRequest), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), De.getAdapter(
1348
+ t.adapter || v.adapter,
1349
+ t
1350
+ )(t).then(
1351
+ function(r) {
1352
+ return ee(t), r.data = Y.call(
1353
+ t,
1354
+ t.transformResponse,
1355
+ r
1356
+ ), r.headers = O.from(r.headers), r;
1357
+ },
1358
+ function(r) {
1359
+ return qe(r) || (ee(t), r && r.response && (r.response.data = Y.call(
1360
+ t,
1361
+ t.transformResponse,
1362
+ r.response
1363
+ ), r.response.headers = O.from(r.response.headers))), Promise.reject(r);
1364
+ }
1365
+ );
1366
+ }
1367
+ const U = K.validators;
1368
+ class j {
1369
+ constructor(e) {
1370
+ this.defaults = e || {}, this.interceptors = {
1371
+ request: new Ce(),
1372
+ response: new Ce()
1373
+ };
1374
+ }
1375
+ /**
1376
+ * Dispatch a request
1377
+ *
1378
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
1379
+ * @param {?Object} config
1380
+ *
1381
+ * @returns {Promise} The Promise to be fulfilled
1382
+ */
1383
+ async request(e, n) {
1384
+ try {
1385
+ return await this._request(e, n);
1386
+ } catch (r) {
1387
+ if (r instanceof Error) {
1388
+ let s = {};
1389
+ Error.captureStackTrace ? Error.captureStackTrace(s) : s = new Error();
1390
+ const a = s.stack ? s.stack.replace(/^.+\n/, "") : "";
1391
+ try {
1392
+ r.stack ? a && !String(r.stack).endsWith(a.replace(/^.+\n.+\n/, "")) && (r.stack += `
1393
+ ` + a) : r.stack = a;
1394
+ } catch {
1395
+ }
1396
+ }
1397
+ throw r;
1398
+ }
1399
+ }
1400
+ _request(e, n) {
1401
+ typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = k(this.defaults, n);
1402
+ const { transitional: r, paramsSerializer: s, headers: a } = n;
1403
+ r !== void 0 && K.assertOptions(
1404
+ r,
1405
+ {
1406
+ silentJSONParsing: U.transitional(U.boolean),
1407
+ forcedJSONParsing: U.transitional(U.boolean),
1408
+ clarifyTimeoutError: U.transitional(U.boolean)
1409
+ },
1410
+ !1
1411
+ ), s != null && (i.isFunction(s) ? n.paramsSerializer = {
1412
+ serialize: s
1413
+ } : K.assertOptions(
1414
+ s,
1415
+ {
1416
+ encode: U.function,
1417
+ serialize: U.function
1418
+ },
1419
+ !0
1420
+ )), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), K.assertOptions(
1421
+ n,
1422
+ {
1423
+ baseUrl: U.spelling("baseURL"),
1424
+ withXsrfToken: U.spelling("withXSRFToken")
1425
+ },
1426
+ !0
1427
+ ), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1428
+ let o = a && i.merge(a.common, a[n.method]);
1429
+ a && i.forEach(
1430
+ ["delete", "get", "head", "post", "put", "patch", "common"],
1431
+ (u) => {
1432
+ delete a[u];
1433
+ }
1434
+ ), n.headers = O.concat(o, a);
1435
+ const c = [];
1436
+ let h = !0;
1437
+ this.interceptors.request.forEach(
1438
+ function(m) {
1439
+ typeof m.runWhen == "function" && m.runWhen(n) === !1 || (h = h && m.synchronous, c.unshift(
1440
+ m.fulfilled,
1441
+ m.rejected
1442
+ ));
1443
+ }
1444
+ );
1445
+ const f = [];
1446
+ this.interceptors.response.forEach(
1447
+ function(m) {
1448
+ f.push(
1449
+ m.fulfilled,
1450
+ m.rejected
1451
+ );
1452
+ }
1453
+ );
1454
+ let l, p = 0, w;
1455
+ if (!h) {
1456
+ const u = [Pe.bind(this), void 0];
1457
+ for (u.unshift(...c), u.push(...f), w = u.length, l = Promise.resolve(n); p < w; )
1458
+ l = l.then(u[p++], u[p++]);
1459
+ return l;
1460
+ }
1461
+ w = c.length;
1462
+ let E = n;
1463
+ for (; p < w; ) {
1464
+ const u = c[p++], m = c[p++];
1465
+ try {
1466
+ E = u(E);
1467
+ } catch (d) {
1468
+ m.call(this, d);
1469
+ break;
1470
+ }
1471
+ }
1472
+ try {
1473
+ l = Pe.call(this, E);
1474
+ } catch (u) {
1475
+ return Promise.reject(u);
1476
+ }
1477
+ for (p = 0, w = f.length; p < w; )
1478
+ l = l.then(
1479
+ f[p++],
1480
+ f[p++]
1481
+ );
1482
+ return l;
1483
+ }
1484
+ getUri(e) {
1485
+ e = k(this.defaults, e);
1486
+ const n = Ne(
1487
+ e.baseURL,
1488
+ e.url,
1489
+ e.allowAbsoluteUrls
1490
+ );
1491
+ return _e(n, e.params, e.paramsSerializer);
1492
+ }
1493
+ }
1494
+ i.forEach(
1495
+ ["delete", "get", "head", "options"],
1496
+ function(e) {
1497
+ j.prototype[e] = function(n, r) {
1498
+ return this.request(
1499
+ k(r || {}, {
1500
+ method: e,
1501
+ url: n,
1502
+ data: (r || {}).data
1503
+ })
1504
+ );
1505
+ };
1506
+ }
1507
+ );
1508
+ i.forEach(["post", "put", "patch"], function(e) {
1509
+ function n(r) {
1510
+ return function(a, o, c) {
1511
+ return this.request(
1512
+ k(c || {}, {
1513
+ method: e,
1514
+ headers: r ? {
1515
+ "Content-Type": "multipart/form-data"
1516
+ } : {},
1517
+ url: a,
1518
+ data: o
1519
+ })
1520
+ );
1521
+ };
1522
+ }
1523
+ j.prototype[e] = n(), j.prototype[e + "Form"] = n(!0);
1524
+ });
1525
+ const re = {
1526
+ Continue: 100,
1527
+ SwitchingProtocols: 101,
1528
+ Processing: 102,
1529
+ EarlyHints: 103,
1530
+ Ok: 200,
1531
+ Created: 201,
1532
+ Accepted: 202,
1533
+ NonAuthoritativeInformation: 203,
1534
+ NoContent: 204,
1535
+ ResetContent: 205,
1536
+ PartialContent: 206,
1537
+ MultiStatus: 207,
1538
+ AlreadyReported: 208,
1539
+ ImUsed: 226,
1540
+ MultipleChoices: 300,
1541
+ MovedPermanently: 301,
1542
+ Found: 302,
1543
+ SeeOther: 303,
1544
+ NotModified: 304,
1545
+ UseProxy: 305,
1546
+ Unused: 306,
1547
+ TemporaryRedirect: 307,
1548
+ PermanentRedirect: 308,
1549
+ BadRequest: 400,
1550
+ Unauthorized: 401,
1551
+ PaymentRequired: 402,
1552
+ Forbidden: 403,
1553
+ NotFound: 404,
1554
+ MethodNotAllowed: 405,
1555
+ NotAcceptable: 406,
1556
+ ProxyAuthenticationRequired: 407,
1557
+ RequestTimeout: 408,
1558
+ Conflict: 409,
1559
+ Gone: 410,
1560
+ LengthRequired: 411,
1561
+ PreconditionFailed: 412,
1562
+ PayloadTooLarge: 413,
1563
+ UriTooLong: 414,
1564
+ UnsupportedMediaType: 415,
1565
+ RangeNotSatisfiable: 416,
1566
+ ExpectationFailed: 417,
1567
+ ImATeapot: 418,
1568
+ MisdirectedRequest: 421,
1569
+ UnprocessableEntity: 422,
1570
+ Locked: 423,
1571
+ FailedDependency: 424,
1572
+ TooEarly: 425,
1573
+ UpgradeRequired: 426,
1574
+ PreconditionRequired: 428,
1575
+ TooManyRequests: 429,
1576
+ RequestHeaderFieldsTooLarge: 431,
1577
+ UnavailableForLegalReasons: 451,
1578
+ InternalServerError: 500,
1579
+ NotImplemented: 501,
1580
+ BadGateway: 502,
1581
+ ServiceUnavailable: 503,
1582
+ GatewayTimeout: 504,
1583
+ HttpVersionNotSupported: 505,
1584
+ VariantAlsoNegotiates: 506,
1585
+ InsufficientStorage: 507,
1586
+ LoopDetected: 508,
1587
+ NotExtended: 510,
1588
+ NetworkAuthenticationRequired: 511,
1589
+ WebServerIsDown: 521,
1590
+ ConnectionTimedOut: 522,
1591
+ OriginIsUnreachable: 523,
1592
+ TimeoutOccurred: 524,
1593
+ SslHandshakeFailed: 525,
1594
+ InvalidSslCertificate: 526
1595
+ };
1596
+ Object.entries(re).forEach(([t, e]) => {
1597
+ re[e] = t;
1598
+ });
1599
+ function Ft(t) {
1600
+ return i.isObject(t) && t.isAxiosError === !0;
1601
+ }
1602
+ function Lt(t) {
1603
+ return function(n) {
1604
+ return t.apply(null, n);
1605
+ };
1606
+ }
1607
+ function ve(t) {
1608
+ const e = new j(t), n = ze(j.prototype.request, e);
1609
+ return i.extend(n, j.prototype, e, { allOwnKeys: !0 }), i.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(s) {
1610
+ return ve(k(t, s));
1611
+ }, n;
1612
+ }
1613
+ const S = ve(v);
1614
+ S.Axios = j;
1615
+ S.CanceledError = D;
1616
+ S.CancelToken = ae;
1617
+ S.isCancel = qe;
1618
+ S.VERSION = He;
1619
+ S.toFormData = I;
1620
+ S.AxiosError = b;
1621
+ S.Cancel = S.CanceledError;
1622
+ S.all = function(e) {
1623
+ return Promise.all(e);
1624
+ };
1625
+ S.spread = Lt;
1626
+ S.isAxiosError = Ft;
1627
+ S.mergeConfig = k;
1628
+ S.AxiosHeaders = O;
1629
+ S.formToJSON = (t) => Ie(i.isHTMLForm(t) ? new FormData(t) : t);
1630
+ S.getAdapter = De.getAdapter;
1631
+ S.HttpStatusCode = re;
1632
+ S.default = S;
45
1633
  export {
46
- r as default
1634
+ S as default
47
1635
  };