yahee-components 0.0.111 → 0.0.113

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 (181) hide show
  1. package/es/operation-log/operation-log-form.vue.js +39 -40
  2. package/es/operation-log/operation-log.vue2.js +6 -6
  3. package/package.json +1 -1
  4. package/types/src/installs.d.ts +1 -1
  5. package/types/src/operation-log/index.d.ts +1 -1
  6. package/types/src/operation-log/operation-log.d.ts +1 -1
  7. package/types/src/operation-log/operation-log.vue.d.ts +1 -1
  8. package/types/src/operation-log/props.d.ts +1 -1
  9. package/es/annex-upload/annex-upload.vue.js +0 -55
  10. package/es/annex-upload/annex-upload.vue2.js +0 -121
  11. package/es/annex-upload/index.js +0 -7
  12. package/es/annex-upload/mimeType.js +0 -822
  13. package/es/annex-upload/style/index.css +0 -7
  14. package/es/border-wrap/border-wrap.vue.js +0 -75
  15. package/es/border-wrap/border-wrap.vue2.js +0 -48
  16. package/es/border-wrap/index.js +0 -7
  17. package/es/border-wrap/props.js +0 -11
  18. package/es/border-wrap/style/index.css +0 -24
  19. package/es/common-import/common-import.vue.js +0 -394
  20. package/es/common-import/common-import.vue2.js +0 -366
  21. package/es/common-import/index.js +0 -7
  22. package/es/common-import/props.js +0 -23
  23. package/es/common-import/style/index.css +0 -32
  24. package/es/complex-search/batch-search-dialog.vue.js +0 -119
  25. package/es/complex-search/batch-search-dialog.vue2.js +0 -50
  26. package/es/complex-search/complex-search.vue.js +0 -122
  27. package/es/complex-search/complex-search.vue2.js +0 -71
  28. package/es/complex-search/index.js +0 -7
  29. package/es/complex-search/props.js +0 -19
  30. package/es/complex-search/style/index.css +0 -24
  31. package/es/complex-search/useComplexSearch.js +0 -44
  32. package/es/copy/copy.vue.js +0 -39
  33. package/es/copy/copy.vue2.js +0 -36
  34. package/es/copy/index.js +0 -7
  35. package/es/copy/props.js +0 -9
  36. package/es/copy/style/index.css +0 -12
  37. package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +0 -120
  38. package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +0 -127
  39. package/es/country-platform-shop-condition/index.js +0 -7
  40. package/es/country-platform-shop-condition/style/index.css +0 -59
  41. package/es/drop-down-condition/drop-down-condition.vue.js +0 -125
  42. package/es/drop-down-condition/drop-down-condition.vue2.js +0 -129
  43. package/es/drop-down-condition/index.js +0 -7
  44. package/es/drop-down-condition/style/index.css +0 -64
  45. package/es/echart-gauge/echart-gauge.vue.js +0 -14
  46. package/es/echart-gauge/echart-gauge.vue2.js +0 -149
  47. package/es/echart-gauge/index.js +0 -7
  48. package/es/echart-gauge/props.js +0 -9
  49. package/es/echart-gauge/style/index.css +0 -4
  50. package/es/file-download-wrapper/file-download-wrapper.vue.js +0 -164
  51. package/es/file-download-wrapper/file-download-wrapper.vue2.js +0 -115
  52. package/es/file-download-wrapper/index.js +0 -7
  53. package/es/file-download-wrapper/key.js +0 -17
  54. package/es/file-download-wrapper/props.js +0 -12
  55. package/es/file-download-wrapper/style/index.css +0 -66
  56. package/es/filter-container/filter-container.vue.js +0 -24
  57. package/es/filter-container/filter-container.vue2.js +0 -61
  58. package/es/filter-container/index.js +0 -7
  59. package/es/filter-container/key.js +0 -4
  60. package/es/filter-container/props.js +0 -11
  61. package/es/filter-container/style/index.css +0 -16
  62. package/es/filter-wrapper/filter-wrapper.vue.js +0 -19
  63. package/es/filter-wrapper/filter-wrapper.vue2.js +0 -56
  64. package/es/filter-wrapper/index.js +0 -7
  65. package/es/filter-wrapper/props.js +0 -10
  66. package/es/filter-wrapper/style/index.css +0 -3
  67. package/es/height-collapse/height-collapse.vue.js +0 -26
  68. package/es/height-collapse/height-collapse.vue2.js +0 -44
  69. package/es/height-collapse/index.js +0 -7
  70. package/es/height-collapse/props.js +0 -11
  71. package/es/height-collapse/style/index.css +0 -32
  72. package/es/help-tag/help-tag.vue.js +0 -46
  73. package/es/help-tag/help-tag.vue2.js +0 -51
  74. package/es/help-tag/index.js +0 -7
  75. package/es/help-tag/props.js +0 -9
  76. package/es/help-tag/style/index.css +0 -8
  77. package/es/image-upload/image-upload.vue.js +0 -116
  78. package/es/image-upload/image-upload.vue2.js +0 -93
  79. package/es/image-upload/index.js +0 -7
  80. package/es/image-upload/style/index.css +0 -33
  81. package/es/index.js +0 -63
  82. package/es/installs.js +0 -41
  83. package/es/left-condition/index.js +0 -7
  84. package/es/left-condition/left-condition-sub.vue.js +0 -36
  85. package/es/left-condition/left-condition-sub.vue2.js +0 -78
  86. package/es/left-condition/left-condition.vue.js +0 -77
  87. package/es/left-condition/left-condition.vue2.js +0 -162
  88. package/es/left-condition/style/index.css +0 -10
  89. package/es/left-condition-enum/index.js +0 -7
  90. package/es/left-condition-enum/left-condition-enum.vue.js +0 -22
  91. package/es/left-condition-enum/left-condition-enum.vue2.js +0 -42
  92. package/es/left-condition-enum/style/index.css +0 -10
  93. package/es/node_modules/.pnpm/@vueuse_core@11.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/core/index.js +0 -99
  94. package/es/node_modules/.pnpm/@vueuse_shared@11.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/shared/index.js +0 -22
  95. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/index.js +0 -38
  96. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/adapters.js +0 -53
  97. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/fetch.js +0 -141
  98. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/xhr.js +0 -71
  99. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/axios.js +0 -46
  100. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/CancelToken.js +0 -77
  101. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/CanceledError.js +0 -11
  102. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/isCancel.js +0 -6
  103. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/Axios.js +0 -136
  104. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/AxiosError.js +0 -54
  105. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/AxiosHeaders.js +0 -181
  106. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/InterceptorManager.js +0 -58
  107. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/buildFullPath.js +0 -9
  108. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/dispatchRequest.js +0 -31
  109. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/mergeConfig.js +0 -70
  110. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/settle.js +0 -14
  111. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/transformData.js +0 -13
  112. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/defaults/index.js +0 -89
  113. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/defaults/transitional.js +0 -8
  114. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/env/data.js +0 -4
  115. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -33
  116. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -71
  117. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/bind.js +0 -8
  118. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/buildURL.js +0 -23
  119. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/combineURLs.js +0 -6
  120. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/composeSignals.js +0 -30
  121. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/cookies.js +0 -32
  122. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/formDataToJSON.js +0 -31
  123. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -6
  124. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isAxiosError.js +0 -7
  125. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -8
  126. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/null.js +0 -4
  127. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/parseHeaders.js +0 -30
  128. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/parseProtocol.js +0 -7
  129. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/progressEventReducer.js +0 -35
  130. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/resolveConfig.js +0 -33
  131. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/speedometer.js +0 -19
  132. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/spread.js +0 -8
  133. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/throttle.js +0 -15
  134. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/toFormData.js +0 -85
  135. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -13
  136. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/trackStream.js +0 -63
  137. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/validator.js +0 -54
  138. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -4
  139. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -4
  140. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -5
  141. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/index.js +0 -15
  142. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/common/utils.js +0 -9
  143. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/index.js +0 -9
  144. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/utils.js +0 -222
  145. package/es/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js +0 -282
  146. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/index.js +0 -97
  147. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/basicTransition.js +0 -96
  148. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/customGraphicKeyframeAnimation.js +0 -56
  149. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/customGraphicTransition.js +0 -242
  150. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/morphTransitionHelper.js +0 -106
  151. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/universalTransition.js +0 -345
  152. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BarSeries.js +0 -56
  153. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BarView.js +0 -487
  154. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BaseBarSeries.js +0 -77
  155. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/PictorialBarSeries.js +0 -49
  156. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/PictorialBarView.js +0 -325
  157. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/install.js +0 -23
  158. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/installPictorialBar.js +0 -10
  159. package/lib/annex-upload/style/index.css +0 -7
  160. package/lib/border-wrap/style/index.css +0 -24
  161. package/lib/common-import/style/index.css +0 -32
  162. package/lib/complex-search/style/index.css +0 -24
  163. package/lib/copy/style/index.css +0 -12
  164. package/lib/country-platform-shop-condition/style/index.css +0 -59
  165. package/lib/drop-down-condition/style/index.css +0 -64
  166. package/lib/echart-gauge/style/index.css +0 -4
  167. package/lib/file-download-wrapper/style/index.css +0 -66
  168. package/lib/filter-container/style/index.css +0 -16
  169. package/lib/filter-wrapper/style/index.css +0 -3
  170. package/lib/height-collapse/style/index.css +0 -32
  171. package/lib/help-tag/style/index.css +0 -8
  172. package/lib/image-upload/style/index.css +0 -33
  173. package/lib/left-condition/style/index.css +0 -10
  174. package/lib/left-condition-enum/style/index.css +0 -10
  175. package/lib/operation-log/style/index.css +0 -234
  176. package/lib/scale-screen/style/index.css +0 -0
  177. package/lib/style.css +0 -1405
  178. package/lib/styles/custom.css +0 -82
  179. package/lib/styles/globals.css +0 -699
  180. package/lib/styles/index.css +0 -753
  181. package/lib/styles/variables.css +0 -34
@@ -1,31 +0,0 @@
1
- import u from "../utils.js";
2
- function f(e) {
3
- return u.matchAll(/\w+|\[(\w*)]/g, e).map((o) => o[0] === "[]" ? "" : o[1] || o[0]);
4
- }
5
- function y(e) {
6
- const o = {}, r = Object.keys(e);
7
- let i;
8
- const n = r.length;
9
- let c;
10
- for (i = 0; i < n; i++)
11
- c = r[i], o[c] = e[c];
12
- return o;
13
- }
14
- function m(e) {
15
- function o(r, i, n, c) {
16
- let s = r[c++];
17
- if (s === "__proto__") return !0;
18
- const t = Number.isFinite(+s), l = c >= r.length;
19
- return s = !s && u.isArray(n) ? n.length : s, l ? (u.hasOwnProp(n, s) ? n[s] = [n[s], i] : n[s] = i, !t) : ((!n[s] || !u.isObject(n[s])) && (n[s] = []), o(r, i, n[s], c) && u.isArray(n[s]) && (n[s] = y(n[s])), !t);
20
- }
21
- if (u.isFormData(e) && u.isFunction(e.entries)) {
22
- const r = {};
23
- return u.forEachEntry(e, (i, n) => {
24
- o(f(i), n, r, 0);
25
- }), r;
26
- }
27
- return null;
28
- }
29
- export {
30
- m as default
31
- };
@@ -1,6 +0,0 @@
1
- function e(t) {
2
- return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
3
- }
4
- export {
5
- e as default
6
- };
@@ -1,7 +0,0 @@
1
- import i from "../utils.js";
2
- function o(r) {
3
- return i.isObject(r) && r.isAxiosError === !0;
4
- }
5
- export {
6
- o as default
7
- };
@@ -1,8 +0,0 @@
1
- import o from "../platform/index.js";
2
- const n = o.hasStandardBrowserEnv ? /* @__PURE__ */ ((r, e) => (t) => (t = new URL(t, o.origin), r.protocol === t.protocol && r.host === t.host && (e || r.port === t.port)))(
3
- new URL(o.origin),
4
- o.navigator && /(msie|trident)/i.test(o.navigator.userAgent)
5
- ) : () => !0;
6
- export {
7
- n as default
8
- };
@@ -1,4 +0,0 @@
1
- const t = null;
2
- export {
3
- t as default
4
- };
@@ -1,30 +0,0 @@
1
- import n from "../utils.js";
2
- const a = n.toObjectSet([
3
- "age",
4
- "authorization",
5
- "content-length",
6
- "content-type",
7
- "etag",
8
- "expires",
9
- "from",
10
- "host",
11
- "if-modified-since",
12
- "if-unmodified-since",
13
- "last-modified",
14
- "location",
15
- "max-forwards",
16
- "proxy-authorization",
17
- "referer",
18
- "retry-after",
19
- "user-agent"
20
- ]), u = (s) => {
21
- const t = {};
22
- let e, r, i;
23
- return s && s.split(`
24
- `).forEach(function(o) {
25
- i = o.indexOf(":"), e = o.substring(0, i).trim().toLowerCase(), r = o.substring(i + 1).trim(), !(!e || t[e] && a[e]) && (e === "set-cookie" ? t[e] ? t[e].push(r) : t[e] = [r] : t[e] = t[e] ? t[e] + ", " + r : r);
26
- }), t;
27
- };
28
- export {
29
- u as default
30
- };
@@ -1,7 +0,0 @@
1
- function o(e) {
2
- const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
3
- return t && t[1] || "";
4
- }
5
- export {
6
- o as default
7
- };
@@ -1,35 +0,0 @@
1
- import i from "./speedometer.js";
2
- import m from "./throttle.js";
3
- import f from "../utils.js";
4
- const h = (t, o, a = 3) => {
5
- let r = 0;
6
- const c = i(50, 250);
7
- return m((s) => {
8
- const n = s.loaded, e = s.lengthComputable ? s.total : void 0, l = n - r, d = c(l), p = n <= e;
9
- r = n;
10
- const u = {
11
- loaded: n,
12
- total: e,
13
- progress: e ? n / e : void 0,
14
- bytes: l,
15
- rate: d || void 0,
16
- estimated: d && e && p ? (e - n) / d : void 0,
17
- event: s,
18
- lengthComputable: e != null,
19
- [o ? "download" : "upload"]: !0
20
- };
21
- t(u);
22
- }, a);
23
- }, v = (t, o) => {
24
- const a = t != null;
25
- return [(r) => o[0]({
26
- lengthComputable: a,
27
- total: t,
28
- loaded: r
29
- }), o[1]];
30
- }, C = (t) => (...o) => f.asap(() => t(...o));
31
- export {
32
- C as asyncDecorator,
33
- v as progressEventDecorator,
34
- h as progressEventReducer
35
- };
@@ -1,33 +0,0 @@
1
- import n from "../platform/index.js";
2
- import l from "../utils.js";
3
- import h from "./isURLSameOrigin.js";
4
- import c from "./cookies.js";
5
- import w from "../core/buildFullPath.js";
6
- import C from "../core/mergeConfig.js";
7
- import b from "../core/AxiosHeaders.js";
8
- import S from "./buildURL.js";
9
- const v = (s) => {
10
- const e = C({}, s);
11
- let { data: p, withXSRFToken: o, xsrfHeaderName: m, xsrfCookieName: f, headers: r, auth: t } = e;
12
- e.headers = r = b.from(r), e.url = S(w(e.baseURL, e.url, e.allowAbsoluteUrls), s.params, s.paramsSerializer), t && r.set(
13
- "Authorization",
14
- "Basic " + btoa((t.username || "") + ":" + (t.password ? unescape(encodeURIComponent(t.password)) : ""))
15
- );
16
- let i;
17
- if (l.isFormData(p)) {
18
- if (n.hasStandardBrowserEnv || n.hasStandardBrowserWebWorkerEnv)
19
- r.setContentType(void 0);
20
- else if ((i = r.getContentType()) !== !1) {
21
- const [a, ...d] = i ? i.split(";").map((u) => u.trim()).filter(Boolean) : [];
22
- r.setContentType([a || "multipart/form-data", ...d].join("; "));
23
- }
24
- }
25
- if (n.hasStandardBrowserEnv && (o && l.isFunction(o) && (o = o(e)), o || o !== !1 && h(e.url))) {
26
- const a = m && f && c.read(f);
27
- a && r.set(m, a);
28
- }
29
- return e;
30
- };
31
- export {
32
- v as default
33
- };
@@ -1,19 +0,0 @@
1
- function y(t, n) {
2
- t = t || 10;
3
- const c = new Array(t), o = new Array(t);
4
- let e = 0, r = 0, i;
5
- return n = n !== void 0 ? n : 1e3, function(h) {
6
- const d = Date.now(), a = o[r];
7
- i || (i = d), c[e] = h, o[e] = d;
8
- let f = r, u = 0;
9
- for (; f !== e; )
10
- u += c[f++], f = f % t;
11
- if (e = (e + 1) % t, e === r && (r = (r + 1) % t), d - i < n)
12
- return;
13
- const w = a && d - a;
14
- return w ? Math.round(u * 1e3 / w) : void 0;
15
- };
16
- }
17
- export {
18
- y as default
19
- };
@@ -1,8 +0,0 @@
1
- function u(n) {
2
- return function(r) {
3
- return n.apply(null, r);
4
- };
5
- }
6
- export {
7
- u as default
8
- };
@@ -1,15 +0,0 @@
1
- function h(r, a) {
2
- let s = 0, u = 1e3 / a, e, t;
3
- const n = (l, o = Date.now()) => {
4
- s = o, e = null, t && (clearTimeout(t), t = null), r.apply(null, l);
5
- };
6
- return [(...l) => {
7
- const o = Date.now(), i = o - s;
8
- i >= u ? n(l, o) : (e = l, t || (t = setTimeout(() => {
9
- t = null, n(e);
10
- }, u - i)));
11
- }, () => e && n(e)];
12
- }
13
- export {
14
- h as default
15
- };
@@ -1,85 +0,0 @@
1
- import t from "../utils.js";
2
- import E from "../core/AxiosError.js";
3
- function B(i) {
4
- return t.isPlainObject(i) || t.isArray(i);
5
- }
6
- function h(i) {
7
- return t.endsWith(i, "[]") ? i.slice(0, -2) : i;
8
- }
9
- function O(i, e, s) {
10
- return i ? i.concat(e).map(function(o, d) {
11
- return o = h(o), !s && d ? "[" + o + "]" : o;
12
- }).join(s ? "." : "") : e;
13
- }
14
- function T(i) {
15
- return t.isArray(i) && !i.some(B);
16
- }
17
- const S = t.toFlatObject(t, {}, null, function(e) {
18
- return /^is[A-Z]/.test(e);
19
- });
20
- function W(i, e, s) {
21
- if (!t.isObject(i))
22
- throw new TypeError("target must be an object");
23
- e = e || new FormData(), s = t.toFlatObject(s, {
24
- metaTokens: !0,
25
- dots: !1,
26
- indexes: !1
27
- }, !1, function(n, u) {
28
- return !t.isUndefined(u[n]);
29
- });
30
- const p = s.metaTokens, o = s.visitor || j, d = s.dots, m = s.indexes, w = (s.Blob || typeof Blob < "u" && Blob) && t.isSpecCompliantForm(e);
31
- if (!t.isFunction(o))
32
- throw new TypeError("visitor must be a function");
33
- function l(r) {
34
- if (r === null) return "";
35
- if (t.isDate(r))
36
- return r.toISOString();
37
- if (t.isBoolean(r))
38
- return r.toString();
39
- if (!w && t.isBlob(r))
40
- throw new E("Blob is not supported. Use a Buffer instead.");
41
- return t.isArrayBuffer(r) || t.isTypedArray(r) ? w && typeof Blob == "function" ? new Blob([r]) : Buffer.from(r) : r;
42
- }
43
- function j(r, n, u) {
44
- let f = r;
45
- if (r && !u && typeof r == "object") {
46
- if (t.endsWith(n, "{}"))
47
- n = p ? n : n.slice(0, -2), r = JSON.stringify(r);
48
- else if (t.isArray(r) && T(r) || (t.isFileList(r) || t.endsWith(n, "[]")) && (f = t.toArray(r)))
49
- return n = h(n), f.forEach(function(b, x) {
50
- !(t.isUndefined(b) || b === null) && e.append(
51
- // eslint-disable-next-line no-nested-ternary
52
- m === !0 ? O([n], x, d) : m === null ? n : n + "[]",
53
- l(b)
54
- );
55
- }), !1;
56
- }
57
- return B(r) ? !0 : (e.append(O(u, n, d), l(r)), !1);
58
- }
59
- const a = [], F = Object.assign(S, {
60
- defaultVisitor: j,
61
- convertValue: l,
62
- isVisitable: B
63
- });
64
- function A(r, n) {
65
- if (!t.isUndefined(r)) {
66
- if (a.indexOf(r) !== -1)
67
- throw Error("Circular reference detected in " + n.join("."));
68
- a.push(r), t.forEach(r, function(f, c) {
69
- (!(t.isUndefined(f) || f === null) && o.call(
70
- e,
71
- f,
72
- t.isString(c) ? c.trim() : c,
73
- n,
74
- F
75
- )) === !0 && A(f, n ? n.concat(c) : [c]);
76
- }), a.pop();
77
- }
78
- }
79
- if (!t.isObject(i))
80
- throw new TypeError("data must be an object");
81
- return A(i), e;
82
- }
83
- export {
84
- W as default
85
- };
@@ -1,13 +0,0 @@
1
- import e from "../utils.js";
2
- import n from "./toFormData.js";
3
- import r from "../platform/index.js";
4
- function c(o, i) {
5
- return n(o, new r.classes.URLSearchParams(), Object.assign({
6
- visitor: function(t, s, f, a) {
7
- return r.isNode && e.isBuffer(t) ? (this.append(s, t.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
8
- }
9
- }, i));
10
- }
11
- export {
12
- c as default
13
- };
@@ -1,63 +0,0 @@
1
- const f = function* (e, t) {
2
- let n = e.byteLength;
3
- if (n < t) {
4
- yield e;
5
- return;
6
- }
7
- let a = 0, r;
8
- for (; a < n; )
9
- r = a + t, yield e.slice(a, r), a = r;
10
- }, w = async function* (e, t) {
11
- for await (const n of b(e))
12
- yield* f(n, t);
13
- }, b = async function* (e) {
14
- if (e[Symbol.asyncIterator]) {
15
- yield* e;
16
- return;
17
- }
18
- const t = e.getReader();
19
- try {
20
- for (; ; ) {
21
- const { done: n, value: a } = await t.read();
22
- if (n)
23
- break;
24
- yield a;
25
- }
26
- } finally {
27
- await t.cancel();
28
- }
29
- }, h = (e, t, n, a) => {
30
- const r = w(e, t);
31
- let d = 0, o, c = (l) => {
32
- o || (o = !0, a && a(l));
33
- };
34
- return new ReadableStream({
35
- async pull(l) {
36
- try {
37
- const { done: i, value: y } = await r.next();
38
- if (i) {
39
- c(), l.close();
40
- return;
41
- }
42
- let s = y.byteLength;
43
- if (n) {
44
- let u = d += s;
45
- n(u);
46
- }
47
- l.enqueue(new Uint8Array(y));
48
- } catch (i) {
49
- throw c(i), i;
50
- }
51
- },
52
- cancel(l) {
53
- return c(l), r.return();
54
- }
55
- }, {
56
- highWaterMark: 2
57
- });
58
- };
59
- export {
60
- w as readBytes,
61
- f as streamChunk,
62
- h as trackStream
63
- };
@@ -1,54 +0,0 @@
1
- import { VERSION as w } from "../env/data.js";
2
- import s from "../core/AxiosError.js";
3
- const l = {};
4
- ["object", "boolean", "number", "function", "string", "symbol"].forEach((n, t) => {
5
- l[n] = function(o) {
6
- return typeof o === n || "a" + (t < 1 ? "n " : " ") + n;
7
- };
8
- });
9
- const f = {};
10
- l.transitional = function(t, i, o) {
11
- function a(r, e) {
12
- return "[Axios v" + w + "] Transitional option '" + r + "'" + e + (o ? ". " + o : "");
13
- }
14
- return (r, e, u) => {
15
- if (t === !1)
16
- throw new s(
17
- a(e, " has been removed" + (i ? " in " + i : "")),
18
- s.ERR_DEPRECATED
19
- );
20
- return i && !f[e] && (f[e] = !0, console.warn(
21
- a(
22
- e,
23
- " has been deprecated since v" + i + " and will be removed in the near future"
24
- )
25
- )), t ? t(r, e, u) : !0;
26
- };
27
- };
28
- l.spelling = function(t) {
29
- return (i, o) => (console.warn(`${o} is likely a misspelling of ${t}`), !0);
30
- };
31
- function b(n, t, i) {
32
- if (typeof n != "object")
33
- throw new s("options must be an object", s.ERR_BAD_OPTION_VALUE);
34
- const o = Object.keys(n);
35
- let a = o.length;
36
- for (; a-- > 0; ) {
37
- const r = o[a], e = t[r];
38
- if (e) {
39
- const u = n[r], c = u === void 0 || e(u, r, n);
40
- if (c !== !0)
41
- throw new s("option " + r + " must be " + c, s.ERR_BAD_OPTION_VALUE);
42
- continue;
43
- }
44
- if (i !== !0)
45
- throw new s("Unknown option " + r, s.ERR_BAD_OPTION);
46
- }
47
- }
48
- const m = {
49
- assertOptions: b,
50
- validators: l
51
- };
52
- export {
53
- m as default
54
- };
@@ -1,4 +0,0 @@
1
- const l = typeof Blob < "u" ? Blob : null;
2
- export {
3
- l as default
4
- };
@@ -1,4 +0,0 @@
1
- const a = typeof FormData < "u" ? FormData : null;
2
- export {
3
- a as default
4
- };
@@ -1,5 +0,0 @@
1
- import a from "../../../helpers/AxiosURLSearchParams.js";
2
- const e = typeof URLSearchParams < "u" ? URLSearchParams : a;
3
- export {
4
- e as default
5
- };
@@ -1,15 +0,0 @@
1
- import o from "./classes/URLSearchParams.js";
2
- import r from "./classes/FormData.js";
3
- import t from "./classes/Blob.js";
4
- const l = {
5
- isBrowser: !0,
6
- classes: {
7
- URLSearchParams: o,
8
- FormData: r,
9
- Blob: t
10
- },
11
- protocols: ["http", "https", "file", "blob", "url", "data"]
12
- };
13
- export {
14
- l as default
15
- };
@@ -1,9 +0,0 @@
1
- const e = typeof window < "u" && typeof document < "u", o = typeof navigator == "object" && navigator || void 0, n = e && (!o || ["ReactNative", "NativeScript", "NS"].indexOf(o.product) < 0), t = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
2
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", r = e && window.location.href || "http://localhost";
3
- export {
4
- e as hasBrowserEnv,
5
- n as hasStandardBrowserEnv,
6
- t as hasStandardBrowserWebWorkerEnv,
7
- o as navigator,
8
- r as origin
9
- };
@@ -1,9 +0,0 @@
1
- import o from "./browser/index.js";
2
- import * as t from "./common/utils.js";
3
- const m = {
4
- ...t,
5
- ...o
6
- };
7
- export {
8
- m as default
9
- };