@hkyhy/marsun-components-core 0.1.18 → 0.1.19

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 (145) hide show
  1. package/dist/components/Auth/ProtectedRoute.js +20 -14
  2. package/dist/components/Auth/ProtectedRoute.js.map +1 -1
  3. package/dist/components/File/index.d.ts +2 -0
  4. package/dist/components/File/utils/download.d.ts +20 -0
  5. package/dist/components/File/utils/download.js +30 -0
  6. package/dist/components/File/utils/download.js.map +1 -0
  7. package/dist/components/Filter/types.d.ts +1 -0
  8. package/dist/components/Filter/types.js.map +1 -1
  9. package/dist/index.d.ts +14 -0
  10. package/dist/index.js +361 -298
  11. package/dist/index.js.map +1 -1
  12. package/dist/node_modules/axios/index.js +41 -0
  13. package/dist/node_modules/axios/index.js.map +1 -0
  14. package/dist/node_modules/axios/lib/adapters/adapters.js +66 -0
  15. package/dist/node_modules/axios/lib/adapters/adapters.js.map +1 -0
  16. package/dist/node_modules/axios/lib/adapters/fetch.js +324 -0
  17. package/dist/node_modules/axios/lib/adapters/fetch.js.map +1 -0
  18. package/dist/node_modules/axios/lib/adapters/xhr.js +86 -0
  19. package/dist/node_modules/axios/lib/adapters/xhr.js.map +1 -0
  20. package/dist/node_modules/axios/lib/axios.js +47 -0
  21. package/dist/node_modules/axios/lib/axios.js.map +1 -0
  22. package/dist/node_modules/axios/lib/cancel/CancelToken.js +78 -0
  23. package/dist/node_modules/axios/lib/cancel/CancelToken.js.map +1 -0
  24. package/dist/node_modules/axios/lib/cancel/CanceledError.js +19 -0
  25. package/dist/node_modules/axios/lib/cancel/CanceledError.js.map +1 -0
  26. package/dist/node_modules/axios/lib/cancel/isCancel.js +7 -0
  27. package/dist/node_modules/axios/lib/cancel/isCancel.js.map +1 -0
  28. package/dist/node_modules/axios/lib/core/Axios.js +168 -0
  29. package/dist/node_modules/axios/lib/core/Axios.js.map +1 -0
  30. package/dist/node_modules/axios/lib/core/AxiosError.js +110 -0
  31. package/dist/node_modules/axios/lib/core/AxiosError.js.map +1 -0
  32. package/dist/node_modules/axios/lib/core/AxiosHeaders.js +193 -0
  33. package/dist/node_modules/axios/lib/core/AxiosHeaders.js.map +1 -0
  34. package/dist/node_modules/axios/lib/core/InterceptorManager.js +60 -0
  35. package/dist/node_modules/axios/lib/core/InterceptorManager.js.map +1 -0
  36. package/dist/node_modules/axios/lib/core/buildFullPath.js +30 -0
  37. package/dist/node_modules/axios/lib/core/buildFullPath.js.map +1 -0
  38. package/dist/node_modules/axios/lib/core/dispatchRequest.js +43 -0
  39. package/dist/node_modules/axios/lib/core/dispatchRequest.js.map +1 -0
  40. package/dist/node_modules/axios/lib/core/mergeConfig.js +94 -0
  41. package/dist/node_modules/axios/lib/core/mergeConfig.js.map +1 -0
  42. package/dist/node_modules/axios/lib/core/settle.js +15 -0
  43. package/dist/node_modules/axios/lib/core/settle.js.map +1 -0
  44. package/dist/node_modules/axios/lib/core/transformData.js +14 -0
  45. package/dist/node_modules/axios/lib/core/transformData.js.map +1 -0
  46. package/dist/node_modules/axios/lib/defaults/index.js +96 -0
  47. package/dist/node_modules/axios/lib/defaults/index.js.map +1 -0
  48. package/dist/node_modules/axios/lib/defaults/transitional.js +12 -0
  49. package/dist/node_modules/axios/lib/defaults/transitional.js.map +1 -0
  50. package/dist/node_modules/axios/lib/env/data.js +5 -0
  51. package/dist/node_modules/axios/lib/env/data.js.map +1 -0
  52. package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +31 -0
  53. package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js.map +1 -0
  54. package/dist/node_modules/axios/lib/helpers/HttpStatusCode.js +78 -0
  55. package/dist/node_modules/axios/lib/helpers/HttpStatusCode.js.map +1 -0
  56. package/dist/node_modules/axios/lib/helpers/bind.js +9 -0
  57. package/dist/node_modules/axios/lib/helpers/bind.js.map +1 -0
  58. package/dist/node_modules/axios/lib/helpers/buildURL.js +24 -0
  59. package/dist/node_modules/axios/lib/helpers/buildURL.js.map +1 -0
  60. package/dist/node_modules/axios/lib/helpers/combineURLs.js +7 -0
  61. package/dist/node_modules/axios/lib/helpers/combineURLs.js.map +1 -0
  62. package/dist/node_modules/axios/lib/helpers/composeSignals.js +33 -0
  63. package/dist/node_modules/axios/lib/helpers/composeSignals.js.map +1 -0
  64. package/dist/node_modules/axios/lib/helpers/cookies.js +44 -0
  65. package/dist/node_modules/axios/lib/helpers/cookies.js.map +1 -0
  66. package/dist/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +43 -0
  67. package/dist/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js.map +1 -0
  68. package/dist/node_modules/axios/lib/helpers/formDataToJSON.js +47 -0
  69. package/dist/node_modules/axios/lib/helpers/formDataToJSON.js.map +1 -0
  70. package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.js +7 -0
  71. package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.js.map +1 -0
  72. package/dist/node_modules/axios/lib/helpers/isAxiosError.js +8 -0
  73. package/dist/node_modules/axios/lib/helpers/isAxiosError.js.map +1 -0
  74. package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.js +9 -0
  75. package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.js.map +1 -0
  76. package/dist/node_modules/axios/lib/helpers/null.js +5 -0
  77. package/dist/node_modules/axios/lib/helpers/null.js.map +1 -0
  78. package/dist/node_modules/axios/lib/helpers/parseHeaders.js +31 -0
  79. package/dist/node_modules/axios/lib/helpers/parseHeaders.js.map +1 -0
  80. package/dist/node_modules/axios/lib/helpers/parseProtocol.js +8 -0
  81. package/dist/node_modules/axios/lib/helpers/parseProtocol.js.map +1 -0
  82. package/dist/node_modules/axios/lib/helpers/progressEventReducer.js +41 -0
  83. package/dist/node_modules/axios/lib/helpers/progressEventReducer.js.map +1 -0
  84. package/dist/node_modules/axios/lib/helpers/resolveConfig.js +54 -0
  85. package/dist/node_modules/axios/lib/helpers/resolveConfig.js.map +1 -0
  86. package/dist/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +34 -0
  87. package/dist/node_modules/axios/lib/helpers/sanitizeHeaderValue.js.map +1 -0
  88. package/dist/node_modules/axios/lib/helpers/speedometer.js +20 -0
  89. package/dist/node_modules/axios/lib/helpers/speedometer.js.map +1 -0
  90. package/dist/node_modules/axios/lib/helpers/spread.js +9 -0
  91. package/dist/node_modules/axios/lib/helpers/spread.js.map +1 -0
  92. package/dist/node_modules/axios/lib/helpers/throttle.js +16 -0
  93. package/dist/node_modules/axios/lib/helpers/throttle.js.map +1 -0
  94. package/dist/node_modules/axios/lib/helpers/toFormData.js +115 -0
  95. package/dist/node_modules/axios/lib/helpers/toFormData.js.map +1 -0
  96. package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.js +15 -0
  97. package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.js.map +1 -0
  98. package/dist/node_modules/axios/lib/helpers/trackStream.js +67 -0
  99. package/dist/node_modules/axios/lib/helpers/trackStream.js.map +1 -0
  100. package/dist/node_modules/axios/lib/helpers/validator.js +58 -0
  101. package/dist/node_modules/axios/lib/helpers/validator.js.map +1 -0
  102. package/dist/node_modules/axios/lib/platform/browser/classes/Blob.js +5 -0
  103. package/dist/node_modules/axios/lib/platform/browser/classes/Blob.js.map +1 -0
  104. package/dist/node_modules/axios/lib/platform/browser/classes/FormData.js +5 -0
  105. package/dist/node_modules/axios/lib/platform/browser/classes/FormData.js.map +1 -0
  106. package/dist/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +6 -0
  107. package/dist/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js.map +1 -0
  108. package/dist/node_modules/axios/lib/platform/browser/index.js +16 -0
  109. package/dist/node_modules/axios/lib/platform/browser/index.js.map +1 -0
  110. package/dist/node_modules/axios/lib/platform/common/utils.js +10 -0
  111. package/dist/node_modules/axios/lib/platform/common/utils.js.map +1 -0
  112. package/dist/node_modules/axios/lib/platform/index.js +10 -0
  113. package/dist/node_modules/axios/lib/platform/index.js.map +1 -0
  114. package/dist/node_modules/axios/lib/utils.js +303 -0
  115. package/dist/node_modules/axios/lib/utils.js.map +1 -0
  116. package/dist/types/auth.d.ts +18 -0
  117. package/dist/utils/authRedirect.d.ts +6 -0
  118. package/dist/utils/authRedirect.js +33 -0
  119. package/dist/utils/authRedirect.js.map +1 -0
  120. package/dist/utils/createMarsunRequest.d.ts +26 -0
  121. package/dist/utils/createMarsunRequest.js +53 -0
  122. package/dist/utils/createMarsunRequest.js.map +1 -0
  123. package/dist/utils/date.d.ts +4 -0
  124. package/dist/utils/date.js +11 -0
  125. package/dist/utils/date.js.map +1 -0
  126. package/dist/utils/department/departmentPath.d.ts +18 -0
  127. package/dist/utils/department/departmentPath.js +63 -0
  128. package/dist/utils/department/departmentPath.js.map +1 -0
  129. package/dist/utils/department/departmentScope.d.ts +20 -0
  130. package/dist/utils/department/departmentScope.js +63 -0
  131. package/dist/utils/department/departmentScope.js.map +1 -0
  132. package/dist/utils/department/types.d.ts +12 -0
  133. package/dist/utils/permissionStorage.d.ts +13 -0
  134. package/dist/utils/permissionStorage.js +43 -0
  135. package/dist/utils/permissionStorage.js.map +1 -0
  136. package/dist/utils/personOption.d.ts +49 -0
  137. package/dist/utils/personOption.js +90 -0
  138. package/dist/utils/personOption.js.map +1 -0
  139. package/dist/utils/sessionActivity.d.ts +5 -0
  140. package/dist/utils/sessionActivity.js +18 -0
  141. package/dist/utils/sessionActivity.js.map +1 -0
  142. package/dist/utils/user/employeeId.d.ts +8 -0
  143. package/dist/utils/user/employeeId.js +14 -0
  144. package/dist/utils/user/employeeId.js.map +1 -0
  145. package/package.json +24 -1
@@ -0,0 +1,54 @@
1
+ import d from "../platform/index.js";
2
+ import a from "../utils.js";
3
+ import u from "../core/AxiosError.js";
4
+ import R from "./isURLSameOrigin.js";
5
+ import F from "./cookies.js";
6
+ import g from "../core/buildFullPath.js";
7
+ import A from "../core/mergeConfig.js";
8
+ import C from "../core/AxiosHeaders.js";
9
+ import E from "./buildURL.js";
10
+ const b = ["content-type", "content-length"];
11
+ function U(r, o, e) {
12
+ if (e !== "content-only") {
13
+ r.set(o);
14
+ return;
15
+ }
16
+ Object.entries(o || {}).forEach(([t, s]) => {
17
+ b.includes(t.toLowerCase()) && r.set(t, s);
18
+ });
19
+ }
20
+ const x = (r) => encodeURIComponent(r).replace(
21
+ /%([0-9A-F]{2})/gi,
22
+ (o, e) => String.fromCharCode(parseInt(e, 16))
23
+ );
24
+ function B(r) {
25
+ const o = A({}, r), e = (i) => a.hasOwnProp(o, i) ? o[i] : void 0, t = e("data");
26
+ let s = e("withXSRFToken");
27
+ const l = e("xsrfHeaderName"), c = e("xsrfCookieName");
28
+ let n = e("headers");
29
+ const m = e("auth"), p = e("baseURL"), h = e("allowAbsoluteUrls"), S = e("url");
30
+ if (o.headers = n = C.from(n), o.url = E(
31
+ g(p, S, h, o),
32
+ e("params"),
33
+ e("paramsSerializer")
34
+ ), m) {
35
+ const i = a.getSafeProp(m, "username") || "", f = a.getSafeProp(m, "password") || "";
36
+ try {
37
+ n.set(
38
+ "Authorization",
39
+ "Basic " + btoa(i + ":" + (f ? x(f) : ""))
40
+ );
41
+ } catch (w) {
42
+ throw u.from(w, u.ERR_BAD_OPTION_VALUE, r);
43
+ }
44
+ }
45
+ if (a.isFormData(t) && (d.hasStandardBrowserEnv || d.hasStandardBrowserWebWorkerEnv || a.isReactNative(t) ? n.setContentType(void 0) : a.isFunction(t.getHeaders) && U(n, t.getHeaders(), e("formDataHeaderPolicy"))), d.hasStandardBrowserEnv && (a.isFunction(s) && (s = s(o)), s === !0 || s == null && R(o.url))) {
46
+ const f = l && c && F.read(c);
47
+ f && n.set(l, f);
48
+ }
49
+ return o;
50
+ }
51
+ export {
52
+ B as default
53
+ };
54
+ //# sourceMappingURL=resolveConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveConfig.js","sources":["../../../../../node_modules/axios/lib/helpers/resolveConfig.js"],"sourcesContent":["import platform from '../platform/index.js';\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport isURLSameOrigin from './isURLSameOrigin.js';\nimport cookies from './cookies.js';\nimport buildFullPath from '../core/buildFullPath.js';\nimport mergeConfig from '../core/mergeConfig.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport buildURL from './buildURL.js';\n\nconst FORM_DATA_CONTENT_HEADERS = ['content-type', 'content-length'];\n\nfunction setFormDataHeaders(headers, formHeaders, policy) {\n if (policy !== 'content-only') {\n headers.set(formHeaders);\n return;\n }\n\n Object.entries(formHeaders || {}).forEach(([key, val]) => {\n if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {\n headers.set(key, val);\n }\n });\n}\n\n/**\n * Encode a UTF-8 string to a Latin-1 byte string for use with btoa().\n * This is a modern replacement for the deprecated unescape(encodeURIComponent(str)) pattern.\n *\n * @param {string} str The string to encode\n *\n * @returns {string} UTF-8 bytes as a Latin-1 string\n */\nconst encodeUTF8 = (str) =>\n encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) =>\n String.fromCharCode(parseInt(hex, 16))\n );\n\nfunction resolveConfig(config) {\n const newConfig = mergeConfig({}, config);\n\n // Read only own properties to prevent prototype pollution gadgets\n // (e.g. Object.prototype.baseURL = 'https://evil.com').\n const own = (key) => (utils.hasOwnProp(newConfig, key) ? newConfig[key] : undefined);\n\n const data = own('data');\n let withXSRFToken = own('withXSRFToken');\n const xsrfHeaderName = own('xsrfHeaderName');\n const xsrfCookieName = own('xsrfCookieName');\n let headers = own('headers');\n const auth = own('auth');\n const baseURL = own('baseURL');\n const allowAbsoluteUrls = own('allowAbsoluteUrls');\n const url = own('url');\n\n newConfig.headers = headers = AxiosHeaders.from(headers);\n\n newConfig.url = buildURL(\n buildFullPath(baseURL, url, allowAbsoluteUrls, newConfig),\n own('params'),\n own('paramsSerializer')\n );\n\n // HTTP basic authentication\n if (auth) {\n const username = utils.getSafeProp(auth, 'username') || '';\n const password = utils.getSafeProp(auth, 'password') || '';\n\n try {\n headers.set(\n 'Authorization',\n 'Basic ' + btoa(username + ':' + (password ? encodeUTF8(password) : ''))\n );\n } catch (e) {\n throw AxiosError.from(e, AxiosError.ERR_BAD_OPTION_VALUE, config);\n }\n }\n\n if (utils.isFormData(data)) {\n if (\n platform.hasStandardBrowserEnv ||\n platform.hasStandardBrowserWebWorkerEnv ||\n utils.isReactNative(data)\n ) {\n headers.setContentType(undefined); // browser/web worker/RN handles it\n } else if (utils.isFunction(data.getHeaders)) {\n // Node.js FormData (like form-data package)\n setFormDataHeaders(headers, data.getHeaders(), own('formDataHeaderPolicy'));\n }\n }\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n\n if (platform.hasStandardBrowserEnv) {\n if (utils.isFunction(withXSRFToken)) {\n withXSRFToken = withXSRFToken(newConfig);\n }\n\n // Strict boolean check — prevents proto-pollution gadgets (e.g. Object.prototype.withXSRFToken = 1)\n // and misconfigurations (e.g. \"false\") from short-circuiting the same-origin check and leaking\n // the XSRF token cross-origin.\n const shouldSendXSRF =\n withXSRFToken === true || (withXSRFToken == null && isURLSameOrigin(newConfig.url));\n\n if (shouldSendXSRF) {\n const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);\n\n if (xsrfValue) {\n headers.set(xsrfHeaderName, xsrfValue);\n }\n }\n }\n\n return newConfig;\n}\n\nexport default resolveConfig;\n"],"names":["FORM_DATA_CONTENT_HEADERS","setFormDataHeaders","headers","formHeaders","policy","key","val","encodeUTF8","str","_","hex","resolveConfig","config","newConfig","mergeConfig","own","utils","data","withXSRFToken","xsrfHeaderName","xsrfCookieName","auth","baseURL","allowAbsoluteUrls","url","AxiosHeaders","buildURL","buildFullPath","username","password","e","AxiosError","platform","isURLSameOrigin","xsrfValue","cookies"],"mappings":";;;;;;;;;AAUA,MAAMA,IAA4B,CAAC,gBAAgB,gBAAgB;AAEnE,SAASC,EAAmBC,GAASC,GAAaC,GAAQ;AACxD,MAAIA,MA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AAI,GAAG;AAAA,MAC/E;AAAA,IACI,SAASC,GAAG;AACV,YAAMC,EAAW,KAAKD,GAAGC,EAAW,sBAAsBnB,CAAM;AAAA,IAClE;AAAA,EACF;AAmBA,MAjBII,EAAM,WAAWC,CAAI,MAErBe,EAAS,yBACTA,EAAS,kCACThB,EAAM,cAAcC,CAAI,IAExBf,EAAQ,eAAe,MAAS,IACvBc,EAAM,WAAWC,EAAK,UAAU,KAEzChB,EAAmBC,GAASe,EAAK,WAAU,GAAIF,EAAI,sBAAsB,CAAC,IAQ1EiB,EAAS,0BACPhB,EAAM,WAAWE,CAAa,MAChCA,IAAgBA,EAAcL,CAAS,IAOvCK,MAAkB,MAASA,KAAiB,QAAQe,EAAgBpB,EAAU,GAAG,IAE/D;AAClB,UAAMqB,IAAYf,KAAkBC,KAAkBe,EAAQ,KAAKf,CAAc;AAEjF,IAAIc,KACFhC,EAAQ,IAAIiB,GAAgBe,CAAS;AAAA,EAEzC;AAGF,SAAOrB;AACT;","x_google_ignoreList":[0]}
@@ -0,0 +1,34 @@
1
+ import o from "../utils.js";
2
+ function c(e) {
3
+ let t = 0, n = e.length;
4
+ for (; t < n; ) {
5
+ const r = e.charCodeAt(t);
6
+ if (r !== 9 && r !== 32)
7
+ break;
8
+ t += 1;
9
+ }
10
+ for (; n > t; ) {
11
+ const r = e.charCodeAt(n - 1);
12
+ if (r !== 9 && r !== 32)
13
+ break;
14
+ n -= 1;
15
+ }
16
+ return t === 0 && n === e.length ? e : e.slice(t, n);
17
+ }
18
+ const u = new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+", "g"), a = new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+", "g");
19
+ function i(e, t) {
20
+ return o.isArray(e) ? e.map((n) => i(n, t)) : c(String(e).replace(t, ""));
21
+ }
22
+ const l = (e) => i(e, u), f = (e) => i(e, a);
23
+ function E(e) {
24
+ const t = /* @__PURE__ */ Object.create(null);
25
+ return o.forEach(e.toJSON(), (n, r) => {
26
+ t[r] = f(n);
27
+ }), t;
28
+ }
29
+ export {
30
+ f as sanitizeByteStringHeaderValue,
31
+ l as sanitizeHeaderValue,
32
+ E as toByteStringHeaderObject
33
+ };
34
+ //# sourceMappingURL=sanitizeHeaderValue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sanitizeHeaderValue.js","sources":["../../../../../node_modules/axios/lib/helpers/sanitizeHeaderValue.js"],"sourcesContent":["'use strict';\n\nimport utils from '../utils.js';\n\nfunction trimSPorHTAB(str) {\n let start = 0;\n let end = str.length;\n\n while (start < end) {\n const code = str.charCodeAt(start);\n\n if (code !== 0x09 && code !== 0x20) {\n break;\n }\n\n start += 1;\n }\n\n while (end > start) {\n const code = str.charCodeAt(end - 1);\n\n if (code !== 0x09 && code !== 0x20) {\n break;\n }\n\n end -= 1;\n }\n\n return start === 0 && end === str.length ? str : str.slice(start, end);\n}\n\n// The control-code ranges are intentional: header sanitization strips C0/DEL bytes.\n// eslint-disable-next-line no-control-regex\nconst INVALID_UNICODE_HEADER_VALUE_CHARS = new RegExp('[\\\\u0000-\\\\u0008\\\\u000a-\\\\u001f\\\\u007f]+', 'g');\n// eslint-disable-next-line no-control-regex\nconst INVALID_BYTE_STRING_HEADER_VALUE_CHARS = new RegExp('[^\\\\u0009\\\\u0020-\\\\u007e\\\\u0080-\\\\u00ff]+', 'g');\n\nfunction sanitizeValue(value, invalidChars) {\n if (utils.isArray(value)) {\n return value.map((item) => sanitizeValue(item, invalidChars));\n }\n\n return trimSPorHTAB(String(value).replace(invalidChars, ''));\n}\n\nexport const sanitizeHeaderValue = (value) =>\n sanitizeValue(value, INVALID_UNICODE_HEADER_VALUE_CHARS);\n\nexport const sanitizeByteStringHeaderValue = (value) =>\n sanitizeValue(value, INVALID_BYTE_STRING_HEADER_VALUE_CHARS);\n\nexport function toByteStringHeaderObject(headers) {\n const byteStringHeaders = Object.create(null);\n\n utils.forEach(headers.toJSON(), (value, header) => {\n byteStringHeaders[header] = sanitizeByteStringHeaderValue(value);\n });\n\n return byteStringHeaders;\n}\n"],"names":["trimSPorHTAB","str","start","end","code","INVALID_UNICODE_HEADER_VALUE_CHARS","INVALID_BYTE_STRING_HEADER_VALUE_CHARS","sanitizeValue","value","invalidChars","utils","item","sanitizeHeaderValue","sanitizeByteStringHeaderValue","toByteStringHeaderObject","headers","byteStringHeaders","header"],"mappings":";AAIA,SAASA,EAAaC,GAAK;AACzB,MAAIC,IAAQ,GACRC,IAAMF,EAAI;AAEd,SAAOC,IAAQC,KAAK;AAClB,UAAMC,IAAOH,EAAI,WAAWC,CAAK;AAEjC,QAAIE,MAAS,KAAQA,MAAS;AAC5B;AAGF,IAAAF,KAAS;AAAA,EACX;AAEA,SAAOC,IAAMD,KAAO;AAClB,UAAME,IAAOH,EAAI,WAAWE,IAAM,CAAC;AAEnC,QAAIC,MAAS,KAAQA,MAAS;AAC5B;AAGF,IAAAD,KAAO;AAAA,EACT;AAEA,SAAOD,MAAU,KAAKC,MAAQF,EAAI,SAASA,IAAMA,EAAI,MAAMC,GAAOC,CAAG;AACvE;AAIA,MAAME,IAAqC,IAAI,OAAO,4CAA4C,GAAG,GAE/FC,IAAyC,IAAI,OAAO,6CAA6C,GAAG;AAE1G,SAASC,EAAcC,GAAOC,GAAc;AAC1C,SAAIC,EAAM,QAAQF,CAAK,IACdA,EAAM,IAAI,CAACG,MAASJ,EAAcI,GAAMF,CAAY,CAAC,IAGvDT,EAAa,OAAOQ,CAAK,EAAE,QAAQC,GAAc,EAAE,CAAC;AAC7D;AAEY,MAACG,IAAsB,CAACJ,MAClCD,EAAcC,GAAOH,CAAkC,GAE5CQ,IAAgC,CAACL,MAC5CD,EAAcC,GAAOF,CAAsC;AAEtD,SAASQ,EAAyBC,GAAS;AAChD,QAAMC,IAAoB,uBAAO,OAAO,IAAI;AAE5C,SAAAN,EAAM,QAAQK,EAAQ,OAAM,GAAI,CAACP,GAAOS,MAAW;AACjD,IAAAD,EAAkBC,CAAM,IAAIJ,EAA8BL,CAAK;AAAA,EACjE,CAAC,GAEMQ;AACT;","x_google_ignoreList":[0]}
@@ -0,0 +1,20 @@
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
+ };
20
+ //# sourceMappingURL=speedometer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"speedometer.js","sources":["../../../../../node_modules/axios/lib/helpers/speedometer.js"],"sourcesContent":["'use strict';\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n samplesCount = samplesCount || 10;\n const bytes = new Array(samplesCount);\n const timestamps = new Array(samplesCount);\n let head = 0;\n let tail = 0;\n let firstSampleTS;\n\n min = min !== undefined ? min : 1000;\n\n return function push(chunkLength) {\n const now = Date.now();\n\n const startedAt = timestamps[tail];\n\n if (!firstSampleTS) {\n firstSampleTS = now;\n }\n\n bytes[head] = chunkLength;\n timestamps[head] = now;\n\n let i = tail;\n let bytesCount = 0;\n\n while (i !== head) {\n bytesCount += bytes[i++];\n i = i % samplesCount;\n }\n\n head = (head + 1) % samplesCount;\n\n if (head === tail) {\n tail = (tail + 1) % samplesCount;\n }\n\n if (now - firstSampleTS < min) {\n return;\n }\n\n const passed = startedAt && now - startedAt;\n\n return passed ? Math.round((bytesCount * 1000) / passed) : undefined;\n };\n}\n\nexport default speedometer;\n"],"names":["speedometer","samplesCount","min","bytes","timestamps","head","tail","firstSampleTS","chunkLength","now","startedAt","i","bytesCount","passed"],"mappings":"AAQA,SAASA,EAAYC,GAAcC,GAAK;AACtC,EAAAD,IAAeA,KAAgB;AAC/B,QAAME,IAAQ,IAAI,MAAMF,CAAY,GAC9BG,IAAa,IAAI,MAAMH,CAAY;AACzC,MAAII,IAAO,GACPC,IAAO,GACPC;AAEJ,SAAAL,IAAMA,MAAQ,SAAYA,IAAM,KAEzB,SAAcM,GAAa;AAChC,UAAMC,IAAM,KAAK,IAAG,GAEdC,IAAYN,EAAWE,CAAI;AAEjC,IAAKC,MACHA,IAAgBE,IAGlBN,EAAME,CAAI,IAAIG,GACdJ,EAAWC,CAAI,IAAII;AAEnB,QAAIE,IAAIL,GACJM,IAAa;AAEjB,WAAOD,MAAMN;AACX,MAAAO,KAAcT,EAAMQ,GAAG,GACvBA,IAAIA,IAAIV;AASV,QANAI,KAAQA,IAAO,KAAKJ,GAEhBI,MAASC,MACXA,KAAQA,IAAO,KAAKL,IAGlBQ,IAAMF,IAAgBL;AACxB;AAGF,UAAMW,IAASH,KAAaD,IAAMC;AAElC,WAAOG,IAAS,KAAK,MAAOD,IAAa,MAAQC,CAAM,IAAI;AAAA,EAC7D;AACF;","x_google_ignoreList":[0]}
@@ -0,0 +1,9 @@
1
+ function u(n) {
2
+ return function(r) {
3
+ return n.apply(null, r);
4
+ };
5
+ }
6
+ export {
7
+ u as default
8
+ };
9
+ //# sourceMappingURL=spread.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spread.js","sources":["../../../../../node_modules/axios/lib/helpers/spread.js"],"sourcesContent":["'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * const args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\nexport default function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n}\n"],"names":["spread","callback","arr"],"mappings":"AAuBe,SAASA,EAAOC,GAAU;AACvC,SAAO,SAAcC,GAAK;AACxB,WAAOD,EAAS,MAAM,MAAMC,CAAG;AAAA,EACjC;AACF;","x_google_ignoreList":[0]}
@@ -0,0 +1,16 @@
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(...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
+ };
16
+ //# sourceMappingURL=throttle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"throttle.js","sources":["../../../../../node_modules/axios/lib/helpers/throttle.js"],"sourcesContent":["/**\n * Throttle decorator\n * @param {Function} fn\n * @param {Number} freq\n * @return {Function}\n */\nfunction throttle(fn, freq) {\n let timestamp = 0;\n let threshold = 1000 / freq;\n let lastArgs;\n let timer;\n\n const invoke = (args, now = Date.now()) => {\n timestamp = now;\n lastArgs = null;\n if (timer) {\n clearTimeout(timer);\n timer = null;\n }\n fn(...args);\n };\n\n const throttled = (...args) => {\n const now = Date.now();\n const passed = now - timestamp;\n if (passed >= threshold) {\n invoke(args, now);\n } else {\n lastArgs = args;\n if (!timer) {\n timer = setTimeout(() => {\n timer = null;\n invoke(lastArgs);\n }, threshold - passed);\n }\n }\n };\n\n const flush = () => lastArgs && invoke(lastArgs);\n\n return [throttled, flush];\n}\n\nexport default throttle;\n"],"names":["throttle","fn","freq","timestamp","threshold","lastArgs","timer","invoke","args","now","passed"],"mappings":"AAMA,SAASA,EAASC,GAAIC,GAAM;AAC1B,MAAIC,IAAY,GACZC,IAAY,MAAOF,GACnBG,GACAC;AAEJ,QAAMC,IAAS,CAACC,GAAMC,IAAM,KAAK,IAAG,MAAO;AACzC,IAAAN,IAAYM,GACZJ,IAAW,MACPC,MACF,aAAaA,CAAK,GAClBA,IAAQ,OAEVL,EAAG,GAAGO,CAAI;AAAA,EACZ;AAoBA,SAAO,CAlBW,IAAIA,MAAS;AAC7B,UAAMC,IAAM,KAAK,IAAG,GACdC,IAASD,IAAMN;AACrB,IAAIO,KAAUN,IACZG,EAAOC,GAAMC,CAAG,KAEhBJ,IAAWG,GACNF,MACHA,IAAQ,WAAW,MAAM;AACvB,MAAAA,IAAQ,MACRC,EAAOF,CAAQ;AAAA,IACjB,GAAGD,IAAYM,CAAM;AAAA,EAG3B,GAEc,MAAML,KAAYE,EAAOF,CAAQ,CAEvB;AAC1B;","x_google_ignoreList":[0]}
@@ -0,0 +1,115 @@
1
+ import n from "../utils.js";
2
+ import p from "../core/AxiosError.js";
3
+ const D = 100;
4
+ function m(e) {
5
+ return n.isPlainObject(e) || n.isArray(e);
6
+ }
7
+ function F(e) {
8
+ return n.endsWith(e, "[]") ? e.slice(0, -2) : e;
9
+ }
10
+ function E(e, s, f) {
11
+ return e ? e.concat(s).map(function(c, u) {
12
+ return c = F(c), !f && u ? "[" + c + "]" : c;
13
+ }).join(f ? "." : "") : s;
14
+ }
15
+ function S(e) {
16
+ return n.isArray(e) && !e.some(m);
17
+ }
18
+ const U = n.toFlatObject(n, {}, null, function(s) {
19
+ return /^is[A-Z]/.test(s);
20
+ });
21
+ function P(e, s, f) {
22
+ if (!n.isObject(e))
23
+ throw new TypeError("target must be an object");
24
+ s = s || new FormData(), f = n.toFlatObject(
25
+ f,
26
+ {
27
+ metaTokens: !0,
28
+ dots: !1,
29
+ indexes: !1
30
+ },
31
+ !1,
32
+ function(i, r) {
33
+ return !n.isUndefined(r[i]);
34
+ }
35
+ );
36
+ const B = f.metaTokens, c = f.visitor || x, u = f.dots, O = f.indexes, h = f.Blob || typeof Blob < "u" && Blob, a = f.maxDepth === void 0 ? D : f.maxDepth, A = h && n.isSpecCompliantForm(s), w = [];
37
+ if (!n.isFunction(c))
38
+ throw new TypeError("visitor must be a function");
39
+ function b(t) {
40
+ if (t === null) return "";
41
+ if (n.isDate(t))
42
+ return t.toISOString();
43
+ if (n.isBoolean(t))
44
+ return t.toString();
45
+ if (!A && n.isBlob(t))
46
+ throw new p("Blob is not supported. Use a Buffer instead.");
47
+ if (n.isArrayBuffer(t) || n.isTypedArray(t)) {
48
+ if (A && typeof h == "function")
49
+ return new h([t]);
50
+ if (typeof Buffer < "u")
51
+ return Buffer.from(t);
52
+ throw new p("Blob is not supported. Use a Buffer instead.", p.ERR_NOT_SUPPORT);
53
+ }
54
+ return t;
55
+ }
56
+ function T(t) {
57
+ if (t > a)
58
+ throw new p(
59
+ "Object is too deeply nested (" + t + " levels). Max depth: " + a,
60
+ p.ERR_FORM_DATA_DEPTH_EXCEEDED
61
+ );
62
+ }
63
+ function g(t, i) {
64
+ if (a === 1 / 0)
65
+ return JSON.stringify(t);
66
+ const r = [];
67
+ return JSON.stringify(t, function(d, o) {
68
+ if (!n.isObject(o))
69
+ return o;
70
+ for (; r.length && r[r.length - 1] !== this; )
71
+ r.pop();
72
+ return r.push(o), T(i + r.length - 1), o;
73
+ });
74
+ }
75
+ function x(t, i, r) {
76
+ let l = t;
77
+ if (n.isReactNative(s) && n.isReactNativeBlob(t))
78
+ return s.append(E(r, i, u), b(t)), !1;
79
+ if (t && !r && typeof t == "object") {
80
+ if (n.endsWith(i, "{}"))
81
+ i = B ? i : i.slice(0, -2), t = g(t, 1);
82
+ else if (n.isArray(t) && S(t) || (n.isFileList(t) || n.endsWith(i, "[]")) && (l = n.toArray(t)))
83
+ return i = F(i), l.forEach(function(o, j) {
84
+ !(n.isUndefined(o) || o === null) && s.append(
85
+ // eslint-disable-next-line no-nested-ternary
86
+ O === !0 ? E([i], j, u) : O === null ? i : i + "[]",
87
+ b(o)
88
+ );
89
+ }), !1;
90
+ }
91
+ return m(t) ? !0 : (s.append(E(r, i, u), b(t)), !1);
92
+ }
93
+ const R = Object.assign(U, {
94
+ defaultVisitor: x,
95
+ convertValue: b,
96
+ isVisitable: m
97
+ });
98
+ function _(t, i, r = 0) {
99
+ if (!n.isUndefined(t)) {
100
+ if (T(r), w.indexOf(t) !== -1)
101
+ throw new Error("Circular reference detected in " + i.join("."));
102
+ w.push(t), n.forEach(t, function(d, o) {
103
+ (!(n.isUndefined(d) || d === null) && c.call(s, d, n.isString(o) ? o.trim() : o, i, R)) === !0 && _(d, i ? i.concat(o) : [o], r + 1);
104
+ }), w.pop();
105
+ }
106
+ }
107
+ if (!n.isObject(e))
108
+ throw new TypeError("data must be an object");
109
+ return _(e), s;
110
+ }
111
+ export {
112
+ D as DEFAULT_FORM_DATA_MAX_DEPTH,
113
+ P as default
114
+ };
115
+ //# sourceMappingURL=toFormData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toFormData.js","sources":["../../../../../node_modules/axios/lib/helpers/toFormData.js"],"sourcesContent":["'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\n// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored\nimport PlatformFormData from '../platform/node/classes/FormData.js';\n\n// Default nesting limit shared with the inverse transform (formDataToJSON) so\n// the FormData <-> JSON round-trip stays symmetric.\nexport const DEFAULT_FORM_DATA_MAX_DEPTH = 100;\n\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\nfunction isVisitable(thing) {\n return utils.isPlainObject(thing) || utils.isArray(thing);\n}\n\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\nfunction removeBrackets(key) {\n return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\nfunction renderKey(path, key, dots) {\n if (!path) return key;\n return path\n .concat(key)\n .map(function each(token, i) {\n // eslint-disable-next-line no-param-reassign\n token = removeBrackets(token);\n return !dots && i ? '[' + token + ']' : token;\n })\n .join(dots ? '.' : '');\n}\n\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array<any>} arr - The array to check\n *\n * @returns {boolean}\n */\nfunction isFlatArray(arr) {\n return utils.isArray(arr) && !arr.some(isVisitable);\n}\n\nconst predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {\n return /^is[A-Z]/.test(prop);\n});\n\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object<any, any>} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object<string, any>} options\n *\n * @returns\n */\nfunction toFormData(obj, formData, options) {\n if (!utils.isObject(obj)) {\n throw new TypeError('target must be an object');\n }\n\n // eslint-disable-next-line no-param-reassign\n formData = formData || new (PlatformFormData || FormData)();\n\n // eslint-disable-next-line no-param-reassign\n options = utils.toFlatObject(\n options,\n {\n metaTokens: true,\n dots: false,\n indexes: false,\n },\n false,\n function defined(option, source) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n return !utils.isUndefined(source[option]);\n }\n );\n\n const metaTokens = options.metaTokens;\n // eslint-disable-next-line no-use-before-define\n const visitor = options.visitor || defaultVisitor;\n const dots = options.dots;\n const indexes = options.indexes;\n const _Blob = options.Blob || (typeof Blob !== 'undefined' && Blob);\n const maxDepth = options.maxDepth === undefined ? DEFAULT_FORM_DATA_MAX_DEPTH : options.maxDepth;\n const useBlob = _Blob && utils.isSpecCompliantForm(formData);\n const stack = [];\n\n if (!utils.isFunction(visitor)) {\n throw new TypeError('visitor must be a function');\n }\n\n function convertValue(value) {\n if (value === null) return '';\n\n if (utils.isDate(value)) {\n return value.toISOString();\n }\n\n if (utils.isBoolean(value)) {\n return value.toString();\n }\n\n if (!useBlob && utils.isBlob(value)) {\n throw new AxiosError('Blob is not supported. Use a Buffer instead.');\n }\n\n if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {\n if (useBlob && typeof _Blob === 'function') {\n return new _Blob([value]);\n }\n if (typeof Buffer !== 'undefined') {\n return Buffer.from(value);\n }\n throw new AxiosError('Blob is not supported. Use a Buffer instead.', AxiosError.ERR_NOT_SUPPORT);\n }\n\n return value;\n }\n\n function throwIfMaxDepthExceeded(depth) {\n if (depth > maxDepth) {\n throw new AxiosError(\n 'Object is too deeply nested (' + depth + ' levels). Max depth: ' + maxDepth,\n AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED\n );\n }\n }\n\n function stringifyWithDepthLimit(value, depth) {\n if (maxDepth === Infinity) {\n return JSON.stringify(value);\n }\n\n const ancestors = [];\n\n return JSON.stringify(value, function limitDepth(_key, currentValue) {\n if (!utils.isObject(currentValue)) {\n return currentValue;\n }\n\n while (ancestors.length && ancestors[ancestors.length - 1] !== this) {\n ancestors.pop();\n }\n\n ancestors.push(currentValue);\n throwIfMaxDepthExceeded(depth + ancestors.length - 1);\n\n return currentValue;\n });\n }\n\n /**\n * Default visitor.\n *\n * @param {*} value\n * @param {String|Number} key\n * @param {Array<String|Number>} path\n * @this {FormData}\n *\n * @returns {boolean} return true to visit the each prop of the value recursively\n */\n function defaultVisitor(value, key, path) {\n let arr = value;\n\n if (utils.isReactNative(formData) && utils.isReactNativeBlob(value)) {\n formData.append(renderKey(path, key, dots), convertValue(value));\n return false;\n }\n\n if (value && !path && typeof value === 'object') {\n if (utils.endsWith(key, '{}')) {\n // eslint-disable-next-line no-param-reassign\n key = metaTokens ? key : key.slice(0, -2);\n // eslint-disable-next-line no-param-reassign\n value = stringifyWithDepthLimit(value, 1);\n } else if (\n (utils.isArray(value) && isFlatArray(value)) ||\n ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value)))\n ) {\n // eslint-disable-next-line no-param-reassign\n key = removeBrackets(key);\n\n arr.forEach(function each(el, index) {\n !(utils.isUndefined(el) || el === null) &&\n formData.append(\n // eslint-disable-next-line no-nested-ternary\n indexes === true\n ? renderKey([key], index, dots)\n : indexes === null\n ? key\n : key + '[]',\n convertValue(el)\n );\n });\n return false;\n }\n }\n\n if (isVisitable(value)) {\n return true;\n }\n\n formData.append(renderKey(path, key, dots), convertValue(value));\n\n return false;\n }\n\n const exposedHelpers = Object.assign(predicates, {\n defaultVisitor,\n convertValue,\n isVisitable,\n });\n\n function build(value, path, depth = 0) {\n if (utils.isUndefined(value)) return;\n\n throwIfMaxDepthExceeded(depth);\n\n if (stack.indexOf(value) !== -1) {\n throw new Error('Circular reference detected in ' + path.join('.'));\n }\n\n stack.push(value);\n\n utils.forEach(value, function each(el, key) {\n const result =\n !(utils.isUndefined(el) || el === null) &&\n visitor.call(formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers);\n\n if (result === true) {\n build(el, path ? path.concat(key) : [key], depth + 1);\n }\n });\n\n stack.pop();\n }\n\n if (!utils.isObject(obj)) {\n throw new TypeError('data must be an object');\n }\n\n build(obj);\n\n return formData;\n}\n\nexport default toFormData;\n"],"names":["DEFAULT_FORM_DATA_MAX_DEPTH","isVisitable","thing","utils","removeBrackets","key","renderKey","path","dots","token","i","isFlatArray","arr","predicates","prop","toFormData","obj","formData","options","option","source","metaTokens","visitor","defaultVisitor","indexes","_Blob","maxDepth","useBlob","stack","convertValue","value","AxiosError","throwIfMaxDepthExceeded","depth","stringifyWithDepthLimit","ancestors","_key","currentValue","el","index","exposedHelpers","build"],"mappings":";;AASY,MAACA,IAA8B;AAS3C,SAASC,EAAYC,GAAO;AAC1B,SAAOC,EAAM,cAAcD,CAAK,KAAKC,EAAM,QAA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,MAAM;AAC3B,cAAM,IAAI,MAAM,oCAAoCvB,EAAK,KAAK,GAAG,CAAC;AAGpE,MAAAqB,EAAM,KAAKE,CAAK,GAEhB3B,EAAM,QAAQ2B,GAAO,SAAcQ,GAAIjC,GAAK;AAK1C,SAHE,EAAEF,EAAM,YAAYmC,CAAE,KAAKA,MAAO,SAClChB,EAAQ,KAAKL,GAAUqB,GAAInC,EAAM,SAASE,CAAG,IAAIA,EAAI,KAAI,IAAKA,GAAKE,GAAMiC,CAAc,OAE1E,MACbC,EAAMH,GAAI/B,IAAOA,EAAK,OAAOF,CAAG,IAAI,CAACA,CAAG,GAAG4B,IAAQ,CAAC;AAAA,MAExD,CAAC,GAEDL,EAAM,IAAG;AAAA;AAAA,EACX;AAEA,MAAI,CAACzB,EAAM,SAASa,CAAG;AACrB,UAAM,IAAI,UAAU,wBAAwB;AAG9C,SAAAyB,EAAMzB,CAAG,GAEFC;AACT;","x_google_ignoreList":[0]}
@@ -0,0 +1,15 @@
1
+ import s from "../utils.js";
2
+ import f from "./toFormData.js";
3
+ import r from "../platform/index.js";
4
+ function d(o, i) {
5
+ return f(o, new r.classes.URLSearchParams(), {
6
+ visitor: function(t, a, n, e) {
7
+ return r.isNode && s.isBuffer(t) ? (this.append(a, t.toString("base64")), !1) : e.defaultVisitor.apply(this, arguments);
8
+ },
9
+ ...i
10
+ });
11
+ }
12
+ export {
13
+ d as default
14
+ };
15
+ //# sourceMappingURL=toURLEncodedForm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toURLEncodedForm.js","sources":["../../../../../node_modules/axios/lib/helpers/toURLEncodedForm.js"],"sourcesContent":["'use strict';\n\nimport utils from '../utils.js';\nimport toFormData from './toFormData.js';\nimport platform from '../platform/index.js';\n\nexport default function toURLEncodedForm(data, options) {\n return toFormData(data, new platform.classes.URLSearchParams(), {\n visitor: function (value, key, path, helpers) {\n if (platform.isNode && utils.isBuffer(value)) {\n this.append(key, value.toString('base64'));\n return false;\n }\n\n return helpers.defaultVisitor.apply(this, arguments);\n },\n ...options,\n });\n}\n"],"names":["toURLEncodedForm","data","options","toFormData","platform","value","key","path","helpers","utils"],"mappings":";;;AAMe,SAASA,EAAiBC,GAAMC,GAAS;AACtD,SAAOC,EAAWF,GAAM,IAAIG,EAAS,QAAQ,gBAAe,GAAI;AAAA,IAC9D,SAAS,SAAUC,GAAOC,GAAKC,GAAMC,GAAS;AAC5C,aAAIJ,EAAS,UAAUK,EAAM,SAASJ,CAAK,KACzC,KAAK,OAAOC,GAAKD,EAAM,SAAS,QAAQ,CAAC,GAClC,MAGFG,EAAQ,eAAe,MAAM,MAAM,SAAS;AAAA,IACrD;AAAA,IACA,GAAGN;AAAA,EACP,CAAG;AACH;","x_google_ignoreList":[0]}
@@ -0,0 +1,67 @@
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
+ {
36
+ async pull(l) {
37
+ try {
38
+ const { done: i, value: y } = await r.next();
39
+ if (i) {
40
+ c(), l.close();
41
+ return;
42
+ }
43
+ let s = y.byteLength;
44
+ if (n) {
45
+ let u = d += s;
46
+ n(u);
47
+ }
48
+ l.enqueue(new Uint8Array(y));
49
+ } catch (i) {
50
+ throw c(i), i;
51
+ }
52
+ },
53
+ cancel(l) {
54
+ return c(l), r.return();
55
+ }
56
+ },
57
+ {
58
+ highWaterMark: 2
59
+ }
60
+ );
61
+ };
62
+ export {
63
+ w as readBytes,
64
+ f as streamChunk,
65
+ h as trackStream
66
+ };
67
+ //# sourceMappingURL=trackStream.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trackStream.js","sources":["../../../../../node_modules/axios/lib/helpers/trackStream.js"],"sourcesContent":["export const streamChunk = function* (chunk, chunkSize) {\n let len = chunk.byteLength;\n\n if (!chunkSize || len < chunkSize) {\n yield chunk;\n return;\n }\n\n let pos = 0;\n let end;\n\n while (pos < len) {\n end = pos + chunkSize;\n yield chunk.slice(pos, end);\n pos = end;\n }\n};\n\nexport const readBytes = async function* (iterable, chunkSize) {\n for await (const chunk of readStream(iterable)) {\n yield* streamChunk(chunk, chunkSize);\n }\n};\n\nconst readStream = async function* (stream) {\n if (stream[Symbol.asyncIterator]) {\n yield* stream;\n return;\n }\n\n const reader = stream.getReader();\n try {\n for (;;) {\n const { done, value } = await reader.read();\n if (done) {\n break;\n }\n yield value;\n }\n } finally {\n await reader.cancel();\n }\n};\n\nexport const trackStream = (stream, chunkSize, onProgress, onFinish) => {\n const iterator = readBytes(stream, chunkSize);\n\n let bytes = 0;\n let done;\n let _onFinish = (e) => {\n if (!done) {\n done = true;\n onFinish && onFinish(e);\n }\n };\n\n return new ReadableStream(\n {\n async pull(controller) {\n try {\n const { done, value } = await iterator.next();\n\n if (done) {\n _onFinish();\n controller.close();\n return;\n }\n\n let len = value.byteLength;\n if (onProgress) {\n let loadedBytes = (bytes += len);\n onProgress(loadedBytes);\n }\n controller.enqueue(new Uint8Array(value));\n } catch (err) {\n _onFinish(err);\n throw err;\n }\n },\n cancel(reason) {\n _onFinish(reason);\n return iterator.return();\n },\n },\n {\n highWaterMark: 2,\n }\n );\n};\n"],"names":["streamChunk","chunk","chunkSize","len","pos","end","readBytes","iterable","readStream","stream","reader","done","value","trackStream","onProgress","onFinish","iterator","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5B,YAAAW,EAAWO,CAAW;AAAA,UACxB;AACA,UAAAD,EAAW,QAAQ,IAAI,WAAWR,CAAK,CAAC;AAAA,QAC1C,SAASU,GAAK;AACZ,gBAAAJ,EAAUI,CAAG,GACPA;AAAA,QACR;AAAA,MACF;AAAA,MACA,OAAOC,GAAQ;AACb,eAAAL,EAAUK,CAAM,GACTP,EAAS,OAAM;AAAA,MACxB;AAAA,IACN;AAAA,IACI;AAAA,MACE,eAAe;AAAA,IACrB;AAAA,EACA;AACA;","x_google_ignoreList":[0]}
@@ -0,0 +1,58 @@
1
+ import { VERSION as d } from "../env/data.js";
2
+ import a from "../core/AxiosError.js";
3
+ const u = {};
4
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((n, e) => {
5
+ u[n] = function(o) {
6
+ return typeof o === n || "a" + (e < 1 ? "n " : " ") + n;
7
+ };
8
+ });
9
+ const f = {};
10
+ u.transitional = function(e, i, o) {
11
+ function l(t, r) {
12
+ return "[Axios v" + d + "] Transitional option '" + t + "'" + r + (o ? ". " + o : "");
13
+ }
14
+ return (t, r, s) => {
15
+ if (e === !1)
16
+ throw new a(
17
+ l(r, " has been removed" + (i ? " in " + i : "")),
18
+ a.ERR_DEPRECATED
19
+ );
20
+ return i && !f[r] && (f[r] = !0, console.warn(
21
+ l(
22
+ r,
23
+ " has been deprecated since v" + i + " and will be removed in the near future"
24
+ )
25
+ )), e ? e(t, r, s) : !0;
26
+ };
27
+ };
28
+ u.spelling = function(e) {
29
+ return (i, o) => (console.warn(`${o} is likely a misspelling of ${e}`), !0);
30
+ };
31
+ function w(n, e, i) {
32
+ if (typeof n != "object" || n === null)
33
+ throw new a("options must be an object", a.ERR_BAD_OPTION_VALUE);
34
+ const o = Object.keys(n);
35
+ let l = o.length;
36
+ for (; l-- > 0; ) {
37
+ const t = o[l], r = Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0;
38
+ if (r) {
39
+ const s = n[t], c = s === void 0 || r(s, t, n);
40
+ if (c !== !0)
41
+ throw new a(
42
+ "option " + t + " must be " + c,
43
+ a.ERR_BAD_OPTION_VALUE
44
+ );
45
+ continue;
46
+ }
47
+ if (i !== !0)
48
+ throw new a("Unknown option " + t, a.ERR_BAD_OPTION);
49
+ }
50
+ }
51
+ const O = {
52
+ assertOptions: w,
53
+ validators: u
54
+ };
55
+ export {
56
+ O as default
57
+ };
58
+ //# sourceMappingURL=validator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validator.js","sources":["../../../../../node_modules/axios/lib/helpers/validator.js"],"sourcesContent":["'use strict';\n\nimport { VERSION } from '../env/data.js';\nimport AxiosError from '../core/AxiosError.js';\n\nconst validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nconst deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n *\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n *\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return (\n '[Axios v' +\n VERSION +\n \"] Transitional option '\" +\n opt +\n \"'\" +\n desc +\n (message ? '. ' + message : '')\n );\n }\n\n // eslint-disable-next-line func-names\n return (value, opt, opts) => {\n if (validator === false) {\n throw new AxiosError(\n formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),\n AxiosError.ERR_DEPRECATED\n );\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\nvalidators.spelling = function spelling(correctSpelling) {\n return (value, opt) => {\n // eslint-disable-next-line no-console\n console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);\n return true;\n };\n};\n\n/**\n * Assert object's properties type\n *\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n *\n * @returns {object}\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object' || options === null) {\n throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);\n }\n const keys = Object.keys(options);\n let i = keys.length;\n while (i-- > 0) {\n const opt = keys[i];\n // Use hasOwnProperty so a polluted Object.prototype.<opt> cannot supply\n // a non-function validator and cause a TypeError.\n const validator = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : undefined;\n if (validator) {\n const value = options[opt];\n const result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new AxiosError(\n 'option ' + opt + ' must be ' + result,\n AxiosError.ERR_BAD_OPTION_VALUE\n );\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);\n }\n }\n}\n\nexport default {\n assertOptions,\n validators,\n};\n"],"names":["validators","type","i","thing","deprecatedWarnings","validator","version","message","formatMessage","opt","desc","VERSION","value","opts","AxiosError","correctSpelling","assertOptions","options","schema","allowUnknown","keys","result"],"mappings":";;AAKA,MAAMA,IAAa,CAAA;AAGnB,CAAC,UAAU,WAAW,UAAU,YAAY,UAAU,QAAQ,EAAE,QAAQ,CAACC,GAAMC,MAAM;AACnF,EAAAF,EAAWC,CAAI,IAAI,SAAmBE,GAAO;AAC3C,WAAO,OAAOA,MAAUF,KAAQ,OAAOC,IAAI,IAAI,OAAO,OAAOD;AAAA,EAC/D;AACF,CAAC;AAED,MAAMG,IAAqB,CAAA;AAW3BJ,EAAW,eAAe,SAAsBK,GAAWC,GAASC,GAAS;AAC3E,WAASC,EAAcC,GAAKC,GAAM;AAChC,WACE,aACAC,IACA,4BACAF,IACA,MACAC,KACCH,IAAU,OAAOA,IAAU;AAAA,EAEhC;AAGA,SAAO,CAACK,GAAOH,GAAKI,MAAS;AA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typeof Blob < "u" ? Blob : null;
2
+ export {
3
+ l as default
4
+ };
5
+ //# sourceMappingURL=Blob.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Blob.js","sources":["../../../../../../../node_modules/axios/lib/platform/browser/classes/Blob.js"],"sourcesContent":["'use strict';\n\nexport default typeof Blob !== 'undefined' ? Blob : null;\n"],"names":["Blob$1"],"mappings":"AAEA,MAAAA,IAAe,OAAO,OAAS,MAAc,OAAO;","x_google_ignoreList":[0]}
@@ -0,0 +1,5 @@
1
+ const a = typeof FormData < "u" ? FormData : null;
2
+ export {
3
+ a as default
4
+ };
5
+ //# sourceMappingURL=FormData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormData.js","sources":["../../../../../../../node_modules/axios/lib/platform/browser/classes/FormData.js"],"sourcesContent":["'use strict';\n\nexport default typeof FormData !== 'undefined' ? FormData : null;\n"],"names":["FormData$1"],"mappings":"AAEA,MAAAA,IAAe,OAAO,WAAa,MAAc,WAAW;","x_google_ignoreList":[0]}
@@ -0,0 +1,6 @@
1
+ import a from "../../../helpers/AxiosURLSearchParams.js";
2
+ const e = typeof URLSearchParams < "u" ? URLSearchParams : a;
3
+ export {
4
+ e as default
5
+ };
6
+ //# sourceMappingURL=URLSearchParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"URLSearchParams.js","sources":["../../../../../../../node_modules/axios/lib/platform/browser/classes/URLSearchParams.js"],"sourcesContent":["'use strict';\n\nimport AxiosURLSearchParams from '../../../helpers/AxiosURLSearchParams.js';\nexport default typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;\n"],"names":["URLSearchParams$1","AxiosURLSearchParams"],"mappings":";AAGA,MAAAA,IAAe,OAAO,kBAAoB,MAAc,kBAAkBC;","x_google_ignoreList":[0]}
@@ -0,0 +1,16 @@
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
+ };
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../node_modules/axios/lib/platform/browser/index.js"],"sourcesContent":["import URLSearchParams from './classes/URLSearchParams.js';\nimport FormData from './classes/FormData.js';\nimport Blob from './classes/Blob.js';\n\nexport default {\n isBrowser: true,\n classes: {\n URLSearchParams,\n FormData,\n Blob,\n },\n protocols: ['http', 'https', 'file', 'blob', 'url', 'data'],\n};\n"],"names":["platform","URLSearchParams","FormData","Blob"],"mappings":";;;AAIA,MAAAA,IAAe;AAAA,EACb,WAAW;AAAA,EACX,SAAS;AAAA,IACP,iBAAAC;AAAA,IACA,UAAAC;AAAA,IACA,MAAAC;AAAA,EACJ;AAAA,EACE,WAAW,CAAC,QAAQ,SAAS,QAAQ,QAAQ,OAAO,MAAM;AAC5D;","x_google_ignoreList":[0]}
@@ -0,0 +1,10 @@
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
+ };
10
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sources":["../../../../../../node_modules/axios/lib/platform/common/utils.js"],"sourcesContent":["const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';\n\nconst _navigator = (typeof navigator === 'object' && navigator) || undefined;\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n *\n * @returns {boolean}\n */\nconst hasStandardBrowserEnv =\n hasBrowserEnv &&\n (!_navigator || ['ReactNative', 'NativeScript', 'NS'].indexOf(_navigator.product) < 0);\n\n/**\n * Determine if we're running in a standard browser webWorker environment\n *\n * Although the `isStandardBrowserEnv` method indicates that\n * `allows axios to run in a web worker`, the WebWorker will still be\n * filtered out due to its judgment standard\n * `typeof window !== 'undefined' && typeof document !== 'undefined'`.\n * This leads to a problem when axios post `FormData` in webWorker\n */\nconst hasStandardBrowserWebWorkerEnv = (() => {\n return (\n typeof WorkerGlobalScope !== 'undefined' &&\n // eslint-disable-next-line no-undef\n self instanceof WorkerGlobalScope &&\n typeof self.importScripts === 'function'\n );\n})();\n\nconst origin = (hasBrowserEnv && window.location.href) || 'http://localhost';\n\nexport {\n hasBrowserEnv,\n hasStandardBrowserWebWorkerEnv,\n hasStandardBrowserEnv,\n _navigator as navigator,\n origin,\n};\n"],"names":["hasBrowserEnv","_navigator","hasStandardBrowserEnv","hasStandardBrowserWebWorkerEnv","origin"],"mappings":"AAAK,MAACA,IAAgB,OAAO,SAAW,OAAe,OAAO,WAAa,KAErEC,IAAc,OAAO,aAAc,YAAY,aAAc,QAmB7DC,IACJF,MACC,CAACC,KAAc,CAAC,eAAe,gBAAgB,IAAI,EAAE,QAAQA,EAAW,OAAO,IAAI,IAWhFE,IAEF,OAAO,oBAAsB;AAE7B,gBAAgB,qBAChB,OAAO,KAAK,iBAAkB,YAI5BC,IAAUJ,KAAiB,OAAO,SAAS,QAAS;","x_google_ignoreList":[0]}
@@ -0,0 +1,10 @@
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
+ };
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../node_modules/axios/lib/platform/index.js"],"sourcesContent":["import platform from './node/index.js';\nimport * as utils from './common/utils.js';\n\nexport default {\n ...utils,\n ...platform,\n};\n"],"names":["platform","utils"],"mappings":";;AAGA,MAAAA,IAAe;AAAA,EACb,GAAGC;AAAA,EACH,GAAGD;AACL;","x_google_ignoreList":[0]}