create-ssnode-cli 0.2.2 → 0.2.3

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 (203) hide show
  1. package/package.json +1 -1
  2. package/templates/backend/config/config.develop.yaml +6 -4
  3. package/templates/backend/data/template.dev.sqlite-shm +0 -0
  4. package/templates/backend/data/template.dev.sqlite-wal +0 -0
  5. package/templates/backend/dist/app.module.js +85 -1
  6. package/templates/backend/dist/app.module.js.map +1 -1
  7. package/templates/backend/dist/common/all-exceptions.filter.js +47 -1
  8. package/templates/backend/dist/common/all-exceptions.filter.js.map +1 -1
  9. package/templates/backend/dist/common/app-crypto.js +119 -1
  10. package/templates/backend/dist/common/app-crypto.js.map +1 -1
  11. package/templates/backend/dist/common/app-sign.guard.js +72 -1
  12. package/templates/backend/dist/common/app-sign.guard.js.map +1 -1
  13. package/templates/backend/dist/common/app-sign.module.js +20 -1
  14. package/templates/backend/dist/common/app-sign.module.js.map +1 -1
  15. package/templates/backend/dist/common/response.js +23 -1
  16. package/templates/backend/dist/common/response.js.map +1 -1
  17. package/templates/backend/dist/common/throttle.guard.js +42 -1
  18. package/templates/backend/dist/common/throttle.guard.js.map +1 -1
  19. package/templates/backend/dist/common/transform.interceptor.js +28 -1
  20. package/templates/backend/dist/common/transform.interceptor.js.map +1 -1
  21. package/templates/backend/dist/config/config.interface.js +2 -1
  22. package/templates/backend/dist/config/config.interface.js.map +1 -1
  23. package/templates/backend/dist/config/configuration.js +91 -1
  24. package/templates/backend/dist/config/configuration.js.map +1 -1
  25. package/templates/backend/dist/database/migrations/0001-init.migration.js +69 -1
  26. package/templates/backend/dist/database/migrations/0001-init.migration.js.map +1 -1
  27. package/templates/backend/dist/database/sqlite.config.js +32 -1
  28. package/templates/backend/dist/database/sqlite.config.js.map +1 -1
  29. package/templates/backend/dist/entities/audit-log.entity.js +49 -1
  30. package/templates/backend/dist/entities/audit-log.entity.js.map +1 -1
  31. package/templates/backend/dist/entities/image.entity.js +50 -1
  32. package/templates/backend/dist/entities/image.entity.js.map +1 -1
  33. package/templates/backend/dist/entities/page-data.entity.js +60 -1
  34. package/templates/backend/dist/entities/page-data.entity.js.map +1 -1
  35. package/templates/backend/dist/entities/screen-config.entity.js +74 -1
  36. package/templates/backend/dist/entities/screen-config.entity.js.map +1 -1
  37. package/templates/backend/dist/entities/user.entity.js +59 -1
  38. package/templates/backend/dist/entities/user.entity.js.map +1 -1
  39. package/templates/backend/dist/main.js +56 -1
  40. package/templates/backend/dist/main.js.map +1 -1
  41. package/templates/backend/dist/modules/audit/audit.controller.js +51 -1
  42. package/templates/backend/dist/modules/audit/audit.controller.js.map +1 -1
  43. package/templates/backend/dist/modules/audit/audit.module.js +25 -1
  44. package/templates/backend/dist/modules/audit/audit.module.js.map +1 -1
  45. package/templates/backend/dist/modules/audit/audit.service.js +57 -1
  46. package/templates/backend/dist/modules/audit/audit.service.js.map +1 -1
  47. package/templates/backend/dist/modules/auth/auth.controller.js +74 -1
  48. package/templates/backend/dist/modules/auth/auth.controller.js.map +1 -1
  49. package/templates/backend/dist/modules/auth/auth.module.js +45 -1
  50. package/templates/backend/dist/modules/auth/auth.module.js.map +1 -1
  51. package/templates/backend/dist/modules/auth/auth.service.js +151 -1
  52. package/templates/backend/dist/modules/auth/auth.service.js.map +1 -1
  53. package/templates/backend/dist/modules/auth/captcha.service.js +56 -1
  54. package/templates/backend/dist/modules/auth/captcha.service.js.map +1 -1
  55. package/templates/backend/dist/modules/auth/jwt-auth.guard.js +17 -1
  56. package/templates/backend/dist/modules/auth/jwt-auth.guard.js.map +1 -1
  57. package/templates/backend/dist/modules/auth/jwt.strategy.js +37 -1
  58. package/templates/backend/dist/modules/auth/jwt.strategy.js.map +1 -1
  59. package/templates/backend/dist/modules/image/image.controller.js +75 -1
  60. package/templates/backend/dist/modules/image/image.controller.js.map +1 -1
  61. package/templates/backend/dist/modules/image/image.module.js +26 -1
  62. package/templates/backend/dist/modules/image/image.module.js.map +1 -1
  63. package/templates/backend/dist/modules/image/image.service.js +94 -1
  64. package/templates/backend/dist/modules/image/image.service.js.map +1 -1
  65. package/templates/backend/dist/modules/ops/backend-version.probe.js +58 -1
  66. package/templates/backend/dist/modules/ops/backend-version.probe.js.map +1 -1
  67. package/templates/backend/dist/modules/ops/ops-probe.interface.js +4 -1
  68. package/templates/backend/dist/modules/ops/ops-probe.interface.js.map +1 -1
  69. package/templates/backend/dist/modules/ops/ops.controller.js +52 -1
  70. package/templates/backend/dist/modules/ops/ops.controller.js.map +1 -1
  71. package/templates/backend/dist/modules/ops/ops.module.js +39 -1
  72. package/templates/backend/dist/modules/ops/ops.module.js.map +1 -1
  73. package/templates/backend/dist/modules/ops/ops.service.js +72 -1
  74. package/templates/backend/dist/modules/ops/ops.service.js.map +1 -1
  75. package/templates/backend/dist/modules/ops/sqlite-backup-list.probe.js +105 -1
  76. package/templates/backend/dist/modules/ops/sqlite-backup-list.probe.js.map +1 -1
  77. package/templates/backend/dist/modules/ops/sqlite-backup-log.probe.js +67 -1
  78. package/templates/backend/dist/modules/ops/sqlite-backup-log.probe.js.map +1 -1
  79. package/templates/backend/dist/modules/ops/sqlite-backup.probe.js +115 -1
  80. package/templates/backend/dist/modules/ops/sqlite-backup.probe.js.map +1 -1
  81. package/templates/backend/dist/modules/ops/version.controller.js +52 -1
  82. package/templates/backend/dist/modules/ops/version.controller.js.map +1 -1
  83. package/templates/backend/dist/modules/page-data/page-data.controller.js +109 -1
  84. package/templates/backend/dist/modules/page-data/page-data.controller.js.map +1 -1
  85. package/templates/backend/dist/modules/page-data/page-data.module.js +25 -1
  86. package/templates/backend/dist/modules/page-data/page-data.module.js.map +1 -1
  87. package/templates/backend/dist/modules/page-data/page-data.service.js +69 -1
  88. package/templates/backend/dist/modules/page-data/page-data.service.js.map +1 -1
  89. package/templates/backend/dist/modules/screen-config/screen-config.controller.js +61 -1
  90. package/templates/backend/dist/modules/screen-config/screen-config.controller.js.map +1 -1
  91. package/templates/backend/dist/modules/screen-config/screen-config.module.js +25 -1
  92. package/templates/backend/dist/modules/screen-config/screen-config.module.js.map +1 -1
  93. package/templates/backend/dist/modules/screen-config/screen-config.service.js +41 -1
  94. package/templates/backend/dist/modules/screen-config/screen-config.service.js.map +1 -1
  95. package/templates/backend/dist/modules/upload/upload.controller.js +65 -1
  96. package/templates/backend/dist/modules/upload/upload.controller.js.map +1 -1
  97. package/templates/backend/dist/modules/upload/upload.module.js +22 -1
  98. package/templates/backend/dist/modules/upload/upload.module.js.map +1 -1
  99. package/templates/backend/dist/modules/upload/upload.service.js +75 -1
  100. package/templates/backend/dist/modules/upload/upload.service.js.map +1 -1
  101. package/templates/backend/dist/modules/user/user.controller.js +149 -1
  102. package/templates/backend/dist/modules/user/user.controller.js.map +1 -1
  103. package/templates/backend/dist/modules/user/user.module.js +26 -1
  104. package/templates/backend/dist/modules/user/user.module.js.map +1 -1
  105. package/templates/backend/dist/modules/user/user.service.js +249 -1
  106. package/templates/backend/dist/modules/user/user.service.js.map +1 -1
  107. package/templates/backend/dist/modules/websocket/websocket.gateway.js +33 -1
  108. package/templates/backend/dist/modules/websocket/websocket.gateway.js.map +1 -1
  109. package/templates/backend/dist/modules/websocket/websocket.module.js +19 -1
  110. package/templates/backend/dist/modules/websocket/websocket.module.js.map +1 -1
  111. package/templates/backend/dist/tsconfig.build.tsbuildinfo +1 -1
  112. package/templates/backend/package.json +1 -1
  113. package/templates/backend/src/modules/auth/captcha.service.ts +6 -5
  114. package/templates/web/dist/assets/{AuthLayout-bcf98efb.js → AuthLayout-f1e8d110.js} +1 -1
  115. package/templates/web/dist/assets/{AuthLayout-legacy-6e7a8ae1.js → AuthLayout-legacy-f871651c.js} +1 -1
  116. package/templates/web/dist/assets/{Background-eb77ef54.js → Background-955d549f.js} +1 -1
  117. package/templates/web/dist/assets/{Background-legacy-50457007.js → Background-legacy-fbad6e76.js} +1 -1
  118. package/templates/web/dist/assets/{Screen-318c3fc2.js → Screen-b14b0813.js} +1 -1
  119. package/templates/web/dist/assets/{Screen-legacy-af123b0f.js → Screen-legacy-154c8ee6.js} +1 -1
  120. package/templates/web/dist/assets/{api-beff4a3e.js → api-4d80e36e.js} +1 -1
  121. package/templates/web/dist/assets/{api-legacy-9fe41d4b.js → api-legacy-054fd569.js} +1 -1
  122. package/templates/web/dist/assets/{component-89b5253e.js → component-9d9f33fa.js} +1 -1
  123. package/templates/web/dist/assets/{component-legacy-8c5a28ef.js → component-legacy-4445386a.js} +1 -1
  124. package/templates/web/dist/assets/{index-a79e448b.js → index-107a0e80.js} +1 -1
  125. package/templates/web/dist/assets/{index-b60badf7.js → index-5afb70be.js} +1 -1
  126. package/templates/web/dist/assets/{index-cba19800.js → index-7b807c2d.js} +1 -1
  127. package/templates/web/dist/assets/{index-86214b19.js → index-ab64cd34.js} +1 -1
  128. package/templates/web/dist/assets/{index-7277cbfb.js → index-d8bfffb3.js} +1 -1
  129. package/templates/web/dist/assets/{index-d70eb540.js → index-db169639.js} +1 -1
  130. package/templates/web/dist/assets/{index-bd4ed808.js → index-e08dc495.js} +1 -1
  131. package/templates/web/dist/assets/index-e31f4b7c.js +1 -0
  132. package/templates/web/dist/assets/{index-legacy-783129a7.js → index-legacy-5cf7be80.js} +1 -1
  133. package/templates/web/dist/assets/index-legacy-6f112001.js +1 -0
  134. package/templates/web/dist/assets/{index-legacy-b3bd40c1.js → index-legacy-91e012ac.js} +1 -1
  135. package/templates/web/dist/assets/{index-legacy-0da8de82.js → index-legacy-aa61cf72.js} +1 -1
  136. package/templates/web/dist/assets/{index-legacy-06483318.js → index-legacy-afba9135.js} +1 -1
  137. package/templates/web/dist/assets/{index-legacy-d510e318.js → index-legacy-da51c769.js} +1 -1
  138. package/templates/web/dist/assets/{index-legacy-993ef005.js → index-legacy-eec0ca6e.js} +1 -1
  139. package/templates/web/dist/assets/{index-legacy-feb54578.js → index-legacy-f732db29.js} +1 -1
  140. package/templates/web/dist/index.html +2 -2
  141. package/templates/web/node_modules/.vite/deps/@ant-design_icons.js +4 -4
  142. package/templates/web/node_modules/.vite/deps/_metadata.json +57 -57
  143. package/templates/web/node_modules/.vite/deps/antd.js +6 -6
  144. package/templates/web/node_modules/.vite/deps/antd_locale_zh_CN.js +1 -1
  145. package/templates/web/node_modules/.vite/deps/axios.js +2793 -1104
  146. package/templates/web/node_modules/.vite/deps/axios.js.map +4 -4
  147. package/templates/web/node_modules/.vite/deps/{chunk-FADIZLW4.js → chunk-3EE4ABTD.js} +3 -3
  148. package/templates/web/node_modules/.vite/deps/{chunk-5JEEJ3ET.js → chunk-3KXTUEQ5.js} +2 -2
  149. package/templates/web/node_modules/.vite/deps/{chunk-DSEUD2VO.js → chunk-622VOE6C.js} +28 -237
  150. package/templates/web/node_modules/.vite/deps/chunk-622VOE6C.js.map +7 -0
  151. package/templates/web/node_modules/.vite/deps/{chunk-PCLWPLHU.js → chunk-AX2S74EI.js} +4 -4
  152. package/templates/web/node_modules/.vite/deps/{chunk-UX3FVGZU.js → chunk-DXNXWKU4.js} +1670 -1309
  153. package/templates/web/node_modules/.vite/deps/chunk-DXNXWKU4.js.map +7 -0
  154. package/templates/web/node_modules/.vite/deps/{chunk-OTDKR2HU.js → chunk-GT2UP6M4.js} +2 -2
  155. package/templates/web/node_modules/.vite/deps/{chunk-5WWUZCGV.js → chunk-HM4MQYWN.js} +10 -2
  156. package/templates/web/node_modules/.vite/deps/{chunk-Z4XTF2JV.js → chunk-NDUAOA7M.js} +2 -2
  157. package/templates/web/node_modules/.vite/deps/{chunk-PIIG5WB7.js → chunk-OKY2XKJX.js} +14406 -12416
  158. package/templates/web/node_modules/.vite/deps/chunk-OKY2XKJX.js.map +7 -0
  159. package/templates/web/node_modules/.vite/deps/{chunk-UIM57Q7Y.js → chunk-SC6QO7UO.js} +6086 -4354
  160. package/templates/web/node_modules/.vite/deps/chunk-SC6QO7UO.js.map +7 -0
  161. package/templates/web/node_modules/.vite/deps/classnames.js +2 -2
  162. package/templates/web/node_modules/.vite/deps/dayjs.js +2 -2
  163. package/templates/web/node_modules/.vite/deps/dayjs_locale_zh-cn.js +2 -2
  164. package/templates/web/node_modules/.vite/deps/echarts_charts.js +7172 -6102
  165. package/templates/web/node_modules/.vite/deps/echarts_charts.js.map +4 -4
  166. package/templates/web/node_modules/.vite/deps/echarts_components.js +3363 -1326
  167. package/templates/web/node_modules/.vite/deps/echarts_components.js.map +4 -4
  168. package/templates/web/node_modules/.vite/deps/echarts_core.js +57 -42
  169. package/templates/web/node_modules/.vite/deps/echarts_core.js.map +3 -3
  170. package/templates/web/node_modules/.vite/deps/echarts_renderers.js +432 -334
  171. package/templates/web/node_modules/.vite/deps/echarts_renderers.js.map +4 -4
  172. package/templates/web/node_modules/.vite/deps/exceljs.js +25762 -0
  173. package/templates/web/node_modules/.vite/deps/exceljs.js.map +7 -0
  174. package/templates/web/node_modules/.vite/deps/lodash.js +28 -10
  175. package/templates/web/node_modules/.vite/deps/lodash.js.map +3 -3
  176. package/templates/web/node_modules/.vite/deps/path-browserify.js +1 -1
  177. package/templates/web/node_modules/.vite/deps/prop-types.js +1 -1
  178. package/templates/web/node_modules/.vite/deps/qs.js +405 -138
  179. package/templates/web/node_modules/.vite/deps/qs.js.map +4 -4
  180. package/templates/web/node_modules/.vite/deps/react-dom.js +3 -3
  181. package/templates/web/node_modules/.vite/deps/react-dom_client.js +3 -3
  182. package/templates/web/node_modules/.vite/deps/react-router-dom.js +3445 -1283
  183. package/templates/web/node_modules/.vite/deps/react-router-dom.js.map +4 -4
  184. package/templates/web/node_modules/.vite/deps/react.js +2 -2
  185. package/templates/web/node_modules/.vite/deps/react_jsx-dev-runtime.js +2 -2
  186. package/templates/web/node_modules/.vite/deps/recoil.js +3 -3
  187. package/templates/web/src/pages/Login/index.tsx +8 -1
  188. package/templates/web/src/services/api.ts +6 -1
  189. package/templates/web/vite.config.js +5 -5
  190. package/templates/web/dist/assets/index-e6071630.js +0 -1
  191. package/templates/web/dist/assets/index-legacy-028ed5d5.js +0 -1
  192. package/templates/web/node_modules/.vite/deps/chunk-DSEUD2VO.js.map +0 -7
  193. package/templates/web/node_modules/.vite/deps/chunk-PIIG5WB7.js.map +0 -7
  194. package/templates/web/node_modules/.vite/deps/chunk-UIM57Q7Y.js.map +0 -7
  195. package/templates/web/node_modules/.vite/deps/chunk-UX3FVGZU.js.map +0 -7
  196. package/templates/web/node_modules/.vite/deps/xlsx.js +0 -33827
  197. package/templates/web/node_modules/.vite/deps/xlsx.js.map +0 -7
  198. /package/templates/web/node_modules/.vite/deps/{chunk-FADIZLW4.js.map → chunk-3EE4ABTD.js.map} +0 -0
  199. /package/templates/web/node_modules/.vite/deps/{chunk-5JEEJ3ET.js.map → chunk-3KXTUEQ5.js.map} +0 -0
  200. /package/templates/web/node_modules/.vite/deps/{chunk-PCLWPLHU.js.map → chunk-AX2S74EI.js.map} +0 -0
  201. /package/templates/web/node_modules/.vite/deps/{chunk-OTDKR2HU.js.map → chunk-GT2UP6M4.js.map} +0 -0
  202. /package/templates/web/node_modules/.vite/deps/{chunk-5WWUZCGV.js.map → chunk-HM4MQYWN.js.map} +0 -0
  203. /package/templates/web/node_modules/.vite/deps/{chunk-Z4XTF2JV.js.map → chunk-NDUAOA7M.js.map} +0 -0
@@ -1,17 +1,95 @@
1
1
  import {
2
2
  __export
3
- } from "./chunk-5WWUZCGV.js";
3
+ } from "./chunk-HM4MQYWN.js";
4
4
 
5
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/bind.js
5
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/bind.js
6
6
  function bind(fn, thisArg) {
7
7
  return function wrap() {
8
8
  return fn.apply(thisArg, arguments);
9
9
  };
10
10
  }
11
11
 
12
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/utils.js
12
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/utils.js
13
13
  var { toString } = Object.prototype;
14
14
  var { getPrototypeOf } = Object;
15
+ var { iterator, toStringTag } = Symbol;
16
+ var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
17
+ var isUnsafeObjectKey = (prop) => typeof prop === "string" && (prop === "__proto__" || prop === "constructor" || prop === "prototype");
18
+ var isPrototypeBoundary = (obj, prototype2, source) => obj === Object.prototype || !source && prototype2 === null;
19
+ var isSafeAndFullyMutable = (obj) => {
20
+ if (!Object.isExtensible(obj)) {
21
+ return false;
22
+ }
23
+ const props = Object.getOwnPropertyNames(obj);
24
+ if (Object.getOwnPropertySymbols) {
25
+ props.push(...Object.getOwnPropertySymbols(obj));
26
+ }
27
+ return props.every((prop) => {
28
+ if (isUnsafeObjectKey(prop)) {
29
+ return false;
30
+ }
31
+ const descriptor = Object.getOwnPropertyDescriptor(obj, prop);
32
+ return !!descriptor && descriptor.configurable && descriptor.writable === true;
33
+ });
34
+ };
35
+ var hasOwnInPrototypeChain = (thing, prop) => {
36
+ let obj = thing;
37
+ const seen = [];
38
+ while (obj != null) {
39
+ if (seen.indexOf(obj) !== -1) {
40
+ return false;
41
+ }
42
+ seen.push(obj);
43
+ const prototype2 = getPrototypeOf(obj);
44
+ if (isPrototypeBoundary(obj, prototype2, obj === thing)) {
45
+ return false;
46
+ }
47
+ if (hasOwnProperty(obj, prop)) {
48
+ return true;
49
+ }
50
+ obj = prototype2;
51
+ }
52
+ return false;
53
+ };
54
+ var getSafeProp = (obj, prop) => obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : void 0;
55
+ var toSafeFlatObject = (thing) => {
56
+ if (thing == null || typeof thing !== "object" && typeof thing !== "function") {
57
+ return thing;
58
+ }
59
+ const sourcePrototype = getPrototypeOf(thing);
60
+ if (sourcePrototype === null && isSafeAndFullyMutable(thing)) {
61
+ return thing;
62
+ }
63
+ const result = /* @__PURE__ */ Object.create(null);
64
+ const merged = /* @__PURE__ */ Object.create(null);
65
+ const seen = [];
66
+ let current = thing;
67
+ while (current != null) {
68
+ if (seen.indexOf(current) !== -1) {
69
+ break;
70
+ }
71
+ seen.push(current);
72
+ const prototype2 = current === thing ? sourcePrototype : getPrototypeOf(current);
73
+ if (isPrototypeBoundary(current, prototype2, current === thing)) {
74
+ break;
75
+ }
76
+ const props = Object.getOwnPropertyNames(current);
77
+ if (Object.getOwnPropertySymbols) {
78
+ props.push(...Object.getOwnPropertySymbols(current));
79
+ }
80
+ for (const prop of props) {
81
+ if (isUnsafeObjectKey(prop)) {
82
+ continue;
83
+ }
84
+ if (!hasOwnProperty(merged, prop)) {
85
+ result[prop] = thing[prop];
86
+ merged[prop] = true;
87
+ }
88
+ }
89
+ current = prototype2;
90
+ }
91
+ return result;
92
+ };
15
93
  var kindOf = ((cache) => (thing) => {
16
94
  const str = toString.call(thing);
17
95
  return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
@@ -42,24 +120,72 @@ var isNumber = typeOfTest("number");
42
120
  var isObject = (thing) => thing !== null && typeof thing === "object";
43
121
  var isBoolean = (thing) => thing === true || thing === false;
44
122
  var isPlainObject = (val) => {
45
- if (kindOf(val) !== "object") {
123
+ if (!isObject(val)) {
124
+ return false;
125
+ }
126
+ const prototype2 = getPrototypeOf(val);
127
+ return (prototype2 === null || prototype2 === Object.prototype || getPrototypeOf(prototype2) === null) && // Treat safe own/inherited Symbol.toStringTag or Symbol.iterator members as
128
+ // evidence the value is tagged/iterable, while ignoring members reachable
129
+ // only through shared or terminal prototype boundaries.
130
+ !hasOwnInPrototypeChain(val, toStringTag) && !hasOwnInPrototypeChain(val, iterator);
131
+ };
132
+ var isEmptyObject = (val) => {
133
+ if (!isObject(val) || isBuffer(val)) {
134
+ return false;
135
+ }
136
+ try {
137
+ return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
138
+ } catch (e) {
46
139
  return false;
47
140
  }
48
- const prototype3 = getPrototypeOf(val);
49
- return (prototype3 === null || prototype3 === Object.prototype || Object.getPrototypeOf(prototype3) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);
50
141
  };
51
142
  var isDate = kindOfTest("Date");
52
143
  var isFile = kindOfTest("File");
144
+ var isReactNativeBlob = (value) => {
145
+ return !!(value && typeof value.uri !== "undefined");
146
+ };
147
+ var isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
53
148
  var isBlob = kindOfTest("Blob");
54
149
  var isFileList = kindOfTest("FileList");
150
+ var isSet = kindOfTest("Set");
55
151
  var isStream = (val) => isObject(val) && isFunction(val.pipe);
152
+ function getGlobal() {
153
+ if (typeof globalThis !== "undefined")
154
+ return globalThis;
155
+ if (typeof self !== "undefined")
156
+ return self;
157
+ if (typeof window !== "undefined")
158
+ return window;
159
+ if (typeof global !== "undefined")
160
+ return global;
161
+ return {};
162
+ }
163
+ var G = getGlobal();
164
+ var FormDataCtor = typeof G.FormData !== "undefined" ? G.FormData : void 0;
56
165
  var isFormData = (thing) => {
57
- let kind;
58
- return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
59
- kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
166
+ if (!thing)
167
+ return false;
168
+ if (FormDataCtor && thing instanceof FormDataCtor)
169
+ return true;
170
+ const proto = getPrototypeOf(thing);
171
+ if (!proto || proto === Object.prototype)
172
+ return false;
173
+ if (!isFunction(thing.append))
174
+ return false;
175
+ const kind = kindOf(thing);
176
+ return kind === "formdata" || // detect form-data instance
177
+ kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]";
60
178
  };
61
179
  var isURLSearchParams = kindOfTest("URLSearchParams");
62
- var trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
180
+ var [isReadableStream, isRequest, isResponse, isHeaders] = [
181
+ "ReadableStream",
182
+ "Request",
183
+ "Response",
184
+ "Headers"
185
+ ].map(kindOfTest);
186
+ var trim = (str) => {
187
+ return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
188
+ };
63
189
  function forEach(obj, fn, { allOwnKeys = false } = {}) {
64
190
  if (obj === null || typeof obj === "undefined") {
65
191
  return;
@@ -74,6 +200,9 @@ function forEach(obj, fn, { allOwnKeys = false } = {}) {
74
200
  fn.call(null, obj[i], i, obj);
75
201
  }
76
202
  } else {
203
+ if (isBuffer(obj)) {
204
+ return;
205
+ }
77
206
  const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
78
207
  const len = keys.length;
79
208
  let key;
@@ -84,6 +213,9 @@ function forEach(obj, fn, { allOwnKeys = false } = {}) {
84
213
  }
85
214
  }
86
215
  function findKey(obj, key) {
216
+ if (isBuffer(obj)) {
217
+ return null;
218
+ }
87
219
  key = key.toLowerCase();
88
220
  const keys = Object.keys(obj);
89
221
  let i = keys.length;
@@ -102,34 +234,70 @@ var _global = (() => {
102
234
  return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
103
235
  })();
104
236
  var isContextDefined = (context) => !isUndefined(context) && context !== _global;
105
- function merge() {
106
- const { caseless } = isContextDefined(this) && this || {};
237
+ function merge(...objs) {
238
+ const { caseless, skipUndefined } = isContextDefined(this) && this || {};
107
239
  const result = {};
108
240
  const assignValue = (val, key) => {
109
- const targetKey = caseless && findKey(result, key) || key;
110
- if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
111
- result[targetKey] = merge(result[targetKey], val);
241
+ if (key === "__proto__" || key === "constructor" || key === "prototype") {
242
+ return;
243
+ }
244
+ const targetKey = caseless && typeof key === "string" && findKey(result, key) || key;
245
+ const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
246
+ if (isPlainObject(existing) && isPlainObject(val)) {
247
+ result[targetKey] = merge(existing, val);
112
248
  } else if (isPlainObject(val)) {
113
249
  result[targetKey] = merge({}, val);
114
250
  } else if (isArray(val)) {
115
251
  result[targetKey] = val.slice();
116
- } else {
252
+ } else if (!skipUndefined || !isUndefined(val)) {
117
253
  result[targetKey] = val;
118
254
  }
119
255
  };
120
- for (let i = 0, l = arguments.length; i < l; i++) {
121
- arguments[i] && forEach(arguments[i], assignValue);
256
+ for (let i = 0, l = objs.length; i < l; i++) {
257
+ const source = objs[i];
258
+ if (!source || isBuffer(source)) {
259
+ continue;
260
+ }
261
+ forEach(source, assignValue);
262
+ if (typeof source !== "object" || isArray(source)) {
263
+ continue;
264
+ }
265
+ const symbols = Object.getOwnPropertySymbols(source);
266
+ for (let j = 0; j < symbols.length; j++) {
267
+ const symbol = symbols[j];
268
+ if (propertyIsEnumerable.call(source, symbol)) {
269
+ assignValue(source[symbol], symbol);
270
+ }
271
+ }
122
272
  }
123
273
  return result;
124
274
  }
125
275
  var extend = (a, b, thisArg, { allOwnKeys } = {}) => {
126
- forEach(b, (val, key) => {
127
- if (thisArg && isFunction(val)) {
128
- a[key] = bind(val, thisArg);
129
- } else {
130
- a[key] = val;
131
- }
132
- }, { allOwnKeys });
276
+ forEach(
277
+ b,
278
+ (val, key) => {
279
+ if (thisArg && isFunction(val)) {
280
+ Object.defineProperty(a, key, {
281
+ // Null-proto descriptor so a polluted Object.prototype.get cannot
282
+ // hijack defineProperty's accessor-vs-data resolution.
283
+ __proto__: null,
284
+ value: bind(val, thisArg),
285
+ writable: true,
286
+ enumerable: true,
287
+ configurable: true
288
+ });
289
+ } else {
290
+ Object.defineProperty(a, key, {
291
+ __proto__: null,
292
+ value: val,
293
+ writable: true,
294
+ enumerable: true,
295
+ configurable: true
296
+ });
297
+ }
298
+ },
299
+ { allOwnKeys }
300
+ );
133
301
  return a;
134
302
  };
135
303
  var stripBOM = (content) => {
@@ -138,10 +306,17 @@ var stripBOM = (content) => {
138
306
  }
139
307
  return content;
140
308
  };
141
- var inherits = (constructor, superConstructor, props, descriptors2) => {
142
- constructor.prototype = Object.create(superConstructor.prototype, descriptors2);
143
- constructor.prototype.constructor = constructor;
309
+ var inherits = (constructor, superConstructor, props, descriptors) => {
310
+ constructor.prototype = Object.create(superConstructor.prototype, descriptors);
311
+ Object.defineProperty(constructor.prototype, "constructor", {
312
+ __proto__: null,
313
+ value: constructor,
314
+ writable: true,
315
+ enumerable: false,
316
+ configurable: true
317
+ });
144
318
  Object.defineProperty(constructor, "super", {
319
+ __proto__: null,
145
320
  value: superConstructor.prototype
146
321
  });
147
322
  props && Object.assign(constructor.prototype, props);
@@ -197,10 +372,10 @@ var isTypedArray = ((TypedArray) => {
197
372
  };
198
373
  })(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
199
374
  var forEachEntry = (obj, fn) => {
200
- const generator = obj && obj[Symbol.iterator];
201
- const iterator = generator.call(obj);
375
+ const generator = obj && obj[iterator];
376
+ const _iterator = generator.call(obj);
202
377
  let result;
203
- while ((result = iterator.next()) && !result.done) {
378
+ while ((result = _iterator.next()) && !result.done) {
204
379
  const pair = result.value;
205
380
  fn.call(obj, pair[0], pair[1]);
206
381
  }
@@ -215,19 +390,16 @@ var matchAll = (regExp, str) => {
215
390
  };
216
391
  var isHTMLForm = kindOfTest("HTMLFormElement");
217
392
  var toCamelCase = (str) => {
218
- return str.toLowerCase().replace(
219
- /[-_\s]([a-z\d])(\w*)/g,
220
- function replacer(m, p1, p2) {
221
- return p1.toUpperCase() + p2;
222
- }
223
- );
393
+ return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
394
+ return p1.toUpperCase() + p2;
395
+ });
224
396
  };
225
- var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
397
+ var { propertyIsEnumerable } = Object.prototype;
226
398
  var isRegExp = kindOfTest("RegExp");
227
399
  var reduceDescriptors = (obj, reducer) => {
228
- const descriptors2 = Object.getOwnPropertyDescriptors(obj);
400
+ const descriptors = Object.getOwnPropertyDescriptors(obj);
229
401
  const reducedDescriptors = {};
230
- forEach(descriptors2, (descriptor, name) => {
402
+ forEach(descriptors, (descriptor, name) => {
231
403
  let ret;
232
404
  if ((ret = reducer(descriptor, name, obj)) !== false) {
233
405
  reducedDescriptors[name] = ret || descriptor;
@@ -237,7 +409,7 @@ var reduceDescriptors = (obj, reducer) => {
237
409
  };
238
410
  var freezeMethods = (obj) => {
239
411
  reduceDescriptors(obj, (descriptor, name) => {
240
- if (isFunction(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) {
412
+ if (isFunction(obj) && ["arguments", "caller", "callee"].includes(name)) {
241
413
  return false;
242
414
  }
243
415
  const value = obj[name];
@@ -268,51 +440,70 @@ var toObjectSet = (arrayOrString, delimiter) => {
268
440
  var noop = () => {
269
441
  };
270
442
  var toFiniteNumber = (value, defaultValue) => {
271
- value = +value;
272
- return Number.isFinite(value) ? value : defaultValue;
273
- };
274
- var ALPHA = "abcdefghijklmnopqrstuvwxyz";
275
- var DIGIT = "0123456789";
276
- var ALPHABET = {
277
- DIGIT,
278
- ALPHA,
279
- ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
280
- };
281
- var generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
282
- let str = "";
283
- const { length } = alphabet;
284
- while (size--) {
285
- str += alphabet[Math.random() * length | 0];
286
- }
287
- return str;
443
+ return value != null && Number.isFinite(value = +value) ? value : defaultValue;
288
444
  };
289
445
  function isSpecCompliantForm(thing) {
290
- return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === "FormData" && thing[Symbol.iterator]);
446
+ return !!(thing && isFunction(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
291
447
  }
292
448
  var toJSONObject = (obj) => {
293
- const stack = new Array(10);
294
- const visit = (source, i) => {
449
+ const visited = /* @__PURE__ */ new WeakSet();
450
+ const visit = (source) => {
295
451
  if (isObject(source)) {
296
- if (stack.indexOf(source) >= 0) {
452
+ if (visited.has(source)) {
297
453
  return;
298
454
  }
455
+ if (isBuffer(source)) {
456
+ return source;
457
+ }
299
458
  if (!("toJSON" in source)) {
300
- stack[i] = source;
301
- const target = isArray(source) ? [] : {};
302
- forEach(source, (value, key) => {
303
- const reducedValue = visit(value, i + 1);
304
- !isUndefined(reducedValue) && (target[key] = reducedValue);
305
- });
306
- stack[i] = void 0;
459
+ visited.add(source);
460
+ let target;
461
+ if (isSet(source)) {
462
+ target = [];
463
+ for (const value of source) {
464
+ const reducedValue = visit(value);
465
+ !isUndefined(reducedValue) && target.push(reducedValue);
466
+ }
467
+ } else {
468
+ target = isArray(source) ? [] : {};
469
+ forEach(source, (value, key) => {
470
+ const reducedValue = visit(value);
471
+ !isUndefined(reducedValue) && (target[key] = reducedValue);
472
+ });
473
+ }
474
+ visited.delete(source);
307
475
  return target;
308
476
  }
309
477
  }
310
478
  return source;
311
479
  };
312
- return visit(obj, 0);
480
+ return visit(obj);
313
481
  };
314
482
  var isAsyncFn = kindOfTest("AsyncFunction");
315
483
  var isThenable = (thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
484
+ var _setImmediate = ((setImmediateSupported, postMessageSupported) => {
485
+ if (setImmediateSupported) {
486
+ return setImmediate;
487
+ }
488
+ return postMessageSupported ? ((token, callbacks) => {
489
+ _global.addEventListener(
490
+ "message",
491
+ ({ source, data }) => {
492
+ if (source === _global && data === token) {
493
+ callbacks.length && callbacks.shift()();
494
+ }
495
+ },
496
+ false
497
+ );
498
+ return (cb) => {
499
+ callbacks.push(cb);
500
+ _global.postMessage(token, "*");
501
+ };
502
+ })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
503
+ })(typeof setImmediate === "function", isFunction(_global.postMessage));
504
+ var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
505
+ var isIterable = (thing) => thing != null && isFunction(thing[iterator]);
506
+ var isSafeIterable = (thing) => thing != null && hasOwnInPrototypeChain(thing, iterator) && isIterable(thing);
316
507
  var utils_default = {
317
508
  isArray,
318
509
  isArrayBuffer,
@@ -324,9 +515,16 @@ var utils_default = {
324
515
  isBoolean,
325
516
  isObject,
326
517
  isPlainObject,
518
+ isEmptyObject,
519
+ isReadableStream,
520
+ isRequest,
521
+ isResponse,
522
+ isHeaders,
327
523
  isUndefined,
328
524
  isDate,
329
525
  isFile,
526
+ isReactNativeBlob,
527
+ isReactNative,
330
528
  isBlob,
331
529
  isRegExp,
332
530
  isFunction,
@@ -351,6 +549,9 @@ var utils_default = {
351
549
  hasOwnProperty,
352
550
  hasOwnProp: hasOwnProperty,
353
551
  // an alias to avoid ESLint no-prototype-builtins detection
552
+ hasOwnInPrototypeChain,
553
+ getSafeProp,
554
+ toSafeFlatObject,
354
555
  reduceDescriptors,
355
556
  freezeMethods,
356
557
  toObjectSet,
@@ -360,252 +561,801 @@ var utils_default = {
360
561
  findKey,
361
562
  global: _global,
362
563
  isContextDefined,
363
- ALPHABET,
364
- generateString,
365
564
  isSpecCompliantForm,
366
565
  toJSONObject,
367
566
  isAsyncFn,
368
- isThenable
567
+ isThenable,
568
+ setImmediate: _setImmediate,
569
+ asap,
570
+ isIterable,
571
+ isSafeIterable
369
572
  };
370
573
 
371
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/core/AxiosError.js
372
- function AxiosError(message, code, config, request, response) {
373
- Error.call(this);
374
- if (Error.captureStackTrace) {
375
- Error.captureStackTrace(this, this.constructor);
376
- } else {
377
- this.stack = new Error().stack;
378
- }
379
- this.message = message;
380
- this.name = "AxiosError";
381
- code && (this.code = code);
382
- config && (this.config = config);
383
- request && (this.request = request);
384
- response && (this.response = response);
385
- }
386
- utils_default.inherits(AxiosError, Error, {
387
- toJSON: function toJSON() {
388
- return {
389
- // Standard
390
- message: this.message,
391
- name: this.name,
392
- // Microsoft
393
- description: this.description,
394
- number: this.number,
395
- // Mozilla
396
- fileName: this.fileName,
397
- lineNumber: this.lineNumber,
398
- columnNumber: this.columnNumber,
399
- stack: this.stack,
400
- // Axios
401
- config: utils_default.toJSONObject(this.config),
402
- code: this.code,
403
- status: this.response && this.response.status ? this.response.status : null
404
- };
405
- }
406
- });
407
- var prototype = AxiosError.prototype;
408
- var descriptors = {};
409
- [
410
- "ERR_BAD_OPTION_VALUE",
411
- "ERR_BAD_OPTION",
412
- "ECONNABORTED",
413
- "ETIMEDOUT",
414
- "ERR_NETWORK",
415
- "ERR_FR_TOO_MANY_REDIRECTS",
416
- "ERR_DEPRECATED",
417
- "ERR_BAD_RESPONSE",
418
- "ERR_BAD_REQUEST",
419
- "ERR_CANCELED",
420
- "ERR_NOT_SUPPORT",
421
- "ERR_INVALID_URL"
422
- // eslint-disable-next-line func-names
423
- ].forEach((code) => {
424
- descriptors[code] = { value: code };
425
- });
426
- Object.defineProperties(AxiosError, descriptors);
427
- Object.defineProperty(prototype, "isAxiosError", { value: true });
428
- AxiosError.from = (error, code, config, request, response, customProps) => {
429
- const axiosError = Object.create(prototype);
430
- utils_default.toFlatObject(error, axiosError, function filter2(obj) {
431
- return obj !== Error.prototype;
432
- }, (prop) => {
433
- return prop !== "isAxiosError";
574
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/parseHeaders.js
575
+ var ignoreDuplicateOf = utils_default.toObjectSet([
576
+ "age",
577
+ "authorization",
578
+ "content-length",
579
+ "content-type",
580
+ "etag",
581
+ "expires",
582
+ "from",
583
+ "host",
584
+ "if-modified-since",
585
+ "if-unmodified-since",
586
+ "last-modified",
587
+ "location",
588
+ "max-forwards",
589
+ "proxy-authorization",
590
+ "referer",
591
+ "retry-after",
592
+ "user-agent"
593
+ ]);
594
+ var parseHeaders_default = (rawHeaders) => {
595
+ const parsed = {};
596
+ let key;
597
+ let val;
598
+ let i;
599
+ rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
600
+ i = line.indexOf(":");
601
+ key = line.substring(0, i).trim().toLowerCase();
602
+ val = line.substring(i + 1).trim();
603
+ const hasKey = utils_default.hasOwnProp(parsed, key);
604
+ if (!key || hasKey && utils_default.hasOwnProp(ignoreDuplicateOf, key)) {
605
+ return;
606
+ }
607
+ if (key === "set-cookie") {
608
+ if (hasKey) {
609
+ parsed[key].push(val);
610
+ } else {
611
+ parsed[key] = [val];
612
+ }
613
+ } else {
614
+ parsed[key] = hasKey ? parsed[key] + ", " + val : val;
615
+ }
434
616
  });
435
- AxiosError.call(axiosError, error.message, code, config, request, response);
436
- axiosError.cause = error;
437
- axiosError.name = error.name;
438
- customProps && Object.assign(axiosError, customProps);
439
- return axiosError;
617
+ return parsed;
440
618
  };
441
- var AxiosError_default = AxiosError;
442
-
443
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/null.js
444
- var null_default = null;
445
619
 
446
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/toFormData.js
447
- function isVisitable(thing) {
448
- return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
620
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
621
+ function trimSPorHTAB(str) {
622
+ let start = 0;
623
+ let end = str.length;
624
+ while (start < end) {
625
+ const code = str.charCodeAt(start);
626
+ if (code !== 9 && code !== 32) {
627
+ break;
628
+ }
629
+ start += 1;
630
+ }
631
+ while (end > start) {
632
+ const code = str.charCodeAt(end - 1);
633
+ if (code !== 9 && code !== 32) {
634
+ break;
635
+ }
636
+ end -= 1;
637
+ }
638
+ return start === 0 && end === str.length ? str : str.slice(start, end);
449
639
  }
450
- function removeBrackets(key) {
451
- return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key;
640
+ var INVALID_UNICODE_HEADER_VALUE_CHARS = new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+", "g");
641
+ var INVALID_BYTE_STRING_HEADER_VALUE_CHARS = new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+", "g");
642
+ function sanitizeValue(value, invalidChars) {
643
+ if (utils_default.isArray(value)) {
644
+ return value.map((item) => sanitizeValue(item, invalidChars));
645
+ }
646
+ return trimSPorHTAB(String(value).replace(invalidChars, ""));
452
647
  }
453
- function renderKey(path, key, dots) {
454
- if (!path)
455
- return key;
456
- return path.concat(key).map(function each(token, i) {
457
- token = removeBrackets(token);
458
- return !dots && i ? "[" + token + "]" : token;
459
- }).join(dots ? "." : "");
648
+ var sanitizeHeaderValue = (value) => sanitizeValue(value, INVALID_UNICODE_HEADER_VALUE_CHARS);
649
+ var sanitizeByteStringHeaderValue = (value) => sanitizeValue(value, INVALID_BYTE_STRING_HEADER_VALUE_CHARS);
650
+ function toByteStringHeaderObject(headers) {
651
+ const byteStringHeaders = /* @__PURE__ */ Object.create(null);
652
+ utils_default.forEach(headers.toJSON(), (value, header) => {
653
+ byteStringHeaders[header] = sanitizeByteStringHeaderValue(value);
654
+ });
655
+ return byteStringHeaders;
460
656
  }
461
- function isFlatArray(arr) {
462
- return utils_default.isArray(arr) && !arr.some(isVisitable);
657
+
658
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/core/AxiosHeaders.js
659
+ var $internals = Symbol("internals");
660
+ function normalizeHeader(header) {
661
+ return header && String(header).trim().toLowerCase();
463
662
  }
464
- var predicates = utils_default.toFlatObject(utils_default, {}, null, function filter(prop) {
465
- return /^is[A-Z]/.test(prop);
466
- });
467
- function toFormData(obj, formData, options) {
468
- if (!utils_default.isObject(obj)) {
469
- throw new TypeError("target must be an object");
663
+ function normalizeValue(value) {
664
+ if (value === false || value == null) {
665
+ return value;
470
666
  }
471
- formData = formData || new (null_default || FormData)();
472
- options = utils_default.toFlatObject(options, {
473
- metaTokens: true,
474
- dots: false,
475
- indexes: false
476
- }, false, function defined(option, source) {
477
- return !utils_default.isUndefined(source[option]);
478
- });
479
- const metaTokens = options.metaTokens;
480
- const visitor = options.visitor || defaultVisitor;
481
- const dots = options.dots;
482
- const indexes = options.indexes;
483
- const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
484
- const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
485
- if (!utils_default.isFunction(visitor)) {
486
- throw new TypeError("visitor must be a function");
667
+ return utils_default.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value));
668
+ }
669
+ function parseTokens(str) {
670
+ const tokens = /* @__PURE__ */ Object.create(null);
671
+ const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
672
+ let match;
673
+ while (match = tokensRE.exec(str)) {
674
+ tokens[match[1]] = match[2];
487
675
  }
488
- function convertValue(value) {
489
- if (value === null)
490
- return "";
491
- if (utils_default.isDate(value)) {
492
- return value.toISOString();
493
- }
494
- if (!useBlob && utils_default.isBlob(value)) {
495
- throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
676
+ return tokens;
677
+ }
678
+ var parameterNameRE = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
679
+ function trimOWS(value) {
680
+ let start = 0;
681
+ let end = value.length;
682
+ while (start < end) {
683
+ const code = value.charCodeAt(start);
684
+ if (code !== 9 && code !== 32) {
685
+ break;
496
686
  }
497
- if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) {
498
- return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
687
+ start += 1;
688
+ }
689
+ while (end > start) {
690
+ const code = value.charCodeAt(end - 1);
691
+ if (code !== 9 && code !== 32) {
692
+ break;
499
693
  }
694
+ end -= 1;
695
+ }
696
+ return start === 0 && end === value.length ? value : value.slice(start, end);
697
+ }
698
+ function decodeQuotedString(value) {
699
+ const last = value.length - 1;
700
+ if (last < 1 || value.charCodeAt(0) !== 34 || value.charCodeAt(last) !== 34) {
500
701
  return value;
501
702
  }
502
- function defaultVisitor(value, key, path) {
503
- let arr = value;
504
- if (value && !path && typeof value === "object") {
505
- if (utils_default.endsWith(key, "{}")) {
506
- key = metaTokens ? key : key.slice(0, -2);
507
- value = JSON.stringify(value);
508
- } else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
509
- key = removeBrackets(key);
510
- arr.forEach(function each(el, index) {
511
- !(utils_default.isUndefined(el) || el === null) && formData.append(
512
- // eslint-disable-next-line no-nested-ternary
513
- indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + "[]",
514
- convertValue(el)
515
- );
516
- });
517
- return false;
518
- }
703
+ let decoded = "";
704
+ for (let i = 1; i < last; i++) {
705
+ const code = value.charCodeAt(i);
706
+ if (code === 34) {
707
+ return value;
519
708
  }
520
- if (isVisitable(value)) {
521
- return true;
709
+ if (code === 92) {
710
+ i += 1;
711
+ if (i >= last) {
712
+ return value;
713
+ }
522
714
  }
523
- formData.append(renderKey(path, key, dots), convertValue(value));
524
- return false;
715
+ decoded += value[i];
525
716
  }
526
- const stack = [];
527
- const exposedHelpers = Object.assign(predicates, {
528
- defaultVisitor,
529
- convertValue,
530
- isVisitable
531
- });
532
- function build(value, path) {
533
- if (utils_default.isUndefined(value))
717
+ return decoded;
718
+ }
719
+ function parseParameters(value) {
720
+ const parameters = /* @__PURE__ */ Object.create(null);
721
+ const str = String(value);
722
+ let start = 0;
723
+ let quoted = false;
724
+ let escaped = false;
725
+ function parseParameter(end) {
726
+ const part = trimOWS(str.slice(start, end));
727
+ const equals = part.indexOf("=");
728
+ if (equals < 1) {
534
729
  return;
535
- if (stack.indexOf(value) !== -1) {
536
- throw Error("Circular reference detected in " + path.join("."));
537
730
  }
538
- stack.push(value);
539
- utils_default.forEach(value, function each(el, key) {
540
- const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(
541
- formData,
542
- el,
543
- utils_default.isString(key) ? key.trim() : key,
544
- path,
545
- exposedHelpers
546
- );
547
- if (result === true) {
548
- build(el, path ? path.concat(key) : [key]);
731
+ const name = trimOWS(part.slice(0, equals));
732
+ if (!parameterNameRE.test(name)) {
733
+ return;
734
+ }
735
+ const normalizedName = name.toLowerCase();
736
+ if (normalizedName === "__proto__" || normalizedName === "constructor" || normalizedName === "prototype") {
737
+ return;
738
+ }
739
+ const parameterValue = trimOWS(part.slice(equals + 1));
740
+ parameters[normalizedName] = decodeQuotedString(parameterValue);
741
+ }
742
+ for (let i = 0; i < str.length; i++) {
743
+ const code = str.charCodeAt(i);
744
+ if (quoted) {
745
+ if (escaped) {
746
+ escaped = false;
747
+ } else if (code === 92) {
748
+ escaped = true;
749
+ } else if (code === 34) {
750
+ quoted = false;
549
751
  }
550
- });
551
- stack.pop();
552
- }
553
- if (!utils_default.isObject(obj)) {
554
- throw new TypeError("data must be an object");
752
+ } else if (code === 34) {
753
+ quoted = true;
754
+ } else if (code === 44 || code === 59) {
755
+ parseParameter(i);
756
+ start = i + 1;
757
+ }
555
758
  }
556
- build(obj);
557
- return formData;
759
+ parseParameter(str.length);
760
+ return parameters;
558
761
  }
559
- var toFormData_default = toFormData;
560
-
561
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
562
- function encode(str) {
563
- const charMap = {
564
- "!": "%21",
565
- "'": "%27",
566
- "(": "%28",
567
- ")": "%29",
568
- "~": "%7E",
569
- "%20": "+",
570
- "%00": "\0"
571
- };
572
- return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
573
- return charMap[match];
574
- });
762
+ var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
763
+ function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
764
+ if (utils_default.isFunction(filter2)) {
765
+ return filter2.call(this, value, header);
766
+ }
767
+ if (isHeaderNameFilter) {
768
+ value = header;
769
+ }
770
+ if (!utils_default.isString(value))
771
+ return;
772
+ if (utils_default.isString(filter2)) {
773
+ return value.indexOf(filter2) !== -1;
774
+ }
775
+ if (utils_default.isRegExp(filter2)) {
776
+ return filter2.test(value);
777
+ }
778
+ }
779
+ function formatHeader(header) {
780
+ return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
781
+ return char.toUpperCase() + str;
782
+ });
783
+ }
784
+ function buildAccessors(obj, header) {
785
+ const accessorName = utils_default.toCamelCase(" " + header);
786
+ ["get", "set", "has"].forEach((methodName) => {
787
+ Object.defineProperty(obj, methodName + accessorName, {
788
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
789
+ // this data descriptor into an accessor descriptor on the way in.
790
+ __proto__: null,
791
+ value: function(arg1, arg2, arg3) {
792
+ return this[methodName].call(this, header, arg1, arg2, arg3);
793
+ },
794
+ configurable: true
795
+ });
796
+ });
797
+ }
798
+ var AxiosHeaders = class {
799
+ constructor(headers) {
800
+ headers && this.set(headers);
801
+ }
802
+ set(header, valueOrRewrite, rewrite) {
803
+ const self2 = this;
804
+ function setHeader(_value, _header, _rewrite) {
805
+ const lHeader = normalizeHeader(_header);
806
+ if (!lHeader) {
807
+ return;
808
+ }
809
+ const key = utils_default.findKey(self2, lHeader);
810
+ if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
811
+ self2[key || _header] = normalizeValue(_value);
812
+ }
813
+ }
814
+ const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
815
+ if (utils_default.isPlainObject(header) || header instanceof this.constructor) {
816
+ setHeaders(header, valueOrRewrite);
817
+ } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
818
+ setHeaders(parseHeaders_default(header), valueOrRewrite);
819
+ } else if (utils_default.isObject(header) && utils_default.isSafeIterable(header)) {
820
+ let obj = /* @__PURE__ */ Object.create(null), dest, key;
821
+ for (const entry of header) {
822
+ if (!utils_default.isArray(entry)) {
823
+ throw new TypeError("Object iterator must return a key-value pair");
824
+ }
825
+ key = entry[0];
826
+ if (utils_default.hasOwnProp(obj, key)) {
827
+ dest = obj[key];
828
+ obj[key] = utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]];
829
+ } else {
830
+ obj[key] = entry[1];
831
+ }
832
+ }
833
+ setHeaders(obj, valueOrRewrite);
834
+ } else {
835
+ header != null && setHeader(valueOrRewrite, header, rewrite);
836
+ }
837
+ return this;
838
+ }
839
+ get(header, parser) {
840
+ header = normalizeHeader(header);
841
+ if (header) {
842
+ const key = utils_default.findKey(this, header);
843
+ if (key) {
844
+ const value = this[key];
845
+ if (!parser) {
846
+ return value;
847
+ }
848
+ if (parser === true) {
849
+ return parseTokens(value);
850
+ }
851
+ if (utils_default.isFunction(parser)) {
852
+ return parser.call(this, value, key);
853
+ }
854
+ if (utils_default.isRegExp(parser)) {
855
+ return parser.exec(value);
856
+ }
857
+ throw new TypeError("parser must be boolean|regexp|function");
858
+ }
859
+ }
860
+ }
861
+ has(header, matcher) {
862
+ header = normalizeHeader(header);
863
+ if (header) {
864
+ const key = utils_default.findKey(this, header);
865
+ return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
866
+ }
867
+ return false;
868
+ }
869
+ delete(header, matcher) {
870
+ const self2 = this;
871
+ let deleted = false;
872
+ function deleteHeader(_header) {
873
+ _header = normalizeHeader(_header);
874
+ if (_header) {
875
+ const key = utils_default.findKey(self2, _header);
876
+ if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
877
+ delete self2[key];
878
+ deleted = true;
879
+ }
880
+ }
881
+ }
882
+ if (utils_default.isArray(header)) {
883
+ header.forEach(deleteHeader);
884
+ } else {
885
+ deleteHeader(header);
886
+ }
887
+ return deleted;
888
+ }
889
+ clear(matcher) {
890
+ const keys = Object.keys(this);
891
+ let i = keys.length;
892
+ let deleted = false;
893
+ while (i--) {
894
+ const key = keys[i];
895
+ if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
896
+ delete this[key];
897
+ deleted = true;
898
+ }
899
+ }
900
+ return deleted;
901
+ }
902
+ normalize(format) {
903
+ const self2 = this;
904
+ const headers = {};
905
+ utils_default.forEach(this, (value, header) => {
906
+ const key = utils_default.findKey(headers, header);
907
+ if (key) {
908
+ self2[key] = normalizeValue(value);
909
+ delete self2[header];
910
+ return;
911
+ }
912
+ const normalized = format ? formatHeader(header) : String(header).trim();
913
+ if (normalized !== header) {
914
+ delete self2[header];
915
+ }
916
+ self2[normalized] = normalizeValue(value);
917
+ headers[normalized] = true;
918
+ });
919
+ return this;
920
+ }
921
+ concat(...targets) {
922
+ return this.constructor.concat(this, ...targets);
923
+ }
924
+ toJSON(asStrings) {
925
+ const obj = /* @__PURE__ */ Object.create(null);
926
+ utils_default.forEach(this, (value, header) => {
927
+ value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
928
+ });
929
+ return obj;
930
+ }
931
+ [Symbol.iterator]() {
932
+ return Object.entries(this.toJSON())[Symbol.iterator]();
933
+ }
934
+ toString() {
935
+ return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
936
+ }
937
+ getSetCookie() {
938
+ const value = this.get("set-cookie");
939
+ return utils_default.isArray(value) ? value : value == null || value === false ? [] : [value];
940
+ }
941
+ get [Symbol.toStringTag]() {
942
+ return "AxiosHeaders";
943
+ }
944
+ static from(thing) {
945
+ return thing instanceof this ? thing : new this(thing);
946
+ }
947
+ static parseParameters(value) {
948
+ return parseParameters(value);
949
+ }
950
+ static concat(first, ...targets) {
951
+ const computed = new this(first);
952
+ targets.forEach((target) => computed.set(target));
953
+ return computed;
954
+ }
955
+ static accessor(header) {
956
+ const internals = this[$internals] = this[$internals] = {
957
+ accessors: {}
958
+ };
959
+ const accessors = internals.accessors;
960
+ const prototype2 = this.prototype;
961
+ function defineAccessor(_header) {
962
+ const lHeader = normalizeHeader(_header);
963
+ if (!accessors[lHeader]) {
964
+ buildAccessors(prototype2, _header);
965
+ accessors[lHeader] = true;
966
+ }
967
+ }
968
+ utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
969
+ return this;
970
+ }
971
+ };
972
+ AxiosHeaders.accessor([
973
+ "Content-Type",
974
+ "Content-Length",
975
+ "Accept",
976
+ "Accept-Encoding",
977
+ "User-Agent",
978
+ "Authorization"
979
+ ]);
980
+ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
981
+ let mapped = key[0].toUpperCase() + key.slice(1);
982
+ return {
983
+ get: () => value,
984
+ set(headerValue) {
985
+ this[mapped] = headerValue;
986
+ }
987
+ };
988
+ });
989
+ utils_default.freezeMethods(AxiosHeaders);
990
+ var AxiosHeaders_default = AxiosHeaders;
991
+
992
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/core/AxiosError.js
993
+ var REDACTED = "[REDACTED ****]";
994
+ function hasOwnOrPrototypeToJSON(source) {
995
+ if (utils_default.hasOwnProp(source, "toJSON")) {
996
+ return true;
997
+ }
998
+ let prototype2 = Object.getPrototypeOf(source);
999
+ while (prototype2 && prototype2 !== Object.prototype) {
1000
+ if (utils_default.hasOwnProp(prototype2, "toJSON")) {
1001
+ return true;
1002
+ }
1003
+ prototype2 = Object.getPrototypeOf(prototype2);
1004
+ }
1005
+ return false;
1006
+ }
1007
+ function redactConfig(config, redactKeys) {
1008
+ const lowerKeys = new Set(redactKeys.map((k) => String(k).toLowerCase()));
1009
+ const seen = [];
1010
+ const visit = (source) => {
1011
+ if (source === null || typeof source !== "object")
1012
+ return source;
1013
+ if (utils_default.isBuffer(source))
1014
+ return source;
1015
+ if (seen.indexOf(source) !== -1)
1016
+ return void 0;
1017
+ if (source instanceof AxiosHeaders_default) {
1018
+ source = source.toJSON();
1019
+ }
1020
+ seen.push(source);
1021
+ let result;
1022
+ if (utils_default.isArray(source)) {
1023
+ result = [];
1024
+ source.forEach((v, i) => {
1025
+ const reducedValue = visit(v);
1026
+ if (!utils_default.isUndefined(reducedValue)) {
1027
+ result[i] = reducedValue;
1028
+ }
1029
+ });
1030
+ } else {
1031
+ if (!utils_default.isPlainObject(source) && hasOwnOrPrototypeToJSON(source)) {
1032
+ seen.pop();
1033
+ return source;
1034
+ }
1035
+ result = /* @__PURE__ */ Object.create(null);
1036
+ for (const [key, value] of Object.entries(source)) {
1037
+ const reducedValue = lowerKeys.has(key.toLowerCase()) ? REDACTED : visit(value);
1038
+ if (!utils_default.isUndefined(reducedValue)) {
1039
+ result[key] = reducedValue;
1040
+ }
1041
+ }
1042
+ }
1043
+ seen.pop();
1044
+ return result;
1045
+ };
1046
+ return visit(config);
1047
+ }
1048
+ function stringifySafely(value) {
1049
+ try {
1050
+ return String(value);
1051
+ } catch (err) {
1052
+ return "";
1053
+ }
1054
+ }
1055
+ function aggregateErrorMessage(error) {
1056
+ const message = error.errors.map((entry) => {
1057
+ try {
1058
+ return entry && entry.message ? stringifySafely(entry.message) : stringifySafely(entry);
1059
+ } catch (err) {
1060
+ return "";
1061
+ }
1062
+ }).filter(Boolean).join("; ");
1063
+ return message || error.name || "AggregateError";
1064
+ }
1065
+ var AxiosError = class _AxiosError extends Error {
1066
+ static from(error, code, config, request, response, customProps) {
1067
+ let message = error.message;
1068
+ if (!message && utils_default.isArray(error.errors) && error.errors.length) {
1069
+ message = aggregateErrorMessage(error);
1070
+ }
1071
+ const axiosError = new _AxiosError(message, code || error.code, config, request, response);
1072
+ Object.defineProperty(axiosError, "cause", {
1073
+ __proto__: null,
1074
+ value: error,
1075
+ writable: true,
1076
+ enumerable: false,
1077
+ configurable: true
1078
+ });
1079
+ axiosError.name = error.name;
1080
+ if (error.status != null && axiosError.status == null) {
1081
+ axiosError.status = error.status;
1082
+ }
1083
+ customProps && Object.assign(axiosError, customProps);
1084
+ return axiosError;
1085
+ }
1086
+ /**
1087
+ * Create an Error with the specified message, config, error code, request and response.
1088
+ *
1089
+ * @param {string} message The error message.
1090
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
1091
+ * @param {Object} [config] The config.
1092
+ * @param {Object} [request] The request.
1093
+ * @param {Object} [response] The response.
1094
+ *
1095
+ * @returns {Error} The created error.
1096
+ */
1097
+ constructor(message, code, config, request, response) {
1098
+ super(message);
1099
+ Object.defineProperty(this, "message", {
1100
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
1101
+ // this data descriptor into an accessor descriptor on the way in.
1102
+ __proto__: null,
1103
+ value: message,
1104
+ enumerable: true,
1105
+ writable: true,
1106
+ configurable: true
1107
+ });
1108
+ this.name = "AxiosError";
1109
+ this.isAxiosError = true;
1110
+ code && (this.code = code);
1111
+ config && (this.config = config);
1112
+ request && (this.request = request);
1113
+ if (response) {
1114
+ this.response = response;
1115
+ this.status = response.status;
1116
+ }
1117
+ }
1118
+ toJSON() {
1119
+ const config = this.config;
1120
+ const redactKeys = config && utils_default.hasOwnProp(config, "redact") ? config.redact : void 0;
1121
+ const serializedConfig = utils_default.isArray(redactKeys) && redactKeys.length > 0 ? redactConfig(config, redactKeys) : utils_default.toJSONObject(config);
1122
+ return {
1123
+ // Standard
1124
+ message: this.message,
1125
+ name: this.name,
1126
+ // Microsoft
1127
+ description: this.description,
1128
+ number: this.number,
1129
+ // Mozilla
1130
+ fileName: this.fileName,
1131
+ lineNumber: this.lineNumber,
1132
+ columnNumber: this.columnNumber,
1133
+ stack: this.stack,
1134
+ // Axios
1135
+ config: serializedConfig,
1136
+ code: this.code,
1137
+ status: this.status
1138
+ };
1139
+ }
1140
+ };
1141
+ AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
1142
+ AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
1143
+ AxiosError.ECONNABORTED = "ECONNABORTED";
1144
+ AxiosError.ETIMEDOUT = "ETIMEDOUT";
1145
+ AxiosError.ECONNREFUSED = "ECONNREFUSED";
1146
+ AxiosError.ERR_NETWORK = "ERR_NETWORK";
1147
+ AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
1148
+ AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
1149
+ AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
1150
+ AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
1151
+ AxiosError.ERR_CANCELED = "ERR_CANCELED";
1152
+ AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
1153
+ AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
1154
+ AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
1155
+ var AxiosError_default = AxiosError;
1156
+
1157
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/null.js
1158
+ var null_default = null;
1159
+
1160
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/toFormData.js
1161
+ var DEFAULT_FORM_DATA_MAX_DEPTH = 100;
1162
+ function isVisitable(thing) {
1163
+ return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
1164
+ }
1165
+ function removeBrackets(key) {
1166
+ return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key;
1167
+ }
1168
+ function renderKey(path, key, dots) {
1169
+ if (!path)
1170
+ return key;
1171
+ return path.concat(key).map(function each(token, i) {
1172
+ token = removeBrackets(token);
1173
+ return !dots && i ? "[" + token + "]" : token;
1174
+ }).join(dots ? "." : "");
1175
+ }
1176
+ function isFlatArray(arr) {
1177
+ return utils_default.isArray(arr) && !arr.some(isVisitable);
1178
+ }
1179
+ var predicates = utils_default.toFlatObject(utils_default, {}, null, function filter(prop) {
1180
+ return /^is[A-Z]/.test(prop);
1181
+ });
1182
+ function toFormData(obj, formData, options) {
1183
+ if (!utils_default.isObject(obj)) {
1184
+ throw new TypeError("target must be an object");
1185
+ }
1186
+ formData = formData || new (null_default || FormData)();
1187
+ const option = (name, fallback) => {
1188
+ const value = utils_default.getSafeProp(options, name);
1189
+ return utils_default.isUndefined(value) ? fallback : value;
1190
+ };
1191
+ const metaTokens = option("metaTokens", true);
1192
+ const visitor = option("visitor") || defaultVisitor;
1193
+ const dots = option("dots", false);
1194
+ const indexes = option("indexes", false);
1195
+ const _Blob = option("Blob") || typeof Blob !== "undefined" && Blob;
1196
+ const maxDepth = option("maxDepth", DEFAULT_FORM_DATA_MAX_DEPTH);
1197
+ const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
1198
+ const stack = [];
1199
+ if (!utils_default.isFunction(visitor)) {
1200
+ throw new TypeError("visitor must be a function");
1201
+ }
1202
+ function convertValue(value) {
1203
+ if (value === null)
1204
+ return "";
1205
+ if (utils_default.isDate(value)) {
1206
+ return value.toISOString();
1207
+ }
1208
+ if (utils_default.isBoolean(value)) {
1209
+ return value.toString();
1210
+ }
1211
+ if (!useBlob && utils_default.isBlob(value)) {
1212
+ throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
1213
+ }
1214
+ if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) {
1215
+ if (useBlob && typeof _Blob === "function") {
1216
+ return new _Blob([value]);
1217
+ }
1218
+ if (null_default && null_default.isBufferAvailable()) {
1219
+ return null_default.from(value);
1220
+ }
1221
+ throw new AxiosError_default(
1222
+ "Blob is not supported. Use a Buffer instead.",
1223
+ AxiosError_default.ERR_NOT_SUPPORT
1224
+ );
1225
+ }
1226
+ return value;
1227
+ }
1228
+ function throwIfMaxDepthExceeded(depth) {
1229
+ if (depth > maxDepth) {
1230
+ throw new AxiosError_default(
1231
+ "Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
1232
+ AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
1233
+ );
1234
+ }
1235
+ }
1236
+ function stringifyWithDepthLimit(value, depth) {
1237
+ if (maxDepth === Infinity) {
1238
+ return JSON.stringify(value);
1239
+ }
1240
+ const ancestors = [];
1241
+ return JSON.stringify(value, function limitDepth(_key, currentValue) {
1242
+ if (!utils_default.isObject(currentValue)) {
1243
+ return currentValue;
1244
+ }
1245
+ while (ancestors.length && ancestors[ancestors.length - 1] !== this) {
1246
+ ancestors.pop();
1247
+ }
1248
+ ancestors.push(currentValue);
1249
+ throwIfMaxDepthExceeded(depth + ancestors.length - 1);
1250
+ return currentValue;
1251
+ });
1252
+ }
1253
+ function defaultVisitor(value, key, path) {
1254
+ let arr = value;
1255
+ if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
1256
+ formData.append(renderKey(path, key, dots), convertValue(value));
1257
+ return false;
1258
+ }
1259
+ if (value && !path && typeof value === "object") {
1260
+ if (utils_default.endsWith(key, "{}")) {
1261
+ key = metaTokens ? key : key.slice(0, -2);
1262
+ value = stringifyWithDepthLimit(value, 1);
1263
+ } else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
1264
+ key = removeBrackets(key);
1265
+ arr.forEach(function each(el, index) {
1266
+ !(utils_default.isUndefined(el) || el === null) && formData.append(
1267
+ // eslint-disable-next-line no-nested-ternary
1268
+ indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + "[]",
1269
+ convertValue(el)
1270
+ );
1271
+ });
1272
+ return false;
1273
+ }
1274
+ }
1275
+ if (isVisitable(value)) {
1276
+ return true;
1277
+ }
1278
+ formData.append(renderKey(path, key, dots), convertValue(value));
1279
+ return false;
1280
+ }
1281
+ const exposedHelpers = Object.assign(predicates, {
1282
+ defaultVisitor,
1283
+ convertValue,
1284
+ isVisitable
1285
+ });
1286
+ function build(value, path, depth = 0) {
1287
+ if (utils_default.isUndefined(value))
1288
+ return;
1289
+ throwIfMaxDepthExceeded(depth);
1290
+ if (stack.indexOf(value) !== -1) {
1291
+ throw new Error("Circular reference detected in " + path.join("."));
1292
+ }
1293
+ stack.push(value);
1294
+ utils_default.forEach(value, function each(el, key) {
1295
+ const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(formData, el, utils_default.isString(key) ? key.trim() : key, path, exposedHelpers);
1296
+ if (result === true) {
1297
+ build(el, path ? path.concat(key) : [key], depth + 1);
1298
+ }
1299
+ });
1300
+ stack.pop();
1301
+ }
1302
+ if (!utils_default.isObject(obj)) {
1303
+ throw new TypeError("data must be an object");
1304
+ }
1305
+ build(obj);
1306
+ return formData;
1307
+ }
1308
+ var toFormData_default = toFormData;
1309
+
1310
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
1311
+ function encode(str) {
1312
+ const charMap = {
1313
+ "!": "%21",
1314
+ "'": "%27",
1315
+ "(": "%28",
1316
+ ")": "%29",
1317
+ "~": "%7E",
1318
+ "%20": "+"
1319
+ };
1320
+ return encodeURIComponent(str).replace(/[!'()~]|%20/g, function replacer(match) {
1321
+ return charMap[match];
1322
+ });
575
1323
  }
576
1324
  function AxiosURLSearchParams(params, options) {
577
1325
  this._pairs = [];
578
1326
  params && toFormData_default(params, this, options);
579
1327
  }
580
- var prototype2 = AxiosURLSearchParams.prototype;
581
- prototype2.append = function append(name, value) {
1328
+ var prototype = AxiosURLSearchParams.prototype;
1329
+ prototype.append = function append(name, value) {
582
1330
  this._pairs.push([name, value]);
583
1331
  };
584
- prototype2.toString = function toString2(encoder) {
585
- const _encode = encoder ? function(value) {
586
- return encoder.call(this, value, encode);
587
- } : encode;
1332
+ prototype.toString = function toString2(encoder) {
1333
+ const _encode = encoder ? (value) => encoder.call(this, value, encode) : encode;
588
1334
  return this._pairs.map(function each(pair) {
589
1335
  return _encode(pair[0]) + "=" + _encode(pair[1]);
590
1336
  }, "").join("&");
591
1337
  };
592
1338
  var AxiosURLSearchParams_default = AxiosURLSearchParams;
593
1339
 
594
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/buildURL.js
1340
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/buildURL.js
595
1341
  function encode2(val) {
596
- return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
1342
+ return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
597
1343
  }
598
1344
  function buildURL(url, params, options) {
599
1345
  if (!params) {
600
1346
  return url;
601
1347
  }
602
- const _encode = options && options.encode || encode2;
603
- const serializeFn = options && options.serialize;
1348
+ url = url || "";
1349
+ const _options = utils_default.isFunction(options) ? {
1350
+ serialize: options
1351
+ } : options;
1352
+ const _encode = utils_default.getSafeProp(_options, "encode") || encode2;
1353
+ const serializeFn = utils_default.getSafeProp(_options, "serialize");
604
1354
  let serializedParams;
605
1355
  if (serializeFn) {
606
- serializedParams = serializeFn(params, options);
1356
+ serializedParams = serializeFn(params, _options);
607
1357
  } else {
608
- serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams_default(params, options).toString(_encode);
1358
+ serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams_default(params, _options).toString(_encode);
609
1359
  }
610
1360
  if (serializedParams) {
611
1361
  const hashmarkIndex = url.indexOf("#");
@@ -617,38 +1367,100 @@ function buildURL(url, params, options) {
617
1367
  return url;
618
1368
  }
619
1369
 
620
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/core/InterceptorManager.js
1370
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/core/InterceptorManager.js
1371
+ var $internals2 = Symbol("internals");
1372
+ function countHandlers(handlers) {
1373
+ return handlers ? handlers.length : 0;
1374
+ }
1375
+ function trimHandlers(handlers) {
1376
+ if (!handlers) {
1377
+ return;
1378
+ }
1379
+ while (handlers.length && handlers[handlers.length - 1] === null) {
1380
+ handlers.pop();
1381
+ }
1382
+ }
1383
+ function syncHandlerEntries(manager, internals) {
1384
+ const handlers = manager.handlers;
1385
+ const length = countHandlers(handlers);
1386
+ if (handlers !== internals.handlersRef) {
1387
+ internals.handlersRef = handlers;
1388
+ internals.handlerEntries.clear();
1389
+ } else if (length !== internals.handlersLength) {
1390
+ if (!length) {
1391
+ internals.handlerEntries.clear();
1392
+ } else {
1393
+ internals.handlerEntries.forEach(function removeStaleEntry(entry, id) {
1394
+ if (handlers[entry.index] !== entry.handler) {
1395
+ internals.handlerEntries.delete(id);
1396
+ }
1397
+ });
1398
+ }
1399
+ }
1400
+ internals.handlersLength = length;
1401
+ }
621
1402
  var InterceptorManager = class {
622
1403
  constructor() {
623
1404
  this.handlers = [];
1405
+ this[$internals2] = {
1406
+ handlersRef: this.handlers,
1407
+ handlersLength: this.handlers.length,
1408
+ handlerEntries: /* @__PURE__ */ new Map(),
1409
+ iterationDepth: 0,
1410
+ nextId: 0
1411
+ };
624
1412
  }
625
1413
  /**
626
1414
  * Add a new interceptor to the stack
627
1415
  *
628
1416
  * @param {Function} fulfilled The function to handle `then` for a `Promise`
629
1417
  * @param {Function} rejected The function to handle `reject` for a `Promise`
1418
+ * @param {Object} options The options for the interceptor, synchronous and runWhen
630
1419
  *
631
1420
  * @return {Number} An ID used to remove interceptor later
632
1421
  */
633
1422
  use(fulfilled, rejected, options) {
634
- this.handlers.push({
1423
+ const handler = {
635
1424
  fulfilled,
636
1425
  rejected,
637
1426
  synchronous: options ? options.synchronous : false,
638
1427
  runWhen: options ? options.runWhen : null
1428
+ };
1429
+ const internals = this[$internals2];
1430
+ if (this.handlers == null) {
1431
+ this.handlers = [];
1432
+ }
1433
+ syncHandlerEntries(this, internals);
1434
+ const id = internals.nextId++;
1435
+ this.handlers.push(handler);
1436
+ internals.handlerEntries.set(id, {
1437
+ handler,
1438
+ index: this.handlers.length - 1
639
1439
  });
640
- return this.handlers.length - 1;
1440
+ internals.handlersLength = this.handlers.length;
1441
+ return id;
641
1442
  }
642
1443
  /**
643
1444
  * Remove an interceptor from the stack
644
1445
  *
645
1446
  * @param {Number} id The ID that was returned by `use`
646
1447
  *
647
- * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
1448
+ * @returns {void}
648
1449
  */
649
1450
  eject(id) {
650
- if (this.handlers[id]) {
651
- this.handlers[id] = null;
1451
+ const internals = this[$internals2];
1452
+ syncHandlerEntries(this, internals);
1453
+ const entry = internals.handlerEntries.get(id);
1454
+ if (entry) {
1455
+ internals.handlerEntries.delete(id);
1456
+ if (this.handlers[entry.index] !== entry.handler) {
1457
+ return;
1458
+ }
1459
+ this.handlers[entry.index] = null;
1460
+ if (!internals.iterationDepth) {
1461
+ trimHandlers(this.handlers);
1462
+ internals.handlersLength = this.handlers.length;
1463
+ }
652
1464
  }
653
1465
  }
654
1466
  /**
@@ -659,6 +1471,7 @@ var InterceptorManager = class {
659
1471
  clear() {
660
1472
  if (this.handlers) {
661
1473
  this.handlers = [];
1474
+ syncHandlerEntries(this, this[$internals2]);
662
1475
  }
663
1476
  }
664
1477
  /**
@@ -672,32 +1485,46 @@ var InterceptorManager = class {
672
1485
  * @returns {void}
673
1486
  */
674
1487
  forEach(fn) {
675
- utils_default.forEach(this.handlers, function forEachHandler(h) {
676
- if (h !== null) {
677
- fn(h);
1488
+ const internals = this[$internals2];
1489
+ syncHandlerEntries(this, internals);
1490
+ internals.iterationDepth++;
1491
+ try {
1492
+ utils_default.forEach(this.handlers, function forEachHandler(h) {
1493
+ if (h !== null) {
1494
+ fn(h);
1495
+ }
1496
+ });
1497
+ } finally {
1498
+ if (!--internals.iterationDepth) {
1499
+ syncHandlerEntries(this, internals);
1500
+ trimHandlers(this.handlers);
1501
+ internals.handlersLength = countHandlers(this.handlers);
678
1502
  }
679
- });
1503
+ }
680
1504
  }
681
1505
  };
682
1506
  var InterceptorManager_default = InterceptorManager;
683
1507
 
684
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/defaults/transitional.js
1508
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/defaults/transitional.js
685
1509
  var transitional_default = {
686
1510
  silentJSONParsing: true,
687
1511
  forcedJSONParsing: true,
688
- clarifyTimeoutError: false
1512
+ clarifyTimeoutError: false,
1513
+ legacyInterceptorReqResOrdering: true,
1514
+ advertiseZstdAcceptEncoding: false,
1515
+ validateStatusUndefinedResolves: true
689
1516
  };
690
1517
 
691
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js
1518
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js
692
1519
  var URLSearchParams_default = typeof URLSearchParams !== "undefined" ? URLSearchParams : AxiosURLSearchParams_default;
693
1520
 
694
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/platform/browser/classes/FormData.js
1521
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/platform/browser/classes/FormData.js
695
1522
  var FormData_default = typeof FormData !== "undefined" ? FormData : null;
696
1523
 
697
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/platform/browser/classes/Blob.js
1524
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/platform/browser/classes/Blob.js
698
1525
  var Blob_default = typeof Blob !== "undefined" ? Blob : null;
699
1526
 
700
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/platform/browser/index.js
1527
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/platform/browser/index.js
701
1528
  var browser_default = {
702
1529
  isBrowser: true,
703
1530
  classes: {
@@ -708,46 +1535,63 @@ var browser_default = {
708
1535
  protocols: ["http", "https", "file", "blob", "url", "data"]
709
1536
  };
710
1537
 
711
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/platform/common/utils.js
1538
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/platform/common/utils.js
712
1539
  var utils_exports = {};
713
1540
  __export(utils_exports, {
714
1541
  hasBrowserEnv: () => hasBrowserEnv,
715
1542
  hasStandardBrowserEnv: () => hasStandardBrowserEnv,
716
- hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv
1543
+ hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv,
1544
+ navigator: () => _navigator,
1545
+ origin: () => origin
717
1546
  });
718
1547
  var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
719
- var hasStandardBrowserEnv = ((product) => {
720
- return hasBrowserEnv && ["ReactNative", "NativeScript", "NS"].indexOf(product) < 0;
721
- })(typeof navigator !== "undefined" && navigator.product);
1548
+ var _navigator = typeof navigator === "object" && navigator || void 0;
1549
+ var hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ["ReactNative", "NativeScript", "NS"].indexOf(_navigator.product) < 0);
722
1550
  var hasStandardBrowserWebWorkerEnv = (() => {
723
1551
  return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
724
1552
  self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
725
1553
  })();
1554
+ var origin = hasBrowserEnv && window.location.href || "http://localhost";
726
1555
 
727
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/platform/index.js
1556
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/platform/index.js
728
1557
  var platform_default = {
729
1558
  ...utils_exports,
730
1559
  ...browser_default
731
1560
  };
732
1561
 
733
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/toURLEncodedForm.js
1562
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/toURLEncodedForm.js
734
1563
  function toURLEncodedForm(data, options) {
735
- return toFormData_default(data, new platform_default.classes.URLSearchParams(), Object.assign({
1564
+ return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
736
1565
  visitor: function(value, key, path, helpers) {
737
1566
  if (platform_default.isNode && utils_default.isBuffer(value)) {
738
1567
  this.append(key, value.toString("base64"));
739
1568
  return false;
740
1569
  }
741
1570
  return helpers.defaultVisitor.apply(this, arguments);
742
- }
743
- }, options));
1571
+ },
1572
+ ...options
1573
+ });
744
1574
  }
745
1575
 
746
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/formDataToJSON.js
1576
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/formDataToJSON.js
1577
+ var MAX_DEPTH = DEFAULT_FORM_DATA_MAX_DEPTH;
1578
+ function throwIfDepthExceeded(index) {
1579
+ if (index > MAX_DEPTH) {
1580
+ throw new AxiosError_default(
1581
+ "FormData field is too deeply nested (" + index + " levels). Max depth: " + MAX_DEPTH,
1582
+ AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
1583
+ );
1584
+ }
1585
+ }
747
1586
  function parsePropPath(name) {
748
- return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
749
- return match[0] === "[]" ? "" : match[1] || match[0];
750
- });
1587
+ const path = [];
1588
+ const pattern = /[^.[\]]+|\[([^.[\]]*)]/g;
1589
+ let match;
1590
+ while ((match = pattern.exec(name)) !== null) {
1591
+ throwIfDepthExceeded(path.length);
1592
+ path.push(match[0] === "[]" ? "" : match[1] || match[0]);
1593
+ }
1594
+ return path;
751
1595
  }
752
1596
  function arrayToObject(arr) {
753
1597
  const obj = {};
@@ -763,19 +1607,22 @@ function arrayToObject(arr) {
763
1607
  }
764
1608
  function formDataToJSON(formData) {
765
1609
  function buildPath(path, value, target, index) {
1610
+ throwIfDepthExceeded(index);
766
1611
  let name = path[index++];
1612
+ if (name === "__proto__")
1613
+ return true;
767
1614
  const isNumericKey = Number.isFinite(+name);
768
1615
  const isLast = index >= path.length;
769
1616
  name = !name && utils_default.isArray(target) ? target.length : name;
770
1617
  if (isLast) {
771
1618
  if (utils_default.hasOwnProp(target, name)) {
772
- target[name] = [target[name], value];
1619
+ target[name] = utils_default.isArray(target[name]) ? target[name].concat(value) : [target[name], value];
773
1620
  } else {
774
1621
  target[name] = value;
775
1622
  }
776
1623
  return !isNumericKey;
777
1624
  }
778
- if (!target[name] || !utils_default.isObject(target[name])) {
1625
+ if (!utils_default.hasOwnProp(target, name) || !utils_default.isObject(target[name])) {
779
1626
  target[name] = [];
780
1627
  }
781
1628
  const result = buildPath(path, value, target[name], index);
@@ -795,8 +1642,25 @@ function formDataToJSON(formData) {
795
1642
  }
796
1643
  var formDataToJSON_default = formDataToJSON;
797
1644
 
798
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/defaults/index.js
799
- function stringifySafely(rawValue, parser, encoder) {
1645
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/core/methodList.js
1646
+ var methodList = Object.freeze([
1647
+ "get",
1648
+ "delete",
1649
+ "head",
1650
+ "options",
1651
+ "post",
1652
+ "put",
1653
+ "patch",
1654
+ "purge",
1655
+ "link",
1656
+ "unlink",
1657
+ "query"
1658
+ ]);
1659
+ var methodList_default = methodList;
1660
+
1661
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/defaults/index.js
1662
+ var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
1663
+ function stringifySafely2(rawValue, parser, encoder) {
800
1664
  if (utils_default.isString(rawValue)) {
801
1665
  try {
802
1666
  (parser || JSON.parse)(rawValue);
@@ -811,71 +1675,78 @@ function stringifySafely(rawValue, parser, encoder) {
811
1675
  }
812
1676
  var defaults = {
813
1677
  transitional: transitional_default,
814
- adapter: ["xhr", "http"],
815
- transformRequest: [function transformRequest(data, headers) {
816
- const contentType = headers.getContentType() || "";
817
- const hasJSONContentType = contentType.indexOf("application/json") > -1;
818
- const isObjectPayload = utils_default.isObject(data);
819
- if (isObjectPayload && utils_default.isHTMLForm(data)) {
820
- data = new FormData(data);
821
- }
822
- const isFormData2 = utils_default.isFormData(data);
823
- if (isFormData2) {
824
- if (!hasJSONContentType) {
1678
+ adapter: ["xhr", "http", "fetch"],
1679
+ transformRequest: [
1680
+ function transformRequest(data, headers) {
1681
+ const contentType = headers.getContentType() || "";
1682
+ const hasJSONContentType = contentType.indexOf("application/json") > -1;
1683
+ const isObjectPayload = utils_default.isObject(data);
1684
+ if (isObjectPayload && utils_default.isHTMLForm(data)) {
1685
+ data = new FormData(data);
1686
+ }
1687
+ const isFormData2 = utils_default.isFormData(data);
1688
+ if (isFormData2) {
1689
+ return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
1690
+ }
1691
+ if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data) || utils_default.isReadableStream(data)) {
825
1692
  return data;
826
1693
  }
827
- return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
828
- }
829
- if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data)) {
830
- return data;
831
- }
832
- if (utils_default.isArrayBufferView(data)) {
833
- return data.buffer;
834
- }
835
- if (utils_default.isURLSearchParams(data)) {
836
- headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
837
- return data.toString();
838
- }
839
- let isFileList2;
840
- if (isObjectPayload) {
841
- if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
842
- return toURLEncodedForm(data, this.formSerializer).toString();
1694
+ if (utils_default.isArrayBufferView(data)) {
1695
+ return data.buffer;
843
1696
  }
844
- if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
845
- const _FormData = this.env && this.env.FormData;
846
- return toFormData_default(
847
- isFileList2 ? { "files[]": data } : data,
848
- _FormData && new _FormData(),
849
- this.formSerializer
850
- );
1697
+ if (utils_default.isURLSearchParams(data)) {
1698
+ headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
1699
+ return data.toString();
851
1700
  }
1701
+ let isFileList2;
1702
+ if (isObjectPayload) {
1703
+ const formSerializer = own(this, "formSerializer");
1704
+ if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
1705
+ return toURLEncodedForm(data, formSerializer).toString();
1706
+ }
1707
+ if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
1708
+ const env = own(this, "env");
1709
+ const _FormData = env && env.FormData;
1710
+ return toFormData_default(
1711
+ isFileList2 ? { "files[]": data } : data,
1712
+ _FormData && new _FormData(),
1713
+ formSerializer
1714
+ );
1715
+ }
1716
+ }
1717
+ if (isObjectPayload || hasJSONContentType) {
1718
+ headers.setContentType("application/json", false);
1719
+ return stringifySafely2(data);
1720
+ }
1721
+ return data;
852
1722
  }
853
- if (isObjectPayload || hasJSONContentType) {
854
- headers.setContentType("application/json", false);
855
- return stringifySafely(data);
856
- }
857
- return data;
858
- }],
859
- transformResponse: [function transformResponse(data) {
860
- const transitional2 = this.transitional || defaults.transitional;
861
- const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
862
- const JSONRequested = this.responseType === "json";
863
- if (data && utils_default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
864
- const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
865
- const strictJSONParsing = !silentJSONParsing && JSONRequested;
866
- try {
867
- return JSON.parse(data);
868
- } catch (e) {
869
- if (strictJSONParsing) {
870
- if (e.name === "SyntaxError") {
871
- throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, this.response);
1723
+ ],
1724
+ transformResponse: [
1725
+ function transformResponse(data) {
1726
+ const transitional2 = own(this, "transitional") || defaults.transitional;
1727
+ const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
1728
+ const responseType = own(this, "responseType");
1729
+ const JSONRequested = responseType === "json";
1730
+ if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
1731
+ return data;
1732
+ }
1733
+ if (data && utils_default.isString(data) && (forcedJSONParsing && !responseType || JSONRequested)) {
1734
+ const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
1735
+ const strictJSONParsing = !silentJSONParsing && JSONRequested;
1736
+ try {
1737
+ return JSON.parse(data, own(this, "parseReviver"));
1738
+ } catch (e) {
1739
+ if (strictJSONParsing) {
1740
+ if (e.name === "SyntaxError") {
1741
+ throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, own(this, "response"));
1742
+ }
1743
+ throw e;
872
1744
  }
873
- throw e;
874
1745
  }
875
1746
  }
1747
+ return data;
876
1748
  }
877
- return data;
878
- }],
1749
+ ],
879
1750
  /**
880
1751
  * A timeout in milliseconds to abort a request. If set to 0 (default) a
881
1752
  * timeout is not created.
@@ -894,681 +1765,1463 @@ var defaults = {
894
1765
  },
895
1766
  headers: {
896
1767
  common: {
897
- "Accept": "application/json, text/plain, */*",
1768
+ Accept: "application/json, text/plain, */*",
898
1769
  "Content-Type": void 0
899
1770
  }
900
1771
  }
901
1772
  };
902
- utils_default.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
1773
+ utils_default.forEach(methodList_default, (method) => {
903
1774
  defaults.headers[method] = {};
904
1775
  });
905
1776
  var defaults_default = defaults;
906
1777
 
907
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/parseHeaders.js
908
- var ignoreDuplicateOf = utils_default.toObjectSet([
909
- "age",
910
- "authorization",
911
- "content-length",
912
- "content-type",
913
- "etag",
914
- "expires",
915
- "from",
916
- "host",
917
- "if-modified-since",
918
- "if-unmodified-since",
919
- "last-modified",
920
- "location",
921
- "max-forwards",
922
- "proxy-authorization",
923
- "referer",
924
- "retry-after",
925
- "user-agent"
926
- ]);
927
- var parseHeaders_default = (rawHeaders) => {
928
- const parsed = {};
929
- let key;
930
- let val;
931
- let i;
932
- rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
933
- i = line.indexOf(":");
934
- key = line.substring(0, i).trim().toLowerCase();
935
- val = line.substring(i + 1).trim();
936
- if (!key || parsed[key] && ignoreDuplicateOf[key]) {
1778
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/core/transformData.js
1779
+ function transformData(fns, response) {
1780
+ const config = this || defaults_default;
1781
+ const context = response || config;
1782
+ const headers = AxiosHeaders_default.from(context.headers);
1783
+ let data = context.data;
1784
+ utils_default.forEach(fns, function transform(fn) {
1785
+ data = fn.call(config, data, headers.normalize(), response ? response.status : void 0);
1786
+ });
1787
+ headers.normalize();
1788
+ return data;
1789
+ }
1790
+
1791
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/cancel/isCancel.js
1792
+ function isCancel(value) {
1793
+ return !!(value && value.__CANCEL__);
1794
+ }
1795
+
1796
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/cancel/CanceledError.js
1797
+ var CanceledError = class extends AxiosError_default {
1798
+ /**
1799
+ * A `CanceledError` is an object that is thrown when an operation is canceled.
1800
+ *
1801
+ * @param {string=} message The message.
1802
+ * @param {Object=} config The config.
1803
+ * @param {Object=} request The request.
1804
+ *
1805
+ * @returns {CanceledError} The created error.
1806
+ */
1807
+ constructor(message, config, request) {
1808
+ super(message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request);
1809
+ this.name = "CanceledError";
1810
+ this.__CANCEL__ = true;
1811
+ }
1812
+ };
1813
+ var CanceledError_default = CanceledError;
1814
+
1815
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/core/settle.js
1816
+ function settle(resolve, reject, response) {
1817
+ const validateStatus2 = response.config.validateStatus;
1818
+ if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
1819
+ resolve(response);
1820
+ } else {
1821
+ reject(new AxiosError_default(
1822
+ "Request failed with status code " + response.status,
1823
+ response.status >= 400 && response.status < 500 ? AxiosError_default.ERR_BAD_REQUEST : AxiosError_default.ERR_BAD_RESPONSE,
1824
+ response.config,
1825
+ response.request,
1826
+ response
1827
+ ));
1828
+ }
1829
+ }
1830
+
1831
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js
1832
+ var urlParserControlCharacters = /[\t\n\r]/g;
1833
+ function normalizeURLForProtocolCheck(url) {
1834
+ if (typeof url !== "string") {
1835
+ return url;
1836
+ }
1837
+ let start = 0;
1838
+ while (start < url.length && url.charCodeAt(start) <= 32) {
1839
+ start++;
1840
+ }
1841
+ return url.slice(start).replace(urlParserControlCharacters, "");
1842
+ }
1843
+
1844
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/parseProtocol.js
1845
+ function parseProtocol(url) {
1846
+ const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url);
1847
+ return match && match[1] || "";
1848
+ }
1849
+
1850
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/speedometer.js
1851
+ function speedometer(samplesCount, min) {
1852
+ samplesCount = samplesCount || 10;
1853
+ const bytes = new Array(samplesCount);
1854
+ const timestamps = new Array(samplesCount);
1855
+ let head = 0;
1856
+ let tail = 0;
1857
+ let firstSampleTS;
1858
+ min = min !== void 0 ? min : 1e3;
1859
+ return function push(chunkLength) {
1860
+ const now = Date.now();
1861
+ const startedAt = timestamps[tail];
1862
+ if (!firstSampleTS) {
1863
+ firstSampleTS = now;
1864
+ }
1865
+ bytes[head] = chunkLength;
1866
+ timestamps[head] = now;
1867
+ let i = tail;
1868
+ let bytesCount = 0;
1869
+ while (i !== head) {
1870
+ bytesCount += bytes[i++];
1871
+ i = i % samplesCount;
1872
+ }
1873
+ head = (head + 1) % samplesCount;
1874
+ if (head === tail) {
1875
+ tail = (tail + 1) % samplesCount;
1876
+ }
1877
+ if (now - firstSampleTS < min) {
937
1878
  return;
938
1879
  }
939
- if (key === "set-cookie") {
940
- if (parsed[key]) {
941
- parsed[key].push(val);
942
- } else {
943
- parsed[key] = [val];
944
- }
1880
+ const passed = startedAt && now - startedAt;
1881
+ return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
1882
+ };
1883
+ }
1884
+ var speedometer_default = speedometer;
1885
+
1886
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/throttle.js
1887
+ function throttle(fn, freq) {
1888
+ let timestamp = 0;
1889
+ let threshold = 1e3 / freq;
1890
+ let lastArgs;
1891
+ let timer;
1892
+ const invoke = (args, now = Date.now()) => {
1893
+ timestamp = now;
1894
+ lastArgs = null;
1895
+ if (timer) {
1896
+ clearTimeout(timer);
1897
+ timer = null;
1898
+ }
1899
+ fn(...args);
1900
+ };
1901
+ const throttled = (...args) => {
1902
+ const now = Date.now();
1903
+ const passed = now - timestamp;
1904
+ if (passed >= threshold) {
1905
+ invoke(args, now);
945
1906
  } else {
946
- parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
1907
+ lastArgs = args;
1908
+ if (!timer) {
1909
+ timer = setTimeout(() => {
1910
+ timer = null;
1911
+ invoke(lastArgs);
1912
+ }, threshold - passed);
1913
+ }
947
1914
  }
948
- });
949
- return parsed;
1915
+ };
1916
+ const flush = () => lastArgs && invoke(lastArgs);
1917
+ const flushWith = (...args) => invoke(args);
1918
+ return [throttled, flush, flushWith];
1919
+ }
1920
+ var throttle_default = throttle;
1921
+
1922
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/progressEventReducer.js
1923
+ var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
1924
+ let bytesNotified = 0;
1925
+ const _speedometer = speedometer_default(50, 250);
1926
+ return throttle_default((e) => {
1927
+ if (!e || !utils_default.isNumber(e.loaded)) {
1928
+ return;
1929
+ }
1930
+ const rawLoaded = e.loaded;
1931
+ const total = e.lengthComputable ? e.total : void 0;
1932
+ const loaded = Math.max(0, total != null ? Math.min(rawLoaded, total) : rawLoaded);
1933
+ const progressBytes = Math.max(0, loaded - bytesNotified);
1934
+ const rate = _speedometer(progressBytes);
1935
+ bytesNotified = Math.max(bytesNotified, loaded);
1936
+ const data = {
1937
+ loaded,
1938
+ total,
1939
+ progress: total ? loaded / total : void 0,
1940
+ bytes: progressBytes,
1941
+ rate: rate ? rate : void 0,
1942
+ estimated: rate && total ? (total - loaded) / rate : void 0,
1943
+ event: e,
1944
+ lengthComputable: total != null,
1945
+ [isDownloadStream ? "download" : "upload"]: true
1946
+ };
1947
+ listener(data);
1948
+ }, freq);
1949
+ };
1950
+ var progressEventDecorator = (total, throttled) => {
1951
+ const lengthComputable = total != null;
1952
+ return [
1953
+ (loaded) => throttled[0]({
1954
+ lengthComputable,
1955
+ total,
1956
+ loaded
1957
+ }),
1958
+ throttled[1]
1959
+ ];
950
1960
  };
1961
+ var asyncDecorator = (fn, scheduler = utils_default.asap) => (...args) => scheduler(() => fn(...args));
951
1962
 
952
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/core/AxiosHeaders.js
953
- var $internals = Symbol("internals");
954
- function normalizeHeader(header) {
955
- return header && String(header).trim().toLowerCase();
1963
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/isURLSameOrigin.js
1964
+ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? ((origin2, isMSIE) => (url) => {
1965
+ url = new URL(url, platform_default.origin);
1966
+ return origin2.protocol === url.protocol && origin2.host === url.host && (isMSIE || origin2.port === url.port);
1967
+ })(
1968
+ new URL(platform_default.origin),
1969
+ platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
1970
+ ) : () => true;
1971
+
1972
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/cookies.js
1973
+ var cookies_default = platform_default.hasStandardBrowserEnv ? (
1974
+ // Standard browser envs support document.cookie
1975
+ {
1976
+ write(name, value, expires, path, domain, secure, sameSite) {
1977
+ if (typeof document === "undefined")
1978
+ return;
1979
+ const cookie = [`${name}=${encodeURIComponent(value)}`];
1980
+ if (utils_default.isNumber(expires)) {
1981
+ cookie.push(`expires=${new Date(expires).toUTCString()}`);
1982
+ }
1983
+ if (utils_default.isString(path)) {
1984
+ cookie.push(`path=${path}`);
1985
+ }
1986
+ if (utils_default.isString(domain)) {
1987
+ cookie.push(`domain=${domain}`);
1988
+ }
1989
+ if (secure === true) {
1990
+ cookie.push("secure");
1991
+ }
1992
+ if (utils_default.isString(sameSite)) {
1993
+ cookie.push(`SameSite=${sameSite}`);
1994
+ }
1995
+ document.cookie = cookie.join("; ");
1996
+ },
1997
+ read(name) {
1998
+ if (typeof document === "undefined")
1999
+ return null;
2000
+ const cookies = document.cookie.split(";");
2001
+ for (let i = 0; i < cookies.length; i++) {
2002
+ const cookie = cookies[i].replace(/^\s+/, "");
2003
+ const eq = cookie.indexOf("=");
2004
+ if (eq !== -1 && cookie.slice(0, eq) === name) {
2005
+ try {
2006
+ return decodeURIComponent(cookie.slice(eq + 1));
2007
+ } catch (e) {
2008
+ return cookie.slice(eq + 1);
2009
+ }
2010
+ }
2011
+ }
2012
+ return null;
2013
+ },
2014
+ remove(name) {
2015
+ this.write(name, "", Date.now() - 864e5, "/");
2016
+ }
2017
+ }
2018
+ ) : (
2019
+ // Non-standard browser env (web workers, react-native) lack needed support.
2020
+ {
2021
+ write() {
2022
+ },
2023
+ read() {
2024
+ return null;
2025
+ },
2026
+ remove() {
2027
+ }
2028
+ }
2029
+ );
2030
+
2031
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/isAbsoluteURL.js
2032
+ function isAbsoluteURL(url) {
2033
+ if (typeof url !== "string") {
2034
+ return false;
2035
+ }
2036
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
956
2037
  }
957
- function normalizeValue(value) {
958
- if (value === false || value == null) {
959
- return value;
2038
+
2039
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/combineURLs.js
2040
+ function combineURLs(baseURL, relativeURL) {
2041
+ if (!relativeURL) {
2042
+ return baseURL;
960
2043
  }
961
- return utils_default.isArray(value) ? value.map(normalizeValue) : String(value);
2044
+ let end = baseURL.length;
2045
+ while (end > 0 && baseURL.charCodeAt(end - 1) === 47) {
2046
+ end--;
2047
+ }
2048
+ return baseURL.slice(0, end) + "/" + relativeURL.replace(/^\/+/, "");
962
2049
  }
963
- function parseTokens(str) {
964
- const tokens = /* @__PURE__ */ Object.create(null);
965
- const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
966
- let match;
967
- while (match = tokensRE.exec(str)) {
968
- tokens[match[1]] = match[2];
2050
+
2051
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/core/buildFullPath.js
2052
+ var malformedHttpProtocol = /^https?:(?!\/\/)/i;
2053
+ function redactFragment(fragment) {
2054
+ if (!fragment) {
2055
+ return fragment;
2056
+ }
2057
+ return fragment.replace(/(^|&)([^=&]*=)?[^&]+/g, (match, separator, parameterName = "") => {
2058
+ return `${separator}${parameterName}${REDACTED}`;
2059
+ });
2060
+ }
2061
+ function redactSensitiveURLParts(url) {
2062
+ const redactedURL = url.replace(/^(https?:\/{0,2})[^/?#]*@/i, `$1${REDACTED}@`);
2063
+ const fragmentIndex = redactedURL.indexOf("#");
2064
+ const urlWithoutFragment = fragmentIndex === -1 ? redactedURL : redactedURL.slice(0, fragmentIndex);
2065
+ const redactedURLWithoutFragment = urlWithoutFragment.replace(
2066
+ /([?&][^=&#]*=)[^&#]*/g,
2067
+ `$1${REDACTED}`
2068
+ );
2069
+ if (fragmentIndex === -1) {
2070
+ return redactedURLWithoutFragment;
2071
+ }
2072
+ return `${redactedURLWithoutFragment}#${redactFragment(redactedURL.slice(fragmentIndex + 1))}`;
2073
+ }
2074
+ function assertValidHttpProtocolURL(url, config) {
2075
+ if (typeof url === "string") {
2076
+ const normalizedURL = normalizeURLForProtocolCheck(url);
2077
+ if (malformedHttpProtocol.test(normalizedURL)) {
2078
+ throw new AxiosError_default(
2079
+ `Invalid URL ${JSON.stringify(redactSensitiveURLParts(normalizedURL))}: missing "//" after protocol`,
2080
+ AxiosError_default.ERR_INVALID_URL,
2081
+ config
2082
+ );
2083
+ }
2084
+ }
2085
+ }
2086
+ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls, config) {
2087
+ assertValidHttpProtocolURL(requestedURL, config);
2088
+ let isRelativeUrl = !isAbsoluteURL(requestedURL);
2089
+ if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
2090
+ assertValidHttpProtocolURL(baseURL, config);
2091
+ return combineURLs(baseURL, requestedURL);
2092
+ }
2093
+ return requestedURL;
2094
+ }
2095
+
2096
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/core/mergeConfig.js
2097
+ var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
2098
+ var ownEnumerableKeys = (thing) => {
2099
+ if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) {
2100
+ return Object.keys(thing).concat(
2101
+ Object.getOwnPropertySymbols(thing).filter(
2102
+ (symbol) => Object.getOwnPropertyDescriptor(thing, symbol).enumerable
2103
+ )
2104
+ );
2105
+ }
2106
+ return Object.keys(thing);
2107
+ };
2108
+ function mergeConfig(config1, config2) {
2109
+ config1 = config1 || {};
2110
+ config2 = config2 || {};
2111
+ const config = /* @__PURE__ */ Object.create(null);
2112
+ Object.defineProperty(config, "hasOwnProperty", {
2113
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
2114
+ // this data descriptor into an accessor descriptor on the way in.
2115
+ __proto__: null,
2116
+ value: Object.prototype.hasOwnProperty,
2117
+ enumerable: false,
2118
+ writable: true,
2119
+ configurable: true
2120
+ });
2121
+ function getMergedValue(target, source, prop, caseless) {
2122
+ if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
2123
+ return utils_default.merge.call({ caseless }, target, source);
2124
+ } else if (utils_default.isPlainObject(source)) {
2125
+ return utils_default.merge({}, source);
2126
+ } else if (utils_default.isArray(source)) {
2127
+ return source.slice();
2128
+ }
2129
+ return source;
2130
+ }
2131
+ function mergeDeepProperties(a, b, prop, caseless) {
2132
+ if (!utils_default.isUndefined(b)) {
2133
+ return getMergedValue(a, b, prop, caseless);
2134
+ } else if (!utils_default.isUndefined(a)) {
2135
+ return getMergedValue(void 0, a, prop, caseless);
2136
+ }
969
2137
  }
970
- return tokens;
971
- }
972
- var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
973
- function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
974
- if (utils_default.isFunction(filter2)) {
975
- return filter2.call(this, value, header);
2138
+ function valueFromConfig2(a, b) {
2139
+ if (!utils_default.isUndefined(b)) {
2140
+ return getMergedValue(void 0, b);
2141
+ }
976
2142
  }
977
- if (isHeaderNameFilter) {
978
- value = header;
2143
+ function defaultToConfig2(a, b) {
2144
+ if (!utils_default.isUndefined(b)) {
2145
+ return getMergedValue(void 0, b);
2146
+ } else if (!utils_default.isUndefined(a)) {
2147
+ return getMergedValue(void 0, a);
2148
+ }
979
2149
  }
980
- if (!utils_default.isString(value))
981
- return;
982
- if (utils_default.isString(filter2)) {
983
- return value.indexOf(filter2) !== -1;
2150
+ function getMergedTransitionalOption(prop) {
2151
+ const transitional2 = utils_default.hasOwnProp(config2, "transitional") ? config2.transitional : void 0;
2152
+ if (!utils_default.isUndefined(transitional2)) {
2153
+ if (utils_default.isPlainObject(transitional2)) {
2154
+ if (utils_default.hasOwnProp(transitional2, prop)) {
2155
+ return transitional2[prop];
2156
+ }
2157
+ } else {
2158
+ return void 0;
2159
+ }
2160
+ }
2161
+ const transitional1 = utils_default.hasOwnProp(config1, "transitional") ? config1.transitional : void 0;
2162
+ if (utils_default.isPlainObject(transitional1) && utils_default.hasOwnProp(transitional1, prop)) {
2163
+ return transitional1[prop];
2164
+ }
2165
+ return void 0;
984
2166
  }
985
- if (utils_default.isRegExp(filter2)) {
986
- return filter2.test(value);
2167
+ function mergeDirectKeys(a, b, prop) {
2168
+ if (utils_default.hasOwnProp(config2, prop)) {
2169
+ return getMergedValue(a, b);
2170
+ } else if (utils_default.hasOwnProp(config1, prop)) {
2171
+ return getMergedValue(void 0, a);
2172
+ }
987
2173
  }
988
- }
989
- function formatHeader(header) {
990
- return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
991
- return char.toUpperCase() + str;
2174
+ const mergeMap = {
2175
+ url: valueFromConfig2,
2176
+ method: valueFromConfig2,
2177
+ data: valueFromConfig2,
2178
+ baseURL: defaultToConfig2,
2179
+ transformRequest: defaultToConfig2,
2180
+ transformResponse: defaultToConfig2,
2181
+ paramsSerializer: defaultToConfig2,
2182
+ timeout: defaultToConfig2,
2183
+ timeoutErrorMessage: defaultToConfig2,
2184
+ withCredentials: defaultToConfig2,
2185
+ withXSRFToken: defaultToConfig2,
2186
+ adapter: defaultToConfig2,
2187
+ responseType: defaultToConfig2,
2188
+ xsrfCookieName: defaultToConfig2,
2189
+ xsrfHeaderName: defaultToConfig2,
2190
+ onUploadProgress: defaultToConfig2,
2191
+ onDownloadProgress: defaultToConfig2,
2192
+ decompress: defaultToConfig2,
2193
+ maxContentLength: defaultToConfig2,
2194
+ maxBodyLength: defaultToConfig2,
2195
+ beforeRedirect: defaultToConfig2,
2196
+ transport: defaultToConfig2,
2197
+ httpAgent: defaultToConfig2,
2198
+ httpsAgent: defaultToConfig2,
2199
+ cancelToken: defaultToConfig2,
2200
+ socketPath: defaultToConfig2,
2201
+ allowedSocketPaths: defaultToConfig2,
2202
+ responseEncoding: defaultToConfig2,
2203
+ validateStatus: mergeDirectKeys,
2204
+ headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
2205
+ };
2206
+ utils_default.forEach(ownEnumerableKeys({ ...config1, ...config2 }), function computeConfigValue(prop) {
2207
+ if (prop === "__proto__" || prop === "constructor" || prop === "prototype")
2208
+ return;
2209
+ const merge2 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
2210
+ const a = utils_default.hasOwnProp(config1, prop) ? config1[prop] : void 0;
2211
+ const b = utils_default.hasOwnProp(config2, prop) ? config2[prop] : void 0;
2212
+ const configValue = merge2(a, b, prop);
2213
+ utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
992
2214
  });
2215
+ if (utils_default.hasOwnProp(config2, "validateStatus") && utils_default.isUndefined(config2.validateStatus) && getMergedTransitionalOption("validateStatusUndefinedResolves") === false) {
2216
+ if (utils_default.hasOwnProp(config1, "validateStatus")) {
2217
+ config.validateStatus = getMergedValue(void 0, config1.validateStatus);
2218
+ } else {
2219
+ delete config.validateStatus;
2220
+ }
2221
+ }
2222
+ return config;
993
2223
  }
994
- function buildAccessors(obj, header) {
995
- const accessorName = utils_default.toCamelCase(" " + header);
996
- ["get", "set", "has"].forEach((methodName) => {
997
- Object.defineProperty(obj, methodName + accessorName, {
998
- value: function(arg1, arg2, arg3) {
999
- return this[methodName].call(this, header, arg1, arg2, arg3);
1000
- },
1001
- configurable: true
1002
- });
2224
+
2225
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/core/setFormDataHeaders.js
2226
+ var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
2227
+ function setFormDataHeaders(headers, formHeaders, policy) {
2228
+ if (policy !== "content-only") {
2229
+ headers.set(formHeaders);
2230
+ return;
2231
+ }
2232
+ Object.entries(formHeaders || {}).forEach(([key, val]) => {
2233
+ if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
2234
+ headers.set(key, val);
2235
+ }
1003
2236
  });
1004
2237
  }
1005
- var AxiosHeaders = class {
1006
- constructor(headers) {
1007
- headers && this.set(headers);
1008
- }
1009
- set(header, valueOrRewrite, rewrite) {
1010
- const self2 = this;
1011
- function setHeader(_value, _header, _rewrite) {
1012
- const lHeader = normalizeHeader(_header);
1013
- if (!lHeader) {
1014
- throw new Error("header name must be a non-empty string");
1015
- }
1016
- const key = utils_default.findKey(self2, lHeader);
1017
- if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
1018
- self2[key || _header] = normalizeValue(_value);
1019
- }
2238
+
2239
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/resolveConfig.js
2240
+ var encodeUTF8 = (str) => encodeURIComponent(str).replace(
2241
+ /%([0-9A-F]{2})/gi,
2242
+ (_, hex) => String.fromCharCode(parseInt(hex, 16))
2243
+ );
2244
+ function resolveConfig(config) {
2245
+ const newConfig = mergeConfig({}, config);
2246
+ const own2 = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
2247
+ const data = own2("data");
2248
+ let withXSRFToken = own2("withXSRFToken");
2249
+ const xsrfHeaderName = own2("xsrfHeaderName");
2250
+ const xsrfCookieName = own2("xsrfCookieName");
2251
+ let headers = own2("headers");
2252
+ const auth = own2("auth");
2253
+ const baseURL = own2("baseURL");
2254
+ const allowAbsoluteUrls = own2("allowAbsoluteUrls");
2255
+ const url = own2("url");
2256
+ newConfig.headers = headers = AxiosHeaders_default.from(headers);
2257
+ newConfig.url = buildURL(
2258
+ buildFullPath(baseURL, url, allowAbsoluteUrls, newConfig),
2259
+ own2("params"),
2260
+ own2("paramsSerializer")
2261
+ );
2262
+ if (auth) {
2263
+ const username = utils_default.getSafeProp(auth, "username") || "";
2264
+ const password = utils_default.getSafeProp(auth, "password") || "";
2265
+ try {
2266
+ headers.set(
2267
+ "Authorization",
2268
+ "Basic " + btoa(username + ":" + (password ? encodeUTF8(password) : ""))
2269
+ );
2270
+ } catch (e) {
2271
+ throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_OPTION_VALUE, config);
1020
2272
  }
1021
- const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
1022
- if (utils_default.isPlainObject(header) || header instanceof this.constructor) {
1023
- setHeaders(header, valueOrRewrite);
1024
- } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
1025
- setHeaders(parseHeaders_default(header), valueOrRewrite);
1026
- } else {
1027
- header != null && setHeader(valueOrRewrite, header, rewrite);
2273
+ }
2274
+ if (utils_default.isFormData(data)) {
2275
+ const getHeaders = utils_default.getSafeProp(data, "getHeaders");
2276
+ if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv || utils_default.isReactNative(data)) {
2277
+ headers.setContentType(void 0);
2278
+ } else if (utils_default.isFunction(getHeaders)) {
2279
+ setFormDataHeaders(headers, getHeaders.call(data), own2("formDataHeaderPolicy"));
1028
2280
  }
1029
- return this;
1030
2281
  }
1031
- get(header, parser) {
1032
- header = normalizeHeader(header);
1033
- if (header) {
1034
- const key = utils_default.findKey(this, header);
1035
- if (key) {
1036
- const value = this[key];
1037
- if (!parser) {
1038
- return value;
1039
- }
1040
- if (parser === true) {
1041
- return parseTokens(value);
1042
- }
1043
- if (utils_default.isFunction(parser)) {
1044
- return parser.call(this, value, key);
1045
- }
1046
- if (utils_default.isRegExp(parser)) {
1047
- return parser.exec(value);
1048
- }
1049
- throw new TypeError("parser must be boolean|regexp|function");
2282
+ if (platform_default.hasStandardBrowserEnv) {
2283
+ if (utils_default.isFunction(withXSRFToken)) {
2284
+ withXSRFToken = withXSRFToken(newConfig);
2285
+ }
2286
+ const shouldSendXSRF = withXSRFToken === true || withXSRFToken == null && isURLSameOrigin_default(newConfig.url);
2287
+ if (shouldSendXSRF) {
2288
+ const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);
2289
+ if (xsrfValue) {
2290
+ headers.set(xsrfHeaderName, xsrfValue);
1050
2291
  }
1051
2292
  }
1052
2293
  }
1053
- has(header, matcher) {
1054
- header = normalizeHeader(header);
1055
- if (header) {
1056
- const key = utils_default.findKey(this, header);
1057
- return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
2294
+ return newConfig;
2295
+ }
2296
+ var resolveConfig_default = resolveConfig;
2297
+
2298
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/adapters/xhr.js
2299
+ var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
2300
+ var xhr_default = isXHRAdapterSupported && function(config) {
2301
+ return new Promise(function dispatchXhrRequest(resolve, reject) {
2302
+ const _config = resolveConfig_default(config);
2303
+ let requestData = _config.data;
2304
+ const requestHeaders = AxiosHeaders_default.from(_config.headers).normalize();
2305
+ let { responseType, onUploadProgress, onDownloadProgress } = _config;
2306
+ let onCanceled;
2307
+ let uploadThrottled, downloadThrottled;
2308
+ let flushUpload, flushDownload, flushDownloadWithEvent;
2309
+ function done() {
2310
+ flushUpload && flushUpload();
2311
+ flushDownload && flushDownload();
2312
+ _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
2313
+ _config.signal && _config.signal.removeEventListener("abort", onCanceled);
1058
2314
  }
1059
- return false;
1060
- }
1061
- delete(header, matcher) {
1062
- const self2 = this;
1063
- let deleted = false;
1064
- function deleteHeader(_header) {
1065
- _header = normalizeHeader(_header);
1066
- if (_header) {
1067
- const key = utils_default.findKey(self2, _header);
1068
- if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
1069
- delete self2[key];
1070
- deleted = true;
2315
+ let request = new XMLHttpRequest();
2316
+ request.open(_config.method.toUpperCase(), _config.url, true);
2317
+ request.timeout = _config.timeout;
2318
+ function onloadend(event) {
2319
+ if (!request) {
2320
+ return;
2321
+ }
2322
+ if (request.status === 0 && (parseProtocol(normalizeURLForProtocolCheck(_config.url)) || parseProtocol(platform_default.origin)) !== "file" && !(request.responseURL && request.responseURL.startsWith("file:"))) {
2323
+ reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config, request));
2324
+ done();
2325
+ request = null;
2326
+ return;
2327
+ }
2328
+ try {
2329
+ if (event) {
2330
+ flushDownloadWithEvent && flushDownloadWithEvent(event);
2331
+ } else {
2332
+ flushDownload && flushDownload();
1071
2333
  }
2334
+ } catch (err) {
2335
+ setTimeout(() => {
2336
+ throw err;
2337
+ });
2338
+ }
2339
+ if (!request) {
2340
+ return;
1072
2341
  }
2342
+ const responseHeaders = AxiosHeaders_default.from(
2343
+ "getAllResponseHeaders" in request && request.getAllResponseHeaders()
2344
+ );
2345
+ const responseData = !responseType || responseType === "text" || responseType === "json" ? request.responseText : request.response;
2346
+ const response = {
2347
+ data: responseData,
2348
+ status: request.status,
2349
+ statusText: request.statusText,
2350
+ headers: responseHeaders,
2351
+ config,
2352
+ request
2353
+ };
2354
+ settle(
2355
+ function _resolve(value) {
2356
+ resolve(value);
2357
+ done();
2358
+ },
2359
+ function _reject(err) {
2360
+ reject(err);
2361
+ done();
2362
+ },
2363
+ response
2364
+ );
2365
+ request = null;
1073
2366
  }
1074
- if (utils_default.isArray(header)) {
1075
- header.forEach(deleteHeader);
2367
+ if ("onloadend" in request) {
2368
+ request.onloadend = onloadend;
1076
2369
  } else {
1077
- deleteHeader(header);
1078
- }
1079
- return deleted;
1080
- }
1081
- clear(matcher) {
1082
- const keys = Object.keys(this);
1083
- let i = keys.length;
1084
- let deleted = false;
1085
- while (i--) {
1086
- const key = keys[i];
1087
- if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
1088
- delete this[key];
1089
- deleted = true;
1090
- }
2370
+ request.onreadystatechange = function handleLoad() {
2371
+ if (!request || request.readyState !== 4) {
2372
+ return;
2373
+ }
2374
+ if (request.status === 0 && !(request.responseURL && request.responseURL.startsWith("file:"))) {
2375
+ return;
2376
+ }
2377
+ setTimeout(onloadend);
2378
+ };
1091
2379
  }
1092
- return deleted;
1093
- }
1094
- normalize(format) {
1095
- const self2 = this;
1096
- const headers = {};
1097
- utils_default.forEach(this, (value, header) => {
1098
- const key = utils_default.findKey(headers, header);
1099
- if (key) {
1100
- self2[key] = normalizeValue(value);
1101
- delete self2[header];
2380
+ request.onabort = function handleAbort() {
2381
+ if (!request) {
1102
2382
  return;
1103
2383
  }
1104
- const normalized = format ? formatHeader(header) : String(header).trim();
1105
- if (normalized !== header) {
1106
- delete self2[header];
2384
+ reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config, request));
2385
+ done();
2386
+ request = null;
2387
+ };
2388
+ request.onerror = function handleError(event) {
2389
+ const msg = event && event.message ? event.message : "Network Error";
2390
+ const err = new AxiosError_default(msg, AxiosError_default.ERR_NETWORK, config, request);
2391
+ err.event = event || null;
2392
+ reject(err);
2393
+ done();
2394
+ request = null;
2395
+ };
2396
+ request.ontimeout = function handleTimeout() {
2397
+ let timeoutErrorMessage = _config.timeout ? "timeout of " + _config.timeout + "ms exceeded" : "timeout exceeded";
2398
+ const transitional2 = _config.transitional || transitional_default;
2399
+ if (_config.timeoutErrorMessage) {
2400
+ timeoutErrorMessage = _config.timeoutErrorMessage;
2401
+ }
2402
+ reject(
2403
+ new AxiosError_default(
2404
+ timeoutErrorMessage,
2405
+ transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
2406
+ config,
2407
+ request
2408
+ )
2409
+ );
2410
+ done();
2411
+ request = null;
2412
+ };
2413
+ requestData === void 0 && requestHeaders.setContentType(null);
2414
+ if ("setRequestHeader" in request) {
2415
+ utils_default.forEach(toByteStringHeaderObject(requestHeaders), function setRequestHeader(val, key) {
2416
+ request.setRequestHeader(key, val);
2417
+ });
2418
+ }
2419
+ if (!utils_default.isUndefined(_config.withCredentials)) {
2420
+ request.withCredentials = !!_config.withCredentials;
2421
+ }
2422
+ if (responseType && responseType !== "json") {
2423
+ request.responseType = _config.responseType;
2424
+ }
2425
+ if (onDownloadProgress) {
2426
+ [downloadThrottled, flushDownload, flushDownloadWithEvent] = progressEventReducer(
2427
+ onDownloadProgress,
2428
+ true
2429
+ );
2430
+ request.addEventListener("progress", downloadThrottled);
2431
+ }
2432
+ if (onUploadProgress && request.upload) {
2433
+ [uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress);
2434
+ request.upload.addEventListener("progress", uploadThrottled);
2435
+ request.upload.addEventListener("loadend", flushUpload);
2436
+ }
2437
+ if (_config.cancelToken || _config.signal) {
2438
+ onCanceled = (cancel) => {
2439
+ if (!request) {
2440
+ return;
2441
+ }
2442
+ reject(!cancel || cancel.type ? new CanceledError_default(null, config, request) : cancel);
2443
+ request.abort();
2444
+ done();
2445
+ request = null;
2446
+ };
2447
+ _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
2448
+ if (_config.signal) {
2449
+ _config.signal.aborted ? onCanceled() : _config.signal.addEventListener("abort", onCanceled);
1107
2450
  }
1108
- self2[normalized] = normalizeValue(value);
1109
- headers[normalized] = true;
1110
- });
1111
- return this;
1112
- }
1113
- concat(...targets) {
1114
- return this.constructor.concat(this, ...targets);
2451
+ }
2452
+ const protocol = parseProtocol(_config.url);
2453
+ if (protocol && !platform_default.protocols.includes(protocol)) {
2454
+ reject(
2455
+ new AxiosError_default(
2456
+ "Unsupported protocol " + protocol + ":",
2457
+ AxiosError_default.ERR_BAD_REQUEST,
2458
+ config
2459
+ )
2460
+ );
2461
+ done();
2462
+ return;
2463
+ }
2464
+ request.send(requestData || null);
2465
+ });
2466
+ };
2467
+
2468
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/composeSignals.js
2469
+ var composeSignals = (signals, timeout) => {
2470
+ signals = signals ? signals.filter(Boolean) : [];
2471
+ if (!timeout && !signals.length) {
2472
+ return;
1115
2473
  }
1116
- toJSON(asStrings) {
1117
- const obj = /* @__PURE__ */ Object.create(null);
1118
- utils_default.forEach(this, (value, header) => {
1119
- value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
2474
+ const controller = new AbortController();
2475
+ let aborted = false;
2476
+ const onabort = function(reason) {
2477
+ if (!aborted) {
2478
+ aborted = true;
2479
+ unsubscribe();
2480
+ const err = reason instanceof Error ? reason : this.reason;
2481
+ controller.abort(
2482
+ err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err)
2483
+ );
2484
+ }
2485
+ };
2486
+ let timer = timeout && setTimeout(() => {
2487
+ timer = null;
2488
+ onabort(new AxiosError_default(`timeout of ${timeout}ms exceeded`, AxiosError_default.ETIMEDOUT));
2489
+ }, timeout);
2490
+ const unsubscribe = () => {
2491
+ if (!signals) {
2492
+ return;
2493
+ }
2494
+ timer && clearTimeout(timer);
2495
+ timer = null;
2496
+ signals.forEach((signal2) => {
2497
+ signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
1120
2498
  });
1121
- return obj;
1122
- }
1123
- [Symbol.iterator]() {
1124
- return Object.entries(this.toJSON())[Symbol.iterator]();
1125
- }
1126
- toString() {
1127
- return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
2499
+ signals = null;
2500
+ };
2501
+ signals.forEach((signal2) => {
2502
+ if (aborted) {
2503
+ return;
2504
+ }
2505
+ if (signal2.aborted) {
2506
+ onabort.call(signal2);
2507
+ return;
2508
+ }
2509
+ signal2.addEventListener("abort", onabort, { once: true });
2510
+ });
2511
+ const { signal } = controller;
2512
+ signal.unsubscribe = () => utils_default.asap(unsubscribe);
2513
+ return signal;
2514
+ };
2515
+ var composeSignals_default = composeSignals;
2516
+
2517
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/trackStream.js
2518
+ var streamChunk = function* (chunk, chunkSize) {
2519
+ let len = chunk.byteLength;
2520
+ if (!chunkSize || len < chunkSize) {
2521
+ yield chunk;
2522
+ return;
1128
2523
  }
1129
- get [Symbol.toStringTag]() {
1130
- return "AxiosHeaders";
2524
+ let pos = 0;
2525
+ let end;
2526
+ while (pos < len) {
2527
+ end = pos + chunkSize;
2528
+ yield chunk.slice(pos, end);
2529
+ pos = end;
1131
2530
  }
1132
- static from(thing) {
1133
- return thing instanceof this ? thing : new this(thing);
2531
+ };
2532
+ var readBytes = async function* (iterable, chunkSize) {
2533
+ for await (const chunk of readStream(iterable)) {
2534
+ yield* streamChunk(chunk, chunkSize);
1134
2535
  }
1135
- static concat(first, ...targets) {
1136
- const computed = new this(first);
1137
- targets.forEach((target) => computed.set(target));
1138
- return computed;
2536
+ };
2537
+ var readStream = async function* (stream) {
2538
+ if (stream[Symbol.asyncIterator]) {
2539
+ yield* stream;
2540
+ return;
1139
2541
  }
1140
- static accessor(header) {
1141
- const internals = this[$internals] = this[$internals] = {
1142
- accessors: {}
1143
- };
1144
- const accessors = internals.accessors;
1145
- const prototype3 = this.prototype;
1146
- function defineAccessor(_header) {
1147
- const lHeader = normalizeHeader(_header);
1148
- if (!accessors[lHeader]) {
1149
- buildAccessors(prototype3, _header);
1150
- accessors[lHeader] = true;
2542
+ const reader = stream.getReader();
2543
+ try {
2544
+ for (; ; ) {
2545
+ const { done, value } = await reader.read();
2546
+ if (done) {
2547
+ break;
1151
2548
  }
2549
+ yield value;
1152
2550
  }
1153
- utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
1154
- return this;
2551
+ } finally {
2552
+ await reader.cancel();
1155
2553
  }
1156
2554
  };
1157
- AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
1158
- utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
1159
- let mapped = key[0].toUpperCase() + key.slice(1);
1160
- return {
1161
- get: () => value,
1162
- set(headerValue) {
1163
- this[mapped] = headerValue;
2555
+ var trackStream = (stream, chunkSize, onProgress, onFinish) => {
2556
+ const iterator2 = readBytes(stream, chunkSize);
2557
+ let bytes = 0;
2558
+ let done;
2559
+ let _onFinish = (e) => {
2560
+ if (!done) {
2561
+ done = true;
2562
+ onFinish && onFinish(e);
1164
2563
  }
1165
2564
  };
1166
- });
1167
- utils_default.freezeMethods(AxiosHeaders);
1168
- var AxiosHeaders_default = AxiosHeaders;
1169
-
1170
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/core/transformData.js
1171
- function transformData(fns, response) {
1172
- const config = this || defaults_default;
1173
- const context = response || config;
1174
- const headers = AxiosHeaders_default.from(context.headers);
1175
- let data = context.data;
1176
- utils_default.forEach(fns, function transform(fn) {
1177
- data = fn.call(config, data, headers.normalize(), response ? response.status : void 0);
1178
- });
1179
- headers.normalize();
1180
- return data;
1181
- }
1182
-
1183
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/cancel/isCancel.js
1184
- function isCancel(value) {
1185
- return !!(value && value.__CANCEL__);
1186
- }
1187
-
1188
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/cancel/CanceledError.js
1189
- function CanceledError(message, config, request) {
1190
- AxiosError_default.call(this, message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request);
1191
- this.name = "CanceledError";
1192
- }
1193
- utils_default.inherits(CanceledError, AxiosError_default, {
1194
- __CANCEL__: true
1195
- });
1196
- var CanceledError_default = CanceledError;
2565
+ return new ReadableStream(
2566
+ {
2567
+ async pull(controller) {
2568
+ try {
2569
+ const { done: done2, value } = await iterator2.next();
2570
+ if (done2) {
2571
+ _onFinish();
2572
+ controller.close();
2573
+ return;
2574
+ }
2575
+ let len = value.byteLength;
2576
+ if (onProgress) {
2577
+ let loadedBytes = bytes += len;
2578
+ onProgress(loadedBytes);
2579
+ }
2580
+ controller.enqueue(new Uint8Array(value));
2581
+ } catch (err) {
2582
+ _onFinish(err);
2583
+ throw err;
2584
+ }
2585
+ },
2586
+ cancel(reason) {
2587
+ _onFinish(reason);
2588
+ return iterator2.return();
2589
+ }
2590
+ },
2591
+ {
2592
+ highWaterMark: 2
2593
+ }
2594
+ );
2595
+ };
1197
2596
 
1198
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/core/settle.js
1199
- function settle(resolve, reject, response) {
1200
- const validateStatus2 = response.config.validateStatus;
1201
- if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
1202
- resolve(response);
1203
- } else {
1204
- reject(new AxiosError_default(
1205
- "Request failed with status code " + response.status,
1206
- [AxiosError_default.ERR_BAD_REQUEST, AxiosError_default.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
1207
- response.config,
1208
- response.request,
1209
- response
1210
- ));
2597
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
2598
+ var isHexDigit = (charCode) => charCode >= 48 && charCode <= 57 || charCode >= 65 && charCode <= 70 || charCode >= 97 && charCode <= 102;
2599
+ var isPercentEncodedByte = (str, i, len) => i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));
2600
+ var hexValue = (charCode) => charCode <= 57 ? charCode - 48 : (charCode & 223) - 55;
2601
+ var isBase64Char = (charCode) => charCode >= 65 && charCode <= 90 || // A-Z
2602
+ charCode >= 97 && charCode <= 122 || // a-z
2603
+ charCode >= 48 && charCode <= 57 || // 0-9
2604
+ charCode === 43 || // +
2605
+ charCode === 47 || // /
2606
+ charCode === 45 || // - (base64url)
2607
+ charCode === 95;
2608
+ var isBase64Whitespace = (charCode) => charCode === 9 || charCode === 10 || charCode === 12 || charCode === 13 || charCode === 32;
2609
+ var base64Bytes = (significant) => {
2610
+ const groups = Math.floor(significant / 4);
2611
+ const remainder = significant % 4;
2612
+ return groups * 3 + (remainder === 2 ? 1 : remainder === 3 ? 2 : 0);
2613
+ };
2614
+ var estimateBase64BufferAllocation = (body) => {
2615
+ const len = body.length;
2616
+ let padding = 0;
2617
+ if (len > 0 && body.charCodeAt(len - 1) === 61) {
2618
+ padding++;
2619
+ if (len > 1 && body.charCodeAt(len - 2) === 61) {
2620
+ padding++;
2621
+ }
1211
2622
  }
1212
- }
1213
-
1214
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/cookies.js
1215
- var cookies_default = platform_default.hasStandardBrowserEnv ? (
1216
- // Standard browser envs support document.cookie
1217
- {
1218
- write(name, value, expires, path, domain, secure) {
1219
- const cookie = [name + "=" + encodeURIComponent(value)];
1220
- utils_default.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString());
1221
- utils_default.isString(path) && cookie.push("path=" + path);
1222
- utils_default.isString(domain) && cookie.push("domain=" + domain);
1223
- secure === true && cookie.push("secure");
1224
- document.cookie = cookie.join("; ");
1225
- },
1226
- read(name) {
1227
- const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
1228
- return match ? decodeURIComponent(match[3]) : null;
1229
- },
1230
- remove(name) {
1231
- this.write(name, "", Date.now() - 864e5);
2623
+ return Math.floor((len - padding) * 3 / 4);
2624
+ };
2625
+ var estimatePercentDecodedBase64Bytes = (body) => {
2626
+ const len = body.length;
2627
+ let significant = 0;
2628
+ let padding = 0;
2629
+ let invalid = false;
2630
+ for (let i = 0; i < len; i++) {
2631
+ let code = body.charCodeAt(i);
2632
+ if (code === 37 && isPercentEncodedByte(body, i, len)) {
2633
+ code = hexValue(body.charCodeAt(i + 1)) * 16 + hexValue(body.charCodeAt(i + 2));
2634
+ i += 2;
2635
+ }
2636
+ if (isBase64Whitespace(code)) {
2637
+ continue;
2638
+ }
2639
+ if (code === 61) {
2640
+ padding++;
2641
+ continue;
2642
+ }
2643
+ if (!isBase64Char(code) || padding > 0) {
2644
+ invalid = true;
2645
+ continue;
1232
2646
  }
2647
+ significant++;
1233
2648
  }
1234
- ) : (
1235
- // Non-standard browser env (web workers, react-native) lack needed support.
1236
- {
1237
- write() {
1238
- },
1239
- read() {
1240
- return null;
1241
- },
1242
- remove() {
2649
+ if (invalid || padding > 2 || padding > 0 && (significant + padding) % 4 !== 0 || significant % 4 === 1) {
2650
+ return estimateBase64BufferAllocation(body);
2651
+ }
2652
+ return base64Bytes(significant);
2653
+ };
2654
+ var estimateDataURLBytes = (url, estimateBase64) => {
2655
+ if (!url || typeof url !== "string")
2656
+ return 0;
2657
+ if (!url.startsWith("data:"))
2658
+ return 0;
2659
+ const comma = url.indexOf(",");
2660
+ if (comma < 0)
2661
+ return 0;
2662
+ const meta = url.slice(5, comma);
2663
+ const body = url.slice(comma + 1);
2664
+ const isBase64 = /;base64/i.test(meta);
2665
+ if (isBase64) {
2666
+ return estimateBase64(body);
2667
+ }
2668
+ let bytes = 0;
2669
+ for (let i = 0, len = body.length; i < len; i++) {
2670
+ const c = body.charCodeAt(i);
2671
+ if (c === 37 && isPercentEncodedByte(body, i, len)) {
2672
+ bytes += 1;
2673
+ i += 2;
2674
+ } else if (c < 128) {
2675
+ bytes += 1;
2676
+ } else if (c < 2048) {
2677
+ bytes += 2;
2678
+ } else if (c >= 55296 && c <= 56319 && i + 1 < len) {
2679
+ const next = body.charCodeAt(i + 1);
2680
+ if (next >= 56320 && next <= 57343) {
2681
+ bytes += 4;
2682
+ i++;
2683
+ } else {
2684
+ bytes += 3;
2685
+ }
2686
+ } else {
2687
+ bytes += 3;
1243
2688
  }
1244
2689
  }
1245
- );
1246
-
1247
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/isAbsoluteURL.js
1248
- function isAbsoluteURL(url) {
1249
- return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
2690
+ return bytes;
2691
+ };
2692
+ function estimateDataURLDecodedBytes(url) {
2693
+ const fragmentIndex = typeof url === "string" ? url.indexOf("#") : -1;
2694
+ return estimateDataURLBytes(
2695
+ fragmentIndex === -1 ? url : url.slice(0, fragmentIndex),
2696
+ estimatePercentDecodedBase64Bytes
2697
+ );
1250
2698
  }
1251
2699
 
1252
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/combineURLs.js
1253
- function combineURLs(baseURL, relativeURL) {
1254
- return relativeURL ? baseURL.replace(/\/+$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
1255
- }
2700
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/env/data.js
2701
+ var VERSION = "1.20.0";
1256
2702
 
1257
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/core/buildFullPath.js
1258
- function buildFullPath(baseURL, requestedURL) {
1259
- if (baseURL && !isAbsoluteURL(requestedURL)) {
1260
- return combineURLs(baseURL, requestedURL);
2703
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/adapters/fetch.js
2704
+ var DEFAULT_CHUNK_SIZE = 64 * 1024;
2705
+ var DEFAULT_REQUEST_OPTIONS = {
2706
+ cache: "default",
2707
+ redirect: "follow",
2708
+ referrer: "about:client",
2709
+ referrerPolicy: "",
2710
+ mode: "cors",
2711
+ integrity: "",
2712
+ keepalive: false,
2713
+ priority: "auto",
2714
+ window: null
2715
+ };
2716
+ var { isFunction: isFunction2 } = utils_default;
2717
+ var encodeUTF82 = (str) => encodeURIComponent(str).replace(
2718
+ /%([0-9A-F]{2})/gi,
2719
+ (_, hex) => String.fromCharCode(parseInt(hex, 16))
2720
+ );
2721
+ var decodeURIComponentSafe = (value) => {
2722
+ if (!utils_default.isString(value)) {
2723
+ return value;
1261
2724
  }
1262
- return requestedURL;
1263
- }
1264
-
1265
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/isURLSameOrigin.js
1266
- var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? (
1267
- // Standard browser envs have full support of the APIs needed to test
1268
- // whether the request URL is of the same origin as current location.
1269
- function standardBrowserEnv() {
1270
- const msie = /(msie|trident)/i.test(navigator.userAgent);
1271
- const urlParsingNode = document.createElement("a");
1272
- let originURL;
1273
- function resolveURL(url) {
1274
- let href = url;
1275
- if (msie) {
1276
- urlParsingNode.setAttribute("href", href);
1277
- href = urlParsingNode.href;
1278
- }
1279
- urlParsingNode.setAttribute("href", href);
1280
- return {
1281
- href: urlParsingNode.href,
1282
- protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, "") : "",
1283
- host: urlParsingNode.host,
1284
- search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, "") : "",
1285
- hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, "") : "",
1286
- hostname: urlParsingNode.hostname,
1287
- port: urlParsingNode.port,
1288
- pathname: urlParsingNode.pathname.charAt(0) === "/" ? urlParsingNode.pathname : "/" + urlParsingNode.pathname
1289
- };
2725
+ try {
2726
+ return decodeURIComponent(value);
2727
+ } catch (error) {
2728
+ return value;
2729
+ }
2730
+ };
2731
+ var test = (fn, ...args) => {
2732
+ try {
2733
+ return !!fn(...args);
2734
+ } catch (e) {
2735
+ return false;
2736
+ }
2737
+ };
2738
+ var maybeWithAuthCredentials = (url) => {
2739
+ const protocolIndex = url.indexOf("://");
2740
+ let urlToCheck = url;
2741
+ if (protocolIndex !== -1) {
2742
+ urlToCheck = urlToCheck.slice(protocolIndex + 3);
2743
+ }
2744
+ return urlToCheck.includes("@") || urlToCheck.includes(":");
2745
+ };
2746
+ var factory = (env) => {
2747
+ const globalObject = utils_default.global !== void 0 && utils_default.global !== null ? utils_default.global : globalThis;
2748
+ const { ReadableStream: ReadableStream2, TextEncoder } = globalObject;
2749
+ env = utils_default.merge.call(
2750
+ {
2751
+ skipUndefined: true
2752
+ },
2753
+ {
2754
+ Request: globalObject.Request,
2755
+ Response: globalObject.Response
2756
+ },
2757
+ env
2758
+ );
2759
+ const { fetch: envFetch, Request, Response } = env;
2760
+ const isFetchSupported = envFetch ? isFunction2(envFetch) : typeof fetch === "function";
2761
+ const isRequestSupported = isFunction2(Request);
2762
+ const isResponseSupported = isFunction2(Response);
2763
+ if (!isFetchSupported) {
2764
+ return false;
2765
+ }
2766
+ const isReadableStreamSupported = isFetchSupported && isFunction2(ReadableStream2);
2767
+ const encodeText = isFetchSupported && (typeof TextEncoder === "function" ? ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
2768
+ const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
2769
+ let duplexAccessed = false;
2770
+ const request = new Request(platform_default.origin, {
2771
+ body: new ReadableStream2(),
2772
+ method: "POST",
2773
+ get duplex() {
2774
+ duplexAccessed = true;
2775
+ return "half";
2776
+ }
2777
+ });
2778
+ const hasContentType = request.headers.has("Content-Type");
2779
+ if (request.body != null) {
2780
+ request.body.cancel();
1290
2781
  }
1291
- originURL = resolveURL(window.location.href);
1292
- return function isURLSameOrigin(requestURL) {
1293
- const parsed = utils_default.isString(requestURL) ? resolveURL(requestURL) : requestURL;
1294
- return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
1295
- };
1296
- }()
1297
- ) : (
1298
- // Non standard browser envs (web workers, react-native) lack needed support.
1299
- function nonStandardBrowserEnv() {
1300
- return function isURLSameOrigin() {
1301
- return true;
1302
- };
1303
- }()
1304
- );
1305
-
1306
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/parseProtocol.js
1307
- function parseProtocol(url) {
1308
- const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
1309
- return match && match[1] || "";
1310
- }
1311
-
1312
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/speedometer.js
1313
- function speedometer(samplesCount, min) {
1314
- samplesCount = samplesCount || 10;
1315
- const bytes = new Array(samplesCount);
1316
- const timestamps = new Array(samplesCount);
1317
- let head = 0;
1318
- let tail = 0;
1319
- let firstSampleTS;
1320
- min = min !== void 0 ? min : 1e3;
1321
- return function push(chunkLength) {
1322
- const now = Date.now();
1323
- const startedAt = timestamps[tail];
1324
- if (!firstSampleTS) {
1325
- firstSampleTS = now;
2782
+ return duplexAccessed && !hasContentType;
2783
+ });
2784
+ const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
2785
+ const resolvers = {
2786
+ stream: supportsResponseStream && ((res) => res.body)
2787
+ };
2788
+ isFetchSupported && (() => {
2789
+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
2790
+ !resolvers[type] && (resolvers[type] = (res, config) => {
2791
+ let method = res && res[type];
2792
+ if (method) {
2793
+ return method.call(res);
2794
+ }
2795
+ throw new AxiosError_default(
2796
+ `Response type '${type}' is not supported`,
2797
+ AxiosError_default.ERR_NOT_SUPPORT,
2798
+ config
2799
+ );
2800
+ });
2801
+ });
2802
+ })();
2803
+ const getBodyLength = async (body) => {
2804
+ if (body == null) {
2805
+ return 0;
2806
+ }
2807
+ if (utils_default.isBlob(body)) {
2808
+ return body.size;
2809
+ }
2810
+ if (utils_default.isSpecCompliantForm(body)) {
2811
+ const _request = new Request(platform_default.origin, {
2812
+ method: "POST",
2813
+ body
2814
+ });
2815
+ return (await _request.arrayBuffer()).byteLength;
1326
2816
  }
1327
- bytes[head] = chunkLength;
1328
- timestamps[head] = now;
1329
- let i = tail;
1330
- let bytesCount = 0;
1331
- while (i !== head) {
1332
- bytesCount += bytes[i++];
1333
- i = i % samplesCount;
2817
+ if (utils_default.isArrayBufferView(body) || utils_default.isArrayBuffer(body)) {
2818
+ return body.byteLength;
1334
2819
  }
1335
- head = (head + 1) % samplesCount;
1336
- if (head === tail) {
1337
- tail = (tail + 1) % samplesCount;
2820
+ if (utils_default.isURLSearchParams(body)) {
2821
+ body = body + "";
1338
2822
  }
1339
- if (now - firstSampleTS < min) {
1340
- return;
2823
+ if (utils_default.isString(body)) {
2824
+ return (await encodeText(body)).byteLength;
1341
2825
  }
1342
- const passed = startedAt && now - startedAt;
1343
- return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
1344
2826
  };
1345
- }
1346
- var speedometer_default = speedometer;
1347
-
1348
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/adapters/xhr.js
1349
- function progressEventReducer(listener, isDownloadStream) {
1350
- let bytesNotified = 0;
1351
- const _speedometer = speedometer_default(50, 250);
1352
- return (e) => {
1353
- const loaded = e.loaded;
1354
- const total = e.lengthComputable ? e.total : void 0;
1355
- const progressBytes = loaded - bytesNotified;
1356
- const rate = _speedometer(progressBytes);
1357
- const inRange = loaded <= total;
1358
- bytesNotified = loaded;
1359
- const data = {
1360
- loaded,
1361
- total,
1362
- progress: total ? loaded / total : void 0,
1363
- bytes: progressBytes,
1364
- rate: rate ? rate : void 0,
1365
- estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
1366
- event: e
1367
- };
1368
- data[isDownloadStream ? "download" : "upload"] = true;
1369
- listener(data);
2827
+ const resolveBodyLength = async (headers, body) => {
2828
+ const length = utils_default.toFiniteNumber(headers.getContentLength());
2829
+ return length == null ? getBodyLength(body) : length;
1370
2830
  };
1371
- }
1372
- var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
1373
- var xhr_default = isXHRAdapterSupported && function(config) {
1374
- return new Promise(function dispatchXhrRequest(resolve, reject) {
1375
- let requestData = config.data;
1376
- const requestHeaders = AxiosHeaders_default.from(config.headers).normalize();
1377
- let { responseType, withXSRFToken } = config;
1378
- let onCanceled;
1379
- function done() {
1380
- if (config.cancelToken) {
1381
- config.cancelToken.unsubscribe(onCanceled);
2831
+ return async (config) => {
2832
+ let {
2833
+ url,
2834
+ method,
2835
+ data,
2836
+ signal,
2837
+ cancelToken,
2838
+ timeout,
2839
+ onDownloadProgress,
2840
+ onUploadProgress,
2841
+ responseType,
2842
+ headers,
2843
+ withCredentials = "same-origin",
2844
+ fetchOptions,
2845
+ maxContentLength,
2846
+ maxBodyLength,
2847
+ maxRedirects
2848
+ } = resolveConfig_default(config);
2849
+ const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
2850
+ const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
2851
+ const own2 = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
2852
+ let _fetch = envFetch || fetch;
2853
+ responseType = responseType ? (responseType + "").toLowerCase() : "text";
2854
+ let composedSignal = composeSignals_default(
2855
+ [signal, cancelToken && cancelToken.toAbortSignal()],
2856
+ timeout
2857
+ );
2858
+ let request = null;
2859
+ const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
2860
+ composedSignal.unsubscribe();
2861
+ });
2862
+ let requestContentLength;
2863
+ let pendingBodyError = null;
2864
+ const maxBodyLengthError = () => new AxiosError_default(
2865
+ "Request body larger than maxBodyLength limit",
2866
+ AxiosError_default.ERR_BAD_REQUEST,
2867
+ config,
2868
+ request
2869
+ );
2870
+ try {
2871
+ let auth = void 0;
2872
+ const configAuth = own2("auth");
2873
+ if (configAuth) {
2874
+ const username = utils_default.getSafeProp(configAuth, "username") || "";
2875
+ const password = utils_default.getSafeProp(configAuth, "password") || "";
2876
+ auth = {
2877
+ username,
2878
+ password
2879
+ };
2880
+ }
2881
+ if (maybeWithAuthCredentials(url)) {
2882
+ const parsedURL = new URL(url, platform_default.origin);
2883
+ if (!auth && (parsedURL.username || parsedURL.password)) {
2884
+ const urlUsername = decodeURIComponentSafe(parsedURL.username);
2885
+ const urlPassword = decodeURIComponentSafe(parsedURL.password);
2886
+ auth = {
2887
+ username: urlUsername,
2888
+ password: urlPassword
2889
+ };
2890
+ }
2891
+ if (parsedURL.username || parsedURL.password) {
2892
+ parsedURL.username = "";
2893
+ parsedURL.password = "";
2894
+ url = parsedURL.href;
2895
+ }
1382
2896
  }
1383
- if (config.signal) {
1384
- config.signal.removeEventListener("abort", onCanceled);
2897
+ if (auth) {
2898
+ headers.delete("authorization");
2899
+ headers.set(
2900
+ "Authorization",
2901
+ "Basic " + btoa(encodeUTF82((auth.username || "") + ":" + (auth.password || "")))
2902
+ );
1385
2903
  }
1386
- }
1387
- let contentType;
1388
- if (utils_default.isFormData(requestData)) {
1389
- if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
1390
- requestHeaders.setContentType(false);
1391
- } else if ((contentType = requestHeaders.getContentType()) !== false) {
1392
- const [type, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : [];
1393
- requestHeaders.setContentType([type || "multipart/form-data", ...tokens].join("; "));
2904
+ if (hasMaxContentLength && typeof url === "string" && url.startsWith("data:")) {
2905
+ const estimated = estimateDataURLDecodedBytes(url);
2906
+ if (estimated > maxContentLength) {
2907
+ throw new AxiosError_default(
2908
+ "maxContentLength size of " + maxContentLength + " exceeded",
2909
+ AxiosError_default.ERR_BAD_RESPONSE,
2910
+ config,
2911
+ request
2912
+ );
2913
+ }
1394
2914
  }
1395
- }
1396
- let request = new XMLHttpRequest();
1397
- if (config.auth) {
1398
- const username = config.auth.username || "";
1399
- const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : "";
1400
- requestHeaders.set("Authorization", "Basic " + btoa(username + ":" + password));
1401
- }
1402
- const fullPath = buildFullPath(config.baseURL, config.url);
1403
- request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
1404
- request.timeout = config.timeout;
1405
- function onloadend() {
1406
- if (!request) {
1407
- return;
2915
+ if (hasMaxBodyLength && method !== "get" && method !== "head") {
2916
+ const outboundLength = await getBodyLength(data);
2917
+ if (typeof outboundLength === "number" && isFinite(outboundLength)) {
2918
+ requestContentLength = outboundLength;
2919
+ if (outboundLength > maxBodyLength) {
2920
+ throw maxBodyLengthError();
2921
+ }
2922
+ }
1408
2923
  }
1409
- const responseHeaders = AxiosHeaders_default.from(
1410
- "getAllResponseHeaders" in request && request.getAllResponseHeaders()
2924
+ const mustEnforceStreamBody = hasMaxBodyLength && (utils_default.isReadableStream(data) || utils_default.isStream(data));
2925
+ const trackRequestStream = (stream, onProgress, flush) => trackStream(
2926
+ stream,
2927
+ DEFAULT_CHUNK_SIZE,
2928
+ (loadedBytes) => {
2929
+ if (hasMaxBodyLength && loadedBytes > maxBodyLength) {
2930
+ throw pendingBodyError = maxBodyLengthError();
2931
+ }
2932
+ onProgress && onProgress(loadedBytes);
2933
+ },
2934
+ flush
1411
2935
  );
1412
- const responseData = !responseType || responseType === "text" || responseType === "json" ? request.responseText : request.response;
1413
- const response = {
1414
- data: responseData,
1415
- status: request.status,
1416
- statusText: request.statusText,
1417
- headers: responseHeaders,
1418
- config,
1419
- request
1420
- };
1421
- settle(function _resolve(value) {
1422
- resolve(value);
1423
- done();
1424
- }, function _reject(err) {
1425
- reject(err);
1426
- done();
1427
- }, response);
1428
- request = null;
1429
- }
1430
- if ("onloadend" in request) {
1431
- request.onloadend = onloadend;
1432
- } else {
1433
- request.onreadystatechange = function handleLoad() {
1434
- if (!request || request.readyState !== 4) {
1435
- return;
2936
+ if (supportsRequestStream && method !== "get" && method !== "head" && (onUploadProgress || mustEnforceStreamBody)) {
2937
+ requestContentLength = requestContentLength == null ? await resolveBodyLength(headers, data) : requestContentLength;
2938
+ if (requestContentLength !== 0 || mustEnforceStreamBody) {
2939
+ let _request = new Request(url, {
2940
+ method: "POST",
2941
+ body: data,
2942
+ duplex: "half"
2943
+ });
2944
+ let contentTypeHeader;
2945
+ if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
2946
+ headers.setContentType(contentTypeHeader);
2947
+ }
2948
+ if (_request.body) {
2949
+ const [onProgress, flush] = onUploadProgress && progressEventDecorator(
2950
+ requestContentLength,
2951
+ progressEventReducer(asyncDecorator(onUploadProgress))
2952
+ ) || [];
2953
+ data = trackRequestStream(_request.body, onProgress, flush);
2954
+ }
1436
2955
  }
1437
- if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf("file:") === 0)) {
1438
- return;
2956
+ } else if (mustEnforceStreamBody && !isRequestSupported && isReadableStreamSupported && method !== "get" && method !== "head") {
2957
+ data = trackRequestStream(data);
2958
+ } else if (mustEnforceStreamBody && isRequestSupported && !supportsRequestStream && method !== "get" && method !== "head") {
2959
+ throw new AxiosError_default(
2960
+ "Stream request bodies are not supported by the current fetch implementation",
2961
+ AxiosError_default.ERR_NOT_SUPPORT,
2962
+ config,
2963
+ request
2964
+ );
2965
+ }
2966
+ if (!utils_default.isString(withCredentials)) {
2967
+ withCredentials = withCredentials ? "include" : "omit";
2968
+ }
2969
+ const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
2970
+ if (utils_default.isFormData(data)) {
2971
+ const contentType = headers.getContentType();
2972
+ if (contentType && /^multipart\/form-data/i.test(contentType) && !/boundary=/i.test(contentType)) {
2973
+ headers.delete("content-type");
1439
2974
  }
1440
- setTimeout(onloadend);
1441
- };
1442
- }
1443
- request.onabort = function handleAbort() {
1444
- if (!request) {
1445
- return;
1446
2975
  }
1447
- reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config, request));
1448
- request = null;
1449
- };
1450
- request.onerror = function handleError() {
1451
- reject(new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config, request));
1452
- request = null;
1453
- };
1454
- request.ontimeout = function handleTimeout() {
1455
- let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
1456
- const transitional2 = config.transitional || transitional_default;
1457
- if (config.timeoutErrorMessage) {
1458
- timeoutErrorMessage = config.timeoutErrorMessage;
1459
- }
1460
- reject(new AxiosError_default(
1461
- timeoutErrorMessage,
1462
- transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
1463
- config,
1464
- request
1465
- ));
1466
- request = null;
1467
- };
1468
- if (platform_default.hasStandardBrowserEnv) {
1469
- withXSRFToken && utils_default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config));
1470
- if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin_default(fullPath)) {
1471
- const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies_default.read(config.xsrfCookieName);
1472
- if (xsrfValue) {
1473
- requestHeaders.set(config.xsrfHeaderName, xsrfValue);
2976
+ headers.set("User-Agent", "axios/" + VERSION, false);
2977
+ const safeFetchOptions = fetchOptions == null ? fetchOptions : Object.assign(/* @__PURE__ */ Object.create(null), fetchOptions);
2978
+ if (safeFetchOptions) {
2979
+ delete safeFetchOptions.body;
2980
+ delete safeFetchOptions.headers;
2981
+ delete safeFetchOptions.method;
2982
+ delete safeFetchOptions.signal;
2983
+ delete safeFetchOptions.duplex;
2984
+ delete safeFetchOptions.credentials;
2985
+ }
2986
+ const resolvedOptions = Object.assign(/* @__PURE__ */ Object.create(null), safeFetchOptions, {
2987
+ signal: composedSignal,
2988
+ method: method.toUpperCase(),
2989
+ headers: toByteStringHeaderObject(headers.normalize()),
2990
+ body: data,
2991
+ duplex: "half",
2992
+ credentials: isCredentialsSupported ? withCredentials : void 0
2993
+ });
2994
+ if (isRequestSupported) {
2995
+ utils_default.forEach(DEFAULT_REQUEST_OPTIONS, (value, key) => {
2996
+ if (resolvedOptions[key] === void 0) {
2997
+ resolvedOptions[key] = value;
2998
+ }
2999
+ });
3000
+ if (resolvedOptions.signal === void 0) {
3001
+ resolvedOptions.signal = null;
3002
+ }
3003
+ if (resolvedOptions.body === void 0) {
3004
+ resolvedOptions.body = null;
1474
3005
  }
1475
3006
  }
1476
- }
1477
- requestData === void 0 && requestHeaders.setContentType(null);
1478
- if ("setRequestHeader" in request) {
1479
- utils_default.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
1480
- request.setRequestHeader(key, val);
3007
+ if (maxRedirects === 0) {
3008
+ resolvedOptions.redirect = "manual";
3009
+ if (safeFetchOptions) {
3010
+ safeFetchOptions.redirect = "manual";
3011
+ }
3012
+ }
3013
+ request = isRequestSupported && new Request(url, resolvedOptions);
3014
+ let response = await (isRequestSupported ? _fetch(request, safeFetchOptions) : _fetch(url, resolvedOptions));
3015
+ const responseHeaders = AxiosHeaders_default.from(response.headers);
3016
+ if (hasMaxContentLength) {
3017
+ const declaredLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
3018
+ if (declaredLength != null && declaredLength > maxContentLength) {
3019
+ throw new AxiosError_default(
3020
+ "maxContentLength size of " + maxContentLength + " exceeded",
3021
+ AxiosError_default.ERR_BAD_RESPONSE,
3022
+ config,
3023
+ request
3024
+ );
3025
+ }
3026
+ }
3027
+ const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
3028
+ if (supportsResponseStream && response.body && (onDownloadProgress || hasMaxContentLength || isStreamResponse && unsubscribe)) {
3029
+ const options = {};
3030
+ ["status", "statusText", "headers"].forEach((prop) => {
3031
+ options[prop] = response[prop];
3032
+ });
3033
+ const responseContentLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
3034
+ const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
3035
+ responseContentLength,
3036
+ progressEventReducer(asyncDecorator(onDownloadProgress), true)
3037
+ ) || [];
3038
+ let bytesRead = 0;
3039
+ const onChunkProgress = (loadedBytes) => {
3040
+ if (hasMaxContentLength) {
3041
+ bytesRead = loadedBytes;
3042
+ if (bytesRead > maxContentLength) {
3043
+ throw new AxiosError_default(
3044
+ "maxContentLength size of " + maxContentLength + " exceeded",
3045
+ AxiosError_default.ERR_BAD_RESPONSE,
3046
+ config,
3047
+ request
3048
+ );
3049
+ }
3050
+ }
3051
+ onProgress && onProgress(loadedBytes);
3052
+ };
3053
+ response = new Response(
3054
+ trackStream(response.body, DEFAULT_CHUNK_SIZE, onChunkProgress, () => {
3055
+ flush && flush();
3056
+ unsubscribe && unsubscribe();
3057
+ }),
3058
+ options
3059
+ );
3060
+ }
3061
+ responseType = responseType || "text";
3062
+ let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](
3063
+ response,
3064
+ config
3065
+ );
3066
+ if (hasMaxContentLength && !supportsResponseStream && !isStreamResponse) {
3067
+ let materializedSize;
3068
+ if (responseData != null) {
3069
+ if (typeof responseData.byteLength === "number") {
3070
+ materializedSize = responseData.byteLength;
3071
+ } else if (typeof responseData.size === "number") {
3072
+ materializedSize = responseData.size;
3073
+ } else if (typeof responseData === "string") {
3074
+ materializedSize = typeof TextEncoder === "function" ? new TextEncoder().encode(responseData).byteLength : responseData.length;
3075
+ }
3076
+ }
3077
+ if (typeof materializedSize === "number" && materializedSize > maxContentLength) {
3078
+ throw new AxiosError_default(
3079
+ "maxContentLength size of " + maxContentLength + " exceeded",
3080
+ AxiosError_default.ERR_BAD_RESPONSE,
3081
+ config,
3082
+ request
3083
+ );
3084
+ }
3085
+ }
3086
+ !isStreamResponse && unsubscribe && unsubscribe();
3087
+ return await new Promise((resolve, reject) => {
3088
+ settle(resolve, reject, {
3089
+ data: responseData,
3090
+ headers: AxiosHeaders_default.from(response.headers),
3091
+ status: response.status,
3092
+ statusText: response.statusText,
3093
+ config,
3094
+ request
3095
+ });
1481
3096
  });
1482
- }
1483
- if (!utils_default.isUndefined(config.withCredentials)) {
1484
- request.withCredentials = !!config.withCredentials;
1485
- }
1486
- if (responseType && responseType !== "json") {
1487
- request.responseType = config.responseType;
1488
- }
1489
- if (typeof config.onDownloadProgress === "function") {
1490
- request.addEventListener("progress", progressEventReducer(config.onDownloadProgress, true));
1491
- }
1492
- if (typeof config.onUploadProgress === "function" && request.upload) {
1493
- request.upload.addEventListener("progress", progressEventReducer(config.onUploadProgress));
1494
- }
1495
- if (config.cancelToken || config.signal) {
1496
- onCanceled = (cancel) => {
1497
- if (!request) {
1498
- return;
3097
+ } catch (err) {
3098
+ unsubscribe && unsubscribe();
3099
+ if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError_default) {
3100
+ const canceledError = composedSignal.reason;
3101
+ canceledError.config = config;
3102
+ request && (canceledError.request = request);
3103
+ if (err !== canceledError) {
3104
+ Object.defineProperty(canceledError, "cause", {
3105
+ __proto__: null,
3106
+ value: err,
3107
+ writable: true,
3108
+ enumerable: false,
3109
+ configurable: true
3110
+ });
1499
3111
  }
1500
- reject(!cancel || cancel.type ? new CanceledError_default(null, config, request) : cancel);
1501
- request.abort();
1502
- request = null;
1503
- };
1504
- config.cancelToken && config.cancelToken.subscribe(onCanceled);
1505
- if (config.signal) {
1506
- config.signal.aborted ? onCanceled() : config.signal.addEventListener("abort", onCanceled);
3112
+ throw canceledError;
1507
3113
  }
3114
+ if (pendingBodyError) {
3115
+ request && !pendingBodyError.request && (pendingBodyError.request = request);
3116
+ throw pendingBodyError;
3117
+ }
3118
+ if (err instanceof AxiosError_default) {
3119
+ request && !err.request && (err.request = request);
3120
+ throw err;
3121
+ }
3122
+ if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
3123
+ const networkError = new AxiosError_default(
3124
+ "Network Error",
3125
+ AxiosError_default.ERR_NETWORK,
3126
+ config,
3127
+ request,
3128
+ err && err.response
3129
+ );
3130
+ Object.defineProperty(networkError, "cause", {
3131
+ __proto__: null,
3132
+ value: err.cause || err,
3133
+ writable: true,
3134
+ enumerable: false,
3135
+ configurable: true
3136
+ });
3137
+ throw networkError;
3138
+ }
3139
+ throw AxiosError_default.from(err, err && err.code, config, request, err && err.response);
1508
3140
  }
1509
- const protocol = parseProtocol(fullPath);
1510
- if (protocol && platform_default.protocols.indexOf(protocol) === -1) {
1511
- reject(new AxiosError_default("Unsupported protocol " + protocol + ":", AxiosError_default.ERR_BAD_REQUEST, config));
1512
- return;
1513
- }
1514
- request.send(requestData || null);
1515
- });
3141
+ };
1516
3142
  };
3143
+ var seedCache = /* @__PURE__ */ new Map();
3144
+ var getFetch = (config) => {
3145
+ let env = config && config.env || {};
3146
+ const { fetch: fetch2, Request, Response } = env;
3147
+ const seeds = [Request, Response, fetch2];
3148
+ let len = seeds.length, i = len, seed, target, map = seedCache;
3149
+ while (i--) {
3150
+ seed = seeds[i];
3151
+ target = map.get(seed);
3152
+ target === void 0 && map.set(seed, target = i ? /* @__PURE__ */ new Map() : factory(env));
3153
+ map = target;
3154
+ }
3155
+ return target;
3156
+ };
3157
+ var adapter = getFetch();
1517
3158
 
1518
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/adapters/adapters.js
3159
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/adapters/adapters.js
1519
3160
  var knownAdapters = {
1520
3161
  http: null_default,
1521
- xhr: xhr_default
3162
+ xhr: xhr_default,
3163
+ fetch: {
3164
+ get: getFetch
3165
+ }
1522
3166
  };
1523
3167
  utils_default.forEach(knownAdapters, (fn, value) => {
1524
3168
  if (fn) {
1525
3169
  try {
1526
- Object.defineProperty(fn, "name", { value });
3170
+ Object.defineProperty(fn, "name", { __proto__: null, value });
1527
3171
  } catch (e) {
1528
3172
  }
1529
- Object.defineProperty(fn, "adapterName", { value });
3173
+ Object.defineProperty(fn, "adapterName", { __proto__: null, value });
1530
3174
  }
1531
3175
  });
1532
3176
  var renderReason = (reason) => `- ${reason}`;
1533
- var isResolvedHandle = (adapter) => utils_default.isFunction(adapter) || adapter === null || adapter === false;
1534
- var adapters_default = {
1535
- getAdapter: (adapters) => {
1536
- adapters = utils_default.isArray(adapters) ? adapters : [adapters];
1537
- const { length } = adapters;
1538
- let nameOrAdapter;
1539
- let adapter;
1540
- const rejectedReasons = {};
1541
- for (let i = 0; i < length; i++) {
1542
- nameOrAdapter = adapters[i];
1543
- let id;
1544
- adapter = nameOrAdapter;
1545
- if (!isResolvedHandle(nameOrAdapter)) {
1546
- adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
1547
- if (adapter === void 0) {
1548
- throw new AxiosError_default(`Unknown adapter '${id}'`);
1549
- }
3177
+ var isResolvedHandle = (adapter2) => utils_default.isFunction(adapter2) || adapter2 === null || adapter2 === false;
3178
+ function getAdapter(adapters, config) {
3179
+ adapters = utils_default.isArray(adapters) ? adapters : [adapters];
3180
+ const { length } = adapters;
3181
+ let nameOrAdapter;
3182
+ let adapter2;
3183
+ const rejectedReasons = {};
3184
+ for (let i = 0; i < length; i++) {
3185
+ nameOrAdapter = adapters[i];
3186
+ let id;
3187
+ adapter2 = nameOrAdapter;
3188
+ if (!isResolvedHandle(nameOrAdapter)) {
3189
+ adapter2 = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
3190
+ if (adapter2 === void 0) {
3191
+ throw new AxiosError_default(`Unknown adapter '${id}'`);
1550
3192
  }
1551
- if (adapter) {
1552
- break;
1553
- }
1554
- rejectedReasons[id || "#" + i] = adapter;
1555
3193
  }
1556
- if (!adapter) {
1557
- const reasons = Object.entries(rejectedReasons).map(
1558
- ([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")
1559
- );
1560
- let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
1561
- throw new AxiosError_default(
1562
- `There is no suitable adapter to dispatch the request ` + s,
1563
- "ERR_NOT_SUPPORT"
1564
- );
3194
+ if (adapter2 && (utils_default.isFunction(adapter2) || (adapter2 = adapter2.get(config)))) {
3195
+ break;
1565
3196
  }
1566
- return adapter;
1567
- },
3197
+ rejectedReasons[id || "#" + i] = adapter2;
3198
+ }
3199
+ if (!adapter2) {
3200
+ const reasons = Object.entries(rejectedReasons).map(
3201
+ ([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")
3202
+ );
3203
+ let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
3204
+ throw new AxiosError_default(
3205
+ `There is no suitable adapter to dispatch the request ` + s,
3206
+ AxiosError_default.ERR_NOT_SUPPORT
3207
+ );
3208
+ }
3209
+ return adapter2;
3210
+ }
3211
+ var adapters_default = {
3212
+ /**
3213
+ * Resolve an adapter from a list of adapter names or functions.
3214
+ * @type {Function}
3215
+ */
3216
+ getAdapter,
3217
+ /**
3218
+ * Exposes all known adapters
3219
+ * @type {Object<string, Function|Object>}
3220
+ */
1568
3221
  adapters: knownAdapters
1569
3222
  };
1570
3223
 
1571
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/core/dispatchRequest.js
3224
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/core/dispatchRequest.js
1572
3225
  function throwIfCancellationRequested(config) {
1573
3226
  if (config.cancelToken) {
1574
3227
  config.cancelToken.throwIfRequested();
@@ -1577,126 +3230,50 @@ function throwIfCancellationRequested(config) {
1577
3230
  throw new CanceledError_default(null, config);
1578
3231
  }
1579
3232
  }
1580
- function dispatchRequest(config) {
3233
+ function dispatchRequest(_config) {
3234
+ const config = utils_default.toSafeFlatObject(_config);
1581
3235
  throwIfCancellationRequested(config);
1582
- config.headers = AxiosHeaders_default.from(config.headers);
1583
- config.data = transformData.call(
1584
- config,
1585
- config.transformRequest
1586
- );
3236
+ config.headers = AxiosHeaders_default.from(utils_default.getSafeProp(config, "headers"));
3237
+ config.data = transformData.call(config, config.transformRequest);
1587
3238
  if (["post", "put", "patch"].indexOf(config.method) !== -1) {
1588
3239
  config.headers.setContentType("application/x-www-form-urlencoded", false);
1589
3240
  }
1590
- const adapter = adapters_default.getAdapter(config.adapter || defaults_default.adapter);
1591
- return adapter(config).then(function onAdapterResolution(response) {
1592
- throwIfCancellationRequested(config);
1593
- response.data = transformData.call(
1594
- config,
1595
- config.transformResponse,
1596
- response
1597
- );
1598
- response.headers = AxiosHeaders_default.from(response.headers);
1599
- return response;
1600
- }, function onAdapterRejection(reason) {
1601
- if (!isCancel(reason)) {
3241
+ const adapter2 = adapters_default.getAdapter(config.adapter || defaults_default.adapter, config);
3242
+ return adapter2(config).then(
3243
+ function onAdapterResolution(response) {
1602
3244
  throwIfCancellationRequested(config);
1603
- if (reason && reason.response) {
1604
- reason.response.data = transformData.call(
1605
- config,
1606
- config.transformResponse,
1607
- reason.response
1608
- );
1609
- reason.response.headers = AxiosHeaders_default.from(reason.response.headers);
3245
+ config.response = response;
3246
+ try {
3247
+ response.data = transformData.call(config, config.transformResponse, response);
3248
+ } finally {
3249
+ delete config.response;
1610
3250
  }
3251
+ response.headers = AxiosHeaders_default.from(response.headers);
3252
+ return response;
3253
+ },
3254
+ function onAdapterRejection(reason) {
3255
+ if (!isCancel(reason)) {
3256
+ throwIfCancellationRequested(config);
3257
+ if (reason && reason.response) {
3258
+ config.response = reason.response;
3259
+ try {
3260
+ reason.response.data = transformData.call(
3261
+ config,
3262
+ config.transformResponse,
3263
+ reason.response
3264
+ );
3265
+ } finally {
3266
+ delete config.response;
3267
+ }
3268
+ reason.response.headers = AxiosHeaders_default.from(reason.response.headers);
3269
+ }
3270
+ }
3271
+ return Promise.reject(reason);
1611
3272
  }
1612
- return Promise.reject(reason);
1613
- });
1614
- }
1615
-
1616
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/core/mergeConfig.js
1617
- var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? thing.toJSON() : thing;
1618
- function mergeConfig(config1, config2) {
1619
- config2 = config2 || {};
1620
- const config = {};
1621
- function getMergedValue(target, source, caseless) {
1622
- if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
1623
- return utils_default.merge.call({ caseless }, target, source);
1624
- } else if (utils_default.isPlainObject(source)) {
1625
- return utils_default.merge({}, source);
1626
- } else if (utils_default.isArray(source)) {
1627
- return source.slice();
1628
- }
1629
- return source;
1630
- }
1631
- function mergeDeepProperties(a, b, caseless) {
1632
- if (!utils_default.isUndefined(b)) {
1633
- return getMergedValue(a, b, caseless);
1634
- } else if (!utils_default.isUndefined(a)) {
1635
- return getMergedValue(void 0, a, caseless);
1636
- }
1637
- }
1638
- function valueFromConfig2(a, b) {
1639
- if (!utils_default.isUndefined(b)) {
1640
- return getMergedValue(void 0, b);
1641
- }
1642
- }
1643
- function defaultToConfig2(a, b) {
1644
- if (!utils_default.isUndefined(b)) {
1645
- return getMergedValue(void 0, b);
1646
- } else if (!utils_default.isUndefined(a)) {
1647
- return getMergedValue(void 0, a);
1648
- }
1649
- }
1650
- function mergeDirectKeys(a, b, prop) {
1651
- if (prop in config2) {
1652
- return getMergedValue(a, b);
1653
- } else if (prop in config1) {
1654
- return getMergedValue(void 0, a);
1655
- }
1656
- }
1657
- const mergeMap = {
1658
- url: valueFromConfig2,
1659
- method: valueFromConfig2,
1660
- data: valueFromConfig2,
1661
- baseURL: defaultToConfig2,
1662
- transformRequest: defaultToConfig2,
1663
- transformResponse: defaultToConfig2,
1664
- paramsSerializer: defaultToConfig2,
1665
- timeout: defaultToConfig2,
1666
- timeoutMessage: defaultToConfig2,
1667
- withCredentials: defaultToConfig2,
1668
- withXSRFToken: defaultToConfig2,
1669
- adapter: defaultToConfig2,
1670
- responseType: defaultToConfig2,
1671
- xsrfCookieName: defaultToConfig2,
1672
- xsrfHeaderName: defaultToConfig2,
1673
- onUploadProgress: defaultToConfig2,
1674
- onDownloadProgress: defaultToConfig2,
1675
- decompress: defaultToConfig2,
1676
- maxContentLength: defaultToConfig2,
1677
- maxBodyLength: defaultToConfig2,
1678
- beforeRedirect: defaultToConfig2,
1679
- transport: defaultToConfig2,
1680
- httpAgent: defaultToConfig2,
1681
- httpsAgent: defaultToConfig2,
1682
- cancelToken: defaultToConfig2,
1683
- socketPath: defaultToConfig2,
1684
- responseEncoding: defaultToConfig2,
1685
- validateStatus: mergeDirectKeys,
1686
- headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
1687
- };
1688
- utils_default.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
1689
- const merge2 = mergeMap[prop] || mergeDeepProperties;
1690
- const configValue = merge2(config1[prop], config2[prop], prop);
1691
- utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
1692
- });
1693
- return config;
3273
+ );
1694
3274
  }
1695
3275
 
1696
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/env/data.js
1697
- var VERSION = "1.6.2";
1698
-
1699
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/validator.js
3276
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/validator.js
1700
3277
  var validators = {};
1701
3278
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
1702
3279
  validators[type] = function validator(thing) {
@@ -1727,20 +3304,29 @@ validators.transitional = function transitional(validator, version, message) {
1727
3304
  return validator ? validator(value, opt, opts) : true;
1728
3305
  };
1729
3306
  };
3307
+ validators.spelling = function spelling(correctSpelling) {
3308
+ return (value, opt) => {
3309
+ console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
3310
+ return true;
3311
+ };
3312
+ };
1730
3313
  function assertOptions(options, schema, allowUnknown) {
1731
- if (typeof options !== "object") {
3314
+ if (typeof options !== "object" || options === null) {
1732
3315
  throw new AxiosError_default("options must be an object", AxiosError_default.ERR_BAD_OPTION_VALUE);
1733
3316
  }
1734
3317
  const keys = Object.keys(options);
1735
3318
  let i = keys.length;
1736
3319
  while (i-- > 0) {
1737
3320
  const opt = keys[i];
1738
- const validator = schema[opt];
3321
+ const validator = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : void 0;
1739
3322
  if (validator) {
1740
3323
  const value = options[opt];
1741
3324
  const result = value === void 0 || validator(value, opt, options);
1742
3325
  if (result !== true) {
1743
- throw new AxiosError_default("option " + opt + " must be " + result, AxiosError_default.ERR_BAD_OPTION_VALUE);
3326
+ throw new AxiosError_default(
3327
+ "option " + opt + " must be " + result,
3328
+ AxiosError_default.ERR_BAD_OPTION_VALUE
3329
+ );
1744
3330
  }
1745
3331
  continue;
1746
3332
  }
@@ -1754,11 +3340,11 @@ var validator_default = {
1754
3340
  validators
1755
3341
  };
1756
3342
 
1757
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/core/Axios.js
3343
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/core/Axios.js
1758
3344
  var validators2 = validator_default.validators;
1759
3345
  var Axios = class {
1760
3346
  constructor(instanceConfig) {
1761
- this.defaults = instanceConfig;
3347
+ this.defaults = instanceConfig || {};
1762
3348
  this.interceptors = {
1763
3349
  request: new InterceptorManager_default(),
1764
3350
  response: new InterceptorManager_default()
@@ -1772,7 +3358,37 @@ var Axios = class {
1772
3358
  *
1773
3359
  * @returns {Promise} The Promise to be fulfilled
1774
3360
  */
1775
- request(configOrUrl, config) {
3361
+ async request(configOrUrl, config) {
3362
+ try {
3363
+ return await this._request(configOrUrl, config);
3364
+ } catch (err) {
3365
+ if (err instanceof Error) {
3366
+ try {
3367
+ let dummy = {};
3368
+ Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
3369
+ const dummyStack = dummy.stack;
3370
+ let stack = "";
3371
+ if (typeof dummyStack === "string") {
3372
+ const firstNewlineIndex = dummyStack.indexOf("\n");
3373
+ stack = firstNewlineIndex === -1 ? "" : dummyStack.slice(firstNewlineIndex + 1);
3374
+ }
3375
+ if (!err.stack) {
3376
+ err.stack = stack;
3377
+ } else if (stack) {
3378
+ const firstNewlineIndex = stack.indexOf("\n");
3379
+ const secondNewlineIndex = firstNewlineIndex === -1 ? -1 : stack.indexOf("\n", firstNewlineIndex + 1);
3380
+ const stackWithoutTwoTopLines = secondNewlineIndex === -1 ? "" : stack.slice(secondNewlineIndex + 1);
3381
+ if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) {
3382
+ err.stack += "\n" + stack;
3383
+ }
3384
+ }
3385
+ } catch (e) {
3386
+ }
3387
+ }
3388
+ throw err;
3389
+ }
3390
+ }
3391
+ _request(configOrUrl, config) {
1776
3392
  if (typeof configOrUrl === "string") {
1777
3393
  config = config || {};
1778
3394
  config.url = configOrUrl;
@@ -1782,11 +3398,18 @@ var Axios = class {
1782
3398
  config = mergeConfig(this.defaults, config);
1783
3399
  const { transitional: transitional2, paramsSerializer, headers } = config;
1784
3400
  if (transitional2 !== void 0) {
1785
- validator_default.assertOptions(transitional2, {
1786
- silentJSONParsing: validators2.transitional(validators2.boolean),
1787
- forcedJSONParsing: validators2.transitional(validators2.boolean),
1788
- clarifyTimeoutError: validators2.transitional(validators2.boolean)
1789
- }, false);
3401
+ validator_default.assertOptions(
3402
+ transitional2,
3403
+ {
3404
+ silentJSONParsing: validators2.transitional(validators2.boolean),
3405
+ forcedJSONParsing: validators2.transitional(validators2.boolean),
3406
+ clarifyTimeoutError: validators2.transitional(validators2.boolean),
3407
+ legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean),
3408
+ advertiseZstdAcceptEncoding: validators2.transitional(validators2.boolean),
3409
+ validateStatusUndefinedResolves: validators2.transitional(validators2.boolean)
3410
+ },
3411
+ false
3412
+ );
1790
3413
  }
1791
3414
  if (paramsSerializer != null) {
1792
3415
  if (utils_default.isFunction(paramsSerializer)) {
@@ -1794,23 +3417,35 @@ var Axios = class {
1794
3417
  serialize: paramsSerializer
1795
3418
  };
1796
3419
  } else {
1797
- validator_default.assertOptions(paramsSerializer, {
1798
- encode: validators2.function,
1799
- serialize: validators2.function
1800
- }, true);
3420
+ validator_default.assertOptions(
3421
+ paramsSerializer,
3422
+ {
3423
+ encode: validators2.function,
3424
+ serialize: validators2.function
3425
+ },
3426
+ true
3427
+ );
1801
3428
  }
1802
3429
  }
1803
- config.method = (config.method || this.defaults.method || "get").toLowerCase();
1804
- let contextHeaders = headers && utils_default.merge(
1805
- headers.common,
1806
- headers[config.method]
1807
- );
1808
- headers && utils_default.forEach(
1809
- ["delete", "get", "head", "post", "put", "patch", "common"],
1810
- (method) => {
1811
- delete headers[method];
1812
- }
3430
+ if (config.allowAbsoluteUrls !== void 0) {
3431
+ } else if (this.defaults.allowAbsoluteUrls !== void 0) {
3432
+ config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
3433
+ } else {
3434
+ config.allowAbsoluteUrls = true;
3435
+ }
3436
+ validator_default.assertOptions(
3437
+ config,
3438
+ {
3439
+ baseUrl: validators2.spelling("baseURL"),
3440
+ withXsrfToken: validators2.spelling("withXSRFToken")
3441
+ },
3442
+ true
1813
3443
  );
3444
+ config.method = (utils_default.getSafeProp(config, "method") || utils_default.getSafeProp(this.defaults, "method") || "get").toLowerCase();
3445
+ let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
3446
+ headers && utils_default.forEach(methodList_default.concat("common"), (method) => {
3447
+ delete headers[method];
3448
+ });
1814
3449
  config.headers = AxiosHeaders_default.concat(contextHeaders, headers);
1815
3450
  const requestInterceptorChain = [];
1816
3451
  let synchronousRequestInterceptors = true;
@@ -1819,7 +3454,13 @@ var Axios = class {
1819
3454
  return;
1820
3455
  }
1821
3456
  synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
1822
- requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
3457
+ const transitional3 = config.transitional || transitional_default;
3458
+ const legacyInterceptorReqResOrdering = transitional3 && transitional3.legacyInterceptorReqResOrdering;
3459
+ if (legacyInterceptorReqResOrdering) {
3460
+ requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
3461
+ } else {
3462
+ requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
3463
+ }
1823
3464
  });
1824
3465
  const responseInterceptorChain = [];
1825
3466
  this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
@@ -1830,8 +3471,8 @@ var Axios = class {
1830
3471
  let len;
1831
3472
  if (!synchronousRequestInterceptors) {
1832
3473
  const chain = [dispatchRequest.bind(this), void 0];
1833
- chain.unshift.apply(chain, requestInterceptorChain);
1834
- chain.push.apply(chain, responseInterceptorChain);
3474
+ chain.unshift(...requestInterceptorChain);
3475
+ chain.push(...responseInterceptorChain);
1835
3476
  len = chain.length;
1836
3477
  promise = Promise.resolve(config);
1837
3478
  while (i < len) {
@@ -1841,21 +3482,35 @@ var Axios = class {
1841
3482
  }
1842
3483
  len = requestInterceptorChain.length;
1843
3484
  let newConfig = config;
1844
- i = 0;
1845
3485
  while (i < len) {
1846
3486
  const onFulfilled = requestInterceptorChain[i++];
1847
3487
  const onRejected = requestInterceptorChain[i++];
1848
3488
  try {
1849
- newConfig = onFulfilled(newConfig);
3489
+ newConfig = onFulfilled ? onFulfilled(newConfig) : newConfig;
1850
3490
  } catch (error) {
1851
- onRejected.call(this, error);
3491
+ if (!onRejected) {
3492
+ promise = Promise.reject(error);
3493
+ break;
3494
+ }
3495
+ try {
3496
+ const rejectedResult = onRejected.call(this, error);
3497
+ if (utils_default.isThenable(rejectedResult)) {
3498
+ promise = Promise.resolve(rejectedResult).then(
3499
+ () => dispatchRequest.call(this, newConfig)
3500
+ );
3501
+ }
3502
+ } catch (rejectedError) {
3503
+ promise = Promise.reject(rejectedError);
3504
+ }
1852
3505
  break;
1853
3506
  }
1854
3507
  }
1855
- try {
1856
- promise = dispatchRequest.call(this, newConfig);
1857
- } catch (error) {
1858
- return Promise.reject(error);
3508
+ if (!promise) {
3509
+ try {
3510
+ promise = dispatchRequest.call(this, newConfig);
3511
+ } catch (error) {
3512
+ promise = Promise.reject(error);
3513
+ }
1859
3514
  }
1860
3515
  i = 0;
1861
3516
  len = responseInterceptorChain.length;
@@ -1866,38 +3521,44 @@ var Axios = class {
1866
3521
  }
1867
3522
  getUri(config) {
1868
3523
  config = mergeConfig(this.defaults, config);
1869
- const fullPath = buildFullPath(config.baseURL, config.url);
3524
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls, config);
1870
3525
  return buildURL(fullPath, config.params, config.paramsSerializer);
1871
3526
  }
1872
3527
  };
1873
3528
  utils_default.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
1874
3529
  Axios.prototype[method] = function(url, config) {
1875
- return this.request(mergeConfig(config || {}, {
1876
- method,
1877
- url,
1878
- data: (config || {}).data
1879
- }));
3530
+ return this.request(
3531
+ mergeConfig(config || {}, {
3532
+ method,
3533
+ url,
3534
+ data: config && utils_default.hasOwnProp(config, "data") ? config.data : void 0
3535
+ })
3536
+ );
1880
3537
  };
1881
3538
  });
1882
- utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
3539
+ utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodWithData(method) {
1883
3540
  function generateHTTPMethod(isForm) {
1884
3541
  return function httpMethod(url, data, config) {
1885
- return this.request(mergeConfig(config || {}, {
1886
- method,
1887
- headers: isForm ? {
1888
- "Content-Type": "multipart/form-data"
1889
- } : {},
1890
- url,
1891
- data
1892
- }));
3542
+ return this.request(
3543
+ mergeConfig(config || {}, {
3544
+ method,
3545
+ headers: isForm ? {
3546
+ "Content-Type": "multipart/form-data"
3547
+ } : {},
3548
+ url,
3549
+ data
3550
+ })
3551
+ );
1893
3552
  };
1894
3553
  }
1895
3554
  Axios.prototype[method] = generateHTTPMethod();
1896
- Axios.prototype[method + "Form"] = generateHTTPMethod(true);
3555
+ if (method !== "query") {
3556
+ Axios.prototype[method + "Form"] = generateHTTPMethod(true);
3557
+ }
1897
3558
  });
1898
3559
  var Axios_default = Axios;
1899
3560
 
1900
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/cancel/CancelToken.js
3561
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/cancel/CancelToken.js
1901
3562
  var CancelToken = class _CancelToken {
1902
3563
  constructor(executor) {
1903
3564
  if (typeof executor !== "function") {
@@ -1970,6 +3631,15 @@ var CancelToken = class _CancelToken {
1970
3631
  this._listeners.splice(index, 1);
1971
3632
  }
1972
3633
  }
3634
+ toAbortSignal() {
3635
+ const controller = new AbortController();
3636
+ const abort = (err) => {
3637
+ controller.abort(err);
3638
+ };
3639
+ this.subscribe(abort);
3640
+ controller.signal.unsubscribe = () => this.unsubscribe(abort);
3641
+ return controller.signal;
3642
+ }
1973
3643
  /**
1974
3644
  * Returns an object that contains a new `CancelToken` and a function that, when called,
1975
3645
  * cancels the `CancelToken`.
@@ -1987,19 +3657,19 @@ var CancelToken = class _CancelToken {
1987
3657
  };
1988
3658
  var CancelToken_default = CancelToken;
1989
3659
 
1990
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/spread.js
3660
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/spread.js
1991
3661
  function spread(callback) {
1992
3662
  return function wrap(arr) {
1993
3663
  return callback.apply(null, arr);
1994
3664
  };
1995
3665
  }
1996
3666
 
1997
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/isAxiosError.js
3667
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/isAxiosError.js
1998
3668
  function isAxiosError(payload) {
1999
3669
  return utils_default.isObject(payload) && payload.isAxiosError === true;
2000
3670
  }
2001
3671
 
2002
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/HttpStatusCode.js
3672
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/HttpStatusCode.js
2003
3673
  var HttpStatusCode = {
2004
3674
  Continue: 100,
2005
3675
  SwitchingProtocols: 101,
@@ -2037,14 +3707,22 @@ var HttpStatusCode = {
2037
3707
  Gone: 410,
2038
3708
  LengthRequired: 411,
2039
3709
  PreconditionFailed: 412,
3710
+ /**
3711
+ * @deprecated Use `ContentTooLarge` instead.
3712
+ */
2040
3713
  PayloadTooLarge: 413,
3714
+ ContentTooLarge: 413,
2041
3715
  UriTooLong: 414,
2042
3716
  UnsupportedMediaType: 415,
2043
3717
  RangeNotSatisfiable: 416,
2044
3718
  ExpectationFailed: 417,
2045
3719
  ImATeapot: 418,
2046
3720
  MisdirectedRequest: 421,
3721
+ /**
3722
+ * @deprecated Use `UnprocessableContent` instead.
3723
+ */
2047
3724
  UnprocessableEntity: 422,
3725
+ UnprocessableContent: 422,
2048
3726
  Locked: 423,
2049
3727
  FailedDependency: 424,
2050
3728
  TooEarly: 425,
@@ -2063,20 +3741,29 @@ var HttpStatusCode = {
2063
3741
  InsufficientStorage: 507,
2064
3742
  LoopDetected: 508,
2065
3743
  NotExtended: 510,
2066
- NetworkAuthenticationRequired: 511
3744
+ NetworkAuthenticationRequired: 511,
3745
+ WebServerReturnsAnUnknownError: 520,
3746
+ WebServerIsDown: 521,
3747
+ ConnectionTimedOut: 522,
3748
+ OriginIsUnreachable: 523,
3749
+ TimeoutOccurred: 524,
3750
+ SslHandshakeFailed: 525,
3751
+ InvalidSslCertificate: 526
2067
3752
  };
2068
3753
  Object.entries(HttpStatusCode).forEach(([key, value]) => {
2069
- HttpStatusCode[value] = key;
3754
+ if (HttpStatusCode[value] === void 0) {
3755
+ HttpStatusCode[value] = key;
3756
+ }
2070
3757
  });
2071
3758
  var HttpStatusCode_default = HttpStatusCode;
2072
3759
 
2073
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/axios.js
3760
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/axios.js
2074
3761
  function createInstance(defaultConfig) {
2075
3762
  const context = new Axios_default(defaultConfig);
2076
3763
  const instance = bind(Axios_default.prototype.request, context);
2077
3764
  utils_default.extend(instance, Axios_default.prototype, context, { allOwnKeys: true });
2078
3765
  utils_default.extend(instance, context, null, { allOwnKeys: true });
2079
- instance.create = function create(instanceConfig) {
3766
+ instance.create = function create2(instanceConfig) {
2080
3767
  return createInstance(mergeConfig(defaultConfig, instanceConfig));
2081
3768
  };
2082
3769
  return instance;
@@ -2103,7 +3790,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
2103
3790
  axios.default = axios;
2104
3791
  var axios_default = axios;
2105
3792
 
2106
- // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/index.js
3793
+ // ../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/index.js
2107
3794
  var {
2108
3795
  Axios: Axios2,
2109
3796
  AxiosError: AxiosError2,
@@ -2119,8 +3806,9 @@ var {
2119
3806
  AxiosHeaders: AxiosHeaders2,
2120
3807
  HttpStatusCode: HttpStatusCode2,
2121
3808
  formToJSON,
2122
- getAdapter,
2123
- mergeConfig: mergeConfig2
3809
+ getAdapter: getAdapter2,
3810
+ mergeConfig: mergeConfig2,
3811
+ create
2124
3812
  } = axios_default;
2125
3813
  export {
2126
3814
  Axios2 as Axios,
@@ -2132,9 +3820,10 @@ export {
2132
3820
  HttpStatusCode2 as HttpStatusCode,
2133
3821
  VERSION2 as VERSION,
2134
3822
  all2 as all,
3823
+ create,
2135
3824
  axios_default as default,
2136
3825
  formToJSON,
2137
- getAdapter,
3826
+ getAdapter2 as getAdapter,
2138
3827
  isAxiosError2 as isAxiosError,
2139
3828
  isCancel2 as isCancel,
2140
3829
  mergeConfig2 as mergeConfig,