yahee-components 0.0.113 → 0.0.115

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 (176) hide show
  1. package/es/annex-upload/annex-upload.vue.js +55 -0
  2. package/es/annex-upload/annex-upload.vue2.js +121 -0
  3. package/es/annex-upload/index.js +7 -0
  4. package/es/annex-upload/mimeType.js +822 -0
  5. package/es/annex-upload/style/index.css +7 -0
  6. package/es/border-wrap/border-wrap.vue.js +75 -0
  7. package/es/border-wrap/border-wrap.vue2.js +48 -0
  8. package/es/border-wrap/index.js +7 -0
  9. package/es/border-wrap/props.js +11 -0
  10. package/es/border-wrap/style/index.css +24 -0
  11. package/es/common-import/common-import.vue.js +394 -0
  12. package/es/common-import/common-import.vue2.js +366 -0
  13. package/es/common-import/index.js +7 -0
  14. package/es/common-import/props.js +23 -0
  15. package/es/common-import/style/index.css +32 -0
  16. package/es/complex-search/batch-search-dialog.vue.js +119 -0
  17. package/es/complex-search/batch-search-dialog.vue2.js +50 -0
  18. package/es/complex-search/complex-search.vue.js +122 -0
  19. package/es/complex-search/complex-search.vue2.js +71 -0
  20. package/es/complex-search/index.js +7 -0
  21. package/es/complex-search/props.js +19 -0
  22. package/es/complex-search/style/index.css +24 -0
  23. package/es/complex-search/useComplexSearch.js +44 -0
  24. package/es/copy/copy.vue.js +39 -0
  25. package/es/copy/copy.vue2.js +36 -0
  26. package/es/copy/index.js +7 -0
  27. package/es/copy/props.js +9 -0
  28. package/es/copy/style/index.css +12 -0
  29. package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +120 -0
  30. package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +127 -0
  31. package/es/country-platform-shop-condition/index.js +7 -0
  32. package/es/country-platform-shop-condition/style/index.css +59 -0
  33. package/es/drop-down-condition/drop-down-condition.vue.js +125 -0
  34. package/es/drop-down-condition/drop-down-condition.vue2.js +129 -0
  35. package/es/drop-down-condition/index.js +7 -0
  36. package/es/drop-down-condition/style/index.css +64 -0
  37. package/es/echart-gauge/echart-gauge.vue.js +14 -0
  38. package/es/echart-gauge/echart-gauge.vue2.js +149 -0
  39. package/es/echart-gauge/index.js +7 -0
  40. package/es/echart-gauge/props.js +9 -0
  41. package/es/echart-gauge/style/index.css +4 -0
  42. package/es/file-download-wrapper/file-download-wrapper.vue.js +164 -0
  43. package/es/file-download-wrapper/file-download-wrapper.vue2.js +115 -0
  44. package/es/file-download-wrapper/index.js +7 -0
  45. package/es/file-download-wrapper/key.js +17 -0
  46. package/es/file-download-wrapper/props.js +12 -0
  47. package/es/file-download-wrapper/style/index.css +66 -0
  48. package/es/filter-container/filter-container.vue.js +24 -0
  49. package/es/filter-container/filter-container.vue2.js +61 -0
  50. package/es/filter-container/index.js +7 -0
  51. package/es/filter-container/key.js +4 -0
  52. package/es/filter-container/props.js +11 -0
  53. package/es/filter-container/style/index.css +16 -0
  54. package/es/filter-wrapper/filter-wrapper.vue.js +19 -0
  55. package/es/filter-wrapper/filter-wrapper.vue2.js +56 -0
  56. package/es/filter-wrapper/index.js +7 -0
  57. package/es/filter-wrapper/props.js +10 -0
  58. package/es/filter-wrapper/style/index.css +3 -0
  59. package/es/height-collapse/height-collapse.vue.js +26 -0
  60. package/es/height-collapse/height-collapse.vue2.js +44 -0
  61. package/es/height-collapse/index.js +7 -0
  62. package/es/height-collapse/props.js +11 -0
  63. package/es/height-collapse/style/index.css +32 -0
  64. package/es/help-tag/help-tag.vue.js +46 -0
  65. package/es/help-tag/help-tag.vue2.js +51 -0
  66. package/es/help-tag/index.js +7 -0
  67. package/es/help-tag/props.js +9 -0
  68. package/es/help-tag/style/index.css +8 -0
  69. package/es/image-upload/image-upload.vue.js +116 -0
  70. package/es/image-upload/image-upload.vue2.js +93 -0
  71. package/es/image-upload/index.js +7 -0
  72. package/es/image-upload/style/index.css +33 -0
  73. package/es/index.js +63 -0
  74. package/es/installs.js +41 -0
  75. package/es/left-condition/index.js +7 -0
  76. package/es/left-condition/left-condition-sub.vue.js +36 -0
  77. package/es/left-condition/left-condition-sub.vue2.js +78 -0
  78. package/es/left-condition/left-condition.vue.js +77 -0
  79. package/es/left-condition/left-condition.vue2.js +162 -0
  80. package/es/left-condition/style/index.css +10 -0
  81. package/es/left-condition-enum/index.js +7 -0
  82. package/es/left-condition-enum/left-condition-enum.vue.js +22 -0
  83. package/es/left-condition-enum/left-condition-enum.vue2.js +42 -0
  84. package/es/left-condition-enum/style/index.css +10 -0
  85. package/es/node_modules/.pnpm/@vueuse_core@11.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/core/index.js +99 -0
  86. package/es/node_modules/.pnpm/@vueuse_shared@11.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/shared/index.js +22 -0
  87. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/index.js +38 -0
  88. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/adapters.js +53 -0
  89. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/fetch.js +141 -0
  90. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/xhr.js +71 -0
  91. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/axios.js +46 -0
  92. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/CancelToken.js +77 -0
  93. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/CanceledError.js +11 -0
  94. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/isCancel.js +6 -0
  95. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/Axios.js +136 -0
  96. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/AxiosError.js +54 -0
  97. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/AxiosHeaders.js +181 -0
  98. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/InterceptorManager.js +58 -0
  99. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/buildFullPath.js +9 -0
  100. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/dispatchRequest.js +31 -0
  101. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/mergeConfig.js +70 -0
  102. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/settle.js +14 -0
  103. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/transformData.js +13 -0
  104. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/defaults/index.js +89 -0
  105. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/defaults/transitional.js +8 -0
  106. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/env/data.js +4 -0
  107. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +33 -0
  108. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/HttpStatusCode.js +71 -0
  109. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/bind.js +8 -0
  110. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/buildURL.js +23 -0
  111. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/combineURLs.js +6 -0
  112. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/composeSignals.js +30 -0
  113. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/cookies.js +32 -0
  114. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/formDataToJSON.js +31 -0
  115. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isAbsoluteURL.js +6 -0
  116. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isAxiosError.js +7 -0
  117. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isURLSameOrigin.js +8 -0
  118. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/null.js +4 -0
  119. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/parseHeaders.js +30 -0
  120. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/parseProtocol.js +7 -0
  121. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/progressEventReducer.js +35 -0
  122. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/resolveConfig.js +33 -0
  123. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/speedometer.js +19 -0
  124. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/spread.js +8 -0
  125. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/throttle.js +15 -0
  126. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/toFormData.js +85 -0
  127. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/toURLEncodedForm.js +13 -0
  128. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/trackStream.js +63 -0
  129. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/validator.js +54 -0
  130. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
  131. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
  132. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
  133. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/index.js +15 -0
  134. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/common/utils.js +9 -0
  135. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/index.js +9 -0
  136. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/utils.js +222 -0
  137. package/es/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js +282 -0
  138. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/index.js +97 -0
  139. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/basicTransition.js +96 -0
  140. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/customGraphicKeyframeAnimation.js +56 -0
  141. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/customGraphicTransition.js +242 -0
  142. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/morphTransitionHelper.js +106 -0
  143. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/universalTransition.js +345 -0
  144. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BarSeries.js +56 -0
  145. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BarView.js +487 -0
  146. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BaseBarSeries.js +77 -0
  147. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/PictorialBarSeries.js +49 -0
  148. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/PictorialBarView.js +325 -0
  149. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/install.js +23 -0
  150. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/installPictorialBar.js +10 -0
  151. package/es/operation-log/operation-log.vue2.js +88 -77
  152. package/lib/annex-upload/style/index.css +7 -0
  153. package/lib/border-wrap/style/index.css +24 -0
  154. package/lib/common-import/style/index.css +32 -0
  155. package/lib/complex-search/style/index.css +24 -0
  156. package/lib/copy/style/index.css +12 -0
  157. package/lib/country-platform-shop-condition/style/index.css +59 -0
  158. package/lib/drop-down-condition/style/index.css +64 -0
  159. package/lib/echart-gauge/style/index.css +4 -0
  160. package/lib/file-download-wrapper/style/index.css +66 -0
  161. package/lib/filter-container/style/index.css +16 -0
  162. package/lib/filter-wrapper/style/index.css +3 -0
  163. package/lib/height-collapse/style/index.css +32 -0
  164. package/lib/help-tag/style/index.css +8 -0
  165. package/lib/image-upload/style/index.css +33 -0
  166. package/lib/left-condition/style/index.css +10 -0
  167. package/lib/left-condition-enum/style/index.css +10 -0
  168. package/lib/operation-log/style/index.css +234 -0
  169. package/lib/scale-screen/style/index.css +0 -0
  170. package/lib/style.css +1405 -0
  171. package/lib/styles/custom.css +82 -0
  172. package/lib/styles/globals.css +699 -0
  173. package/lib/styles/index.css +753 -0
  174. package/lib/styles/variables.css +34 -0
  175. package/package.json +1 -1
  176. package/types/src/operation-log/operation-log.vue.d.ts +2 -2
@@ -0,0 +1,31 @@
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
+ };
@@ -0,0 +1,6 @@
1
+ function e(t) {
2
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
3
+ }
4
+ export {
5
+ e as default
6
+ };
@@ -0,0 +1,7 @@
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
+ };
@@ -0,0 +1,8 @@
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
+ };
@@ -0,0 +1,4 @@
1
+ const t = null;
2
+ export {
3
+ t as default
4
+ };
@@ -0,0 +1,30 @@
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
+ };
@@ -0,0 +1,7 @@
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
+ };
@@ -0,0 +1,35 @@
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
+ };
@@ -0,0 +1,33 @@
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
+ };
@@ -0,0 +1,19 @@
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
+ };
@@ -0,0 +1,8 @@
1
+ function u(n) {
2
+ return function(r) {
3
+ return n.apply(null, r);
4
+ };
5
+ }
6
+ export {
7
+ u as default
8
+ };
@@ -0,0 +1,15 @@
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
+ };
@@ -0,0 +1,85 @@
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
+ };
@@ -0,0 +1,13 @@
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
+ };
@@ -0,0 +1,63 @@
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
+ };
@@ -0,0 +1,54 @@
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
+ };
@@ -0,0 +1,4 @@
1
+ const l = typeof Blob < "u" ? Blob : null;
2
+ export {
3
+ l as default
4
+ };
@@ -0,0 +1,4 @@
1
+ const a = typeof FormData < "u" ? FormData : null;
2
+ export {
3
+ a as default
4
+ };
@@ -0,0 +1,5 @@
1
+ import a from "../../../helpers/AxiosURLSearchParams.js";
2
+ const e = typeof URLSearchParams < "u" ? URLSearchParams : a;
3
+ export {
4
+ e as default
5
+ };
@@ -0,0 +1,15 @@
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
+ };
@@ -0,0 +1,9 @@
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
+ };
@@ -0,0 +1,9 @@
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
+ };