@unicom-cloud/utils 0.1.26 → 0.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/axios/chunk/BJvTEV6n.js +253 -0
- package/axios/{lib/core/AxiosError.js → chunk/CB3wlosT.js} +5 -5
- package/axios/index.d.ts +6 -1
- package/axios/index.js +22 -20
- package/axios/lib/axios.js +1633 -45
- package/axios/lib/utils.js +3 -246
- package/{axios-mock-adapter → axios/mock-adapter}/index.js +16 -17
- package/{axios-mock-adapter → axios/mock-adapter}/request.js +5 -6
- package/{axios-mock-adapter → axios/mock-adapter}/utils.js +13 -12
- package/case-name/index.js +1 -1
- package/caseName.js +1 -1
- package/class-name/index.js +1 -1
- package/className.js +1 -1
- package/clipboard-copy/index.js +1 -1
- package/clipboardCopy.js +1 -1
- package/constant/address.js +1 -1
- package/constant/chineseCharacters.js +1 -1
- package/constant/constellations.js +1 -1
- package/constant/domain.js +1 -1
- package/constant/emoji.js +1 -1
- package/constant/identity.js +1 -1
- package/constant/index.js +1 -1
- package/constant/keyboardCode.js +1 -1
- package/constant/licensePlate.js +1 -1
- package/constant/name.js +1 -1
- package/constant/platform.js +16 -17
- package/constant/protocol.js +1 -1
- package/constant/ui.js +16 -16
- package/constant.js +1 -1
- package/content-disposition/index.js +1 -1
- package/contentDisposition.js +1 -1
- package/cookie/index.js +1 -1
- package/cookie/src/index.js +1 -1
- package/cookie.js +1 -1
- package/date/convertTime.js +1 -1
- package/date/convertToDuration.js +1 -1
- package/date/index.js +1 -1
- package/date.js +1 -1
- package/decimal/decimal.js +1 -8
- package/decimal/index.js +1 -1
- package/decimal.js +1 -1
- package/dom-helpers/activeElement.js +1 -1
- package/dom-helpers/addClass.js +1 -1
- package/dom-helpers/addEventListener.js +1 -1
- package/dom-helpers/animate.js +1 -1
- package/dom-helpers/animationFrame.js +1 -1
- package/dom-helpers/attribute.js +1 -1
- package/dom-helpers/camelize.js +1 -1
- package/dom-helpers/camelizeStyle.js +1 -1
- package/dom-helpers/canUseDOM.js +1 -1
- package/dom-helpers/childElements.js +1 -1
- package/dom-helpers/childNodes.js +1 -1
- package/dom-helpers/clear.js +1 -1
- package/dom-helpers/closest.js +1 -1
- package/dom-helpers/collectElements.js +1 -1
- package/dom-helpers/collectSiblings.js +1 -1
- package/dom-helpers/contains.js +1 -1
- package/dom-helpers/css.js +1 -1
- package/dom-helpers/filterEventHandler.js +1 -1
- package/dom-helpers/getComputedStyle.js +1 -1
- package/dom-helpers/getScrollAccessor.js +1 -1
- package/dom-helpers/hasClass.js +1 -1
- package/dom-helpers/height.js +1 -1
- package/dom-helpers/hyphenate.js +1 -1
- package/dom-helpers/hyphenateStyle.js +1 -1
- package/dom-helpers/index.js +1 -1
- package/dom-helpers/insertAfter.js +1 -1
- package/dom-helpers/isDocument.js +1 -1
- package/dom-helpers/isInput.js +1 -1
- package/dom-helpers/isTransform.js +1 -1
- package/dom-helpers/isVisible.js +1 -1
- package/dom-helpers/isWindow.js +1 -1
- package/dom-helpers/listen.js +1 -1
- package/dom-helpers/matches.js +1 -1
- package/dom-helpers/nextUntil.js +1 -1
- package/dom-helpers/offset.js +1 -1
- package/dom-helpers/offsetParent.js +1 -1
- package/dom-helpers/ownerDocument.js +1 -1
- package/dom-helpers/ownerWindow.js +1 -1
- package/dom-helpers/parents.js +1 -1
- package/dom-helpers/position.js +1 -1
- package/dom-helpers/prepend.js +1 -1
- package/dom-helpers/querySelectorAll.js +1 -1
- package/dom-helpers/reflow.js +1 -1
- package/dom-helpers/remove.js +1 -1
- package/dom-helpers/removeClass.js +1 -1
- package/dom-helpers/removeEventListener.js +1 -1
- package/dom-helpers/scrollLeft.js +1 -1
- package/dom-helpers/scrollParent.js +1 -1
- package/dom-helpers/scrollTo.js +1 -1
- package/dom-helpers/scrollTop.js +1 -1
- package/dom-helpers/scrollbarSize.js +1 -1
- package/dom-helpers/siblings.js +1 -1
- package/dom-helpers/text.js +1 -1
- package/dom-helpers/toggleClass.js +1 -1
- package/dom-helpers/transitionEnd.js +1 -1
- package/dom-helpers/triggerEvent.js +1 -1
- package/dom-helpers/types.js +1 -1
- package/dom-helpers/width.js +1 -1
- package/domHelpers.js +1 -1
- package/emitter/index.js +1 -1
- package/emitter/src/index.js +1 -1
- package/emitter.js +1 -1
- package/file/fileToURL.js +1 -1
- package/file/index.js +1 -1
- package/file/saveAs.js +1 -1
- package/file.js +1 -1
- package/idb/index.js +1 -1
- package/idb.js +1 -1
- package/index.js +1 -1
- package/invariant/index.js +1 -1
- package/invariant.js +1 -1
- package/is/index.js +1 -1
- package/is.js +1 -1
- package/js-cookie/index.js +1 -1
- package/js-cookie/src/api.js +1 -1
- package/js-cookie/src/assign.js +1 -1
- package/js-cookie/src/converter.js +1 -1
- package/jsCookie.js +1 -1
- package/lunar/index.js +1 -1
- package/lunar/lib/Holiday.js +1 -1
- package/lunar/lib/HolidayUtil.js +1 -1
- package/lunar/lib/I18n.js +1 -1
- package/lunar/lib/JieQi.js +1 -1
- package/lunar/lib/Lunar.js +1 -1
- package/lunar/lib/LunarMonth.js +1 -1
- package/lunar/lib/LunarTime.js +1 -1
- package/lunar/lib/LunarUtil.js +1 -1
- package/lunar/lib/LunarYear.js +1 -1
- package/lunar/lib/ShouXingUtil.js +1 -1
- package/lunar/lib/Solar.js +1 -1
- package/lunar/lib/SolarHalfYear.js +1 -1
- package/lunar/lib/SolarMonth.js +1 -1
- package/lunar/lib/SolarSeason.js +1 -1
- package/lunar/lib/SolarUtil.js +1 -1
- package/lunar/lib/SolarWeek.js +1 -1
- package/lunar/lib/SolarYear.js +1 -1
- package/lunar/lib/index.js +1 -1
- package/lunar.js +1 -1
- package/math/index.js +1 -1
- package/math.js +1 -1
- package/md5/index.js +1 -1
- package/md5.js +1 -1
- package/mock/MockWebSocket.js +1 -1
- package/mock/MockXMLHttpRequest.js +1 -1
- package/mock/index.js +1 -1
- package/mock.js +1 -1
- package/normalize-wheel/ExecutionEnvironment.js +1 -1
- package/normalize-wheel/UserAgent_DEPRECATED.js +1 -1
- package/normalize-wheel/index.js +1 -1
- package/normalize-wheel/isEventSupported.js +1 -15
- package/normalizeWheel.js +1 -1
- package/number-to-chinese/index.js +1 -1
- package/numberToChinese.js +1 -1
- package/nzh/cn.js +1 -1
- package/nzh/hk.js +1 -1
- package/nzh/index.js +1 -1
- package/nzh/nzh.js +1 -1
- package/nzh/src/autoGet.js +1 -1
- package/nzh/src/index.js +1 -1
- package/nzh/src/langs/cn_b.js +1 -1
- package/nzh/src/langs/cn_s.js +1 -1
- package/nzh/src/langs/hk_b.js +1 -1
- package/nzh/src/langs/hk_s.js +1 -1
- package/nzh/src/utils.js +1 -1
- package/nzh.js +1 -1
- package/object-keys-sort/index.js +1 -1
- package/object-prototype-to-string-call/index.js +1 -1
- package/objectKeysSort.js +1 -1
- package/objectPrototypeToStringCall.js +1 -1
- package/package.json +1 -1
- package/pinyin/index.js +1 -1
- package/pinyin/simplified.js +1 -1
- package/pinyin/src/core.js +1 -1
- package/pinyin/src/simplified.js +1 -1
- package/pinyin/src/simplified_dict.js +1 -1
- package/pinyin/src/traditional.js +1 -1
- package/pinyin/src/traditional_dict.js +1 -1
- package/pinyin/traditional.js +1 -1
- package/pinyin.js +1 -1
- package/query-string/base.js +1 -1
- package/query-string/index.js +1 -1
- package/query-string/splitOnFirst.js +1 -1
- package/queryString.js +1 -1
- package/random/address.js +1 -1
- package/random/constellation.js +1 -1
- package/random/image.js +1 -1
- package/random/index.js +1 -1
- package/random/licensePlate.js +1 -1
- package/random/name.js +1 -1
- package/random/number.js +1 -1
- package/random/text.js +1 -1
- package/random/time.js +1 -1
- package/random/web.js +1 -1
- package/random.js +1 -1
- package/screenfull/index.js +1 -1
- package/screenfull.js +1 -1
- package/sleep/index.js +1 -1
- package/sleep.js +1 -1
- package/snapdom/index.js +1 -1
- package/snapdom/src/api/preCache.js +1 -1
- package/snapdom/src/api/snapdom.js +1 -1
- package/snapdom/src/core/cache.js +1 -1
- package/snapdom/src/core/capture.js +1 -1
- package/snapdom/src/core/clone.js +1 -1
- package/snapdom/src/core/context.js +1 -1
- package/snapdom/src/core/plugins.js +1 -1
- package/snapdom/src/core/prepare.js +1 -1
- package/snapdom/src/exporters/download.js +1 -1
- package/snapdom/src/exporters/toBlob.js +1 -1
- package/snapdom/src/exporters/toCanvas.js +1 -1
- package/snapdom/src/exporters/toImg.js +1 -1
- package/snapdom/src/modules/CSSVar.js +1 -1
- package/snapdom/src/modules/background.js +1 -1
- package/snapdom/src/modules/changeCSS.js +1 -1
- package/snapdom/src/modules/counter.js +1 -1
- package/snapdom/src/modules/fonts.js +1 -1
- package/snapdom/src/modules/iconFonts.js +1 -1
- package/snapdom/src/modules/images.js +1 -1
- package/snapdom/src/modules/lineClamp.js +1 -1
- package/snapdom/src/modules/pseudo.js +1 -1
- package/snapdom/src/modules/rasterize.js +1 -1
- package/snapdom/src/modules/snapFetch.js +1 -1
- package/snapdom/src/modules/styles.js +1 -1
- package/snapdom/src/modules/svgDefs.js +1 -1
- package/snapdom/src/utils/browser.js +1 -1
- package/snapdom/src/utils/css.js +1 -1
- package/snapdom/src/utils/helpers.js +1 -1
- package/snapdom/src/utils/image.js +1 -1
- package/snapdom.js +1 -1
- package/tinycolor/index.js +1 -1
- package/tinycolor/src/conversion.js +1 -1
- package/tinycolor/src/css-color-names.js +1 -1
- package/tinycolor/src/format-input.js +1 -1
- package/tinycolor/src/from-ratio.js +1 -1
- package/tinycolor/src/index.js +1 -1
- package/tinycolor/src/random.js +1 -1
- package/tinycolor/src/readability.js +1 -1
- package/tinycolor/src/to-ms-filter.js +1 -1
- package/tinycolor/src/utils.js +1 -1
- package/tinycolor.js +1 -1
- package/tree/index.js +1 -1
- package/tree/search/index.js +1 -1
- package/tree.js +1 -1
- package/tween/index.js +1 -1
- package/tween/src/easing.js +1 -1
- package/tween/src/tween.js +1 -1
- package/tween.js +1 -1
- package/types/constant/platform.d.ts +8 -7
- package/types/snapdom/src/core/context.d.ts +1 -1
- package/ui-color/compareColorByRange.js +1 -1
- package/ui-color/index.js +1 -1
- package/uiColor.js +1 -1
- package/url-toolkit/index.js +1 -1
- package/url-toolkit/src/url-toolkit.js +1 -1
- package/urlToolkit.js +1 -1
- package/validate/index.js +1 -1
- package/validate/src/index.js +1 -1
- package/validate/src/locale/en-US.js +1 -1
- package/validate/src/locale/zh-CN.js +1 -1
- package/validate/src/message.js +1 -1
- package/validate/src/rules/array.js +1 -1
- package/validate/src/rules/base.js +1 -1
- package/validate/src/rules/boolean.js +1 -1
- package/validate/src/rules/custom.js +1 -1
- package/validate/src/rules/number.js +1 -1
- package/validate/src/rules/object.js +1 -1
- package/validate/src/rules/string.js +1 -1
- package/validate/src/rules/type.js +1 -1
- package/validate/src/utils.js +1 -1
- package/validate.js +1 -1
- package/version/index.js +1 -1
- package/version.js +1 -1
- package/axios/lib/adapters/adapters.js +0 -65
- package/axios/lib/adapters/fetch.js +0 -186
- package/axios/lib/adapters/xhr.js +0 -105
- package/axios/lib/cancel/CancelToken.js +0 -78
- package/axios/lib/cancel/CanceledError.js +0 -18
- package/axios/lib/cancel/isCancel.js +0 -7
- package/axios/lib/core/Axios.js +0 -170
- package/axios/lib/core/AxiosHeaders.js +0 -192
- package/axios/lib/core/InterceptorManager.js +0 -59
- package/axios/lib/core/buildFullPath.js +0 -10
- package/axios/lib/core/dispatchRequest.js +0 -35
- package/axios/lib/core/mergeConfig.js +0 -74
- package/axios/lib/core/settle.js +0 -17
- package/axios/lib/core/transformData.js +0 -19
- package/axios/lib/defaults/index.js +0 -103
- package/axios/lib/defaults/transitional.js +0 -9
- package/axios/lib/env/data.js +0 -5
- package/axios/lib/helpers/AxiosURLSearchParams.js +0 -37
- package/axios/lib/helpers/HttpStatusCode.js +0 -78
- package/axios/lib/helpers/bind.js +0 -9
- package/axios/lib/helpers/buildURL.js +0 -24
- package/axios/lib/helpers/combineURLs.js +0 -7
- package/axios/lib/helpers/composeSignals.js +0 -38
- package/axios/lib/helpers/cookies.js +0 -37
- package/axios/lib/helpers/formDataToJSON.js +0 -32
- package/axios/lib/helpers/isAbsoluteURL.js +0 -7
- package/axios/lib/helpers/isAxiosError.js +0 -8
- package/axios/lib/helpers/isURLSameOrigin.js +0 -9
- package/axios/lib/helpers/parseHeaders.js +0 -31
- package/axios/lib/helpers/parseProtocol.js +0 -8
- package/axios/lib/helpers/progressEventReducer.js +0 -39
- package/axios/lib/helpers/resolveConfig.js +0 -44
- package/axios/lib/helpers/speedometer.js +0 -20
- package/axios/lib/helpers/spread.js +0 -9
- package/axios/lib/helpers/throttle.js +0 -16
- package/axios/lib/helpers/toFormData.js +0 -91
- package/axios/lib/helpers/toURLEncodedForm.js +0 -15
- package/axios/lib/helpers/trackStream.js +0 -67
- package/axios/lib/helpers/validator.js +0 -66
- package/axios/lib/platform/browser/classes/Blob.js +0 -5
- package/axios/lib/platform/browser/classes/FormData.js +0 -5
- package/axios/lib/platform/browser/classes/URLSearchParams.js +0 -6
- package/axios/lib/platform/browser/index.js +0 -16
- package/axios/lib/platform/common/utils.js +0 -9
- package/axios/lib/platform/index.js +0 -10
- package/axios.js +0 -24
- package/axiosMockAdapter.js +0 -9
- package/types/axios/index.d.ts +0 -19
- package/types/axios/lib/adapters/adapters.d.ts +0 -28
- package/types/axios/lib/adapters/fetch.d.ts +0 -3
- package/types/axios/lib/adapters/http.d.ts +0 -12
- package/types/axios/lib/adapters/xhr.d.ts +0 -2
- package/types/axios/lib/axios.d.ts +0 -3
- package/types/axios/lib/cancel/CancelToken.d.ts +0 -34
- package/types/axios/lib/cancel/CanceledError.d.ts +0 -24
- package/types/axios/lib/cancel/isCancel.d.ts +0 -1
- package/types/axios/lib/core/Axios.d.ts +0 -28
- package/types/axios/lib/core/AxiosError.d.ts +0 -38
- package/types/axios/lib/core/AxiosHeaders.d.ts +0 -23
- package/types/axios/lib/core/InterceptorManager.d.ts +0 -38
- package/types/axios/lib/core/buildFullPath.d.ts +0 -11
- package/types/axios/lib/core/dispatchRequest.d.ts +0 -8
- package/types/axios/lib/core/mergeConfig.d.ts +0 -10
- package/types/axios/lib/core/settle.d.ts +0 -10
- package/types/axios/lib/core/transformData.d.ts +0 -9
- package/types/axios/lib/defaults/index.d.ts +0 -30
- package/types/axios/lib/defaults/transitional.d.ts +0 -6
- package/types/axios/lib/env/classes/FormData.d.ts +0 -2
- package/types/axios/lib/env/data.d.ts +0 -1
- package/types/axios/lib/helpers/AxiosTransformStream.d.ts +0 -19
- package/types/axios/lib/helpers/AxiosURLSearchParams.d.ts +0 -30
- package/types/axios/lib/helpers/HttpStatusCode.d.ts +0 -72
- package/types/axios/lib/helpers/ZlibHeaderTransformStream.d.ts +0 -5
- package/types/axios/lib/helpers/bind.d.ts +0 -8
- package/types/axios/lib/helpers/buildURL.d.ts +0 -10
- package/types/axios/lib/helpers/callbackify.d.ts +0 -2
- package/types/axios/lib/helpers/combineURLs.d.ts +0 -9
- package/types/axios/lib/helpers/composeSignals.d.ts +0 -2
- package/types/axios/lib/helpers/cookies.d.ts +0 -6
- package/types/axios/lib/helpers/deprecatedMethod.d.ts +0 -11
- package/types/axios/lib/helpers/estimateDataURLDecodedBytes.d.ts +0 -10
- package/types/axios/lib/helpers/formDataToJSON.d.ts +0 -11
- package/types/axios/lib/helpers/formDataToStream.d.ts +0 -2
- package/types/axios/lib/helpers/fromDataURI.d.ts +0 -11
- package/types/axios/lib/helpers/isAbsoluteURL.d.ts +0 -8
- package/types/axios/lib/helpers/isAxiosError.d.ts +0 -8
- package/types/axios/lib/helpers/isURLSameOrigin.d.ts +0 -2
- package/types/axios/lib/helpers/null.d.ts +0 -2
- package/types/axios/lib/helpers/parseHeaders.d.ts +0 -2
- package/types/axios/lib/helpers/parseProtocol.d.ts +0 -1
- package/types/axios/lib/helpers/progressEventReducer.d.ts +0 -3
- package/types/axios/lib/helpers/readBlob.d.ts +0 -2
- package/types/axios/lib/helpers/resolveConfig.d.ts +0 -2
- package/types/axios/lib/helpers/speedometer.d.ts +0 -8
- package/types/axios/lib/helpers/spread.d.ts +0 -22
- package/types/axios/lib/helpers/throttle.d.ts +0 -8
- package/types/axios/lib/helpers/toFormData.d.ts +0 -26
- package/types/axios/lib/helpers/toURLEncodedForm.d.ts +0 -1
- package/types/axios/lib/helpers/trackStream.d.ts +0 -3
- package/types/axios/lib/helpers/validator.d.ts +0 -28
- package/types/axios/lib/platform/browser/classes/Blob.d.ts +0 -5
- package/types/axios/lib/platform/browser/classes/FormData.d.ts +0 -5
- package/types/axios/lib/platform/browser/classes/URLSearchParams.d.ts +0 -6
- package/types/axios/lib/platform/browser/index.d.ts +0 -13
- package/types/axios/lib/platform/common/utils.d.ts +0 -32
- package/types/axios/lib/platform/index.d.ts +0 -24
- package/types/axios/lib/platform/node/classes/FormData.d.ts +0 -1
- package/types/axios/lib/platform/node/classes/URLSearchParams.d.ts +0 -2
- package/types/axios/lib/platform/node/index.d.ts +0 -25
- package/types/axios/lib/utils.d.ts +0 -289
- package/types/axios-mock-adapter/index.d.ts +0 -19
- package/types/axios-mock-adapter/request.d.ts +0 -2
- package/types/axios-mock-adapter/utils.d.ts +0 -31
- /package/{axios-mock-adapter → axios/mock-adapter}/index.d.ts +0 -0
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
/* 2025-11-04 10:32:44 */
|
|
2
|
-
import A from "../helpers/parseHeaders.js";
|
|
3
|
-
import i from "../utils.js";
|
|
4
|
-
const h = Symbol("internals");
|
|
5
|
-
function y(o) {
|
|
6
|
-
return o && String(o).trim().toLowerCase();
|
|
7
|
-
}
|
|
8
|
-
function m(o) {
|
|
9
|
-
return o === !1 || o == null ? o : i.isArray(o) ? o.map(m) : String(o);
|
|
10
|
-
}
|
|
11
|
-
function S(o) {
|
|
12
|
-
const t = /* @__PURE__ */ Object.create(null), e = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
13
|
-
let s;
|
|
14
|
-
for (; s = e.exec(o); )
|
|
15
|
-
t[s[1]] = s[2];
|
|
16
|
-
return t;
|
|
17
|
-
}
|
|
18
|
-
const k = (o) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(o.trim());
|
|
19
|
-
function g(o, t, e, s, n) {
|
|
20
|
-
if (i.isFunction(s))
|
|
21
|
-
return s.call(this, t, e);
|
|
22
|
-
if (n && (t = e), !!i.isString(t)) {
|
|
23
|
-
if (i.isString(s))
|
|
24
|
-
return t.indexOf(s) !== -1;
|
|
25
|
-
if (i.isRegExp(s))
|
|
26
|
-
return s.test(t);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
function E(o) {
|
|
30
|
-
return o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, e, s) => e.toUpperCase() + s);
|
|
31
|
-
}
|
|
32
|
-
function j(o, t) {
|
|
33
|
-
const e = i.toCamelCase(" " + t);
|
|
34
|
-
["get", "set", "has"].forEach((s) => {
|
|
35
|
-
Object.defineProperty(o, s + e, {
|
|
36
|
-
value: function(n, r, f) {
|
|
37
|
-
return this[s].call(this, t, n, r, f);
|
|
38
|
-
},
|
|
39
|
-
configurable: !0
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
class b {
|
|
44
|
-
constructor(t) {
|
|
45
|
-
t && this.set(t);
|
|
46
|
-
}
|
|
47
|
-
set(t, e, s) {
|
|
48
|
-
const n = this;
|
|
49
|
-
function r(c, l, a) {
|
|
50
|
-
const u = y(l);
|
|
51
|
-
if (!u)
|
|
52
|
-
throw new Error("header name must be a non-empty string");
|
|
53
|
-
const p = i.findKey(n, u);
|
|
54
|
-
(!p || n[p] === void 0 || a === !0 || a === void 0 && n[p] !== !1) && (n[p || l] = m(c));
|
|
55
|
-
}
|
|
56
|
-
const f = (c, l) => i.forEach(
|
|
57
|
-
c,
|
|
58
|
-
(a, u) => r(a, u, l)
|
|
59
|
-
);
|
|
60
|
-
if (i.isPlainObject(t) || t instanceof this.constructor)
|
|
61
|
-
f(t, e);
|
|
62
|
-
else if (i.isString(t) && (t = t.trim()) && !k(t))
|
|
63
|
-
f(A(t), e);
|
|
64
|
-
else if (i.isObject(t) && i.isIterable(t)) {
|
|
65
|
-
let c = {}, l, a;
|
|
66
|
-
for (const u of t) {
|
|
67
|
-
if (!i.isArray(u))
|
|
68
|
-
throw TypeError("Object iterator must return a key-value pair");
|
|
69
|
-
c[a = u[0]] = (l = c[a]) ? i.isArray(l) ? [...l, u[1]] : [l, u[1]] : u[1];
|
|
70
|
-
}
|
|
71
|
-
f(c, e);
|
|
72
|
-
} else
|
|
73
|
-
t != null && r(e, t, s);
|
|
74
|
-
return this;
|
|
75
|
-
}
|
|
76
|
-
get(t, e) {
|
|
77
|
-
if (t = y(t), t) {
|
|
78
|
-
const s = i.findKey(this, t);
|
|
79
|
-
if (s) {
|
|
80
|
-
const n = this[s];
|
|
81
|
-
if (!e)
|
|
82
|
-
return n;
|
|
83
|
-
if (e === !0)
|
|
84
|
-
return S(n);
|
|
85
|
-
if (i.isFunction(e))
|
|
86
|
-
return e.call(this, n, s);
|
|
87
|
-
if (i.isRegExp(e))
|
|
88
|
-
return e.exec(n);
|
|
89
|
-
throw new TypeError("parser must be boolean|regexp|function");
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
has(t, e) {
|
|
94
|
-
if (t = y(t), t) {
|
|
95
|
-
const s = i.findKey(this, t);
|
|
96
|
-
return !!(s && this[s] !== void 0 && (!e || g(this, this[s], s, e)));
|
|
97
|
-
}
|
|
98
|
-
return !1;
|
|
99
|
-
}
|
|
100
|
-
delete(t, e) {
|
|
101
|
-
const s = this;
|
|
102
|
-
let n = !1;
|
|
103
|
-
function r(f) {
|
|
104
|
-
if (f = y(f), f) {
|
|
105
|
-
const c = i.findKey(s, f);
|
|
106
|
-
c && (!e || g(s, s[c], c, e)) && (delete s[c], n = !0);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
return i.isArray(t) ? t.forEach(r) : r(t), n;
|
|
110
|
-
}
|
|
111
|
-
clear(t) {
|
|
112
|
-
const e = Object.keys(this);
|
|
113
|
-
let s = e.length, n = !1;
|
|
114
|
-
for (; s--; ) {
|
|
115
|
-
const r = e[s];
|
|
116
|
-
(!t || g(this, this[r], r, t, !0)) && (delete this[r], n = !0);
|
|
117
|
-
}
|
|
118
|
-
return n;
|
|
119
|
-
}
|
|
120
|
-
normalize(t) {
|
|
121
|
-
const e = this, s = {};
|
|
122
|
-
return i.forEach(this, (n, r) => {
|
|
123
|
-
const f = i.findKey(s, r);
|
|
124
|
-
if (f) {
|
|
125
|
-
e[f] = m(n), delete e[r];
|
|
126
|
-
return;
|
|
127
|
-
}
|
|
128
|
-
const c = t ? E(r) : String(r).trim();
|
|
129
|
-
c !== r && delete e[r], e[c] = m(n), s[c] = !0;
|
|
130
|
-
}), this;
|
|
131
|
-
}
|
|
132
|
-
concat(...t) {
|
|
133
|
-
return this.constructor.concat(this, ...t);
|
|
134
|
-
}
|
|
135
|
-
toJSON(t) {
|
|
136
|
-
const e = /* @__PURE__ */ Object.create(null);
|
|
137
|
-
return i.forEach(this, (s, n) => {
|
|
138
|
-
s != null && s !== !1 && (e[n] = t && i.isArray(s) ? s.join(", ") : s);
|
|
139
|
-
}), e;
|
|
140
|
-
}
|
|
141
|
-
[Symbol.iterator]() {
|
|
142
|
-
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
143
|
-
}
|
|
144
|
-
toString() {
|
|
145
|
-
return Object.entries(this.toJSON()).map(([t, e]) => t + ": " + e).join(`
|
|
146
|
-
`);
|
|
147
|
-
}
|
|
148
|
-
getSetCookie() {
|
|
149
|
-
return this.get("set-cookie") || [];
|
|
150
|
-
}
|
|
151
|
-
get [Symbol.toStringTag]() {
|
|
152
|
-
return "AxiosHeaders";
|
|
153
|
-
}
|
|
154
|
-
static from(t) {
|
|
155
|
-
return t instanceof this ? t : new this(t);
|
|
156
|
-
}
|
|
157
|
-
static concat(t, ...e) {
|
|
158
|
-
const s = new this(t);
|
|
159
|
-
return e.forEach((n) => s.set(n)), s;
|
|
160
|
-
}
|
|
161
|
-
static accessor(t) {
|
|
162
|
-
const s = (this[h] = this[h] = {
|
|
163
|
-
accessors: {}
|
|
164
|
-
}).accessors, n = this.prototype;
|
|
165
|
-
function r(f) {
|
|
166
|
-
const c = y(f);
|
|
167
|
-
s[c] || (j(n, f), s[c] = !0);
|
|
168
|
-
}
|
|
169
|
-
return i.isArray(t) ? t.forEach(r) : r(t), this;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
b.accessor([
|
|
173
|
-
"Content-Type",
|
|
174
|
-
"Content-Length",
|
|
175
|
-
"Accept",
|
|
176
|
-
"Accept-Encoding",
|
|
177
|
-
"User-Agent",
|
|
178
|
-
"Authorization"
|
|
179
|
-
]);
|
|
180
|
-
i.reduceDescriptors(b.prototype, ({ value: o }, t) => {
|
|
181
|
-
let e = t[0].toUpperCase() + t.slice(1);
|
|
182
|
-
return {
|
|
183
|
-
get: () => o,
|
|
184
|
-
set(s) {
|
|
185
|
-
this[e] = s;
|
|
186
|
-
}
|
|
187
|
-
};
|
|
188
|
-
});
|
|
189
|
-
i.freezeMethods(b);
|
|
190
|
-
export {
|
|
191
|
-
b as default
|
|
192
|
-
};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/* 2025-11-04 10:32:44 */
|
|
2
|
-
import n from "../utils.js";
|
|
3
|
-
class a {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.handlers = [];
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Add a new interceptor to the stack
|
|
9
|
-
*
|
|
10
|
-
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
11
|
-
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
12
|
-
*
|
|
13
|
-
* @return {Number} An ID used to remove interceptor later
|
|
14
|
-
*/
|
|
15
|
-
use(s, h, r) {
|
|
16
|
-
return this.handlers.push({
|
|
17
|
-
fulfilled: s,
|
|
18
|
-
rejected: h,
|
|
19
|
-
synchronous: r ? r.synchronous : !1,
|
|
20
|
-
runWhen: r ? r.runWhen : null
|
|
21
|
-
}), this.handlers.length - 1;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Remove an interceptor from the stack
|
|
25
|
-
*
|
|
26
|
-
* @param {Number} id The ID that was returned by `use`
|
|
27
|
-
*
|
|
28
|
-
* @returns {void}
|
|
29
|
-
*/
|
|
30
|
-
eject(s) {
|
|
31
|
-
this.handlers[s] && (this.handlers[s] = null);
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Clear all interceptors from the stack
|
|
35
|
-
*
|
|
36
|
-
* @returns {void}
|
|
37
|
-
*/
|
|
38
|
-
clear() {
|
|
39
|
-
this.handlers && (this.handlers = []);
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Iterate over all the registered interceptors
|
|
43
|
-
*
|
|
44
|
-
* This method is particularly useful for skipping over any
|
|
45
|
-
* interceptors that may have become `null` calling `eject`.
|
|
46
|
-
*
|
|
47
|
-
* @param {Function} fn The function to call for each interceptor
|
|
48
|
-
*
|
|
49
|
-
* @returns {void}
|
|
50
|
-
*/
|
|
51
|
-
forEach(s) {
|
|
52
|
-
n.forEach(this.handlers, function(r) {
|
|
53
|
-
r !== null && s(r);
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
export {
|
|
58
|
-
a as default
|
|
59
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/* 2025-11-04 10:32:44 */
|
|
2
|
-
import p from "../adapters/adapters.js";
|
|
3
|
-
import l from "../cancel/CanceledError.js";
|
|
4
|
-
import m from "../cancel/isCancel.js";
|
|
5
|
-
import r from "./AxiosHeaders.js";
|
|
6
|
-
import o from "../defaults/index.js";
|
|
7
|
-
import a from "./transformData.js";
|
|
8
|
-
function d(e) {
|
|
9
|
-
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
10
|
-
throw new l(null, e);
|
|
11
|
-
}
|
|
12
|
-
function q(e) {
|
|
13
|
-
return d(e), e.headers = r.from(e.headers), e.data = a.call(e, e.transformRequest), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), p.getAdapter(
|
|
14
|
-
e.adapter || o.adapter,
|
|
15
|
-
e
|
|
16
|
-
)(e).then(
|
|
17
|
-
function(t) {
|
|
18
|
-
return d(e), t.data = a.call(
|
|
19
|
-
e,
|
|
20
|
-
e.transformResponse,
|
|
21
|
-
t
|
|
22
|
-
), t.headers = r.from(t.headers), t;
|
|
23
|
-
},
|
|
24
|
-
function(t) {
|
|
25
|
-
return m(t) || (d(e), t && t.response && (t.response.data = a.call(
|
|
26
|
-
e,
|
|
27
|
-
e.transformResponse,
|
|
28
|
-
t.response
|
|
29
|
-
), t.response.headers = r.from(t.response.headers))), Promise.reject(t);
|
|
30
|
-
}
|
|
31
|
-
);
|
|
32
|
-
}
|
|
33
|
-
export {
|
|
34
|
-
q as default
|
|
35
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/* 2025-11-04 10:32:44 */
|
|
2
|
-
import i from "../utils.js";
|
|
3
|
-
import h from "./AxiosHeaders.js";
|
|
4
|
-
const c = (s) => s instanceof h ? { ...s } : s;
|
|
5
|
-
function x(s, f) {
|
|
6
|
-
f = f || {};
|
|
7
|
-
const u = {};
|
|
8
|
-
function o(t, e, r, d) {
|
|
9
|
-
return i.isPlainObject(t) && i.isPlainObject(e) ? i.merge.call({ caseless: d }, t, e) : i.isPlainObject(e) ? i.merge({}, e) : i.isArray(e) ? e.slice() : e;
|
|
10
|
-
}
|
|
11
|
-
function l(t, e, r, d) {
|
|
12
|
-
if (i.isUndefined(e)) {
|
|
13
|
-
if (!i.isUndefined(t))
|
|
14
|
-
return o(void 0, t, r, d);
|
|
15
|
-
} else return o(t, e, r, d);
|
|
16
|
-
}
|
|
17
|
-
function a(t, e) {
|
|
18
|
-
if (!i.isUndefined(e))
|
|
19
|
-
return o(void 0, e);
|
|
20
|
-
}
|
|
21
|
-
function n(t, e) {
|
|
22
|
-
if (i.isUndefined(e)) {
|
|
23
|
-
if (!i.isUndefined(t))
|
|
24
|
-
return o(void 0, t);
|
|
25
|
-
} else return o(void 0, e);
|
|
26
|
-
}
|
|
27
|
-
function m(t, e, r) {
|
|
28
|
-
if (r in f)
|
|
29
|
-
return o(t, e);
|
|
30
|
-
if (r in s)
|
|
31
|
-
return o(void 0, t);
|
|
32
|
-
}
|
|
33
|
-
const g = {
|
|
34
|
-
url: a,
|
|
35
|
-
method: a,
|
|
36
|
-
data: a,
|
|
37
|
-
baseURL: n,
|
|
38
|
-
transformRequest: n,
|
|
39
|
-
transformResponse: n,
|
|
40
|
-
paramsSerializer: n,
|
|
41
|
-
timeout: n,
|
|
42
|
-
timeoutMessage: n,
|
|
43
|
-
withCredentials: n,
|
|
44
|
-
withXSRFToken: n,
|
|
45
|
-
adapter: n,
|
|
46
|
-
responseType: n,
|
|
47
|
-
xsrfCookieName: n,
|
|
48
|
-
xsrfHeaderName: n,
|
|
49
|
-
onUploadProgress: n,
|
|
50
|
-
onDownloadProgress: n,
|
|
51
|
-
decompress: n,
|
|
52
|
-
maxContentLength: n,
|
|
53
|
-
maxBodyLength: n,
|
|
54
|
-
beforeRedirect: n,
|
|
55
|
-
transport: n,
|
|
56
|
-
httpAgent: n,
|
|
57
|
-
httpsAgent: n,
|
|
58
|
-
cancelToken: n,
|
|
59
|
-
socketPath: n,
|
|
60
|
-
responseEncoding: n,
|
|
61
|
-
validateStatus: m,
|
|
62
|
-
headers: (t, e, r) => l(c(t), c(e), r, !0)
|
|
63
|
-
};
|
|
64
|
-
return i.forEach(
|
|
65
|
-
Object.keys({ ...s, ...f }),
|
|
66
|
-
function(e) {
|
|
67
|
-
const r = g[e] || l, d = r(s[e], f[e], e);
|
|
68
|
-
i.isUndefined(d) && r !== m || (u[e] = d);
|
|
69
|
-
}
|
|
70
|
-
), u;
|
|
71
|
-
}
|
|
72
|
-
export {
|
|
73
|
-
x as default
|
|
74
|
-
};
|
package/axios/lib/core/settle.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/* 2025-11-04 10:32:44 */
|
|
2
|
-
import a from "./AxiosError.js";
|
|
3
|
-
function E(i, f, t) {
|
|
4
|
-
const u = t.config.validateStatus;
|
|
5
|
-
!t.status || !u || u(t.status) ? i(t) : f(
|
|
6
|
-
new a(
|
|
7
|
-
"Request failed with status code " + t.status,
|
|
8
|
-
[a.ERR_BAD_REQUEST, a.ERR_BAD_RESPONSE][Math.floor(t.status / 100) - 4],
|
|
9
|
-
t.config,
|
|
10
|
-
t.request,
|
|
11
|
-
t
|
|
12
|
-
)
|
|
13
|
-
);
|
|
14
|
-
}
|
|
15
|
-
export {
|
|
16
|
-
E as default
|
|
17
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/* 2025-11-04 10:32:44 */
|
|
2
|
-
import e from "./AxiosHeaders.js";
|
|
3
|
-
import s from "../defaults/index.js";
|
|
4
|
-
import m from "../utils.js";
|
|
5
|
-
function h(f, t) {
|
|
6
|
-
const a = this || s, r = t || a, n = e.from(r.headers);
|
|
7
|
-
let o = r.data;
|
|
8
|
-
return m.forEach(f, function(i) {
|
|
9
|
-
o = i.call(
|
|
10
|
-
a,
|
|
11
|
-
o,
|
|
12
|
-
n.normalize(),
|
|
13
|
-
t ? t.status : void 0
|
|
14
|
-
);
|
|
15
|
-
}), n.normalize(), o;
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
h as default
|
|
19
|
-
};
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
/* 2025-11-04 10:32:44 */
|
|
2
|
-
import c from "../core/AxiosError.js";
|
|
3
|
-
import u from "../helpers/formDataToJSON.js";
|
|
4
|
-
import S from "../helpers/toFormData.js";
|
|
5
|
-
import h from "../helpers/toURLEncodedForm.js";
|
|
6
|
-
import a from "../platform/index.js";
|
|
7
|
-
import t from "../utils.js";
|
|
8
|
-
import O from "./transitional.js";
|
|
9
|
-
function y(i, r, e) {
|
|
10
|
-
if (t.isString(i))
|
|
11
|
-
try {
|
|
12
|
-
return (r || JSON.parse)(i), t.trim(i);
|
|
13
|
-
} catch (n) {
|
|
14
|
-
if (n.name !== "SyntaxError")
|
|
15
|
-
throw n;
|
|
16
|
-
}
|
|
17
|
-
return (e || JSON.stringify)(i);
|
|
18
|
-
}
|
|
19
|
-
const l = {
|
|
20
|
-
transitional: O,
|
|
21
|
-
adapter: ["xhr", "http", "fetch"],
|
|
22
|
-
transformRequest: [
|
|
23
|
-
function(r, e) {
|
|
24
|
-
const n = e.getContentType() || "", s = n.indexOf("application/json") > -1, f = t.isObject(r);
|
|
25
|
-
if (f && t.isHTMLForm(r) && (r = new FormData(r)), t.isFormData(r))
|
|
26
|
-
return s ? JSON.stringify(u(r)) : r;
|
|
27
|
-
if (t.isArrayBuffer(r) || t.isBuffer(r) || t.isStream(r) || t.isFile(r) || t.isBlob(r) || t.isReadableStream(r))
|
|
28
|
-
return r;
|
|
29
|
-
if (t.isArrayBufferView(r))
|
|
30
|
-
return r.buffer;
|
|
31
|
-
if (t.isURLSearchParams(r))
|
|
32
|
-
return e.setContentType(
|
|
33
|
-
"application/x-www-form-urlencoded;charset=utf-8",
|
|
34
|
-
!1
|
|
35
|
-
), r.toString();
|
|
36
|
-
let o;
|
|
37
|
-
if (f) {
|
|
38
|
-
if (n.indexOf("application/x-www-form-urlencoded") > -1)
|
|
39
|
-
return h(r, this.formSerializer).toString();
|
|
40
|
-
if ((o = t.isFileList(r)) || n.indexOf("multipart/form-data") > -1) {
|
|
41
|
-
const p = this.env && this.env.FormData;
|
|
42
|
-
return S(
|
|
43
|
-
o ? { "files[]": r } : r,
|
|
44
|
-
p && new p(),
|
|
45
|
-
this.formSerializer
|
|
46
|
-
);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
return f || s ? (e.setContentType("application/json", !1), y(r)) : r;
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
transformResponse: [
|
|
53
|
-
function(r) {
|
|
54
|
-
const e = this.transitional || l.transitional, n = e && e.forcedJSONParsing, s = this.responseType === "json";
|
|
55
|
-
if (t.isResponse(r) || t.isReadableStream(r))
|
|
56
|
-
return r;
|
|
57
|
-
if (r && t.isString(r) && (n && !this.responseType || s)) {
|
|
58
|
-
const m = !(e && e.silentJSONParsing) && s;
|
|
59
|
-
try {
|
|
60
|
-
return JSON.parse(r, this.parseReviver);
|
|
61
|
-
} catch (o) {
|
|
62
|
-
if (m)
|
|
63
|
-
throw o.name === "SyntaxError" ? c.from(
|
|
64
|
-
o,
|
|
65
|
-
c.ERR_BAD_RESPONSE,
|
|
66
|
-
this,
|
|
67
|
-
null,
|
|
68
|
-
this.response
|
|
69
|
-
) : o;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
return r;
|
|
73
|
-
}
|
|
74
|
-
],
|
|
75
|
-
/**
|
|
76
|
-
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
77
|
-
* timeout is not created.
|
|
78
|
-
*/
|
|
79
|
-
timeout: 0,
|
|
80
|
-
xsrfCookieName: "XSRF-TOKEN",
|
|
81
|
-
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
82
|
-
maxContentLength: -1,
|
|
83
|
-
maxBodyLength: -1,
|
|
84
|
-
env: {
|
|
85
|
-
FormData: a.classes.FormData,
|
|
86
|
-
Blob: a.classes.Blob
|
|
87
|
-
},
|
|
88
|
-
validateStatus: function(r) {
|
|
89
|
-
return r >= 200 && r < 300;
|
|
90
|
-
},
|
|
91
|
-
headers: {
|
|
92
|
-
common: {
|
|
93
|
-
Accept: "application/json, text/plain, */*",
|
|
94
|
-
"Content-Type": void 0
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
t.forEach(["delete", "get", "head", "post", "put", "patch"], (i) => {
|
|
99
|
-
l.headers[i] = {};
|
|
100
|
-
});
|
|
101
|
-
export {
|
|
102
|
-
l as default
|
|
103
|
-
};
|
package/axios/lib/env/data.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/* 2025-11-04 10:32:44 */
|
|
2
|
-
import p from "./toFormData.js";
|
|
3
|
-
function i(n) {
|
|
4
|
-
const t = {
|
|
5
|
-
"!": "%21",
|
|
6
|
-
"'": "%27",
|
|
7
|
-
"(": "%28",
|
|
8
|
-
")": "%29",
|
|
9
|
-
"~": "%7E",
|
|
10
|
-
"%20": "+",
|
|
11
|
-
"%00": "\0"
|
|
12
|
-
};
|
|
13
|
-
return encodeURIComponent(n).replace(
|
|
14
|
-
/[!'()~]|%20|%00/g,
|
|
15
|
-
function(r) {
|
|
16
|
-
return t[r];
|
|
17
|
-
}
|
|
18
|
-
);
|
|
19
|
-
}
|
|
20
|
-
function a(n, t) {
|
|
21
|
-
this._pairs = [], n && p(n, this, t);
|
|
22
|
-
}
|
|
23
|
-
const c = a.prototype;
|
|
24
|
-
c.append = function(t, o) {
|
|
25
|
-
this._pairs.push([t, o]);
|
|
26
|
-
};
|
|
27
|
-
c.toString = function(t) {
|
|
28
|
-
const o = t ? function(r) {
|
|
29
|
-
return t.call(this, r, i);
|
|
30
|
-
} : i;
|
|
31
|
-
return this._pairs.map(function(e) {
|
|
32
|
-
return o(e[0]) + "=" + o(e[1]);
|
|
33
|
-
}, "").join("&");
|
|
34
|
-
};
|
|
35
|
-
export {
|
|
36
|
-
a as default
|
|
37
|
-
};
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/* 2025-11-04 10:32:44 */
|
|
2
|
-
const e = {
|
|
3
|
-
Continue: 100,
|
|
4
|
-
SwitchingProtocols: 101,
|
|
5
|
-
Processing: 102,
|
|
6
|
-
EarlyHints: 103,
|
|
7
|
-
Ok: 200,
|
|
8
|
-
Created: 201,
|
|
9
|
-
Accepted: 202,
|
|
10
|
-
NonAuthoritativeInformation: 203,
|
|
11
|
-
NoContent: 204,
|
|
12
|
-
ResetContent: 205,
|
|
13
|
-
PartialContent: 206,
|
|
14
|
-
MultiStatus: 207,
|
|
15
|
-
AlreadyReported: 208,
|
|
16
|
-
ImUsed: 226,
|
|
17
|
-
MultipleChoices: 300,
|
|
18
|
-
MovedPermanently: 301,
|
|
19
|
-
Found: 302,
|
|
20
|
-
SeeOther: 303,
|
|
21
|
-
NotModified: 304,
|
|
22
|
-
UseProxy: 305,
|
|
23
|
-
Unused: 306,
|
|
24
|
-
TemporaryRedirect: 307,
|
|
25
|
-
PermanentRedirect: 308,
|
|
26
|
-
BadRequest: 400,
|
|
27
|
-
Unauthorized: 401,
|
|
28
|
-
PaymentRequired: 402,
|
|
29
|
-
Forbidden: 403,
|
|
30
|
-
NotFound: 404,
|
|
31
|
-
MethodNotAllowed: 405,
|
|
32
|
-
NotAcceptable: 406,
|
|
33
|
-
ProxyAuthenticationRequired: 407,
|
|
34
|
-
RequestTimeout: 408,
|
|
35
|
-
Conflict: 409,
|
|
36
|
-
Gone: 410,
|
|
37
|
-
LengthRequired: 411,
|
|
38
|
-
PreconditionFailed: 412,
|
|
39
|
-
PayloadTooLarge: 413,
|
|
40
|
-
UriTooLong: 414,
|
|
41
|
-
UnsupportedMediaType: 415,
|
|
42
|
-
RangeNotSatisfiable: 416,
|
|
43
|
-
ExpectationFailed: 417,
|
|
44
|
-
ImATeapot: 418,
|
|
45
|
-
MisdirectedRequest: 421,
|
|
46
|
-
UnprocessableEntity: 422,
|
|
47
|
-
Locked: 423,
|
|
48
|
-
FailedDependency: 424,
|
|
49
|
-
TooEarly: 425,
|
|
50
|
-
UpgradeRequired: 426,
|
|
51
|
-
PreconditionRequired: 428,
|
|
52
|
-
TooManyRequests: 429,
|
|
53
|
-
RequestHeaderFieldsTooLarge: 431,
|
|
54
|
-
UnavailableForLegalReasons: 451,
|
|
55
|
-
InternalServerError: 500,
|
|
56
|
-
NotImplemented: 501,
|
|
57
|
-
BadGateway: 502,
|
|
58
|
-
ServiceUnavailable: 503,
|
|
59
|
-
GatewayTimeout: 504,
|
|
60
|
-
HttpVersionNotSupported: 505,
|
|
61
|
-
VariantAlsoNegotiates: 506,
|
|
62
|
-
InsufficientStorage: 507,
|
|
63
|
-
LoopDetected: 508,
|
|
64
|
-
NotExtended: 510,
|
|
65
|
-
NetworkAuthenticationRequired: 511,
|
|
66
|
-
WebServerIsDown: 521,
|
|
67
|
-
ConnectionTimedOut: 522,
|
|
68
|
-
OriginIsUnreachable: 523,
|
|
69
|
-
TimeoutOccurred: 524,
|
|
70
|
-
SslHandshakeFailed: 525,
|
|
71
|
-
InvalidSslCertificate: 526
|
|
72
|
-
};
|
|
73
|
-
Object.entries(e).forEach(([t, o]) => {
|
|
74
|
-
e[o] = t;
|
|
75
|
-
});
|
|
76
|
-
export {
|
|
77
|
-
e as default
|
|
78
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/* 2025-11-04 10:32:44 */
|
|
2
|
-
import d from "./AxiosURLSearchParams.js";
|
|
3
|
-
import f from "../utils.js";
|
|
4
|
-
function l(e) {
|
|
5
|
-
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
6
|
-
}
|
|
7
|
-
function x(e, c, i) {
|
|
8
|
-
if (!c)
|
|
9
|
-
return e;
|
|
10
|
-
const t = i && i.encode || l;
|
|
11
|
-
f.isFunction(i) && (i = {
|
|
12
|
-
serialize: i
|
|
13
|
-
});
|
|
14
|
-
const r = i && i.serialize;
|
|
15
|
-
let n;
|
|
16
|
-
if (r ? n = r(c, i) : n = f.isURLSearchParams(c) ? c.toString() : new d(c, i).toString(t), n) {
|
|
17
|
-
const a = e.indexOf("#");
|
|
18
|
-
a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + n;
|
|
19
|
-
}
|
|
20
|
-
return e;
|
|
21
|
-
}
|
|
22
|
-
export {
|
|
23
|
-
x as default
|
|
24
|
-
};
|