@qqbrowser/openclaw-qbot 0.10.8 → 0.10.10
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/README.md +1 -54
- package/dist/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/canvas-host/a2ui/a2ui.bundle.js +72 -71
- package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +21 -21
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +17 -7
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +18 -6
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +0 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/emitWarningIfUnsupportedVersion.js +15 -6
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/setFeature.js +2 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +0 -1
- package/node_modules/@aws-sdk/core/package.json +7 -5
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +157 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/constants.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromEnvSigningName.js +16 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +81 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromStatic.js +8 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +11 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +10 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/index.js +4 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/nodeProvider.js +5 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js +7 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js +7 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js +8 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +70 -0
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js +9 -25
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/toStream.browser.js +11 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/toStream.js +7 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/throw-200-exceptions.js +9 -25
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/toStream.browser.js +8 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/toStream.js +4 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +15 -8
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +5 -5
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/errors.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/errors.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/package.json +18 -18
- package/node_modules/@aws-sdk/region-config-resolver/package.json +2 -2
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-external/nodable_entities.js +336 -0
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +26 -2
- package/node_modules/@aws-sdk/xml-builder/dist-es/xml-external/nodable_entities.js +332 -0
- package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +26 -2
- package/node_modules/@aws-sdk/xml-builder/package.json +3 -2
- package/node_modules/@clack/core/dist/index.mjs +16 -10
- package/node_modules/@clack/core/package.json +5 -2
- package/node_modules/@clack/prompts/dist/index.mjs +114 -107
- package/node_modules/@clack/prompts/package.json +7 -4
- package/node_modules/@google/genai/dist/index.cjs +207 -146
- package/node_modules/@google/genai/dist/index.mjs +208 -147
- package/node_modules/@google/genai/dist/node/index.cjs +235 -156
- package/node_modules/@google/genai/dist/node/index.mjs +236 -157
- package/node_modules/@google/genai/dist/tokenizer/node.cjs +15 -1
- package/node_modules/@google/genai/dist/tokenizer/node.mjs +15 -1
- package/node_modules/@google/genai/dist/vertex_internal/index.cjs +130 -117
- package/node_modules/@google/genai/dist/vertex_internal/index.js +130 -117
- package/node_modules/@google/genai/dist/web/index.mjs +201 -145
- package/node_modules/@google/genai/package.json +6 -1
- package/node_modules/@line/bot-sdk/node_modules/@types/node/package.json +2 -2
- package/node_modules/@nodable/entities/package.json +54 -0
- package/node_modules/@nodable/entities/src/EntityDecoder.js +543 -0
- package/node_modules/@nodable/entities/src/EntityEncoder.js +194 -0
- package/node_modules/@nodable/entities/src/entities.js +1177 -0
- package/node_modules/@nodable/entities/src/entityTries.js +49 -0
- package/node_modules/@nodable/entities/src/index.js +29 -0
- package/node_modules/@opentelemetry/context-async-hooks/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/context-async-hooks/package.json +2 -2
- package/node_modules/@opentelemetry/resources/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/resources/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/resources/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/esm/propagation/composite.js +8 -3
- package/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/esm/trace/TraceState.js +101 -51
- package/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/esnext/propagation/composite.js +8 -3
- package/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/esnext/trace/TraceState.js +101 -51
- package/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/src/propagation/composite.js +8 -3
- package/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/src/trace/TraceState.js +101 -51
- package/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/package.json +2 -2
- package/node_modules/@opentelemetry/resources/package.json +3 -3
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/exemplar/ExemplarReservoir.js +6 -5
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/state/AsyncMetricStorage.js +2 -2
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/state/DeltaMetricProcessor.js +4 -2
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/state/MultiWritableMetricStorage.js +4 -3
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/view/AttributesProcessor.js +10 -8
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/exemplar/ExemplarReservoir.js +6 -5
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/AsyncMetricStorage.js +2 -2
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/DeltaMetricProcessor.js +4 -2
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/MultiWritableMetricStorage.js +4 -3
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/view/AttributesProcessor.js +10 -8
- package/node_modules/@opentelemetry/sdk-metrics/build/src/exemplar/ExemplarReservoir.js +6 -5
- package/node_modules/@opentelemetry/sdk-metrics/build/src/state/AsyncMetricStorage.js +2 -2
- package/node_modules/@opentelemetry/sdk-metrics/build/src/state/DeltaMetricProcessor.js +4 -2
- package/node_modules/@opentelemetry/sdk-metrics/build/src/state/MultiWritableMetricStorage.js +4 -3
- package/node_modules/@opentelemetry/sdk-metrics/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/src/view/AttributesProcessor.js +10 -8
- package/node_modules/@opentelemetry/sdk-metrics/node_modules/@opentelemetry/core/build/esm/propagation/composite.js +8 -3
- package/node_modules/@opentelemetry/sdk-metrics/node_modules/@opentelemetry/core/build/esm/trace/TraceState.js +101 -51
- package/node_modules/@opentelemetry/sdk-metrics/node_modules/@opentelemetry/core/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/node_modules/@opentelemetry/core/build/esnext/propagation/composite.js +8 -3
- package/node_modules/@opentelemetry/sdk-metrics/node_modules/@opentelemetry/core/build/esnext/trace/TraceState.js +101 -51
- package/node_modules/@opentelemetry/sdk-metrics/node_modules/@opentelemetry/core/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/node_modules/@opentelemetry/core/build/src/propagation/composite.js +8 -3
- package/node_modules/@opentelemetry/sdk-metrics/node_modules/@opentelemetry/core/build/src/trace/TraceState.js +101 -51
- package/node_modules/@opentelemetry/sdk-metrics/node_modules/@opentelemetry/core/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/node_modules/@opentelemetry/core/package.json +2 -2
- package/node_modules/@opentelemetry/sdk-metrics/package.json +4 -4
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/TraceIdRatioBasedSampler.js +8 -3
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/sampler/TraceIdRatioBasedSampler.js +8 -3
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/sampler/TraceIdRatioBasedSampler.js +8 -3
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/propagation/composite.js +8 -3
- package/node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/trace/TraceState.js +101 -51
- package/node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esnext/propagation/composite.js +8 -3
- package/node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esnext/trace/TraceState.js +101 -51
- package/node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/src/propagation/composite.js +8 -3
- package/node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/src/trace/TraceState.js +101 -51
- package/node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/package.json +2 -2
- package/node_modules/@opentelemetry/sdk-trace-base/package.json +5 -5
- package/node_modules/@opentelemetry/sdk-trace-node/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/core/build/esm/propagation/composite.js +8 -3
- package/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/core/build/esm/trace/TraceState.js +101 -51
- package/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/core/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/core/build/esnext/propagation/composite.js +8 -3
- package/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/core/build/esnext/trace/TraceState.js +101 -51
- package/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/core/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/core/build/src/propagation/composite.js +8 -3
- package/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/core/build/src/trace/TraceState.js +101 -51
- package/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/core/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/core/package.json +2 -2
- package/node_modules/@opentelemetry/sdk-trace-node/package.json +6 -6
- package/node_modules/@protobufjs/codegen/index.js +14 -1
- package/node_modules/@protobufjs/codegen/package.json +1 -1
- package/node_modules/@protobufjs/inquire/index.js +25 -5
- package/node_modules/@protobufjs/inquire/package.json +2 -2
- package/node_modules/@protobufjs/utf8/index.js +27 -28
- package/node_modules/@protobufjs/utf8/package.json +21 -21
- package/node_modules/@slack/bolt/dist/conversation-store.js +2 -0
- package/node_modules/@slack/bolt/dist/errors.js +1 -1
- package/node_modules/@slack/bolt/dist/receivers/HTTPModuleFunctions.js +7 -2
- package/node_modules/@slack/bolt/dist/receivers/HTTPReceiver.js +4 -3
- package/node_modules/@slack/bolt/package.json +12 -6
- package/node_modules/@slack/socket-mode/dist/package.json +1 -1
- package/node_modules/@slack/socket-mode/dist/src/SlackWebSocket.js +7 -1
- package/node_modules/@slack/socket-mode/package.json +1 -1
- package/node_modules/@slack/types/package.json +1 -1
- package/node_modules/@slack/web-api/package.json +4 -5
- package/node_modules/@smithy/config-resolver/dist-cjs/index.js +22 -198
- package/node_modules/@smithy/config-resolver/dist-es/index.js +1 -3
- package/node_modules/@smithy/config-resolver/package.json +5 -30
- package/node_modules/@smithy/core/checksum.js +5 -0
- package/node_modules/@smithy/core/client.js +6 -0
- package/node_modules/@smithy/core/config.js +5 -0
- package/node_modules/@smithy/core/dist-cjs/index.js +6 -7
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/httpSigningMiddleware.js +4 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +8 -12
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.browser.js +202 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.js +259 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.native.js +229 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +1136 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +375 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +735 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +364 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +860 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +873 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +866 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +627 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +297 -20
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +800 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +827 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +5 -5
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +1452 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +996 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +1452 -0
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js +2 -2
- package/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +1 -1
- package/node_modules/@smithy/core/dist-es/middleware-http-signing/httpSigningMiddleware.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +1 -3
- package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +2 -3
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +1 -2
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +1 -2
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +2 -3
- package/node_modules/@smithy/core/dist-es/submodules/checksum/chunked-blob-reader/chunked-blob-reader.js +9 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/chunked-blob-reader/chunked-blob-reader.native.js +27 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/hash-blob-browser/blobHasher.js +8 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/hash-stream-node/HashCalculator.js +18 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/hash-stream-node/fileStreamHasher.js +24 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/hash-stream-node/readableStreamHasher.js +19 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/index.browser.js +6 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/index.js +5 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/index.native.js +6 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/md5-js/constants.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/md5-js/md5.js +168 -0
- package/node_modules/@smithy/core/dist-es/submodules/client/index.js +26 -0
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/client.js +1 -1
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/command.js +2 -2
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/extensions/checksum.js +1 -1
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/extensions/defaultExtensionConfiguration.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/util-waiter/circularReplacer.js +12 -0
- package/node_modules/@smithy/core/dist-es/submodules/client/util-waiter/createWaiter.js +48 -0
- package/node_modules/@smithy/core/dist-es/submodules/client/util-waiter/poller.js +87 -0
- package/node_modules/@smithy/core/dist-es/submodules/client/util-waiter/utils/sleep.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/client/util-waiter/utils/validate.js +17 -0
- package/node_modules/@smithy/core/dist-es/submodules/client/util-waiter/waiter.js +35 -0
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js +2 -1
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/endpointsConfig/NodeUseFipsEndpointConfigOptions.js +2 -1
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/endpointsConfig/resolveCustomEndpointsConfig.js +1 -1
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/endpointsConfig/resolveEndpointsConfig.js +1 -1
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/regionConfig/checkRegion.js +1 -1
- package/node_modules/@smithy/{util-defaults-mode-browser/dist-es/resolveDefaultsModeConfig.js → core/dist-es/submodules/config/defaults-mode/resolveDefaultsModeConfig.browser.js} +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/resolveDefaultsModeConfig.js +98 -0
- package/node_modules/@smithy/{util-defaults-mode-browser/dist-es → core/dist-es/submodules/config/defaults-mode}/resolveDefaultsModeConfig.native.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/config/index.browser.js +43 -0
- package/node_modules/@smithy/core/dist-es/submodules/config/index.js +29 -0
- package/node_modules/@smithy/core/dist-es/submodules/config/index.native.js +43 -0
- package/node_modules/@smithy/{node-config-provider/dist-es → core/dist-es/submodules/config/node-config-provider}/configLoader.js +2 -1
- package/node_modules/@smithy/{node-config-provider/dist-es → core/dist-es/submodules/config/node-config-provider}/fromEnv.js +1 -1
- package/node_modules/@smithy/{node-config-provider/dist-es → core/dist-es/submodules/config/node-config-provider}/fromSharedConfigFiles.js +3 -2
- package/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromStatic.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/config/property-provider/fromValue.js +1 -0
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/config/shared-ini-file-loader}/getConfigFilepath.js +1 -1
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/config/shared-ini-file-loader}/getCredentialsFilepath.js +1 -1
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/config/shared-ini-file-loader}/getHomeDir.js +2 -2
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/config/shared-ini-file-loader}/getSSOTokenFilepath.js +2 -2
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/config/shared-ini-file-loader}/getSSOTokenFromFile.js +1 -1
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/config/shared-ini-file-loader}/loadSharedConfigFiles.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/index.browser.js +22 -0
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/index.js +21 -0
- package/node_modules/@smithy/{middleware-endpoint/dist-es → core/dist-es/submodules/endpoints/middleware-endpoint}/adaptors/getEndpointFromConfig.js +1 -1
- package/node_modules/@smithy/{middleware-endpoint/dist-es → core/dist-es/submodules/endpoints/middleware-endpoint}/adaptors/getEndpointFromInstructions.js +28 -27
- package/node_modules/@smithy/{middleware-endpoint/dist-es → core/dist-es/submodules/endpoints/middleware-endpoint}/adaptors/getEndpointUrlConfig.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/toEndpointV1.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/endpointMiddleware.js +47 -0
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/getEndpointPlugin.js +26 -0
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/resolveEndpointConfig.js +25 -0
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/toEndpointV1.js +1 -1
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/evaluateExpression.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +1 -1
- package/node_modules/@smithy/{eventstream-codec/dist-es → core/dist-es/submodules/event-streams/eventstream-codec}/HeaderMarshaller.js +1 -1
- package/node_modules/@smithy/{eventstream-codec/dist-es → core/dist-es/submodules/event-streams/eventstream-codec}/Int64.js +1 -1
- package/node_modules/@smithy/{eventstream-serde-browser/dist-es/EventStreamMarshaller.js → core/dist-es/submodules/event-streams/eventstream-serde/EventStreamMarshaller.browser.js} +6 -5
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde/EventStreamMarshaller.js +45 -0
- package/node_modules/@smithy/{eventstream-serde-browser/dist-es → core/dist-es/submodules/event-streams/eventstream-serde}/utils.js +1 -1
- package/node_modules/@smithy/{eventstream-serde-universal/dist-es → core/dist-es/submodules/event-streams/eventstream-serde-universal}/EventStreamMarshaller.js +6 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/index.browser.js +14 -0
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/index.js +14 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +3 -4
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +3 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/collect-stream-body.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +12 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js +39 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/querystring-builder/buildQueryString.js +21 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js +1 -3
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js +1 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/url-parser/parseUrl.js +18 -0
- package/node_modules/@smithy/core/dist-es/submodules/retry/index.browser.js +27 -0
- package/node_modules/@smithy/core/dist-es/submodules/retry/index.js +20 -0
- package/node_modules/@smithy/{middleware-retry/dist-es → core/dist-es/submodules/retry/middleware-retry}/configurations.js +4 -2
- package/node_modules/@smithy/{middleware-retry/dist-es → core/dist-es/submodules/retry/middleware-retry}/isStreamingPayload/isStreamingPayload.js +1 -1
- package/node_modules/@smithy/{middleware-retry/dist-es → core/dist-es/submodules/retry/middleware-retry}/omitRetryHeadersMiddleware.js +2 -2
- package/node_modules/@smithy/{middleware-retry/dist-es → core/dist-es/submodules/retry/middleware-retry}/parseRetryAfterHeader.js +1 -1
- package/node_modules/@smithy/{middleware-retry/dist-es → core/dist-es/submodules/retry/middleware-retry}/retry-pre-sra-deprecated/AdaptiveRetryStrategy.js +2 -1
- package/node_modules/@smithy/{middleware-retry/dist-es → core/dist-es/submodules/retry/middleware-retry}/retry-pre-sra-deprecated/StandardRetryStrategy.js +5 -4
- package/node_modules/@smithy/{middleware-retry/dist-es → core/dist-es/submodules/retry/middleware-retry}/retry-pre-sra-deprecated/defaultRetryQuota.js +1 -1
- package/node_modules/@smithy/{middleware-retry/dist-es → core/dist-es/submodules/retry/middleware-retry}/retry-pre-sra-deprecated/delayDecider.js +1 -1
- package/node_modules/@smithy/{middleware-retry/dist-es → core/dist-es/submodules/retry/middleware-retry}/retry-pre-sra-deprecated/retryDecider.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js +109 -0
- package/node_modules/@smithy/{service-error-classification/dist-es/index.js → core/dist-es/submodules/retry/service-error-classification/service-error-classification.js} +1 -0
- package/node_modules/@smithy/{util-retry/dist-es → core/dist-es/submodules/retry/util-retry}/AdaptiveRetryStrategy.js +6 -3
- package/node_modules/@smithy/{util-retry/dist-es → core/dist-es/submodules/retry/util-retry}/DefaultRateLimiter.js +3 -2
- package/node_modules/@smithy/{util-retry/dist-es → core/dist-es/submodules/retry/util-retry}/StandardRetryStrategy.js +22 -12
- package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/generateIdempotencyToken.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/hash-node/hash-node.js +36 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +34 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +33 -10
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +34 -0
- package/node_modules/@smithy/{middleware-serde/dist-es → core/dist-es/submodules/serde/middleware-serde}/deserializerMiddleware.js +1 -1
- package/node_modules/@smithy/{util-base64/dist-es → core/dist-es/submodules/serde/util-base64}/fromBase64.browser.js +1 -1
- package/node_modules/@smithy/{util-base64/dist-es → core/dist-es/submodules/serde/util-base64}/fromBase64.js +1 -1
- package/node_modules/@smithy/{util-base64/dist-es → core/dist-es/submodules/serde/util-base64}/toBase64.browser.js +2 -2
- package/node_modules/@smithy/{util-base64/dist-es → core/dist-es/submodules/serde/util-base64}/toBase64.js +2 -2
- package/node_modules/@smithy/{util-body-length-node/dist-es → core/dist-es/submodules/serde/util-body-length}/calculateBodyLength.js +1 -1
- package/node_modules/{@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from/dist-es/index.js → @smithy/core/dist-es/submodules/serde/util-buffer-from/buffer-from.js} +1 -2
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-hex-encoding/hex-encoding.js +33 -0
- package/node_modules/@smithy/{util-stream/dist-es → core/dist-es/submodules/serde/util-stream}/blob/Uint8ArrayBlobAdapter.js +4 -2
- package/node_modules/@smithy/{util-stream/dist-es → core/dist-es/submodules/serde/util-stream}/checksum/ChecksumStream.js +2 -2
- package/node_modules/@smithy/{util-stream/dist-es → core/dist-es/submodules/serde/util-stream}/checksum/createChecksumStream.browser.js +1 -1
- package/node_modules/@smithy/{util-stream/dist-es → core/dist-es/submodules/serde/util-stream}/checksum/createChecksumStream.js +1 -1
- package/node_modules/@smithy/{util-stream/dist-es → core/dist-es/submodules/serde/util-stream}/createBufferedReadable.js +1 -1
- package/node_modules/@smithy/{util-stream/dist-es → core/dist-es/submodules/serde/util-stream}/headStream.js +1 -1
- package/node_modules/@smithy/{util-stream/dist-es → core/dist-es/submodules/serde/util-stream}/sdk-stream-mixin.browser.js +4 -4
- package/node_modules/@smithy/{util-stream/dist-es → core/dist-es/submodules/serde/util-stream}/sdk-stream-mixin.js +3 -3
- package/node_modules/@smithy/{util-stream/dist-es → core/dist-es/submodules/serde/util-stream}/splitStream.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/stream-collector.browser.js +53 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/stream-collector.js +48 -0
- package/node_modules/@smithy/{util-utf8/dist-es → core/dist-es/submodules/serde/util-utf8}/fromUtf8.js +1 -1
- package/node_modules/@smithy/{util-utf8/dist-es → core/dist-es/submodules/serde/util-utf8}/toUtf8.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/uuid/randomUUID.js +3 -0
- package/node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js +2 -2
- package/node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js +1 -1
- package/node_modules/@smithy/core/package.json +110 -11
- package/node_modules/@smithy/core/retry.js +5 -0
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +39 -41
- package/node_modules/@smithy/credential-provider-imds/dist-es/error/InstanceMetadataV1FallbackError.js +1 -1
- package/node_modules/@smithy/credential-provider-imds/dist-es/fromContainerMetadata.js +3 -3
- package/node_modules/@smithy/credential-provider-imds/dist-es/fromInstanceMetadata.js +2 -3
- package/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/httpRequest.js +2 -3
- package/node_modules/@smithy/credential-provider-imds/dist-es/utils/getInstanceMetadataEndpoint.js +2 -2
- package/node_modules/@smithy/credential-provider-imds/package.json +2 -4
- package/node_modules/@smithy/eventstream-codec/dist-cjs/index.js +11 -401
- package/node_modules/@smithy/eventstream-codec/dist-es/index.js +1 -8
- package/node_modules/@smithy/eventstream-codec/package.json +5 -26
- package/node_modules/@smithy/eventstream-serde-browser/dist-cjs/index.js +9 -58
- package/node_modules/@smithy/eventstream-serde-browser/dist-es/index.js +3 -3
- package/node_modules/@smithy/eventstream-serde-browser/package.json +7 -24
- package/node_modules/@smithy/eventstream-serde-config-resolver/dist-cjs/index.js +5 -7
- package/node_modules/@smithy/eventstream-serde-config-resolver/dist-es/index.js +1 -1
- package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +7 -25
- package/node_modules/@smithy/eventstream-serde-node/dist-cjs/index.js +6 -53
- package/node_modules/@smithy/eventstream-serde-node/dist-es/index.js +1 -2
- package/node_modules/@smithy/eventstream-serde-node/package.json +5 -23
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +6 -7
- package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +1 -2
- package/node_modules/@smithy/fetch-http-handler/dist-es/stream-collector.js +1 -1
- package/node_modules/@smithy/fetch-http-handler/package.json +2 -4
- package/node_modules/@smithy/hash-node/dist-cjs/index.js +5 -42
- package/node_modules/@smithy/hash-node/dist-es/index.js +1 -37
- package/node_modules/@smithy/hash-node/package.json +5 -29
- package/node_modules/@smithy/invalid-dependency/dist-cjs/index.js +6 -10
- package/node_modules/@smithy/invalid-dependency/dist-es/index.js +1 -2
- package/node_modules/@smithy/invalid-dependency/package.json +5 -25
- package/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +30 -4
- package/node_modules/@smithy/is-array-buffer/package.json +12 -13
- package/node_modules/@smithy/middleware-content-length/dist-cjs/index.js +7 -46
- package/node_modules/@smithy/middleware-content-length/dist-es/index.js +1 -39
- package/node_modules/@smithy/middleware-content-length/package.json +5 -28
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +12 -264
- package/node_modules/@smithy/middleware-endpoint/dist-es/index.js +1 -6
- package/node_modules/@smithy/middleware-endpoint/package.json +5 -39
- package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +22 -396
- package/node_modules/@smithy/middleware-retry/dist-es/index.js +1 -8
- package/node_modules/@smithy/middleware-retry/package.json +5 -44
- package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +9 -104
- package/node_modules/@smithy/middleware-serde/dist-es/index.js +1 -3
- package/node_modules/@smithy/middleware-serde/package.json +5 -30
- package/node_modules/@smithy/middleware-stack/dist-cjs/index.js +5 -285
- package/node_modules/@smithy/middleware-stack/dist-es/index.js +1 -1
- package/node_modules/@smithy/middleware-stack/package.json +5 -26
- package/node_modules/@smithy/node-config-provider/dist-cjs/index.js +5 -62
- package/node_modules/@smithy/node-config-provider/dist-es/index.js +1 -1
- package/node_modules/@smithy/node-config-provider/package.json +5 -28
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +72 -41
- package/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +5 -0
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +26 -16
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +31 -18
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +6 -4
- package/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +2 -2
- package/node_modules/@smithy/node-http-handler/package.json +2 -3
- package/node_modules/@smithy/property-provider/dist-cjs/index.js +10 -117
- package/node_modules/@smithy/property-provider/dist-es/index.js +1 -6
- package/node_modules/@smithy/property-provider/package.json +5 -25
- package/node_modules/@smithy/protocol-http/dist-cjs/index.js +11 -169
- package/node_modules/@smithy/protocol-http/dist-es/index.js +1 -8
- package/node_modules/@smithy/protocol-http/package.json +5 -25
- package/node_modules/@smithy/querystring-builder/dist-cjs/index.js +5 -26
- package/node_modules/@smithy/querystring-builder/dist-es/index.js +1 -21
- package/node_modules/@smithy/querystring-builder/package.json +5 -25
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +16 -196
- package/node_modules/@smithy/shared-ini-file-loader/dist-es/index.js +1 -10
- package/node_modules/@smithy/shared-ini-file-loader/package.json +5 -37
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +167 -170
- package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +1 -2
- package/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js +3 -4
- package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +3 -4
- package/node_modules/@smithy/signature-v4/dist-es/credentialDerivation.js +1 -2
- package/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js +1 -1
- package/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js +1 -3
- package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +1 -1
- package/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +1 -1
- package/node_modules/@smithy/signature-v4/package.json +2 -7
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +75 -642
- package/node_modules/@smithy/smithy-client/dist-es/index.js +3 -20
- package/node_modules/@smithy/smithy-client/package.json +5 -33
- package/node_modules/@smithy/url-parser/dist-cjs/index.js +5 -23
- package/node_modules/@smithy/url-parser/dist-es/index.js +1 -18
- package/node_modules/@smithy/url-parser/package.json +5 -26
- package/node_modules/@smithy/util-base64/dist-cjs/index.js +6 -27
- package/node_modules/@smithy/util-base64/dist-es/index.js +1 -2
- package/node_modules/@smithy/util-base64/package.json +5 -38
- package/node_modules/@smithy/util-body-length-browser/dist-cjs/index.js +5 -30
- package/node_modules/@smithy/util-body-length-browser/dist-es/index.js +1 -1
- package/node_modules/@smithy/util-body-length-browser/package.json +5 -25
- package/node_modules/@smithy/util-body-length-node/dist-cjs/index.js +5 -32
- package/node_modules/@smithy/util-body-length-node/dist-es/index.js +1 -1
- package/node_modules/@smithy/util-body-length-node/package.json +5 -26
- package/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +44 -17
- package/node_modules/@smithy/util-buffer-from/package.json +14 -15
- package/node_modules/@smithy/util-config-provider/dist-cjs/index.js +7 -30
- package/node_modules/@smithy/util-config-provider/dist-es/index.js +1 -3
- package/node_modules/@smithy/util-config-provider/package.json +5 -26
- package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/index.js +5 -16
- package/node_modules/@smithy/util-defaults-mode-browser/dist-es/index.js +1 -1
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +5 -30
- package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js +5 -74
- package/node_modules/@smithy/util-defaults-mode-node/dist-es/index.js +1 -1
- package/node_modules/@smithy/util-defaults-mode-node/package.json +5 -31
- package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +12 -573
- package/node_modules/@smithy/util-endpoints/dist-es/index.js +1 -8
- package/node_modules/@smithy/util-endpoints/package.json +5 -29
- package/node_modules/@smithy/util-hex-encoding/dist-cjs/index.js +6 -38
- package/node_modules/@smithy/util-hex-encoding/dist-es/index.js +1 -33
- package/node_modules/@smithy/util-hex-encoding/package.json +5 -25
- package/node_modules/@smithy/util-middleware/dist-cjs/index.js +6 -15
- package/node_modules/@smithy/util-middleware/dist-es/index.js +1 -2
- package/node_modules/@smithy/util-middleware/package.json +5 -26
- package/node_modules/@smithy/util-retry/dist-cjs/index.js +21 -333
- package/node_modules/@smithy/util-retry/dist-es/index.js +1 -8
- package/node_modules/@smithy/util-retry/package.json +5 -30
- package/node_modules/@smithy/util-stream/dist-cjs/index.js +14 -108
- package/node_modules/@smithy/util-stream/dist-es/index.js +1 -9
- package/node_modules/@smithy/util-stream/package.json +7 -63
- package/node_modules/@smithy/util-utf8/dist-cjs/index.js +7 -32
- package/node_modules/@smithy/util-utf8/dist-es/index.js +1 -3
- package/node_modules/@smithy/util-utf8/package.json +5 -31
- package/node_modules/@whiskeysockets/baileys/node_modules/p-queue/dist/priority-queue.js +53 -6
- package/node_modules/@whiskeysockets/baileys/node_modules/p-queue/package.json +3 -3
- package/node_modules/ajv/dist/core.js +1 -1
- package/node_modules/ajv/package.json +2 -3
- package/node_modules/axios/dist/axios.js +1416 -1075
- package/node_modules/axios/dist/axios.min.js +3 -3
- package/node_modules/axios/dist/browser/axios.cjs +1511 -1122
- package/node_modules/axios/dist/esm/axios.js +1513 -1123
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/node/axios.cjs +1150 -737
- package/node_modules/axios/index.d.cts +26 -13
- package/node_modules/axios/index.js +2 -0
- package/node_modules/axios/lib/adapters/adapters.js +4 -2
- package/node_modules/axios/lib/adapters/fetch.js +126 -10
- package/node_modules/axios/lib/adapters/http.js +232 -66
- package/node_modules/axios/lib/adapters/xhr.js +6 -2
- package/node_modules/axios/lib/core/Axios.js +7 -3
- package/node_modules/axios/lib/core/AxiosError.js +86 -1
- package/node_modules/axios/lib/core/AxiosHeaders.js +3 -0
- package/node_modules/axios/lib/core/dispatchRequest.js +19 -7
- package/node_modules/axios/lib/core/mergeConfig.js +16 -1
- package/node_modules/axios/lib/core/settle.js +7 -11
- package/node_modules/axios/lib/defaults/index.js +1 -1
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/buildURL.js +1 -1
- package/node_modules/axios/lib/helpers/cookies.js +14 -2
- package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +28 -1
- package/node_modules/axios/lib/helpers/formDataToStream.js +1 -1
- package/node_modules/axios/lib/helpers/parseProtocol.js +1 -1
- package/node_modules/axios/lib/helpers/resolveConfig.js +46 -18
- package/node_modules/axios/lib/helpers/shouldBypassProxy.js +26 -1
- package/node_modules/axios/lib/helpers/validator.js +3 -1
- package/node_modules/axios/lib/utils.js +27 -15
- package/node_modules/axios/package.json +17 -24
- package/node_modules/basic-ftp/dist/FtpContext.js +7 -1
- package/node_modules/basic-ftp/package.json +5 -5
- package/node_modules/brace-expansion/dist/commonjs/index.js +1 -1
- package/node_modules/brace-expansion/dist/esm/index.js +1 -1
- package/node_modules/brace-expansion/package.json +1 -1
- package/node_modules/cacheable/dist/index.cjs +17 -6
- package/node_modules/cacheable/dist/index.js +17 -6
- package/node_modules/cacheable/package.json +6 -6
- package/node_modules/express-rate-limit/dist/index.cjs +51 -10
- package/node_modules/express-rate-limit/dist/index.d.cts +31 -1
- package/node_modules/express-rate-limit/dist/index.mjs +51 -10
- package/node_modules/express-rate-limit/package.json +3 -2
- package/node_modules/fast-string-truncated-width/dist/index.js +36 -96
- package/node_modules/fast-string-truncated-width/dist/utils.js +14 -9
- package/node_modules/fast-string-truncated-width/package.json +1 -1
- package/node_modules/fast-string-width/package.json +2 -2
- package/node_modules/fast-uri/.github/workflows/ci.yml +12 -7
- package/node_modules/fast-uri/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +1 -1
- package/node_modules/fast-uri/index.js +90 -24
- package/node_modules/fast-uri/lib/utils.js +129 -22
- package/node_modules/fast-uri/package.json +3 -4
- package/node_modules/fast-wrap-ansi/lib/main.js +4 -1
- package/node_modules/fast-wrap-ansi/package.json +2 -2
- package/node_modules/fast-xml-builder/lib/fxb.cjs +1 -1
- package/node_modules/fast-xml-builder/lib/fxb.d.cts +91 -1
- package/node_modules/fast-xml-builder/lib/fxb.min.js +1 -1
- package/node_modules/fast-xml-builder/package.json +3 -2
- package/node_modules/fast-xml-builder/src/fxb.js +106 -40
- package/node_modules/fast-xml-builder/src/orderedJs2Xml.js +95 -42
- package/node_modules/fast-xml-builder/src/util.js +16 -0
- package/node_modules/fast-xml-parser/lib/fxbuilder.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.d.cts +172 -6
- package/node_modules/fast-xml-parser/lib/fxp.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxparser.min.js +1 -1
- package/node_modules/fast-xml-parser/package.json +5 -4
- package/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +2 -5
- package/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +15 -11
- package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +174 -245
- package/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +2 -2
- package/node_modules/get-east-asian-width/lookup-data.js +15 -12
- package/node_modules/get-east-asian-width/lookup.js +25 -22
- package/node_modules/get-east-asian-width/package.json +1 -1
- package/node_modules/hosted-git-info/lib/hosts.js +2 -2
- package/node_modules/hosted-git-info/package.json +13 -17
- package/node_modules/ip-address/dist/common.js +21 -0
- package/node_modules/ip-address/dist/ipv4.js +193 -68
- package/node_modules/ip-address/dist/ipv6.js +345 -131
- package/node_modules/ip-address/dist/v6/constants.js +5 -0
- package/node_modules/ip-address/dist/v6/helpers.js +12 -3
- package/node_modules/ip-address/package.json +45 -35
- package/node_modules/ipaddr.js/ipaddr.min.js +1 -1
- package/node_modules/ipaddr.js/lib/ipaddr.js +21 -6
- package/node_modules/ipaddr.js/package.json +1 -1
- package/node_modules/jiti/dist/babel.cjs +38 -27
- package/node_modules/jiti/dist/jiti.cjs +1 -1
- package/node_modules/jiti/lib/jiti-static.mjs +23 -0
- package/node_modules/jiti/package.json +56 -43
- package/node_modules/jose/dist/webapi/jwks/remote.js +1 -1
- package/node_modules/jose/dist/webapi/lib/pbes2kw.js +3 -0
- package/node_modules/jose/package.json +1 -1
- package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.js +7 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.js +1686 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.min.js +2 -0
- package/node_modules/lru-cache/dist/commonjs/browser/perf.js +11 -0
- package/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.d.cts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +4 -7
- package/node_modules/lru-cache/dist/commonjs/index.js +10 -16
- package/node_modules/lru-cache/dist/commonjs/index.min.js +1 -1
- package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.js +9 -0
- package/node_modules/lru-cache/dist/commonjs/node/index.js +1686 -0
- package/node_modules/lru-cache/dist/commonjs/node/index.min.js +2 -0
- package/node_modules/lru-cache/dist/commonjs/node/perf.js +11 -0
- package/node_modules/lru-cache/dist/commonjs/perf.js +11 -0
- package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +1 -1
- package/node_modules/lru-cache/dist/esm/browser/index.js +9 -15
- package/node_modules/lru-cache/dist/esm/browser/index.min.js +1 -1
- package/node_modules/lru-cache/dist/esm/browser/perf.js +8 -0
- package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -1
- package/node_modules/lru-cache/dist/esm/index.js +9 -15
- package/node_modules/lru-cache/dist/esm/index.min.js +1 -1
- package/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +2 -3
- package/node_modules/lru-cache/dist/esm/node/index.js +9 -15
- package/node_modules/lru-cache/dist/esm/node/index.min.js +1 -1
- package/node_modules/lru-cache/dist/esm/node/perf.js +8 -0
- package/node_modules/lru-cache/dist/esm/perf.js +8 -0
- package/node_modules/lru-cache/package.json +44 -16
- package/node_modules/protobufjs/dist/light/protobuf.js +233 -109
- package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/minimal/protobuf.js +90 -38
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/protobuf.js +237 -112
- package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/node_modules/protobufjs/ext/descriptor/index.js +35 -16
- package/node_modules/protobufjs/package.json +7 -4
- package/node_modules/protobufjs/src/converter.js +14 -5
- package/node_modules/protobufjs/src/decoder.js +17 -9
- package/node_modules/protobufjs/src/enum.js +4 -1
- package/node_modules/protobufjs/src/namespace.js +13 -7
- package/node_modules/protobufjs/src/object.js +4 -0
- package/node_modules/protobufjs/src/parse.js +4 -3
- package/node_modules/protobufjs/src/reader.js +12 -2
- package/node_modules/protobufjs/src/service.js +8 -4
- package/node_modules/protobufjs/src/type.js +22 -12
- package/node_modules/protobufjs/src/types.js +1 -1
- package/node_modules/protobufjs/src/util/minimal.js +24 -1
- package/node_modules/protobufjs/src/util/patterns.js +8 -0
- package/node_modules/protobufjs/src/util.js +9 -9
- package/node_modules/protobufjs/src/verifier.js +7 -4
- package/node_modules/protobufjs/src/wrappers.js +4 -3
- package/node_modules/qified/dist/index.cjs +129 -24
- package/node_modules/qified/dist/index.d.cts +41 -14
- package/node_modules/qified/dist/index.mjs +129 -24
- package/node_modules/qified/node_modules/hookified/dist/browser/index.global.js +949 -890
- package/node_modules/qified/node_modules/hookified/dist/browser/index.js +934 -886
- package/node_modules/qified/node_modules/hookified/dist/node/index.cjs +900 -912
- package/node_modules/qified/node_modules/hookified/dist/node/index.d.cts +730 -631
- package/node_modules/qified/node_modules/hookified/dist/node/index.js +895 -882
- package/node_modules/qified/node_modules/hookified/package.json +12 -11
- package/node_modules/qified/package.json +1 -1
- package/node_modules/semver/bin/semver.js +14 -10
- package/node_modules/semver/functions/truncate.js +48 -0
- package/node_modules/semver/index.js +2 -0
- package/node_modules/semver/internal/re.js +1 -1
- package/node_modules/semver/package.json +3 -3
- package/node_modules/semver/range.bnf +5 -4
- package/node_modules/socks/package.json +3 -3
- package/node_modules/strnum/package.json +3 -2
- package/node_modules/strnum/strnum.js +12 -10
- package/node_modules/xml-naming/package.json +54 -0
- package/node_modules/xml-naming/src/index.js +270 -0
- package/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +5 -3
- package/node_modules/yaml/browser/dist/nodes/Alias.js +2 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +11 -8
- package/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +2 -1
- package/node_modules/yaml/dist/compose/resolve-flow-scalar.js +5 -3
- package/node_modules/yaml/dist/nodes/Alias.js +2 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/merge.js +10 -7
- package/node_modules/yaml/dist/stringify/stringifyNumber.js +2 -1
- package/node_modules/yaml/package.json +1 -1
- package/node_modules/zod/locales/package.json +2 -1
- package/node_modules/zod/mini/package.json +2 -1
- package/node_modules/zod/package.json +1 -1
- package/node_modules/zod/v3/package.json +2 -1
- package/node_modules/zod/v4/classic/errors.js +2 -2
- package/node_modules/zod/v4/classic/external.d.cts +1 -0
- package/node_modules/zod/v4/classic/from-json-schema.cjs +31 -16
- package/node_modules/zod/v4/classic/from-json-schema.js +31 -16
- package/node_modules/zod/v4/classic/package.json +2 -1
- package/node_modules/zod/v4/classic/schemas.cjs +358 -119
- package/node_modules/zod/v4/classic/schemas.d.cts +42 -14
- package/node_modules/zod/v4/classic/schemas.js +356 -118
- package/node_modules/zod/v4/core/api.cjs +7 -2
- package/node_modules/zod/v4/core/api.d.cts +26 -5
- package/node_modules/zod/v4/core/api.js +7 -2
- package/node_modules/zod/v4/core/checks.d.cts +1 -1
- package/node_modules/zod/v4/core/core.cjs +3 -1
- package/node_modules/zod/v4/core/core.js +4 -2
- package/node_modules/zod/v4/core/errors.cjs +26 -23
- package/node_modules/zod/v4/core/errors.d.cts +1 -0
- package/node_modules/zod/v4/core/errors.js +26 -23
- package/node_modules/zod/v4/core/json-schema-processors.cjs +16 -20
- package/node_modules/zod/v4/core/json-schema-processors.js +16 -20
- package/node_modules/zod/v4/core/package.json +2 -1
- package/node_modules/zod/v4/core/parse.cjs +7 -7
- package/node_modules/zod/v4/core/parse.js +7 -7
- package/node_modules/zod/v4/core/regexes.cjs +9 -3
- package/node_modules/zod/v4/core/regexes.d.cts +6 -0
- package/node_modules/zod/v4/core/regexes.js +7 -1
- package/node_modules/zod/v4/core/schemas.cjs +211 -65
- package/node_modules/zod/v4/core/schemas.d.cts +39 -1
- package/node_modules/zod/v4/core/schemas.js +210 -64
- package/node_modules/zod/v4/core/to-json-schema.cjs +12 -1
- package/node_modules/zod/v4/core/to-json-schema.js +12 -1
- package/node_modules/zod/v4/core/util.cjs +54 -30
- package/node_modules/zod/v4/core/util.d.cts +1 -0
- package/node_modules/zod/v4/core/util.js +55 -32
- package/node_modules/zod/v4/core/versions.cjs +2 -2
- package/node_modules/zod/v4/core/versions.d.cts +1 -1
- package/node_modules/zod/v4/core/versions.js +2 -2
- package/node_modules/zod/v4/locales/el.cjs +136 -0
- package/node_modules/zod/v4/locales/el.d.cts +5 -0
- package/node_modules/zod/v4/locales/el.js +109 -0
- package/node_modules/zod/v4/locales/en.cjs +4 -0
- package/node_modules/zod/v4/locales/en.js +4 -0
- package/node_modules/zod/v4/locales/fr.cjs +24 -7
- package/node_modules/zod/v4/locales/fr.js +24 -7
- package/node_modules/zod/v4/locales/hr.cjs +149 -0
- package/node_modules/zod/v4/locales/hr.d.cts +5 -0
- package/node_modules/zod/v4/locales/hr.js +122 -0
- package/node_modules/zod/v4/locales/index.cjs +8 -1
- package/node_modules/zod/v4/locales/index.d.cts +3 -0
- package/node_modules/zod/v4/locales/index.js +3 -0
- package/node_modules/zod/v4/locales/it.cjs +1 -1
- package/node_modules/zod/v4/locales/it.js +1 -1
- package/node_modules/zod/v4/locales/ka.cjs +8 -8
- package/node_modules/zod/v4/locales/ka.js +8 -8
- package/node_modules/zod/v4/locales/package.json +2 -1
- package/node_modules/zod/v4/locales/ro.cjs +146 -0
- package/node_modules/zod/v4/locales/ro.d.cts +5 -0
- package/node_modules/zod/v4/locales/ro.js +119 -0
- package/node_modules/zod/v4/locales/uz.cjs +1 -0
- package/node_modules/zod/v4/locales/uz.js +1 -0
- package/node_modules/zod/v4/mini/external.d.cts +1 -0
- package/node_modules/zod/v4/mini/package.json +2 -1
- package/node_modules/zod/v4/mini/schemas.cjs +41 -4
- package/node_modules/zod/v4/mini/schemas.d.cts +28 -10
- package/node_modules/zod/v4/mini/schemas.js +40 -4
- package/node_modules/zod/v4/package.json +2 -1
- package/node_modules/zod/v4-mini/package.json +2 -1
- package/package.json +2 -2
- package/skills/news-fetcher/SKILL.md +278 -0
- package/skills/qqbrowser-skill/SKILL.md +15 -4
- package/skills/social-publish/SKILL.md +115 -0
- package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +0 -32
- package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer/package.json +0 -60
- package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +0 -47
- package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from/package.json +0 -61
- package/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +0 -32
- package/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/dist-es/index.js +0 -2
- package/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/package.json +0 -60
- package/node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +0 -47
- package/node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/dist-es/index.js +0 -14
- package/node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/package.json +0 -61
- package/node_modules/@protobufjs/inquire/.npmignore +0 -3
- package/node_modules/@protobufjs/utf8/.npmignore +0 -3
- package/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/index.js +0 -4
- package/node_modules/@smithy/config-resolver/dist-es/regionConfig/index.js +0 -2
- package/node_modules/@smithy/config-resolver/dist-es/regionInfo/index.js +0 -3
- package/node_modules/@smithy/eventstream-serde-browser/dist-es/provider.js +0 -2
- package/node_modules/@smithy/eventstream-serde-node/dist-es/EventStreamMarshaller.js +0 -19
- package/node_modules/@smithy/eventstream-serde-node/dist-es/provider.js +0 -2
- package/node_modules/@smithy/eventstream-serde-node/dist-es/utils.js +0 -26
- package/node_modules/@smithy/eventstream-serde-universal/dist-cjs/index.js +0 -132
- package/node_modules/@smithy/eventstream-serde-universal/dist-es/index.js +0 -2
- package/node_modules/@smithy/eventstream-serde-universal/dist-es/provider.js +0 -2
- package/node_modules/@smithy/eventstream-serde-universal/package.json +0 -65
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.browser.js +0 -5
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.js +0 -7
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointUrlConfig.js +0 -35
- package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/index.js +0 -2
- package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/toEndpointV1.js +0 -17
- package/node_modules/@smithy/middleware-endpoint/dist-es/endpointMiddleware.js +0 -36
- package/node_modules/@smithy/middleware-endpoint/dist-es/getEndpointPlugin.js +0 -18
- package/node_modules/@smithy/middleware-endpoint/dist-es/resolveEndpointConfig.js +0 -24
- package/node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.browser.js +0 -5
- package/node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.js +0 -7
- package/node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js +0 -105
- package/node_modules/@smithy/node-config-provider/dist-es/fromStatic.js +0 -3
- package/node_modules/@smithy/property-provider/dist-es/fromStatic.js +0 -1
- package/node_modules/@smithy/protocol-http/dist-es/extensions/index.js +0 -1
- package/node_modules/@smithy/querystring-parser/dist-cjs/index.js +0 -27
- package/node_modules/@smithy/querystring-parser/package.json +0 -60
- package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +0 -82
- package/node_modules/@smithy/service-error-classification/package.json +0 -59
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js +0 -26
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js +0 -12
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +0 -15
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/readFile.js +0 -16
- package/node_modules/@smithy/smithy-client/dist-es/collect-stream-body.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-es/extended-encode-uri-component.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-es/extensions/index.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-es/resolve-path.js +0 -1
- package/node_modules/@smithy/util-base64/dist-cjs/constants.browser.js +0 -12
- package/node_modules/@smithy/util-base64/dist-cjs/fromBase64.browser.js +0 -40
- package/node_modules/@smithy/util-base64/dist-cjs/fromBase64.js +0 -16
- package/node_modules/@smithy/util-base64/dist-cjs/toBase64.browser.js +0 -38
- package/node_modules/@smithy/util-base64/dist-cjs/toBase64.js +0 -19
- package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/constants.js +0 -4
- package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.js +0 -34
- package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.native.js +0 -23
- package/node_modules/@smithy/util-defaults-mode-browser/dist-es/constants.js +0 -1
- package/node_modules/@smithy/util-defaults-mode-node/dist-es/resolveDefaultsModeConfig.js +0 -52
- package/node_modules/@smithy/util-stream/dist-cjs/ByteArrayCollector.js +0 -36
- package/node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.browser.js +0 -7
- package/node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.js +0 -64
- package/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.browser.js +0 -39
- package/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.js +0 -12
- package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadable.js +0 -60
- package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadableStream.js +0 -103
- package/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.browser.js +0 -31
- package/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js +0 -41
- package/node_modules/@smithy/util-stream/dist-cjs/headStream.browser.js +0 -34
- package/node_modules/@smithy/util-stream/dist-cjs/headStream.js +0 -42
- package/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.browser.js +0 -68
- package/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js +0 -54
- package/node_modules/@smithy/util-stream/dist-cjs/splitStream.browser.js +0 -10
- package/node_modules/@smithy/util-stream/dist-cjs/splitStream.js +0 -16
- package/node_modules/@smithy/util-stream/dist-cjs/stream-type-check.js +0 -10
- package/node_modules/@smithy/util-uri-escape/dist-cjs/index.js +0 -9
- package/node_modules/@smithy/util-uri-escape/dist-es/index.js +0 -2
- package/node_modules/@smithy/util-uri-escape/package.json +0 -60
- package/node_modules/@smithy/uuid/dist-cjs/index.js +0 -36
- package/node_modules/@smithy/uuid/dist-cjs/randomUUID.js +0 -6
- package/node_modules/@smithy/uuid/dist-cjs/randomUUID.native.js +0 -4
- package/node_modules/@smithy/uuid/dist-es/index.js +0 -1
- package/node_modules/@smithy/uuid/dist-es/randomUUID.browser.js +0 -1
- package/node_modules/@smithy/uuid/dist-es/randomUUID.js +0 -2
- package/node_modules/@smithy/uuid/dist-es/randomUUID.native.js +0 -1
- package/node_modules/@smithy/uuid/package.json +0 -66
- package/node_modules/fast-uri/.github/.stale.yml +0 -21
- package/node_modules/fast-uri/.github/tests_checker.yml +0 -8
- package/node_modules/fast-xml-parser/lib/pem.d.cts +0 -148
- package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.d.mts.map +0 -1
- package/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.mts.map +0 -1
- package/node_modules/@smithy/{invalid-dependency/dist-es → core/dist-es/submodules/client/invalid-dependency}/invalidFunction.js +0 -0
- package/node_modules/@smithy/{invalid-dependency/dist-es → core/dist-es/submodules/client/invalid-dependency}/invalidProvider.js +0 -0
- package/node_modules/@smithy/{middleware-stack/dist-es → core/dist-es/submodules/client/middleware-stack}/MiddlewareStack.js +0 -0
- package/node_modules/@smithy/{middleware-endpoint/dist-es → core/dist-es/submodules/client/middleware-stack}/types.js +0 -0
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/NoOpLogger.js +0 -0
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/constants.js +0 -0
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/create-aggregated-client.js +0 -0
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/default-error-handler.js +0 -0
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/defaults-mode.js +0 -0
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/emitWarningIfUnsupportedVersion.js +0 -0
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/exceptions.js +0 -0
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/extensions/retry.js +0 -0
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/get-array-if-single-item.js +0 -0
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/get-value-from-text-node.js +0 -0
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/is-serializable-header-value.js +0 -0
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/object-mapping.js +0 -0
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/schemaLogFilter.js +0 -0
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/ser-utils.js +0 -0
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/serde-json.js +0 -0
- package/node_modules/@smithy/{util-middleware/dist-es → core/dist-es/submodules/client/util-middleware}/getSmithyContext.js +0 -0
- package/node_modules/@smithy/{util-middleware/dist-es → core/dist-es/submodules/client/util-middleware}/normalizeProvider.js +0 -0
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/endpointsConfig/utils/getEndpointFromRegion.js +0 -0
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/regionConfig/config.js +0 -0
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/regionConfig/getRealRegion.js +0 -0
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/regionConfig/isFipsRegion.js +0 -0
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/regionConfig/resolveRegionConfig.js +0 -0
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/regionInfo/EndpointVariant.js +0 -0
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/regionInfo/EndpointVariantTag.js +0 -0
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/regionInfo/PartitionHash.js +0 -0
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/regionInfo/RegionHash.js +0 -0
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/regionInfo/getHostnameFromVariants.js +0 -0
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/regionInfo/getRegionInfo.js +0 -0
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/regionInfo/getResolvedHostname.js +0 -0
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/regionInfo/getResolvedPartition.js +0 -0
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/regionInfo/getResolvedSigningRegion.js +0 -0
- package/node_modules/@smithy/{util-defaults-mode-node/dist-es → core/dist-es/submodules/config/defaults-mode}/constants.js +0 -0
- package/node_modules/@smithy/{util-defaults-mode-node/dist-es → core/dist-es/submodules/config/defaults-mode}/defaultsModeConfig.js +0 -0
- package/node_modules/@smithy/{node-config-provider/dist-es → core/dist-es/submodules/config/node-config-provider}/getSelectorName.js +0 -0
- package/node_modules/@smithy/{property-provider/dist-es → core/dist-es/submodules/config/property-provider}/CredentialsProviderError.js +0 -0
- package/node_modules/@smithy/{property-provider/dist-es → core/dist-es/submodules/config/property-provider}/ProviderError.js +0 -0
- package/node_modules/@smithy/{property-provider/dist-es → core/dist-es/submodules/config/property-provider}/TokenProviderError.js +0 -0
- package/node_modules/@smithy/{property-provider/dist-es → core/dist-es/submodules/config/property-provider}/chain.js +0 -0
- package/node_modules/@smithy/{property-provider/dist-es → core/dist-es/submodules/config/property-provider}/memoize.js +0 -0
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/config/shared-ini-file-loader}/constants.js +0 -0
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/config/shared-ini-file-loader}/externalDataInterceptor.js +0 -0
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/config/shared-ini-file-loader}/getConfigData.js +0 -0
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/config/shared-ini-file-loader}/getProfileName.js +0 -0
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/config/shared-ini-file-loader}/getSsoSessionData.js +0 -0
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/config/shared-ini-file-loader}/loadSsoSessionData.js +0 -0
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/config/shared-ini-file-loader}/mergeConfigFiles.js +0 -0
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/config/shared-ini-file-loader}/parseIni.js +0 -0
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/config/shared-ini-file-loader}/parseKnownFiles.js +0 -0
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/config/shared-ini-file-loader}/readFile.js +0 -0
- package/node_modules/@smithy/{middleware-retry/dist-es/retry-pre-sra-deprecated → core/dist-es/submodules/config/shared-ini-file-loader}/types.js +0 -0
- package/node_modules/@smithy/{util-config-provider/dist-es → core/dist-es/submodules/config/util-config-provider}/booleanSelector.js +0 -0
- package/node_modules/@smithy/{util-config-provider/dist-es → core/dist-es/submodules/config/util-config-provider}/numberSelector.js +0 -0
- package/node_modules/@smithy/{util-config-provider/dist-es → core/dist-es/submodules/config/util-config-provider}/types.js +0 -0
- package/node_modules/@smithy/{middleware-endpoint/dist-es → core/dist-es/submodules/endpoints/middleware-endpoint}/adaptors/createConfigValueProvider.js +0 -0
- package/node_modules/@smithy/{middleware-endpoint/dist-es → core/dist-es/submodules/endpoints/middleware-endpoint}/adaptors/getEndpointFromConfig.browser.js +0 -0
- package/node_modules/@smithy/{middleware-endpoint/dist-es → core/dist-es/submodules/endpoints/middleware-endpoint}/resolveEndpointRequiredConfig.js +0 -0
- package/node_modules/@smithy/{middleware-endpoint/dist-es → core/dist-es/submodules/endpoints/middleware-endpoint}/service-customizations/index.js +0 -0
- package/node_modules/@smithy/{middleware-endpoint/dist-es → core/dist-es/submodules/endpoints/middleware-endpoint}/service-customizations/s3.js +0 -0
- package/node_modules/@smithy/{middleware-stack/dist-es → core/dist-es/submodules/endpoints/middleware-endpoint}/types.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/bdd/BinaryDecisionDiagram.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/cache/EndpointCache.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/debug/debugId.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/debug/index.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/debug/toDebugString.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/decideEndpoint.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/getEndpointUrlConfig.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/lib/booleanEquals.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/lib/coalesce.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/lib/getAttr.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/lib/getAttrPathList.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/lib/index.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/lib/isIpAddress.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/lib/isSet.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/lib/isValidHostLabel.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/lib/ite.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/lib/not.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/lib/parseURL.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/lib/split.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/lib/stringEquals.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/lib/substring.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/lib/uriEncode.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/resolveEndpoint.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/types/EndpointError.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/types/EndpointFunctions.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/types/EndpointRuleObject.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/types/ErrorRuleObject.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/types/RuleSetObject.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/types/TreeRuleObject.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/types/index.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/types/shared.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/callFunction.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/customEndpointFunctions.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/endpointFunctions.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/evaluateCondition.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/evaluateConditions.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/evaluateEndpointRule.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/evaluateErrorRule.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/evaluateRules.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/evaluateTemplate.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/evaluateTreeRule.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/getEndpointHeaders.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/getEndpointProperties.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/getEndpointProperty.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/getEndpointUrl.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/getReferenceValue.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/index.js +0 -0
- package/node_modules/@smithy/{eventstream-codec/dist-es → core/dist-es/submodules/event-streams/eventstream-codec}/EventStreamCodec.js +0 -0
- package/node_modules/@smithy/{eventstream-codec/dist-es → core/dist-es/submodules/event-streams/eventstream-codec}/Message.js +0 -0
- package/node_modules/@smithy/{eventstream-codec/dist-es → core/dist-es/submodules/event-streams/eventstream-codec}/MessageDecoderStream.js +0 -0
- package/node_modules/@smithy/{eventstream-codec/dist-es → core/dist-es/submodules/event-streams/eventstream-codec}/MessageEncoderStream.js +0 -0
- package/node_modules/@smithy/{eventstream-codec/dist-es → core/dist-es/submodules/event-streams/eventstream-codec}/SmithyMessageDecoderStream.js +0 -0
- package/node_modules/@smithy/{eventstream-codec/dist-es → core/dist-es/submodules/event-streams/eventstream-codec}/SmithyMessageEncoderStream.js +0 -0
- package/node_modules/@smithy/{eventstream-codec/dist-es → core/dist-es/submodules/event-streams/eventstream-codec}/TestVectors.fixture.js +0 -0
- package/node_modules/@smithy/{eventstream-codec/dist-es → core/dist-es/submodules/event-streams/eventstream-codec}/splitMessage.js +0 -0
- package/node_modules/@smithy/{eventstream-codec/dist-es → core/dist-es/submodules/event-streams/eventstream-codec}/vectorTypes.fixture.js +0 -0
- package/node_modules/@smithy/{eventstream-serde-config-resolver/dist-es → core/dist-es/submodules/event-streams/eventstream-serde-config-resolver}/EventStreamSerdeConfig.js +0 -0
- package/node_modules/@smithy/{eventstream-serde-universal/dist-es → core/dist-es/submodules/event-streams/eventstream-serde-universal}/getChunkedStream.js +0 -0
- package/node_modules/@smithy/{eventstream-serde-universal/dist-es → core/dist-es/submodules/event-streams/eventstream-serde-universal}/getUnmarshalledStream.js +0 -0
- package/node_modules/@smithy/{protocol-http/dist-es → core/dist-es/submodules/protocols/protocol-http}/Field.js +0 -0
- package/node_modules/@smithy/{protocol-http/dist-es → core/dist-es/submodules/protocols/protocol-http}/Fields.js +0 -0
- package/node_modules/@smithy/{protocol-http/dist-es → core/dist-es/submodules/protocols/protocol-http}/extensions/httpExtensionConfiguration.js +0 -0
- package/node_modules/@smithy/{protocol-http/dist-es → core/dist-es/submodules/protocols/protocol-http}/httpHandler.js +0 -0
- package/node_modules/@smithy/{protocol-http/dist-es → core/dist-es/submodules/protocols/protocol-http}/httpRequest.js +0 -0
- package/node_modules/@smithy/{protocol-http/dist-es → core/dist-es/submodules/protocols/protocol-http}/httpResponse.js +0 -0
- package/node_modules/@smithy/{protocol-http/dist-es → core/dist-es/submodules/protocols/protocol-http}/isValidHostname.js +0 -0
- package/node_modules/@smithy/{protocol-http/dist-es → core/dist-es/submodules/protocols/protocol-http}/types.js +0 -0
- package/node_modules/@smithy/{querystring-parser/dist-es/index.js → core/dist-es/submodules/protocols/querystring-parser/parseQueryString.js} +0 -0
- package/node_modules/@smithy/{util-uri-escape/dist-es → core/dist-es/submodules/protocols/util-uri-escape}/escape-uri-path.js +0 -0
- package/node_modules/@smithy/{util-uri-escape/dist-es → core/dist-es/submodules/protocols/util-uri-escape}/escape-uri.js +0 -0
- package/node_modules/@smithy/{middleware-retry/dist-es → core/dist-es/submodules/retry/middleware-retry}/isStreamingPayload/isStreamingPayload.browser.js +0 -0
- package/node_modules/@smithy/{middleware-retry/dist-es → core/dist-es/submodules/retry/middleware-retry}/longPollMiddleware.js +0 -0
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated}/types.js +0 -0
- package/node_modules/@smithy/{middleware-retry/dist-es → core/dist-es/submodules/retry/middleware-retry}/util.js +0 -0
- package/node_modules/@smithy/{service-error-classification/dist-es → core/dist-es/submodules/retry/service-error-classification}/constants.js +0 -0
- package/node_modules/@smithy/{util-retry/dist-es → core/dist-es/submodules/retry/util-retry}/ConfiguredRetryStrategy.js +1 -1
- /package/node_modules/@smithy/{util-retry/dist-es → core/dist-es/submodules/retry/util-retry}/DefaultRetryBackoffStrategy.js +0 -0
- /package/node_modules/@smithy/{util-retry/dist-es → core/dist-es/submodules/retry/util-retry}/DefaultRetryToken.js +0 -0
- /package/node_modules/@smithy/{util-retry/dist-es → core/dist-es/submodules/retry/util-retry}/config.js +0 -0
- /package/node_modules/@smithy/{util-retry/dist-es → core/dist-es/submodules/retry/util-retry}/constants.js +0 -0
- /package/node_modules/@smithy/{util-retry/dist-es → core/dist-es/submodules/retry/util-retry}/retries-2026-config.js +0 -0
- /package/node_modules/@smithy/{util-retry/dist-es → core/dist-es/submodules/retry/util-retry}/types.js +0 -0
- /package/node_modules/{@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer/dist-es/index.js → @smithy/core/dist-es/submodules/serde/is-array-buffer/is-array-buffer.js} +0 -0
- /package/node_modules/@smithy/{middleware-serde/dist-es → core/dist-es/submodules/serde/middleware-serde}/serdePlugin.js +0 -0
- /package/node_modules/@smithy/{middleware-serde/dist-es → core/dist-es/submodules/serde/middleware-serde}/serializerMiddleware.js +0 -0
- /package/node_modules/@smithy/{util-base64/dist-es/constants.browser.js → core/dist-es/submodules/serde/util-base64/constants-for-browser.js} +0 -0
- /package/node_modules/@smithy/{util-body-length-browser/dist-es/calculateBodyLength.js → core/dist-es/submodules/serde/util-body-length/calculateBodyLength.browser.js} +0 -0
- /package/node_modules/@smithy/{util-stream/dist-es → core/dist-es/submodules/serde/util-stream}/ByteArrayCollector.js +0 -0
- /package/node_modules/@smithy/{util-stream/dist-es → core/dist-es/submodules/serde/util-stream}/checksum/ChecksumStream.browser.js +0 -0
- /package/node_modules/@smithy/{util-stream/dist-es/createBufferedReadableStream.js → core/dist-es/submodules/serde/util-stream/createBufferedReadable.browser.js} +0 -0
- /package/node_modules/@smithy/{util-stream/dist-es → core/dist-es/submodules/serde/util-stream}/getAwsChunkedEncodingStream.browser.js +0 -0
- /package/node_modules/@smithy/{util-stream/dist-es → core/dist-es/submodules/serde/util-stream}/getAwsChunkedEncodingStream.js +0 -0
- /package/node_modules/@smithy/{util-stream/dist-es → core/dist-es/submodules/serde/util-stream}/headStream.browser.js +0 -0
- /package/node_modules/@smithy/{util-stream/dist-es → core/dist-es/submodules/serde/util-stream}/splitStream.browser.js +0 -0
- /package/node_modules/@smithy/{util-stream/dist-es → core/dist-es/submodules/serde/util-stream}/stream-type-check.js +0 -0
- /package/node_modules/@smithy/{util-utf8/dist-es → core/dist-es/submodules/serde/util-utf8}/fromUtf8.browser.js +0 -0
- /package/node_modules/@smithy/{util-utf8/dist-es → core/dist-es/submodules/serde/util-utf8}/toUint8Array.js +0 -0
- /package/node_modules/@smithy/{util-utf8/dist-es → core/dist-es/submodules/serde/util-utf8}/toUtf8.browser.js +0 -0
- /package/node_modules/@smithy/{uuid/dist-es → core/dist-es/submodules/serde/uuid}/v4.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Axios v1.
|
|
1
|
+
/*! Axios v1.16.0 Copyright (c) 2026 Matt Zabriskie and contributors */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
@@ -745,9 +745,9 @@
|
|
|
745
745
|
* also have a `name` and `type` attribute to specify filename and content type
|
|
746
746
|
*
|
|
747
747
|
* @see https://github.com/facebook/react-native/blob/26684cf3adf4094eb6c405d345a75bf8c7c0bf88/Libraries/Network/FormData.js#L68-L71
|
|
748
|
-
*
|
|
748
|
+
*
|
|
749
749
|
* @param {*} value The value to test
|
|
750
|
-
*
|
|
750
|
+
*
|
|
751
751
|
* @returns {boolean} True if value is a React Native Blob, otherwise false
|
|
752
752
|
*/
|
|
753
753
|
var isReactNativeBlob = function isReactNativeBlob(value) {
|
|
@@ -757,9 +757,9 @@
|
|
|
757
757
|
/**
|
|
758
758
|
* Determine if environment is React Native
|
|
759
759
|
* ReactNative `FormData` has a non-standard `getParts()` method
|
|
760
|
-
*
|
|
760
|
+
*
|
|
761
761
|
* @param {*} formData The formData to test
|
|
762
|
-
*
|
|
762
|
+
*
|
|
763
763
|
* @returns {boolean} True if environment is React Native, otherwise false
|
|
764
764
|
*/
|
|
765
765
|
var isReactNative = function isReactNative(formData) {
|
|
@@ -780,7 +780,7 @@
|
|
|
780
780
|
*
|
|
781
781
|
* @param {*} val The value to test
|
|
782
782
|
*
|
|
783
|
-
* @returns {boolean} True if value is a
|
|
783
|
+
* @returns {boolean} True if value is a FileList, otherwise false
|
|
784
784
|
*/
|
|
785
785
|
var isFileList = kindOfTest('FileList');
|
|
786
786
|
|
|
@@ -814,7 +814,7 @@
|
|
|
814
814
|
var isFormData = function isFormData(thing) {
|
|
815
815
|
if (!thing) return false;
|
|
816
816
|
if (FormDataCtor && thing instanceof FormDataCtor) return true;
|
|
817
|
-
// Reject plain objects inheriting directly from Object.prototype so prototype-pollution gadgets can't spoof FormData
|
|
817
|
+
// Reject plain objects inheriting directly from Object.prototype so prototype-pollution gadgets can't spoof FormData.
|
|
818
818
|
var proto = getPrototypeOf(thing);
|
|
819
819
|
if (!proto || proto === Object.prototype) return false;
|
|
820
820
|
if (!isFunction$1(thing.append)) return false;
|
|
@@ -954,8 +954,7 @@
|
|
|
954
954
|
*
|
|
955
955
|
* @returns {Object} Result of all merge properties
|
|
956
956
|
*/
|
|
957
|
-
function merge(
|
|
958
|
-
) {
|
|
957
|
+
function merge() {
|
|
959
958
|
var _ref2 = isContextDefined(this) && this || {},
|
|
960
959
|
caseless = _ref2.caseless,
|
|
961
960
|
skipUndefined = _ref2.skipUndefined;
|
|
@@ -966,8 +965,12 @@
|
|
|
966
965
|
return;
|
|
967
966
|
}
|
|
968
967
|
var targetKey = caseless && findKey(result, key) || key;
|
|
969
|
-
|
|
970
|
-
|
|
968
|
+
// Read via own-prop only — a bare `result[targetKey]` walks the prototype
|
|
969
|
+
// chain, so a polluted Object.prototype value could surface here and get
|
|
970
|
+
// copied into the merged result.
|
|
971
|
+
var existing = hasOwnProperty(result, targetKey) ? result[targetKey] : undefined;
|
|
972
|
+
if (isPlainObject(existing) && isPlainObject(val)) {
|
|
973
|
+
result[targetKey] = merge(existing, val);
|
|
971
974
|
} else if (isPlainObject(val)) {
|
|
972
975
|
result[targetKey] = merge({}, val);
|
|
973
976
|
} else if (isArray(val)) {
|
|
@@ -976,8 +979,11 @@
|
|
|
976
979
|
result[targetKey] = val;
|
|
977
980
|
}
|
|
978
981
|
};
|
|
979
|
-
for (var
|
|
980
|
-
|
|
982
|
+
for (var _len = arguments.length, objs = new Array(_len), _key2 = 0; _key2 < _len; _key2++) {
|
|
983
|
+
objs[_key2] = arguments[_key2];
|
|
984
|
+
}
|
|
985
|
+
for (var i = 0, l = objs.length; i < l; i++) {
|
|
986
|
+
objs[i] && forEach(objs[i], assignValue);
|
|
981
987
|
}
|
|
982
988
|
return result;
|
|
983
989
|
}
|
|
@@ -999,6 +1005,9 @@
|
|
|
999
1005
|
forEach(b, function (val, key) {
|
|
1000
1006
|
if (thisArg && isFunction$1(val)) {
|
|
1001
1007
|
Object.defineProperty(a, key, {
|
|
1008
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot
|
|
1009
|
+
// hijack defineProperty's accessor-vs-data resolution.
|
|
1010
|
+
__proto__: null,
|
|
1002
1011
|
value: bind(val, thisArg),
|
|
1003
1012
|
writable: true,
|
|
1004
1013
|
enumerable: true,
|
|
@@ -1006,6 +1015,7 @@
|
|
|
1006
1015
|
});
|
|
1007
1016
|
} else {
|
|
1008
1017
|
Object.defineProperty(a, key, {
|
|
1018
|
+
__proto__: null,
|
|
1009
1019
|
value: val,
|
|
1010
1020
|
writable: true,
|
|
1011
1021
|
enumerable: true,
|
|
@@ -1044,12 +1054,14 @@
|
|
|
1044
1054
|
var inherits = function inherits(constructor, superConstructor, props, descriptors) {
|
|
1045
1055
|
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
|
1046
1056
|
Object.defineProperty(constructor.prototype, 'constructor', {
|
|
1057
|
+
__proto__: null,
|
|
1047
1058
|
value: constructor,
|
|
1048
1059
|
writable: true,
|
|
1049
1060
|
enumerable: false,
|
|
1050
1061
|
configurable: true
|
|
1051
1062
|
});
|
|
1052
1063
|
Object.defineProperty(constructor, 'super', {
|
|
1064
|
+
__proto__: null,
|
|
1053
1065
|
value: superConstructor.prototype
|
|
1054
1066
|
});
|
|
1055
1067
|
props && Object.assign(constructor.prototype, props);
|
|
@@ -1220,7 +1232,7 @@
|
|
|
1220
1232
|
var freezeMethods = function freezeMethods(obj) {
|
|
1221
1233
|
reduceDescriptors(obj, function (descriptor, name) {
|
|
1222
1234
|
// skip restricted props in strict mode
|
|
1223
|
-
if (isFunction$1(obj) && ['arguments', 'caller', 'callee'].
|
|
1235
|
+
if (isFunction$1(obj) && ['arguments', 'caller', 'callee'].includes(name)) {
|
|
1224
1236
|
return false;
|
|
1225
1237
|
}
|
|
1226
1238
|
var value = obj[name];
|
|
@@ -1432,1104 +1444,1179 @@
|
|
|
1432
1444
|
isIterable: isIterable
|
|
1433
1445
|
};
|
|
1434
1446
|
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
*
|
|
1439
|
-
* @param {string} message The error message.
|
|
1440
|
-
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
|
1441
|
-
* @param {Object} [config] The config.
|
|
1442
|
-
* @param {Object} [request] The request.
|
|
1443
|
-
* @param {Object} [response] The response.
|
|
1444
|
-
*
|
|
1445
|
-
* @returns {Error} The created error.
|
|
1446
|
-
*/
|
|
1447
|
-
function AxiosError(message, code, config, request, response) {
|
|
1448
|
-
var _this;
|
|
1449
|
-
_classCallCheck(this, AxiosError);
|
|
1450
|
-
_this = _callSuper(this, AxiosError, [message]);
|
|
1451
|
-
|
|
1452
|
-
// Make message enumerable to maintain backward compatibility
|
|
1453
|
-
// The native Error constructor sets message as non-enumerable,
|
|
1454
|
-
// but axios < v1.13.3 had it as enumerable
|
|
1455
|
-
Object.defineProperty(_this, 'message', {
|
|
1456
|
-
value: message,
|
|
1457
|
-
enumerable: true,
|
|
1458
|
-
writable: true,
|
|
1459
|
-
configurable: true
|
|
1460
|
-
});
|
|
1461
|
-
_this.name = 'AxiosError';
|
|
1462
|
-
_this.isAxiosError = true;
|
|
1463
|
-
code && (_this.code = code);
|
|
1464
|
-
config && (_this.config = config);
|
|
1465
|
-
request && (_this.request = request);
|
|
1466
|
-
if (response) {
|
|
1467
|
-
_this.response = response;
|
|
1468
|
-
_this.status = response.status;
|
|
1469
|
-
}
|
|
1470
|
-
return _this;
|
|
1471
|
-
}
|
|
1472
|
-
_inherits(AxiosError, _Error);
|
|
1473
|
-
return _createClass(AxiosError, [{
|
|
1474
|
-
key: "toJSON",
|
|
1475
|
-
value: function toJSON() {
|
|
1476
|
-
return {
|
|
1477
|
-
// Standard
|
|
1478
|
-
message: this.message,
|
|
1479
|
-
name: this.name,
|
|
1480
|
-
// Microsoft
|
|
1481
|
-
description: this.description,
|
|
1482
|
-
number: this.number,
|
|
1483
|
-
// Mozilla
|
|
1484
|
-
fileName: this.fileName,
|
|
1485
|
-
lineNumber: this.lineNumber,
|
|
1486
|
-
columnNumber: this.columnNumber,
|
|
1487
|
-
stack: this.stack,
|
|
1488
|
-
// Axios
|
|
1489
|
-
config: utils$1.toJSONObject(this.config),
|
|
1490
|
-
code: this.code,
|
|
1491
|
-
status: this.status
|
|
1492
|
-
};
|
|
1493
|
-
}
|
|
1494
|
-
}], [{
|
|
1495
|
-
key: "from",
|
|
1496
|
-
value: function from(error, code, config, request, response, customProps) {
|
|
1497
|
-
var axiosError = new AxiosError(error.message, code || error.code, config, request, response);
|
|
1498
|
-
axiosError.cause = error;
|
|
1499
|
-
axiosError.name = error.name;
|
|
1500
|
-
|
|
1501
|
-
// Preserve status from the original error if not already set from response
|
|
1502
|
-
if (error.status != null && axiosError.status == null) {
|
|
1503
|
-
axiosError.status = error.status;
|
|
1504
|
-
}
|
|
1505
|
-
customProps && Object.assign(axiosError, customProps);
|
|
1506
|
-
return axiosError;
|
|
1507
|
-
}
|
|
1508
|
-
}]);
|
|
1509
|
-
}(/*#__PURE__*/_wrapNativeSuper(Error)); // This can be changed to static properties as soon as the parser options in .eslint.cjs are updated.
|
|
1510
|
-
AxiosError.ERR_BAD_OPTION_VALUE = 'ERR_BAD_OPTION_VALUE';
|
|
1511
|
-
AxiosError.ERR_BAD_OPTION = 'ERR_BAD_OPTION';
|
|
1512
|
-
AxiosError.ECONNABORTED = 'ECONNABORTED';
|
|
1513
|
-
AxiosError.ETIMEDOUT = 'ETIMEDOUT';
|
|
1514
|
-
AxiosError.ERR_NETWORK = 'ERR_NETWORK';
|
|
1515
|
-
AxiosError.ERR_FR_TOO_MANY_REDIRECTS = 'ERR_FR_TOO_MANY_REDIRECTS';
|
|
1516
|
-
AxiosError.ERR_DEPRECATED = 'ERR_DEPRECATED';
|
|
1517
|
-
AxiosError.ERR_BAD_RESPONSE = 'ERR_BAD_RESPONSE';
|
|
1518
|
-
AxiosError.ERR_BAD_REQUEST = 'ERR_BAD_REQUEST';
|
|
1519
|
-
AxiosError.ERR_CANCELED = 'ERR_CANCELED';
|
|
1520
|
-
AxiosError.ERR_NOT_SUPPORT = 'ERR_NOT_SUPPORT';
|
|
1521
|
-
AxiosError.ERR_INVALID_URL = 'ERR_INVALID_URL';
|
|
1522
|
-
AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = 'ERR_FORM_DATA_DEPTH_EXCEEDED';
|
|
1523
|
-
|
|
1524
|
-
// eslint-disable-next-line strict
|
|
1525
|
-
var httpAdapter = null;
|
|
1526
|
-
|
|
1527
|
-
/**
|
|
1528
|
-
* Determines if the given thing is a array or js object.
|
|
1529
|
-
*
|
|
1530
|
-
* @param {string} thing - The object or array to be visited.
|
|
1531
|
-
*
|
|
1532
|
-
* @returns {boolean}
|
|
1533
|
-
*/
|
|
1534
|
-
function isVisitable(thing) {
|
|
1535
|
-
return utils$1.isPlainObject(thing) || utils$1.isArray(thing);
|
|
1536
|
-
}
|
|
1537
|
-
|
|
1538
|
-
/**
|
|
1539
|
-
* It removes the brackets from the end of a string
|
|
1540
|
-
*
|
|
1541
|
-
* @param {string} key - The key of the parameter.
|
|
1542
|
-
*
|
|
1543
|
-
* @returns {string} the key without the brackets.
|
|
1544
|
-
*/
|
|
1545
|
-
function removeBrackets(key) {
|
|
1546
|
-
return utils$1.endsWith(key, '[]') ? key.slice(0, -2) : key;
|
|
1547
|
-
}
|
|
1548
|
-
|
|
1549
|
-
/**
|
|
1550
|
-
* It takes a path, a key, and a boolean, and returns a string
|
|
1551
|
-
*
|
|
1552
|
-
* @param {string} path - The path to the current key.
|
|
1553
|
-
* @param {string} key - The key of the current object being iterated over.
|
|
1554
|
-
* @param {string} dots - If true, the key will be rendered with dots instead of brackets.
|
|
1555
|
-
*
|
|
1556
|
-
* @returns {string} The path to the current key.
|
|
1557
|
-
*/
|
|
1558
|
-
function renderKey(path, key, dots) {
|
|
1559
|
-
if (!path) return key;
|
|
1560
|
-
return path.concat(key).map(function each(token, i) {
|
|
1561
|
-
// eslint-disable-next-line no-param-reassign
|
|
1562
|
-
token = removeBrackets(token);
|
|
1563
|
-
return !dots && i ? '[' + token + ']' : token;
|
|
1564
|
-
}).join(dots ? '.' : '');
|
|
1565
|
-
}
|
|
1566
|
-
|
|
1567
|
-
/**
|
|
1568
|
-
* If the array is an array and none of its elements are visitable, then it's a flat array.
|
|
1569
|
-
*
|
|
1570
|
-
* @param {Array<any>} arr - The array to check
|
|
1571
|
-
*
|
|
1572
|
-
* @returns {boolean}
|
|
1573
|
-
*/
|
|
1574
|
-
function isFlatArray(arr) {
|
|
1575
|
-
return utils$1.isArray(arr) && !arr.some(isVisitable);
|
|
1576
|
-
}
|
|
1577
|
-
var predicates = utils$1.toFlatObject(utils$1, {}, null, function filter(prop) {
|
|
1578
|
-
return /^is[A-Z]/.test(prop);
|
|
1579
|
-
});
|
|
1447
|
+
// RawAxiosHeaders whose duplicates are ignored by node
|
|
1448
|
+
// c.f. https://nodejs.org/api/http.html#http_message_headers
|
|
1449
|
+
var ignoreDuplicateOf = utils$1.toObjectSet(['age', 'authorization', 'content-length', 'content-type', 'etag', 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', 'last-modified', 'location', 'max-forwards', 'proxy-authorization', 'referer', 'retry-after', 'user-agent']);
|
|
1580
1450
|
|
|
1581
1451
|
/**
|
|
1582
|
-
*
|
|
1583
|
-
*
|
|
1584
|
-
* @param {Object} obj
|
|
1585
|
-
* @param {?Object} [formData]
|
|
1586
|
-
* @param {?Object} [options]
|
|
1587
|
-
* @param {Function} [options.visitor]
|
|
1588
|
-
* @param {Boolean} [options.metaTokens = true]
|
|
1589
|
-
* @param {Boolean} [options.dots = false]
|
|
1590
|
-
* @param {?Boolean} [options.indexes = false]
|
|
1452
|
+
* Parse headers into an object
|
|
1591
1453
|
*
|
|
1592
|
-
*
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
*
|
|
1454
|
+
* ```
|
|
1455
|
+
* Date: Wed, 27 Aug 2014 08:58:49 GMT
|
|
1456
|
+
* Content-Type: application/json
|
|
1457
|
+
* Connection: keep-alive
|
|
1458
|
+
* Transfer-Encoding: chunked
|
|
1459
|
+
* ```
|
|
1597
1460
|
*
|
|
1598
|
-
* @param {
|
|
1599
|
-
* @param {string} formData - The FormData object to append to.
|
|
1600
|
-
* @param {Object<string, any>} options
|
|
1461
|
+
* @param {String} rawHeaders Headers needing to be parsed
|
|
1601
1462
|
*
|
|
1602
|
-
* @returns
|
|
1463
|
+
* @returns {Object} Headers parsed into an object
|
|
1603
1464
|
*/
|
|
1604
|
-
function
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
dots: false,
|
|
1616
|
-
indexes: false
|
|
1617
|
-
}, false, function defined(option, source) {
|
|
1618
|
-
// eslint-disable-next-line no-eq-null,eqeqeq
|
|
1619
|
-
return !utils$1.isUndefined(source[option]);
|
|
1620
|
-
});
|
|
1621
|
-
var metaTokens = options.metaTokens;
|
|
1622
|
-
// eslint-disable-next-line no-use-before-define
|
|
1623
|
-
var visitor = options.visitor || defaultVisitor;
|
|
1624
|
-
var dots = options.dots;
|
|
1625
|
-
var indexes = options.indexes;
|
|
1626
|
-
var _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;
|
|
1627
|
-
var maxDepth = options.maxDepth === undefined ? 100 : options.maxDepth;
|
|
1628
|
-
var useBlob = _Blob && utils$1.isSpecCompliantForm(formData);
|
|
1629
|
-
if (!utils$1.isFunction(visitor)) {
|
|
1630
|
-
throw new TypeError('visitor must be a function');
|
|
1631
|
-
}
|
|
1632
|
-
function convertValue(value) {
|
|
1633
|
-
if (value === null) return '';
|
|
1634
|
-
if (utils$1.isDate(value)) {
|
|
1635
|
-
return value.toISOString();
|
|
1636
|
-
}
|
|
1637
|
-
if (utils$1.isBoolean(value)) {
|
|
1638
|
-
return value.toString();
|
|
1465
|
+
var parseHeaders = (function (rawHeaders) {
|
|
1466
|
+
var parsed = {};
|
|
1467
|
+
var key;
|
|
1468
|
+
var val;
|
|
1469
|
+
var i;
|
|
1470
|
+
rawHeaders && rawHeaders.split('\n').forEach(function parser(line) {
|
|
1471
|
+
i = line.indexOf(':');
|
|
1472
|
+
key = line.substring(0, i).trim().toLowerCase();
|
|
1473
|
+
val = line.substring(i + 1).trim();
|
|
1474
|
+
if (!key || parsed[key] && ignoreDuplicateOf[key]) {
|
|
1475
|
+
return;
|
|
1639
1476
|
}
|
|
1640
|
-
if (
|
|
1641
|
-
|
|
1477
|
+
if (key === 'set-cookie') {
|
|
1478
|
+
if (parsed[key]) {
|
|
1479
|
+
parsed[key].push(val);
|
|
1480
|
+
} else {
|
|
1481
|
+
parsed[key] = [val];
|
|
1482
|
+
}
|
|
1483
|
+
} else {
|
|
1484
|
+
parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
|
|
1642
1485
|
}
|
|
1643
|
-
|
|
1644
|
-
|
|
1486
|
+
});
|
|
1487
|
+
return parsed;
|
|
1488
|
+
});
|
|
1489
|
+
|
|
1490
|
+
var $internals = Symbol('internals');
|
|
1491
|
+
var INVALID_HEADER_VALUE_CHARS_RE = /[^\x09\x20-\x7E\x80-\xFF]/g;
|
|
1492
|
+
function trimSPorHTAB(str) {
|
|
1493
|
+
var start = 0;
|
|
1494
|
+
var end = str.length;
|
|
1495
|
+
while (start < end) {
|
|
1496
|
+
var code = str.charCodeAt(start);
|
|
1497
|
+
if (code !== 0x09 && code !== 0x20) {
|
|
1498
|
+
break;
|
|
1645
1499
|
}
|
|
1646
|
-
|
|
1500
|
+
start += 1;
|
|
1647
1501
|
}
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
* @param {*} value
|
|
1653
|
-
* @param {String|Number} key
|
|
1654
|
-
* @param {Array<String|Number>} path
|
|
1655
|
-
* @this {FormData}
|
|
1656
|
-
*
|
|
1657
|
-
* @returns {boolean} return true to visit the each prop of the value recursively
|
|
1658
|
-
*/
|
|
1659
|
-
function defaultVisitor(value, key, path) {
|
|
1660
|
-
var arr = value;
|
|
1661
|
-
if (utils$1.isReactNative(formData) && utils$1.isReactNativeBlob(value)) {
|
|
1662
|
-
formData.append(renderKey(path, key, dots), convertValue(value));
|
|
1663
|
-
return false;
|
|
1664
|
-
}
|
|
1665
|
-
if (value && !path && _typeof(value) === 'object') {
|
|
1666
|
-
if (utils$1.endsWith(key, '{}')) {
|
|
1667
|
-
// eslint-disable-next-line no-param-reassign
|
|
1668
|
-
key = metaTokens ? key : key.slice(0, -2);
|
|
1669
|
-
// eslint-disable-next-line no-param-reassign
|
|
1670
|
-
value = JSON.stringify(value);
|
|
1671
|
-
} else if (utils$1.isArray(value) && isFlatArray(value) || (utils$1.isFileList(value) || utils$1.endsWith(key, '[]')) && (arr = utils$1.toArray(value))) {
|
|
1672
|
-
// eslint-disable-next-line no-param-reassign
|
|
1673
|
-
key = removeBrackets(key);
|
|
1674
|
-
arr.forEach(function each(el, index) {
|
|
1675
|
-
!(utils$1.isUndefined(el) || el === null) && formData.append(
|
|
1676
|
-
// eslint-disable-next-line no-nested-ternary
|
|
1677
|
-
indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + '[]', convertValue(el));
|
|
1678
|
-
});
|
|
1679
|
-
return false;
|
|
1680
|
-
}
|
|
1681
|
-
}
|
|
1682
|
-
if (isVisitable(value)) {
|
|
1683
|
-
return true;
|
|
1684
|
-
}
|
|
1685
|
-
formData.append(renderKey(path, key, dots), convertValue(value));
|
|
1686
|
-
return false;
|
|
1687
|
-
}
|
|
1688
|
-
var stack = [];
|
|
1689
|
-
var exposedHelpers = Object.assign(predicates, {
|
|
1690
|
-
defaultVisitor: defaultVisitor,
|
|
1691
|
-
convertValue: convertValue,
|
|
1692
|
-
isVisitable: isVisitable
|
|
1693
|
-
});
|
|
1694
|
-
function build(value, path) {
|
|
1695
|
-
var depth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
1696
|
-
if (utils$1.isUndefined(value)) return;
|
|
1697
|
-
if (depth > maxDepth) {
|
|
1698
|
-
throw new AxiosError('Object is too deeply nested (' + depth + ' levels). Max depth: ' + maxDepth, AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED);
|
|
1699
|
-
}
|
|
1700
|
-
if (stack.indexOf(value) !== -1) {
|
|
1701
|
-
throw Error('Circular reference detected in ' + path.join('.'));
|
|
1502
|
+
while (end > start) {
|
|
1503
|
+
var _code = str.charCodeAt(end - 1);
|
|
1504
|
+
if (_code !== 0x09 && _code !== 0x20) {
|
|
1505
|
+
break;
|
|
1702
1506
|
}
|
|
1703
|
-
|
|
1704
|
-
utils$1.forEach(value, function each(el, key) {
|
|
1705
|
-
var result = !(utils$1.isUndefined(el) || el === null) && visitor.call(formData, el, utils$1.isString(key) ? key.trim() : key, path, exposedHelpers);
|
|
1706
|
-
if (result === true) {
|
|
1707
|
-
build(el, path ? path.concat(key) : [key], depth + 1);
|
|
1708
|
-
}
|
|
1709
|
-
});
|
|
1710
|
-
stack.pop();
|
|
1711
|
-
}
|
|
1712
|
-
if (!utils$1.isObject(obj)) {
|
|
1713
|
-
throw new TypeError('data must be an object');
|
|
1507
|
+
end -= 1;
|
|
1714
1508
|
}
|
|
1715
|
-
|
|
1716
|
-
return formData;
|
|
1509
|
+
return start === 0 && end === str.length ? str : str.slice(start, end);
|
|
1717
1510
|
}
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
* It encodes a string by replacing all characters that are not in the unreserved set with
|
|
1721
|
-
* their percent-encoded equivalents
|
|
1722
|
-
*
|
|
1723
|
-
* @param {string} str - The string to encode.
|
|
1724
|
-
*
|
|
1725
|
-
* @returns {string} The encoded string.
|
|
1726
|
-
*/
|
|
1727
|
-
function encode$1(str) {
|
|
1728
|
-
var charMap = {
|
|
1729
|
-
'!': '%21',
|
|
1730
|
-
"'": '%27',
|
|
1731
|
-
'(': '%28',
|
|
1732
|
-
')': '%29',
|
|
1733
|
-
'~': '%7E',
|
|
1734
|
-
'%20': '+'
|
|
1735
|
-
};
|
|
1736
|
-
return encodeURIComponent(str).replace(/[!'()~]|%20/g, function replacer(match) {
|
|
1737
|
-
return charMap[match];
|
|
1738
|
-
});
|
|
1511
|
+
function normalizeHeader(header) {
|
|
1512
|
+
return header && String(header).trim().toLowerCase();
|
|
1739
1513
|
}
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
* It takes a params object and converts it to a FormData object
|
|
1743
|
-
*
|
|
1744
|
-
* @param {Object<string, any>} params - The parameters to be converted to a FormData object.
|
|
1745
|
-
* @param {Object<string, any>} options - The options object passed to the Axios constructor.
|
|
1746
|
-
*
|
|
1747
|
-
* @returns {void}
|
|
1748
|
-
*/
|
|
1749
|
-
function AxiosURLSearchParams(params, options) {
|
|
1750
|
-
this._pairs = [];
|
|
1751
|
-
params && toFormData(params, this, options);
|
|
1514
|
+
function sanitizeHeaderValue(str) {
|
|
1515
|
+
return trimSPorHTAB(str.replace(INVALID_HEADER_VALUE_CHARS_RE, ''));
|
|
1752
1516
|
}
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
var _encode = encoder ? function (value) {
|
|
1759
|
-
return encoder.call(this, value, encode$1);
|
|
1760
|
-
} : encode$1;
|
|
1761
|
-
return this._pairs.map(function each(pair) {
|
|
1762
|
-
return _encode(pair[0]) + '=' + _encode(pair[1]);
|
|
1763
|
-
}, '').join('&');
|
|
1764
|
-
};
|
|
1765
|
-
|
|
1766
|
-
/**
|
|
1767
|
-
* It replaces URL-encoded forms of `:`, `$`, `,`, and spaces with
|
|
1768
|
-
* their plain counterparts (`:`, `$`, `,`, `+`).
|
|
1769
|
-
*
|
|
1770
|
-
* @param {string} val The value to be encoded.
|
|
1771
|
-
*
|
|
1772
|
-
* @returns {string} The encoded value.
|
|
1773
|
-
*/
|
|
1774
|
-
function encode(val) {
|
|
1775
|
-
return encodeURIComponent(val).replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+');
|
|
1517
|
+
function normalizeValue(value) {
|
|
1518
|
+
if (value === false || value == null) {
|
|
1519
|
+
return value;
|
|
1520
|
+
}
|
|
1521
|
+
return utils$1.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value));
|
|
1776
1522
|
}
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
* @param {?(object|Function)} options
|
|
1784
|
-
*
|
|
1785
|
-
* @returns {string} The formatted url
|
|
1786
|
-
*/
|
|
1787
|
-
function buildURL(url, params, options) {
|
|
1788
|
-
if (!params) {
|
|
1789
|
-
return url;
|
|
1523
|
+
function parseTokens(str) {
|
|
1524
|
+
var tokens = Object.create(null);
|
|
1525
|
+
var tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
1526
|
+
var match;
|
|
1527
|
+
while (match = tokensRE.exec(str)) {
|
|
1528
|
+
tokens[match[1]] = match[2];
|
|
1790
1529
|
}
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
if (
|
|
1798
|
-
|
|
1799
|
-
} else {
|
|
1800
|
-
serializedParams = utils$1.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, _options).toString(_encode);
|
|
1530
|
+
return tokens;
|
|
1531
|
+
}
|
|
1532
|
+
var isValidHeaderName = function isValidHeaderName(str) {
|
|
1533
|
+
return /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
1534
|
+
};
|
|
1535
|
+
function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
|
|
1536
|
+
if (utils$1.isFunction(filter)) {
|
|
1537
|
+
return filter.call(this, value, header);
|
|
1801
1538
|
}
|
|
1802
|
-
if (
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1539
|
+
if (isHeaderNameFilter) {
|
|
1540
|
+
value = header;
|
|
1541
|
+
}
|
|
1542
|
+
if (!utils$1.isString(value)) return;
|
|
1543
|
+
if (utils$1.isString(filter)) {
|
|
1544
|
+
return value.indexOf(filter) !== -1;
|
|
1545
|
+
}
|
|
1546
|
+
if (utils$1.isRegExp(filter)) {
|
|
1547
|
+
return filter.test(value);
|
|
1808
1548
|
}
|
|
1809
|
-
return url;
|
|
1810
1549
|
}
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1550
|
+
function formatHeader(header) {
|
|
1551
|
+
return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, function (w, _char, str) {
|
|
1552
|
+
return _char.toUpperCase() + str;
|
|
1553
|
+
});
|
|
1554
|
+
}
|
|
1555
|
+
function buildAccessors(obj, header) {
|
|
1556
|
+
var accessorName = utils$1.toCamelCase(' ' + header);
|
|
1557
|
+
['get', 'set', 'has'].forEach(function (methodName) {
|
|
1558
|
+
Object.defineProperty(obj, methodName + accessorName, {
|
|
1559
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
1560
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
1561
|
+
__proto__: null,
|
|
1562
|
+
value: function value(arg1, arg2, arg3) {
|
|
1563
|
+
return this[methodName].call(this, header, arg1, arg2, arg3);
|
|
1564
|
+
},
|
|
1565
|
+
configurable: true
|
|
1566
|
+
});
|
|
1567
|
+
});
|
|
1568
|
+
}
|
|
1569
|
+
var AxiosHeaders = /*#__PURE__*/function () {
|
|
1570
|
+
function AxiosHeaders(headers) {
|
|
1571
|
+
_classCallCheck(this, AxiosHeaders);
|
|
1572
|
+
headers && this.set(headers);
|
|
1816
1573
|
}
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
}
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1574
|
+
return _createClass(AxiosHeaders, [{
|
|
1575
|
+
key: "set",
|
|
1576
|
+
value: function set(header, valueOrRewrite, rewrite) {
|
|
1577
|
+
var self = this;
|
|
1578
|
+
function setHeader(_value, _header, _rewrite) {
|
|
1579
|
+
var lHeader = normalizeHeader(_header);
|
|
1580
|
+
if (!lHeader) {
|
|
1581
|
+
throw new Error('header name must be a non-empty string');
|
|
1582
|
+
}
|
|
1583
|
+
var key = utils$1.findKey(self, lHeader);
|
|
1584
|
+
if (!key || self[key] === undefined || _rewrite === true || _rewrite === undefined && self[key] !== false) {
|
|
1585
|
+
self[key || _header] = normalizeValue(_value);
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1588
|
+
var setHeaders = function setHeaders(headers, _rewrite) {
|
|
1589
|
+
return utils$1.forEach(headers, function (_value, _header) {
|
|
1590
|
+
return setHeader(_value, _header, _rewrite);
|
|
1591
|
+
});
|
|
1592
|
+
};
|
|
1593
|
+
if (utils$1.isPlainObject(header) || header instanceof this.constructor) {
|
|
1594
|
+
setHeaders(header, valueOrRewrite);
|
|
1595
|
+
} else if (utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
1596
|
+
setHeaders(parseHeaders(header), valueOrRewrite);
|
|
1597
|
+
} else if (utils$1.isObject(header) && utils$1.isIterable(header)) {
|
|
1598
|
+
var obj = {},
|
|
1599
|
+
dest,
|
|
1600
|
+
key;
|
|
1601
|
+
var _iterator = _createForOfIteratorHelper(header),
|
|
1602
|
+
_step;
|
|
1603
|
+
try {
|
|
1604
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
1605
|
+
var entry = _step.value;
|
|
1606
|
+
if (!utils$1.isArray(entry)) {
|
|
1607
|
+
throw TypeError('Object iterator must return a key-value pair');
|
|
1608
|
+
}
|
|
1609
|
+
obj[key = entry[0]] = (dest = obj[key]) ? utils$1.isArray(dest) ? [].concat(_toConsumableArray(dest), [entry[1]]) : [dest, entry[1]] : entry[1];
|
|
1610
|
+
}
|
|
1611
|
+
} catch (err) {
|
|
1612
|
+
_iterator.e(err);
|
|
1613
|
+
} finally {
|
|
1614
|
+
_iterator.f();
|
|
1615
|
+
}
|
|
1616
|
+
setHeaders(obj, valueOrRewrite);
|
|
1617
|
+
} else {
|
|
1618
|
+
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
1619
|
+
}
|
|
1620
|
+
return this;
|
|
1621
|
+
}
|
|
1622
|
+
}, {
|
|
1623
|
+
key: "get",
|
|
1624
|
+
value: function get(header, parser) {
|
|
1625
|
+
header = normalizeHeader(header);
|
|
1626
|
+
if (header) {
|
|
1627
|
+
var key = utils$1.findKey(this, header);
|
|
1628
|
+
if (key) {
|
|
1629
|
+
var value = this[key];
|
|
1630
|
+
if (!parser) {
|
|
1631
|
+
return value;
|
|
1632
|
+
}
|
|
1633
|
+
if (parser === true) {
|
|
1634
|
+
return parseTokens(value);
|
|
1635
|
+
}
|
|
1636
|
+
if (utils$1.isFunction(parser)) {
|
|
1637
|
+
return parser.call(this, value, key);
|
|
1638
|
+
}
|
|
1639
|
+
if (utils$1.isRegExp(parser)) {
|
|
1640
|
+
return parser.exec(value);
|
|
1641
|
+
}
|
|
1642
|
+
throw new TypeError('parser must be boolean|regexp|function');
|
|
1643
|
+
}
|
|
1644
|
+
}
|
|
1645
|
+
}
|
|
1646
|
+
}, {
|
|
1647
|
+
key: "has",
|
|
1648
|
+
value: function has(header, matcher) {
|
|
1649
|
+
header = normalizeHeader(header);
|
|
1650
|
+
if (header) {
|
|
1651
|
+
var key = utils$1.findKey(this, header);
|
|
1652
|
+
return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
|
1653
|
+
}
|
|
1654
|
+
return false;
|
|
1655
|
+
}
|
|
1656
|
+
}, {
|
|
1657
|
+
key: "delete",
|
|
1658
|
+
value: function _delete(header, matcher) {
|
|
1659
|
+
var self = this;
|
|
1660
|
+
var deleted = false;
|
|
1661
|
+
function deleteHeader(_header) {
|
|
1662
|
+
_header = normalizeHeader(_header);
|
|
1663
|
+
if (_header) {
|
|
1664
|
+
var key = utils$1.findKey(self, _header);
|
|
1665
|
+
if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {
|
|
1666
|
+
delete self[key];
|
|
1667
|
+
deleted = true;
|
|
1668
|
+
}
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1671
|
+
if (utils$1.isArray(header)) {
|
|
1672
|
+
header.forEach(deleteHeader);
|
|
1673
|
+
} else {
|
|
1674
|
+
deleteHeader(header);
|
|
1675
|
+
}
|
|
1676
|
+
return deleted;
|
|
1677
|
+
}
|
|
1678
|
+
}, {
|
|
1860
1679
|
key: "clear",
|
|
1861
|
-
value: function clear() {
|
|
1862
|
-
|
|
1863
|
-
|
|
1680
|
+
value: function clear(matcher) {
|
|
1681
|
+
var keys = Object.keys(this);
|
|
1682
|
+
var i = keys.length;
|
|
1683
|
+
var deleted = false;
|
|
1684
|
+
while (i--) {
|
|
1685
|
+
var key = keys[i];
|
|
1686
|
+
if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
1687
|
+
delete this[key];
|
|
1688
|
+
deleted = true;
|
|
1689
|
+
}
|
|
1864
1690
|
}
|
|
1691
|
+
return deleted;
|
|
1865
1692
|
}
|
|
1866
|
-
|
|
1867
|
-
/**
|
|
1868
|
-
* Iterate over all the registered interceptors
|
|
1869
|
-
*
|
|
1870
|
-
* This method is particularly useful for skipping over any
|
|
1871
|
-
* interceptors that may have become `null` calling `eject`.
|
|
1872
|
-
*
|
|
1873
|
-
* @param {Function} fn The function to call for each interceptor
|
|
1874
|
-
*
|
|
1875
|
-
* @returns {void}
|
|
1876
|
-
*/
|
|
1877
1693
|
}, {
|
|
1878
|
-
key: "
|
|
1879
|
-
value: function
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1694
|
+
key: "normalize",
|
|
1695
|
+
value: function normalize(format) {
|
|
1696
|
+
var self = this;
|
|
1697
|
+
var headers = {};
|
|
1698
|
+
utils$1.forEach(this, function (value, header) {
|
|
1699
|
+
var key = utils$1.findKey(headers, header);
|
|
1700
|
+
if (key) {
|
|
1701
|
+
self[key] = normalizeValue(value);
|
|
1702
|
+
delete self[header];
|
|
1703
|
+
return;
|
|
1704
|
+
}
|
|
1705
|
+
var normalized = format ? formatHeader(header) : String(header).trim();
|
|
1706
|
+
if (normalized !== header) {
|
|
1707
|
+
delete self[header];
|
|
1883
1708
|
}
|
|
1709
|
+
self[normalized] = normalizeValue(value);
|
|
1710
|
+
headers[normalized] = true;
|
|
1711
|
+
});
|
|
1712
|
+
return this;
|
|
1713
|
+
}
|
|
1714
|
+
}, {
|
|
1715
|
+
key: "concat",
|
|
1716
|
+
value: function concat() {
|
|
1717
|
+
var _this$constructor;
|
|
1718
|
+
for (var _len = arguments.length, targets = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1719
|
+
targets[_key] = arguments[_key];
|
|
1720
|
+
}
|
|
1721
|
+
return (_this$constructor = this.constructor).concat.apply(_this$constructor, [this].concat(targets));
|
|
1722
|
+
}
|
|
1723
|
+
}, {
|
|
1724
|
+
key: "toJSON",
|
|
1725
|
+
value: function toJSON(asStrings) {
|
|
1726
|
+
var obj = Object.create(null);
|
|
1727
|
+
utils$1.forEach(this, function (value, header) {
|
|
1728
|
+
value != null && value !== false && (obj[header] = asStrings && utils$1.isArray(value) ? value.join(', ') : value);
|
|
1729
|
+
});
|
|
1730
|
+
return obj;
|
|
1731
|
+
}
|
|
1732
|
+
}, {
|
|
1733
|
+
key: Symbol.iterator,
|
|
1734
|
+
value: function value() {
|
|
1735
|
+
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
1736
|
+
}
|
|
1737
|
+
}, {
|
|
1738
|
+
key: "toString",
|
|
1739
|
+
value: function toString() {
|
|
1740
|
+
return Object.entries(this.toJSON()).map(function (_ref) {
|
|
1741
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
1742
|
+
header = _ref2[0],
|
|
1743
|
+
value = _ref2[1];
|
|
1744
|
+
return header + ': ' + value;
|
|
1745
|
+
}).join('\n');
|
|
1746
|
+
}
|
|
1747
|
+
}, {
|
|
1748
|
+
key: "getSetCookie",
|
|
1749
|
+
value: function getSetCookie() {
|
|
1750
|
+
return this.get('set-cookie') || [];
|
|
1751
|
+
}
|
|
1752
|
+
}, {
|
|
1753
|
+
key: Symbol.toStringTag,
|
|
1754
|
+
get: function get() {
|
|
1755
|
+
return 'AxiosHeaders';
|
|
1756
|
+
}
|
|
1757
|
+
}], [{
|
|
1758
|
+
key: "from",
|
|
1759
|
+
value: function from(thing) {
|
|
1760
|
+
return thing instanceof this ? thing : new this(thing);
|
|
1761
|
+
}
|
|
1762
|
+
}, {
|
|
1763
|
+
key: "concat",
|
|
1764
|
+
value: function concat(first) {
|
|
1765
|
+
var computed = new this(first);
|
|
1766
|
+
for (var _len2 = arguments.length, targets = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
1767
|
+
targets[_key2 - 1] = arguments[_key2];
|
|
1768
|
+
}
|
|
1769
|
+
targets.forEach(function (target) {
|
|
1770
|
+
return computed.set(target);
|
|
1884
1771
|
});
|
|
1772
|
+
return computed;
|
|
1773
|
+
}
|
|
1774
|
+
}, {
|
|
1775
|
+
key: "accessor",
|
|
1776
|
+
value: function accessor(header) {
|
|
1777
|
+
var internals = this[$internals] = this[$internals] = {
|
|
1778
|
+
accessors: {}
|
|
1779
|
+
};
|
|
1780
|
+
var accessors = internals.accessors;
|
|
1781
|
+
var prototype = this.prototype;
|
|
1782
|
+
function defineAccessor(_header) {
|
|
1783
|
+
var lHeader = normalizeHeader(_header);
|
|
1784
|
+
if (!accessors[lHeader]) {
|
|
1785
|
+
buildAccessors(prototype, _header);
|
|
1786
|
+
accessors[lHeader] = true;
|
|
1787
|
+
}
|
|
1788
|
+
}
|
|
1789
|
+
utils$1.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
|
|
1790
|
+
return this;
|
|
1885
1791
|
}
|
|
1886
1792
|
}]);
|
|
1887
1793
|
}();
|
|
1794
|
+
AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);
|
|
1888
1795
|
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1796
|
+
// reserved names hotfix
|
|
1797
|
+
utils$1.reduceDescriptors(AxiosHeaders.prototype, function (_ref3, key) {
|
|
1798
|
+
var value = _ref3.value;
|
|
1799
|
+
var mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`
|
|
1800
|
+
return {
|
|
1801
|
+
get: function get() {
|
|
1802
|
+
return value;
|
|
1803
|
+
},
|
|
1804
|
+
set: function set(headerValue) {
|
|
1805
|
+
this[mapped] = headerValue;
|
|
1806
|
+
}
|
|
1807
|
+
};
|
|
1808
|
+
});
|
|
1809
|
+
utils$1.freezeMethods(AxiosHeaders);
|
|
1899
1810
|
|
|
1900
|
-
var
|
|
1811
|
+
var REDACTED = '[REDACTED ****]';
|
|
1812
|
+
function hasOwnOrPrototypeToJSON(source) {
|
|
1813
|
+
if (utils$1.hasOwnProp(source, 'toJSON')) {
|
|
1814
|
+
return true;
|
|
1815
|
+
}
|
|
1816
|
+
var prototype = Object.getPrototypeOf(source);
|
|
1817
|
+
while (prototype && prototype !== Object.prototype) {
|
|
1818
|
+
if (utils$1.hasOwnProp(prototype, 'toJSON')) {
|
|
1819
|
+
return true;
|
|
1820
|
+
}
|
|
1821
|
+
prototype = Object.getPrototypeOf(prototype);
|
|
1822
|
+
}
|
|
1823
|
+
return false;
|
|
1824
|
+
}
|
|
1901
1825
|
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
}
|
|
1909
|
-
|
|
1910
|
-
|
|
1826
|
+
// Build a plain-object snapshot of `config` and replace the value of any key
|
|
1827
|
+
// (case-insensitive) listed in `redactKeys` with REDACTED. Walks through arrays
|
|
1828
|
+
// and AxiosHeaders, and short-circuits on circular references.
|
|
1829
|
+
function redactConfig(config, redactKeys) {
|
|
1830
|
+
var lowerKeys = new Set(redactKeys.map(function (k) {
|
|
1831
|
+
return String(k).toLowerCase();
|
|
1832
|
+
}));
|
|
1833
|
+
var seen = [];
|
|
1834
|
+
var _visit = function visit(source) {
|
|
1835
|
+
if (source === null || _typeof(source) !== 'object') return source;
|
|
1836
|
+
if (utils$1.isBuffer(source)) return source;
|
|
1837
|
+
if (seen.indexOf(source) !== -1) return undefined;
|
|
1838
|
+
if (source instanceof AxiosHeaders) {
|
|
1839
|
+
source = source.toJSON();
|
|
1840
|
+
}
|
|
1841
|
+
seen.push(source);
|
|
1842
|
+
var result;
|
|
1843
|
+
if (utils$1.isArray(source)) {
|
|
1844
|
+
result = [];
|
|
1845
|
+
source.forEach(function (v, i) {
|
|
1846
|
+
var reducedValue = _visit(v);
|
|
1847
|
+
if (!utils$1.isUndefined(reducedValue)) {
|
|
1848
|
+
result[i] = reducedValue;
|
|
1849
|
+
}
|
|
1850
|
+
});
|
|
1851
|
+
} else {
|
|
1852
|
+
if (!utils$1.isPlainObject(source) && hasOwnOrPrototypeToJSON(source)) {
|
|
1853
|
+
seen.pop();
|
|
1854
|
+
return source;
|
|
1855
|
+
}
|
|
1856
|
+
result = Object.create(null);
|
|
1857
|
+
for (var _i = 0, _Object$entries = Object.entries(source); _i < _Object$entries.length; _i++) {
|
|
1858
|
+
var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
|
|
1859
|
+
key = _Object$entries$_i[0],
|
|
1860
|
+
value = _Object$entries$_i[1];
|
|
1861
|
+
var reducedValue = lowerKeys.has(key.toLowerCase()) ? REDACTED : _visit(value);
|
|
1862
|
+
if (!utils$1.isUndefined(reducedValue)) {
|
|
1863
|
+
result[key] = reducedValue;
|
|
1864
|
+
}
|
|
1865
|
+
}
|
|
1866
|
+
}
|
|
1867
|
+
seen.pop();
|
|
1868
|
+
return result;
|
|
1869
|
+
};
|
|
1870
|
+
return _visit(config);
|
|
1871
|
+
}
|
|
1872
|
+
var AxiosError = /*#__PURE__*/function (_Error) {
|
|
1873
|
+
/**
|
|
1874
|
+
* Create an Error with the specified message, config, error code, request and response.
|
|
1875
|
+
*
|
|
1876
|
+
* @param {string} message The error message.
|
|
1877
|
+
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
|
1878
|
+
* @param {Object} [config] The config.
|
|
1879
|
+
* @param {Object} [request] The request.
|
|
1880
|
+
* @param {Object} [response] The response.
|
|
1881
|
+
*
|
|
1882
|
+
* @returns {Error} The created error.
|
|
1883
|
+
*/
|
|
1884
|
+
function AxiosError(message, code, config, request, response) {
|
|
1885
|
+
var _this;
|
|
1886
|
+
_classCallCheck(this, AxiosError);
|
|
1887
|
+
_this = _callSuper(this, AxiosError, [message]);
|
|
1911
1888
|
|
|
1912
|
-
|
|
1913
|
-
|
|
1889
|
+
// Make message enumerable to maintain backward compatibility
|
|
1890
|
+
// The native Error constructor sets message as non-enumerable,
|
|
1891
|
+
// but axios < v1.13.3 had it as enumerable
|
|
1892
|
+
Object.defineProperty(_this, 'message', {
|
|
1893
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
1894
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
1895
|
+
__proto__: null,
|
|
1896
|
+
value: message,
|
|
1897
|
+
enumerable: true,
|
|
1898
|
+
writable: true,
|
|
1899
|
+
configurable: true
|
|
1900
|
+
});
|
|
1901
|
+
_this.name = 'AxiosError';
|
|
1902
|
+
_this.isAxiosError = true;
|
|
1903
|
+
code && (_this.code = code);
|
|
1904
|
+
config && (_this.config = config);
|
|
1905
|
+
request && (_this.request = request);
|
|
1906
|
+
if (response) {
|
|
1907
|
+
_this.response = response;
|
|
1908
|
+
_this.status = response.status;
|
|
1909
|
+
}
|
|
1910
|
+
return _this;
|
|
1911
|
+
}
|
|
1912
|
+
_inherits(AxiosError, _Error);
|
|
1913
|
+
return _createClass(AxiosError, [{
|
|
1914
|
+
key: "toJSON",
|
|
1915
|
+
value: function toJSON() {
|
|
1916
|
+
// Opt-in redaction: when the request config carries a `redact` array, the
|
|
1917
|
+
// value of any matching key (case-insensitive, at any depth) is replaced
|
|
1918
|
+
// with REDACTED in the serialized snapshot. Undefined or empty leaves the
|
|
1919
|
+
// existing serialization behavior unchanged.
|
|
1920
|
+
var config = this.config;
|
|
1921
|
+
var redactKeys = config && utils$1.hasOwnProp(config, 'redact') ? config.redact : undefined;
|
|
1922
|
+
var serializedConfig = utils$1.isArray(redactKeys) && redactKeys.length > 0 ? redactConfig(config, redactKeys) : utils$1.toJSONObject(config);
|
|
1923
|
+
return {
|
|
1924
|
+
// Standard
|
|
1925
|
+
message: this.message,
|
|
1926
|
+
name: this.name,
|
|
1927
|
+
// Microsoft
|
|
1928
|
+
description: this.description,
|
|
1929
|
+
number: this.number,
|
|
1930
|
+
// Mozilla
|
|
1931
|
+
fileName: this.fileName,
|
|
1932
|
+
lineNumber: this.lineNumber,
|
|
1933
|
+
columnNumber: this.columnNumber,
|
|
1934
|
+
stack: this.stack,
|
|
1935
|
+
// Axios
|
|
1936
|
+
config: serializedConfig,
|
|
1937
|
+
code: this.code,
|
|
1938
|
+
status: this.status
|
|
1939
|
+
};
|
|
1940
|
+
}
|
|
1941
|
+
}], [{
|
|
1942
|
+
key: "from",
|
|
1943
|
+
value: function from(error, code, config, request, response, customProps) {
|
|
1944
|
+
var axiosError = new AxiosError(error.message, code || error.code, config, request, response);
|
|
1945
|
+
axiosError.cause = error;
|
|
1946
|
+
axiosError.name = error.name;
|
|
1947
|
+
|
|
1948
|
+
// Preserve status from the original error if not already set from response
|
|
1949
|
+
if (error.status != null && axiosError.status == null) {
|
|
1950
|
+
axiosError.status = error.status;
|
|
1951
|
+
}
|
|
1952
|
+
customProps && Object.assign(axiosError, customProps);
|
|
1953
|
+
return axiosError;
|
|
1954
|
+
}
|
|
1955
|
+
}]);
|
|
1956
|
+
}(/*#__PURE__*/_wrapNativeSuper(Error)); // This can be changed to static properties as soon as the parser options in .eslint.cjs are updated.
|
|
1957
|
+
AxiosError.ERR_BAD_OPTION_VALUE = 'ERR_BAD_OPTION_VALUE';
|
|
1958
|
+
AxiosError.ERR_BAD_OPTION = 'ERR_BAD_OPTION';
|
|
1959
|
+
AxiosError.ECONNABORTED = 'ECONNABORTED';
|
|
1960
|
+
AxiosError.ETIMEDOUT = 'ETIMEDOUT';
|
|
1961
|
+
AxiosError.ECONNREFUSED = 'ECONNREFUSED';
|
|
1962
|
+
AxiosError.ERR_NETWORK = 'ERR_NETWORK';
|
|
1963
|
+
AxiosError.ERR_FR_TOO_MANY_REDIRECTS = 'ERR_FR_TOO_MANY_REDIRECTS';
|
|
1964
|
+
AxiosError.ERR_DEPRECATED = 'ERR_DEPRECATED';
|
|
1965
|
+
AxiosError.ERR_BAD_RESPONSE = 'ERR_BAD_RESPONSE';
|
|
1966
|
+
AxiosError.ERR_BAD_REQUEST = 'ERR_BAD_REQUEST';
|
|
1967
|
+
AxiosError.ERR_CANCELED = 'ERR_CANCELED';
|
|
1968
|
+
AxiosError.ERR_NOT_SUPPORT = 'ERR_NOT_SUPPORT';
|
|
1969
|
+
AxiosError.ERR_INVALID_URL = 'ERR_INVALID_URL';
|
|
1970
|
+
AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = 'ERR_FORM_DATA_DEPTH_EXCEEDED';
|
|
1971
|
+
|
|
1972
|
+
// eslint-disable-next-line strict
|
|
1973
|
+
var httpAdapter = null;
|
|
1914
1974
|
|
|
1915
1975
|
/**
|
|
1916
|
-
*
|
|
1917
|
-
*
|
|
1918
|
-
* This allows axios to run in a web worker, and react-native.
|
|
1919
|
-
* Both environments support XMLHttpRequest, but not fully standard globals.
|
|
1920
|
-
*
|
|
1921
|
-
* web workers:
|
|
1922
|
-
* typeof window -> undefined
|
|
1923
|
-
* typeof document -> undefined
|
|
1976
|
+
* Determines if the given thing is a array or js object.
|
|
1924
1977
|
*
|
|
1925
|
-
*
|
|
1926
|
-
* navigator.product -> 'ReactNative'
|
|
1927
|
-
* nativescript
|
|
1928
|
-
* navigator.product -> 'NativeScript' or 'NS'
|
|
1978
|
+
* @param {string} thing - The object or array to be visited.
|
|
1929
1979
|
*
|
|
1930
1980
|
* @returns {boolean}
|
|
1931
1981
|
*/
|
|
1932
|
-
|
|
1982
|
+
function isVisitable(thing) {
|
|
1983
|
+
return utils$1.isPlainObject(thing) || utils$1.isArray(thing);
|
|
1984
|
+
}
|
|
1933
1985
|
|
|
1934
1986
|
/**
|
|
1935
|
-
*
|
|
1987
|
+
* It removes the brackets from the end of a string
|
|
1936
1988
|
*
|
|
1937
|
-
*
|
|
1938
|
-
*
|
|
1939
|
-
*
|
|
1940
|
-
* `typeof window !== 'undefined' && typeof document !== 'undefined'`.
|
|
1941
|
-
* This leads to a problem when axios post `FormData` in webWorker
|
|
1989
|
+
* @param {string} key - The key of the parameter.
|
|
1990
|
+
*
|
|
1991
|
+
* @returns {string} the key without the brackets.
|
|
1942
1992
|
*/
|
|
1943
|
-
|
|
1944
|
-
return
|
|
1945
|
-
// eslint-disable-next-line no-undef
|
|
1946
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts === 'function';
|
|
1947
|
-
}();
|
|
1948
|
-
var origin = hasBrowserEnv && window.location.href || 'http://localhost';
|
|
1949
|
-
|
|
1950
|
-
var utils = /*#__PURE__*/Object.freeze({
|
|
1951
|
-
__proto__: null,
|
|
1952
|
-
hasBrowserEnv: hasBrowserEnv,
|
|
1953
|
-
hasStandardBrowserEnv: hasStandardBrowserEnv,
|
|
1954
|
-
hasStandardBrowserWebWorkerEnv: hasStandardBrowserWebWorkerEnv,
|
|
1955
|
-
navigator: _navigator,
|
|
1956
|
-
origin: origin
|
|
1957
|
-
});
|
|
1958
|
-
|
|
1959
|
-
var platform = _objectSpread2(_objectSpread2({}, utils), platform$1);
|
|
1960
|
-
|
|
1961
|
-
function toURLEncodedForm(data, options) {
|
|
1962
|
-
return toFormData(data, new platform.classes.URLSearchParams(), _objectSpread2({
|
|
1963
|
-
visitor: function visitor(value, key, path, helpers) {
|
|
1964
|
-
if (platform.isNode && utils$1.isBuffer(value)) {
|
|
1965
|
-
this.append(key, value.toString('base64'));
|
|
1966
|
-
return false;
|
|
1967
|
-
}
|
|
1968
|
-
return helpers.defaultVisitor.apply(this, arguments);
|
|
1969
|
-
}
|
|
1970
|
-
}, options));
|
|
1993
|
+
function removeBrackets(key) {
|
|
1994
|
+
return utils$1.endsWith(key, '[]') ? key.slice(0, -2) : key;
|
|
1971
1995
|
}
|
|
1972
1996
|
|
|
1973
1997
|
/**
|
|
1974
|
-
* It takes a
|
|
1998
|
+
* It takes a path, a key, and a boolean, and returns a string
|
|
1975
1999
|
*
|
|
1976
|
-
* @param {string}
|
|
2000
|
+
* @param {string} path - The path to the current key.
|
|
2001
|
+
* @param {string} key - The key of the current object being iterated over.
|
|
2002
|
+
* @param {string} dots - If true, the key will be rendered with dots instead of brackets.
|
|
1977
2003
|
*
|
|
1978
|
-
* @returns
|
|
2004
|
+
* @returns {string} The path to the current key.
|
|
1979
2005
|
*/
|
|
1980
|
-
function
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
});
|
|
2006
|
+
function renderKey(path, key, dots) {
|
|
2007
|
+
if (!path) return key;
|
|
2008
|
+
return path.concat(key).map(function each(token, i) {
|
|
2009
|
+
// eslint-disable-next-line no-param-reassign
|
|
2010
|
+
token = removeBrackets(token);
|
|
2011
|
+
return !dots && i ? '[' + token + ']' : token;
|
|
2012
|
+
}).join(dots ? '.' : '');
|
|
1988
2013
|
}
|
|
1989
2014
|
|
|
1990
2015
|
/**
|
|
1991
|
-
*
|
|
2016
|
+
* If the array is an array and none of its elements are visitable, then it's a flat array.
|
|
1992
2017
|
*
|
|
1993
|
-
* @param {Array<any>} arr - The array to
|
|
2018
|
+
* @param {Array<any>} arr - The array to check
|
|
1994
2019
|
*
|
|
1995
|
-
* @returns
|
|
2020
|
+
* @returns {boolean}
|
|
1996
2021
|
*/
|
|
1997
|
-
function
|
|
1998
|
-
|
|
1999
|
-
var keys = Object.keys(arr);
|
|
2000
|
-
var i;
|
|
2001
|
-
var len = keys.length;
|
|
2002
|
-
var key;
|
|
2003
|
-
for (i = 0; i < len; i++) {
|
|
2004
|
-
key = keys[i];
|
|
2005
|
-
obj[key] = arr[key];
|
|
2006
|
-
}
|
|
2007
|
-
return obj;
|
|
2022
|
+
function isFlatArray(arr) {
|
|
2023
|
+
return utils$1.isArray(arr) && !arr.some(isVisitable);
|
|
2008
2024
|
}
|
|
2025
|
+
var predicates = utils$1.toFlatObject(utils$1, {}, null, function filter(prop) {
|
|
2026
|
+
return /^is[A-Z]/.test(prop);
|
|
2027
|
+
});
|
|
2009
2028
|
|
|
2010
2029
|
/**
|
|
2011
|
-
*
|
|
2030
|
+
* Convert a data object to FormData
|
|
2012
2031
|
*
|
|
2013
|
-
* @param {
|
|
2032
|
+
* @param {Object} obj
|
|
2033
|
+
* @param {?Object} [formData]
|
|
2034
|
+
* @param {?Object} [options]
|
|
2035
|
+
* @param {Function} [options.visitor]
|
|
2036
|
+
* @param {Boolean} [options.metaTokens = true]
|
|
2037
|
+
* @param {Boolean} [options.dots = false]
|
|
2038
|
+
* @param {?Boolean} [options.indexes = false]
|
|
2014
2039
|
*
|
|
2015
|
-
* @returns {Object
|
|
2040
|
+
* @returns {Object}
|
|
2041
|
+
**/
|
|
2042
|
+
|
|
2043
|
+
/**
|
|
2044
|
+
* It converts an object into a FormData object
|
|
2045
|
+
*
|
|
2046
|
+
* @param {Object<any, any>} obj - The object to convert to form data.
|
|
2047
|
+
* @param {string} formData - The FormData object to append to.
|
|
2048
|
+
* @param {Object<string, any>} options
|
|
2049
|
+
*
|
|
2050
|
+
* @returns
|
|
2016
2051
|
*/
|
|
2017
|
-
function
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
if (name === '__proto__') return true;
|
|
2021
|
-
var isNumericKey = Number.isFinite(+name);
|
|
2022
|
-
var isLast = index >= path.length;
|
|
2023
|
-
name = !name && utils$1.isArray(target) ? target.length : name;
|
|
2024
|
-
if (isLast) {
|
|
2025
|
-
if (utils$1.hasOwnProp(target, name)) {
|
|
2026
|
-
target[name] = utils$1.isArray(target[name]) ? target[name].concat(value) : [target[name], value];
|
|
2027
|
-
} else {
|
|
2028
|
-
target[name] = value;
|
|
2029
|
-
}
|
|
2030
|
-
return !isNumericKey;
|
|
2031
|
-
}
|
|
2032
|
-
if (!target[name] || !utils$1.isObject(target[name])) {
|
|
2033
|
-
target[name] = [];
|
|
2034
|
-
}
|
|
2035
|
-
var result = buildPath(path, value, target[name], index);
|
|
2036
|
-
if (result && utils$1.isArray(target[name])) {
|
|
2037
|
-
target[name] = arrayToObject(target[name]);
|
|
2038
|
-
}
|
|
2039
|
-
return !isNumericKey;
|
|
2040
|
-
}
|
|
2041
|
-
if (utils$1.isFormData(formData) && utils$1.isFunction(formData.entries)) {
|
|
2042
|
-
var obj = {};
|
|
2043
|
-
utils$1.forEachEntry(formData, function (name, value) {
|
|
2044
|
-
buildPath(parsePropPath(name), value, obj, 0);
|
|
2045
|
-
});
|
|
2046
|
-
return obj;
|
|
2052
|
+
function toFormData(obj, formData, options) {
|
|
2053
|
+
if (!utils$1.isObject(obj)) {
|
|
2054
|
+
throw new TypeError('target must be an object');
|
|
2047
2055
|
}
|
|
2048
|
-
return null;
|
|
2049
|
-
}
|
|
2050
2056
|
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
};
|
|
2057
|
+
// eslint-disable-next-line no-param-reassign
|
|
2058
|
+
formData = formData || new (FormData)();
|
|
2054
2059
|
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
}
|
|
2060
|
+
// eslint-disable-next-line no-param-reassign
|
|
2061
|
+
options = utils$1.toFlatObject(options, {
|
|
2062
|
+
metaTokens: true,
|
|
2063
|
+
dots: false,
|
|
2064
|
+
indexes: false
|
|
2065
|
+
}, false, function defined(option, source) {
|
|
2066
|
+
// eslint-disable-next-line no-eq-null,eqeqeq
|
|
2067
|
+
return !utils$1.isUndefined(source[option]);
|
|
2068
|
+
});
|
|
2069
|
+
var metaTokens = options.metaTokens;
|
|
2070
|
+
// eslint-disable-next-line no-use-before-define
|
|
2071
|
+
var visitor = options.visitor || defaultVisitor;
|
|
2072
|
+
var dots = options.dots;
|
|
2073
|
+
var indexes = options.indexes;
|
|
2074
|
+
var _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;
|
|
2075
|
+
var maxDepth = options.maxDepth === undefined ? 100 : options.maxDepth;
|
|
2076
|
+
var useBlob = _Blob && utils$1.isSpecCompliantForm(formData);
|
|
2077
|
+
if (!utils$1.isFunction(visitor)) {
|
|
2078
|
+
throw new TypeError('visitor must be a function');
|
|
2075
2079
|
}
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
adapter: ['xhr', 'http', 'fetch'],
|
|
2081
|
-
transformRequest: [function transformRequest(data, headers) {
|
|
2082
|
-
var contentType = headers.getContentType() || '';
|
|
2083
|
-
var hasJSONContentType = contentType.indexOf('application/json') > -1;
|
|
2084
|
-
var isObjectPayload = utils$1.isObject(data);
|
|
2085
|
-
if (isObjectPayload && utils$1.isHTMLForm(data)) {
|
|
2086
|
-
data = new FormData(data);
|
|
2080
|
+
function convertValue(value) {
|
|
2081
|
+
if (value === null) return '';
|
|
2082
|
+
if (utils$1.isDate(value)) {
|
|
2083
|
+
return value.toISOString();
|
|
2087
2084
|
}
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
|
|
2085
|
+
if (utils$1.isBoolean(value)) {
|
|
2086
|
+
return value.toString();
|
|
2091
2087
|
}
|
|
2092
|
-
if (
|
|
2093
|
-
|
|
2088
|
+
if (!useBlob && utils$1.isBlob(value)) {
|
|
2089
|
+
throw new AxiosError('Blob is not supported. Use a Buffer instead.');
|
|
2094
2090
|
}
|
|
2095
|
-
if (utils$1.
|
|
2096
|
-
return
|
|
2091
|
+
if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) {
|
|
2092
|
+
return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);
|
|
2097
2093
|
}
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2094
|
+
return value;
|
|
2095
|
+
}
|
|
2096
|
+
|
|
2097
|
+
/**
|
|
2098
|
+
* Default visitor.
|
|
2099
|
+
*
|
|
2100
|
+
* @param {*} value
|
|
2101
|
+
* @param {String|Number} key
|
|
2102
|
+
* @param {Array<String|Number>} path
|
|
2103
|
+
* @this {FormData}
|
|
2104
|
+
*
|
|
2105
|
+
* @returns {boolean} return true to visit the each prop of the value recursively
|
|
2106
|
+
*/
|
|
2107
|
+
function defaultVisitor(value, key, path) {
|
|
2108
|
+
var arr = value;
|
|
2109
|
+
if (utils$1.isReactNative(formData) && utils$1.isReactNativeBlob(value)) {
|
|
2110
|
+
formData.append(renderKey(path, key, dots), convertValue(value));
|
|
2111
|
+
return false;
|
|
2101
2112
|
}
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
if ((
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2113
|
+
if (value && !path && _typeof(value) === 'object') {
|
|
2114
|
+
if (utils$1.endsWith(key, '{}')) {
|
|
2115
|
+
// eslint-disable-next-line no-param-reassign
|
|
2116
|
+
key = metaTokens ? key : key.slice(0, -2);
|
|
2117
|
+
// eslint-disable-next-line no-param-reassign
|
|
2118
|
+
value = JSON.stringify(value);
|
|
2119
|
+
} else if (utils$1.isArray(value) && isFlatArray(value) || (utils$1.isFileList(value) || utils$1.endsWith(key, '[]')) && (arr = utils$1.toArray(value))) {
|
|
2120
|
+
// eslint-disable-next-line no-param-reassign
|
|
2121
|
+
key = removeBrackets(key);
|
|
2122
|
+
arr.forEach(function each(el, index) {
|
|
2123
|
+
!(utils$1.isUndefined(el) || el === null) && formData.append(
|
|
2124
|
+
// eslint-disable-next-line no-nested-ternary
|
|
2125
|
+
indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + '[]', convertValue(el));
|
|
2126
|
+
});
|
|
2127
|
+
return false;
|
|
2114
2128
|
}
|
|
2115
2129
|
}
|
|
2116
|
-
if (
|
|
2117
|
-
|
|
2118
|
-
return stringifySafely(data);
|
|
2119
|
-
}
|
|
2120
|
-
return data;
|
|
2121
|
-
}],
|
|
2122
|
-
transformResponse: [function transformResponse(data) {
|
|
2123
|
-
var transitional = own(this, 'transitional') || defaults.transitional;
|
|
2124
|
-
var forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
|
2125
|
-
var responseType = own(this, 'responseType');
|
|
2126
|
-
var JSONRequested = responseType === 'json';
|
|
2127
|
-
if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) {
|
|
2128
|
-
return data;
|
|
2130
|
+
if (isVisitable(value)) {
|
|
2131
|
+
return true;
|
|
2129
2132
|
}
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2133
|
+
formData.append(renderKey(path, key, dots), convertValue(value));
|
|
2134
|
+
return false;
|
|
2135
|
+
}
|
|
2136
|
+
var stack = [];
|
|
2137
|
+
var exposedHelpers = Object.assign(predicates, {
|
|
2138
|
+
defaultVisitor: defaultVisitor,
|
|
2139
|
+
convertValue: convertValue,
|
|
2140
|
+
isVisitable: isVisitable
|
|
2141
|
+
});
|
|
2142
|
+
function build(value, path) {
|
|
2143
|
+
var depth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
2144
|
+
if (utils$1.isUndefined(value)) return;
|
|
2145
|
+
if (depth > maxDepth) {
|
|
2146
|
+
throw new AxiosError('Object is too deeply nested (' + depth + ' levels). Max depth: ' + maxDepth, AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED);
|
|
2143
2147
|
}
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
/**
|
|
2147
|
-
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
2148
|
-
* timeout is not created.
|
|
2149
|
-
*/
|
|
2150
|
-
timeout: 0,
|
|
2151
|
-
xsrfCookieName: 'XSRF-TOKEN',
|
|
2152
|
-
xsrfHeaderName: 'X-XSRF-TOKEN',
|
|
2153
|
-
maxContentLength: -1,
|
|
2154
|
-
maxBodyLength: -1,
|
|
2155
|
-
env: {
|
|
2156
|
-
FormData: platform.classes.FormData,
|
|
2157
|
-
Blob: platform.classes.Blob
|
|
2158
|
-
},
|
|
2159
|
-
validateStatus: function validateStatus(status) {
|
|
2160
|
-
return status >= 200 && status < 300;
|
|
2161
|
-
},
|
|
2162
|
-
headers: {
|
|
2163
|
-
common: {
|
|
2164
|
-
Accept: 'application/json, text/plain, */*',
|
|
2165
|
-
'Content-Type': undefined
|
|
2148
|
+
if (stack.indexOf(value) !== -1) {
|
|
2149
|
+
throw Error('Circular reference detected in ' + path.join('.'));
|
|
2166
2150
|
}
|
|
2151
|
+
stack.push(value);
|
|
2152
|
+
utils$1.forEach(value, function each(el, key) {
|
|
2153
|
+
var result = !(utils$1.isUndefined(el) || el === null) && visitor.call(formData, el, utils$1.isString(key) ? key.trim() : key, path, exposedHelpers);
|
|
2154
|
+
if (result === true) {
|
|
2155
|
+
build(el, path ? path.concat(key) : [key], depth + 1);
|
|
2156
|
+
}
|
|
2157
|
+
});
|
|
2158
|
+
stack.pop();
|
|
2167
2159
|
}
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
// c.f. https://nodejs.org/api/http.html#http_message_headers
|
|
2175
|
-
var ignoreDuplicateOf = utils$1.toObjectSet(['age', 'authorization', 'content-length', 'content-type', 'etag', 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', 'last-modified', 'location', 'max-forwards', 'proxy-authorization', 'referer', 'retry-after', 'user-agent']);
|
|
2160
|
+
if (!utils$1.isObject(obj)) {
|
|
2161
|
+
throw new TypeError('data must be an object');
|
|
2162
|
+
}
|
|
2163
|
+
build(obj);
|
|
2164
|
+
return formData;
|
|
2165
|
+
}
|
|
2176
2166
|
|
|
2177
2167
|
/**
|
|
2178
|
-
*
|
|
2179
|
-
*
|
|
2180
|
-
* ```
|
|
2181
|
-
* Date: Wed, 27 Aug 2014 08:58:49 GMT
|
|
2182
|
-
* Content-Type: application/json
|
|
2183
|
-
* Connection: keep-alive
|
|
2184
|
-
* Transfer-Encoding: chunked
|
|
2185
|
-
* ```
|
|
2168
|
+
* It encodes a string by replacing all characters that are not in the unreserved set with
|
|
2169
|
+
* their percent-encoded equivalents
|
|
2186
2170
|
*
|
|
2187
|
-
* @param {
|
|
2171
|
+
* @param {string} str - The string to encode.
|
|
2188
2172
|
*
|
|
2189
|
-
* @returns {
|
|
2173
|
+
* @returns {string} The encoded string.
|
|
2190
2174
|
*/
|
|
2191
|
-
|
|
2192
|
-
var
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
}
|
|
2203
|
-
if (key === 'set-cookie') {
|
|
2204
|
-
if (parsed[key]) {
|
|
2205
|
-
parsed[key].push(val);
|
|
2206
|
-
} else {
|
|
2207
|
-
parsed[key] = [val];
|
|
2208
|
-
}
|
|
2209
|
-
} else {
|
|
2210
|
-
parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
|
|
2211
|
-
}
|
|
2175
|
+
function encode$1(str) {
|
|
2176
|
+
var charMap = {
|
|
2177
|
+
'!': '%21',
|
|
2178
|
+
"'": '%27',
|
|
2179
|
+
'(': '%28',
|
|
2180
|
+
')': '%29',
|
|
2181
|
+
'~': '%7E',
|
|
2182
|
+
'%20': '+'
|
|
2183
|
+
};
|
|
2184
|
+
return encodeURIComponent(str).replace(/[!'()~]|%20/g, function replacer(match) {
|
|
2185
|
+
return charMap[match];
|
|
2212
2186
|
});
|
|
2213
|
-
return parsed;
|
|
2214
|
-
});
|
|
2215
|
-
|
|
2216
|
-
var $internals = Symbol('internals');
|
|
2217
|
-
var INVALID_HEADER_VALUE_CHARS_RE = /[^\x09\x20-\x7E\x80-\xFF]/g;
|
|
2218
|
-
function trimSPorHTAB(str) {
|
|
2219
|
-
var start = 0;
|
|
2220
|
-
var end = str.length;
|
|
2221
|
-
while (start < end) {
|
|
2222
|
-
var code = str.charCodeAt(start);
|
|
2223
|
-
if (code !== 0x09 && code !== 0x20) {
|
|
2224
|
-
break;
|
|
2225
|
-
}
|
|
2226
|
-
start += 1;
|
|
2227
|
-
}
|
|
2228
|
-
while (end > start) {
|
|
2229
|
-
var _code = str.charCodeAt(end - 1);
|
|
2230
|
-
if (_code !== 0x09 && _code !== 0x20) {
|
|
2231
|
-
break;
|
|
2232
|
-
}
|
|
2233
|
-
end -= 1;
|
|
2234
|
-
}
|
|
2235
|
-
return start === 0 && end === str.length ? str : str.slice(start, end);
|
|
2236
|
-
}
|
|
2237
|
-
function normalizeHeader(header) {
|
|
2238
|
-
return header && String(header).trim().toLowerCase();
|
|
2239
|
-
}
|
|
2240
|
-
function sanitizeHeaderValue(str) {
|
|
2241
|
-
return trimSPorHTAB(str.replace(INVALID_HEADER_VALUE_CHARS_RE, ''));
|
|
2242
|
-
}
|
|
2243
|
-
function normalizeValue(value) {
|
|
2244
|
-
if (value === false || value == null) {
|
|
2245
|
-
return value;
|
|
2246
|
-
}
|
|
2247
|
-
return utils$1.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value));
|
|
2248
2187
|
}
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2188
|
+
|
|
2189
|
+
/**
|
|
2190
|
+
* It takes a params object and converts it to a FormData object
|
|
2191
|
+
*
|
|
2192
|
+
* @param {Object<string, any>} params - The parameters to be converted to a FormData object.
|
|
2193
|
+
* @param {Object<string, any>} options - The options object passed to the Axios constructor.
|
|
2194
|
+
*
|
|
2195
|
+
* @returns {void}
|
|
2196
|
+
*/
|
|
2197
|
+
function AxiosURLSearchParams(params, options) {
|
|
2198
|
+
this._pairs = [];
|
|
2199
|
+
params && toFormData(params, this, options);
|
|
2257
2200
|
}
|
|
2258
|
-
var
|
|
2259
|
-
|
|
2201
|
+
var prototype = AxiosURLSearchParams.prototype;
|
|
2202
|
+
prototype.append = function append(name, value) {
|
|
2203
|
+
this._pairs.push([name, value]);
|
|
2260
2204
|
};
|
|
2261
|
-
function
|
|
2262
|
-
|
|
2263
|
-
return
|
|
2264
|
-
}
|
|
2265
|
-
|
|
2266
|
-
|
|
2205
|
+
prototype.toString = function toString(encoder) {
|
|
2206
|
+
var _encode = encoder ? function (value) {
|
|
2207
|
+
return encoder.call(this, value, encode$1);
|
|
2208
|
+
} : encode$1;
|
|
2209
|
+
return this._pairs.map(function each(pair) {
|
|
2210
|
+
return _encode(pair[0]) + '=' + _encode(pair[1]);
|
|
2211
|
+
}, '').join('&');
|
|
2212
|
+
};
|
|
2213
|
+
|
|
2214
|
+
/**
|
|
2215
|
+
* It replaces URL-encoded forms of `:`, `$`, `,`, and spaces with
|
|
2216
|
+
* their plain counterparts (`:`, `$`, `,`, `+`).
|
|
2217
|
+
*
|
|
2218
|
+
* @param {string} val The value to be encoded.
|
|
2219
|
+
*
|
|
2220
|
+
* @returns {string} The encoded value.
|
|
2221
|
+
*/
|
|
2222
|
+
function encode(val) {
|
|
2223
|
+
return encodeURIComponent(val).replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+');
|
|
2224
|
+
}
|
|
2225
|
+
|
|
2226
|
+
/**
|
|
2227
|
+
* Build a URL by appending params to the end
|
|
2228
|
+
*
|
|
2229
|
+
* @param {string} url The base of the url (e.g., http://www.google.com)
|
|
2230
|
+
* @param {object} [params] The params to be appended
|
|
2231
|
+
* @param {?(object|Function)} options
|
|
2232
|
+
*
|
|
2233
|
+
* @returns {string} The formatted url
|
|
2234
|
+
*/
|
|
2235
|
+
function buildURL(url, params, options) {
|
|
2236
|
+
if (!params) {
|
|
2237
|
+
return url;
|
|
2267
2238
|
}
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2239
|
+
var _encode = options && options.encode || encode;
|
|
2240
|
+
var _options = utils$1.isFunction(options) ? {
|
|
2241
|
+
serialize: options
|
|
2242
|
+
} : options;
|
|
2243
|
+
var serializeFn = _options && _options.serialize;
|
|
2244
|
+
var serializedParams;
|
|
2245
|
+
if (serializeFn) {
|
|
2246
|
+
serializedParams = serializeFn(params, _options);
|
|
2247
|
+
} else {
|
|
2248
|
+
serializedParams = utils$1.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, _options).toString(_encode);
|
|
2271
2249
|
}
|
|
2272
|
-
if (
|
|
2273
|
-
|
|
2250
|
+
if (serializedParams) {
|
|
2251
|
+
var hashmarkIndex = url.indexOf('#');
|
|
2252
|
+
if (hashmarkIndex !== -1) {
|
|
2253
|
+
url = url.slice(0, hashmarkIndex);
|
|
2254
|
+
}
|
|
2255
|
+
url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
|
|
2274
2256
|
}
|
|
2257
|
+
return url;
|
|
2275
2258
|
}
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
function buildAccessors(obj, header) {
|
|
2282
|
-
var accessorName = utils$1.toCamelCase(' ' + header);
|
|
2283
|
-
['get', 'set', 'has'].forEach(function (methodName) {
|
|
2284
|
-
Object.defineProperty(obj, methodName + accessorName, {
|
|
2285
|
-
value: function value(arg1, arg2, arg3) {
|
|
2286
|
-
return this[methodName].call(this, header, arg1, arg2, arg3);
|
|
2287
|
-
},
|
|
2288
|
-
configurable: true
|
|
2289
|
-
});
|
|
2290
|
-
});
|
|
2291
|
-
}
|
|
2292
|
-
var AxiosHeaders = /*#__PURE__*/function () {
|
|
2293
|
-
function AxiosHeaders(headers) {
|
|
2294
|
-
_classCallCheck(this, AxiosHeaders);
|
|
2295
|
-
headers && this.set(headers);
|
|
2259
|
+
|
|
2260
|
+
var InterceptorManager = /*#__PURE__*/function () {
|
|
2261
|
+
function InterceptorManager() {
|
|
2262
|
+
_classCallCheck(this, InterceptorManager);
|
|
2263
|
+
this.handlers = [];
|
|
2296
2264
|
}
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
};
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
}
|
|
2332
|
-
obj[key = entry[0]] = (dest = obj[key]) ? utils$1.isArray(dest) ? [].concat(_toConsumableArray(dest), [entry[1]]) : [dest, entry[1]] : entry[1];
|
|
2333
|
-
}
|
|
2334
|
-
} catch (err) {
|
|
2335
|
-
_iterator.e(err);
|
|
2336
|
-
} finally {
|
|
2337
|
-
_iterator.f();
|
|
2338
|
-
}
|
|
2339
|
-
setHeaders(obj, valueOrRewrite);
|
|
2340
|
-
} else {
|
|
2341
|
-
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
2265
|
+
|
|
2266
|
+
/**
|
|
2267
|
+
* Add a new interceptor to the stack
|
|
2268
|
+
*
|
|
2269
|
+
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
2270
|
+
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
2271
|
+
* @param {Object} options The options for the interceptor, synchronous and runWhen
|
|
2272
|
+
*
|
|
2273
|
+
* @return {Number} An ID used to remove interceptor later
|
|
2274
|
+
*/
|
|
2275
|
+
return _createClass(InterceptorManager, [{
|
|
2276
|
+
key: "use",
|
|
2277
|
+
value: function use(fulfilled, rejected, options) {
|
|
2278
|
+
this.handlers.push({
|
|
2279
|
+
fulfilled: fulfilled,
|
|
2280
|
+
rejected: rejected,
|
|
2281
|
+
synchronous: options ? options.synchronous : false,
|
|
2282
|
+
runWhen: options ? options.runWhen : null
|
|
2283
|
+
});
|
|
2284
|
+
return this.handlers.length - 1;
|
|
2285
|
+
}
|
|
2286
|
+
|
|
2287
|
+
/**
|
|
2288
|
+
* Remove an interceptor from the stack
|
|
2289
|
+
*
|
|
2290
|
+
* @param {Number} id The ID that was returned by `use`
|
|
2291
|
+
*
|
|
2292
|
+
* @returns {void}
|
|
2293
|
+
*/
|
|
2294
|
+
}, {
|
|
2295
|
+
key: "eject",
|
|
2296
|
+
value: function eject(id) {
|
|
2297
|
+
if (this.handlers[id]) {
|
|
2298
|
+
this.handlers[id] = null;
|
|
2342
2299
|
}
|
|
2343
|
-
return this;
|
|
2344
2300
|
}
|
|
2301
|
+
|
|
2302
|
+
/**
|
|
2303
|
+
* Clear all interceptors from the stack
|
|
2304
|
+
*
|
|
2305
|
+
* @returns {void}
|
|
2306
|
+
*/
|
|
2345
2307
|
}, {
|
|
2346
|
-
key: "
|
|
2347
|
-
value: function
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
var key = utils$1.findKey(this, header);
|
|
2351
|
-
if (key) {
|
|
2352
|
-
var value = this[key];
|
|
2353
|
-
if (!parser) {
|
|
2354
|
-
return value;
|
|
2355
|
-
}
|
|
2356
|
-
if (parser === true) {
|
|
2357
|
-
return parseTokens(value);
|
|
2358
|
-
}
|
|
2359
|
-
if (utils$1.isFunction(parser)) {
|
|
2360
|
-
return parser.call(this, value, key);
|
|
2361
|
-
}
|
|
2362
|
-
if (utils$1.isRegExp(parser)) {
|
|
2363
|
-
return parser.exec(value);
|
|
2364
|
-
}
|
|
2365
|
-
throw new TypeError('parser must be boolean|regexp|function');
|
|
2366
|
-
}
|
|
2367
|
-
}
|
|
2368
|
-
}
|
|
2369
|
-
}, {
|
|
2370
|
-
key: "has",
|
|
2371
|
-
value: function has(header, matcher) {
|
|
2372
|
-
header = normalizeHeader(header);
|
|
2373
|
-
if (header) {
|
|
2374
|
-
var key = utils$1.findKey(this, header);
|
|
2375
|
-
return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
|
2308
|
+
key: "clear",
|
|
2309
|
+
value: function clear() {
|
|
2310
|
+
if (this.handlers) {
|
|
2311
|
+
this.handlers = [];
|
|
2376
2312
|
}
|
|
2377
|
-
return false;
|
|
2378
2313
|
}
|
|
2314
|
+
|
|
2315
|
+
/**
|
|
2316
|
+
* Iterate over all the registered interceptors
|
|
2317
|
+
*
|
|
2318
|
+
* This method is particularly useful for skipping over any
|
|
2319
|
+
* interceptors that may have become `null` calling `eject`.
|
|
2320
|
+
*
|
|
2321
|
+
* @param {Function} fn The function to call for each interceptor
|
|
2322
|
+
*
|
|
2323
|
+
* @returns {void}
|
|
2324
|
+
*/
|
|
2379
2325
|
}, {
|
|
2380
|
-
key: "
|
|
2381
|
-
value: function
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
_header = normalizeHeader(_header);
|
|
2386
|
-
if (_header) {
|
|
2387
|
-
var key = utils$1.findKey(self, _header);
|
|
2388
|
-
if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {
|
|
2389
|
-
delete self[key];
|
|
2390
|
-
deleted = true;
|
|
2391
|
-
}
|
|
2326
|
+
key: "forEach",
|
|
2327
|
+
value: function forEach(fn) {
|
|
2328
|
+
utils$1.forEach(this.handlers, function forEachHandler(h) {
|
|
2329
|
+
if (h !== null) {
|
|
2330
|
+
fn(h);
|
|
2392
2331
|
}
|
|
2332
|
+
});
|
|
2333
|
+
}
|
|
2334
|
+
}]);
|
|
2335
|
+
}();
|
|
2336
|
+
|
|
2337
|
+
var transitionalDefaults = {
|
|
2338
|
+
silentJSONParsing: true,
|
|
2339
|
+
forcedJSONParsing: true,
|
|
2340
|
+
clarifyTimeoutError: false,
|
|
2341
|
+
legacyInterceptorReqResOrdering: true
|
|
2342
|
+
};
|
|
2343
|
+
|
|
2344
|
+
var URLSearchParams$1 = typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;
|
|
2345
|
+
|
|
2346
|
+
var FormData$1 = typeof FormData !== 'undefined' ? FormData : null;
|
|
2347
|
+
|
|
2348
|
+
var Blob$1 = typeof Blob !== 'undefined' ? Blob : null;
|
|
2349
|
+
|
|
2350
|
+
var platform$1 = {
|
|
2351
|
+
isBrowser: true,
|
|
2352
|
+
classes: {
|
|
2353
|
+
URLSearchParams: URLSearchParams$1,
|
|
2354
|
+
FormData: FormData$1,
|
|
2355
|
+
Blob: Blob$1
|
|
2356
|
+
},
|
|
2357
|
+
protocols: ['http', 'https', 'file', 'blob', 'url', 'data']
|
|
2358
|
+
};
|
|
2359
|
+
|
|
2360
|
+
var hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';
|
|
2361
|
+
var _navigator = (typeof navigator === "undefined" ? "undefined" : _typeof(navigator)) === 'object' && navigator || undefined;
|
|
2362
|
+
|
|
2363
|
+
/**
|
|
2364
|
+
* Determine if we're running in a standard browser environment
|
|
2365
|
+
*
|
|
2366
|
+
* This allows axios to run in a web worker, and react-native.
|
|
2367
|
+
* Both environments support XMLHttpRequest, but not fully standard globals.
|
|
2368
|
+
*
|
|
2369
|
+
* web workers:
|
|
2370
|
+
* typeof window -> undefined
|
|
2371
|
+
* typeof document -> undefined
|
|
2372
|
+
*
|
|
2373
|
+
* react-native:
|
|
2374
|
+
* navigator.product -> 'ReactNative'
|
|
2375
|
+
* nativescript
|
|
2376
|
+
* navigator.product -> 'NativeScript' or 'NS'
|
|
2377
|
+
*
|
|
2378
|
+
* @returns {boolean}
|
|
2379
|
+
*/
|
|
2380
|
+
var hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ['ReactNative', 'NativeScript', 'NS'].indexOf(_navigator.product) < 0);
|
|
2381
|
+
|
|
2382
|
+
/**
|
|
2383
|
+
* Determine if we're running in a standard browser webWorker environment
|
|
2384
|
+
*
|
|
2385
|
+
* Although the `isStandardBrowserEnv` method indicates that
|
|
2386
|
+
* `allows axios to run in a web worker`, the WebWorker will still be
|
|
2387
|
+
* filtered out due to its judgment standard
|
|
2388
|
+
* `typeof window !== 'undefined' && typeof document !== 'undefined'`.
|
|
2389
|
+
* This leads to a problem when axios post `FormData` in webWorker
|
|
2390
|
+
*/
|
|
2391
|
+
var hasStandardBrowserWebWorkerEnv = function () {
|
|
2392
|
+
return typeof WorkerGlobalScope !== 'undefined' &&
|
|
2393
|
+
// eslint-disable-next-line no-undef
|
|
2394
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts === 'function';
|
|
2395
|
+
}();
|
|
2396
|
+
var origin = hasBrowserEnv && window.location.href || 'http://localhost';
|
|
2397
|
+
|
|
2398
|
+
var utils = /*#__PURE__*/Object.freeze({
|
|
2399
|
+
__proto__: null,
|
|
2400
|
+
hasBrowserEnv: hasBrowserEnv,
|
|
2401
|
+
hasStandardBrowserEnv: hasStandardBrowserEnv,
|
|
2402
|
+
hasStandardBrowserWebWorkerEnv: hasStandardBrowserWebWorkerEnv,
|
|
2403
|
+
navigator: _navigator,
|
|
2404
|
+
origin: origin
|
|
2405
|
+
});
|
|
2406
|
+
|
|
2407
|
+
var platform = _objectSpread2(_objectSpread2({}, utils), platform$1);
|
|
2408
|
+
|
|
2409
|
+
function toURLEncodedForm(data, options) {
|
|
2410
|
+
return toFormData(data, new platform.classes.URLSearchParams(), _objectSpread2({
|
|
2411
|
+
visitor: function visitor(value, key, path, helpers) {
|
|
2412
|
+
if (platform.isNode && utils$1.isBuffer(value)) {
|
|
2413
|
+
this.append(key, value.toString('base64'));
|
|
2414
|
+
return false;
|
|
2393
2415
|
}
|
|
2394
|
-
|
|
2395
|
-
|
|
2416
|
+
return helpers.defaultVisitor.apply(this, arguments);
|
|
2417
|
+
}
|
|
2418
|
+
}, options));
|
|
2419
|
+
}
|
|
2420
|
+
|
|
2421
|
+
/**
|
|
2422
|
+
* It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']
|
|
2423
|
+
*
|
|
2424
|
+
* @param {string} name - The name of the property to get.
|
|
2425
|
+
*
|
|
2426
|
+
* @returns An array of strings.
|
|
2427
|
+
*/
|
|
2428
|
+
function parsePropPath(name) {
|
|
2429
|
+
// foo[x][y][z]
|
|
2430
|
+
// foo.x.y.z
|
|
2431
|
+
// foo-x-y-z
|
|
2432
|
+
// foo x y z
|
|
2433
|
+
return utils$1.matchAll(/\w+|\[(\w*)]/g, name).map(function (match) {
|
|
2434
|
+
return match[0] === '[]' ? '' : match[1] || match[0];
|
|
2435
|
+
});
|
|
2436
|
+
}
|
|
2437
|
+
|
|
2438
|
+
/**
|
|
2439
|
+
* Convert an array to an object.
|
|
2440
|
+
*
|
|
2441
|
+
* @param {Array<any>} arr - The array to convert to an object.
|
|
2442
|
+
*
|
|
2443
|
+
* @returns An object with the same keys and values as the array.
|
|
2444
|
+
*/
|
|
2445
|
+
function arrayToObject(arr) {
|
|
2446
|
+
var obj = {};
|
|
2447
|
+
var keys = Object.keys(arr);
|
|
2448
|
+
var i;
|
|
2449
|
+
var len = keys.length;
|
|
2450
|
+
var key;
|
|
2451
|
+
for (i = 0; i < len; i++) {
|
|
2452
|
+
key = keys[i];
|
|
2453
|
+
obj[key] = arr[key];
|
|
2454
|
+
}
|
|
2455
|
+
return obj;
|
|
2456
|
+
}
|
|
2457
|
+
|
|
2458
|
+
/**
|
|
2459
|
+
* It takes a FormData object and returns a JavaScript object
|
|
2460
|
+
*
|
|
2461
|
+
* @param {string} formData The FormData object to convert to JSON.
|
|
2462
|
+
*
|
|
2463
|
+
* @returns {Object<string, any> | null} The converted object.
|
|
2464
|
+
*/
|
|
2465
|
+
function formDataToJSON(formData) {
|
|
2466
|
+
function buildPath(path, value, target, index) {
|
|
2467
|
+
var name = path[index++];
|
|
2468
|
+
if (name === '__proto__') return true;
|
|
2469
|
+
var isNumericKey = Number.isFinite(+name);
|
|
2470
|
+
var isLast = index >= path.length;
|
|
2471
|
+
name = !name && utils$1.isArray(target) ? target.length : name;
|
|
2472
|
+
if (isLast) {
|
|
2473
|
+
if (utils$1.hasOwnProp(target, name)) {
|
|
2474
|
+
target[name] = utils$1.isArray(target[name]) ? target[name].concat(value) : [target[name], value];
|
|
2396
2475
|
} else {
|
|
2397
|
-
|
|
2476
|
+
target[name] = value;
|
|
2398
2477
|
}
|
|
2399
|
-
return
|
|
2478
|
+
return !isNumericKey;
|
|
2400
2479
|
}
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
value: function clear(matcher) {
|
|
2404
|
-
var keys = Object.keys(this);
|
|
2405
|
-
var i = keys.length;
|
|
2406
|
-
var deleted = false;
|
|
2407
|
-
while (i--) {
|
|
2408
|
-
var key = keys[i];
|
|
2409
|
-
if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
2410
|
-
delete this[key];
|
|
2411
|
-
deleted = true;
|
|
2412
|
-
}
|
|
2413
|
-
}
|
|
2414
|
-
return deleted;
|
|
2480
|
+
if (!target[name] || !utils$1.isObject(target[name])) {
|
|
2481
|
+
target[name] = [];
|
|
2415
2482
|
}
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
var self = this;
|
|
2420
|
-
var headers = {};
|
|
2421
|
-
utils$1.forEach(this, function (value, header) {
|
|
2422
|
-
var key = utils$1.findKey(headers, header);
|
|
2423
|
-
if (key) {
|
|
2424
|
-
self[key] = normalizeValue(value);
|
|
2425
|
-
delete self[header];
|
|
2426
|
-
return;
|
|
2427
|
-
}
|
|
2428
|
-
var normalized = format ? formatHeader(header) : String(header).trim();
|
|
2429
|
-
if (normalized !== header) {
|
|
2430
|
-
delete self[header];
|
|
2431
|
-
}
|
|
2432
|
-
self[normalized] = normalizeValue(value);
|
|
2433
|
-
headers[normalized] = true;
|
|
2434
|
-
});
|
|
2435
|
-
return this;
|
|
2483
|
+
var result = buildPath(path, value, target[name], index);
|
|
2484
|
+
if (result && utils$1.isArray(target[name])) {
|
|
2485
|
+
target[name] = arrayToObject(target[name]);
|
|
2436
2486
|
}
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2487
|
+
return !isNumericKey;
|
|
2488
|
+
}
|
|
2489
|
+
if (utils$1.isFormData(formData) && utils$1.isFunction(formData.entries)) {
|
|
2490
|
+
var obj = {};
|
|
2491
|
+
utils$1.forEachEntry(formData, function (name, value) {
|
|
2492
|
+
buildPath(parsePropPath(name), value, obj, 0);
|
|
2493
|
+
});
|
|
2494
|
+
return obj;
|
|
2495
|
+
}
|
|
2496
|
+
return null;
|
|
2497
|
+
}
|
|
2498
|
+
|
|
2499
|
+
var own = function own(obj, key) {
|
|
2500
|
+
return obj != null && utils$1.hasOwnProp(obj, key) ? obj[key] : undefined;
|
|
2501
|
+
};
|
|
2502
|
+
|
|
2503
|
+
/**
|
|
2504
|
+
* It takes a string, tries to parse it, and if it fails, it returns the stringified version
|
|
2505
|
+
* of the input
|
|
2506
|
+
*
|
|
2507
|
+
* @param {any} rawValue - The value to be stringified.
|
|
2508
|
+
* @param {Function} parser - A function that parses a string into a JavaScript object.
|
|
2509
|
+
* @param {Function} encoder - A function that takes a value and returns a string.
|
|
2510
|
+
*
|
|
2511
|
+
* @returns {string} A stringified version of the rawValue.
|
|
2512
|
+
*/
|
|
2513
|
+
function stringifySafely(rawValue, parser, encoder) {
|
|
2514
|
+
if (utils$1.isString(rawValue)) {
|
|
2515
|
+
try {
|
|
2516
|
+
(parser || JSON.parse)(rawValue);
|
|
2517
|
+
return utils$1.trim(rawValue);
|
|
2518
|
+
} catch (e) {
|
|
2519
|
+
if (e.name !== 'SyntaxError') {
|
|
2520
|
+
throw e;
|
|
2443
2521
|
}
|
|
2444
|
-
return (_this$constructor = this.constructor).concat.apply(_this$constructor, [this].concat(targets));
|
|
2445
|
-
}
|
|
2446
|
-
}, {
|
|
2447
|
-
key: "toJSON",
|
|
2448
|
-
value: function toJSON(asStrings) {
|
|
2449
|
-
var obj = Object.create(null);
|
|
2450
|
-
utils$1.forEach(this, function (value, header) {
|
|
2451
|
-
value != null && value !== false && (obj[header] = asStrings && utils$1.isArray(value) ? value.join(', ') : value);
|
|
2452
|
-
});
|
|
2453
|
-
return obj;
|
|
2454
2522
|
}
|
|
2455
|
-
}
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2523
|
+
}
|
|
2524
|
+
return (encoder || JSON.stringify)(rawValue);
|
|
2525
|
+
}
|
|
2526
|
+
var defaults = {
|
|
2527
|
+
transitional: transitionalDefaults,
|
|
2528
|
+
adapter: ['xhr', 'http', 'fetch'],
|
|
2529
|
+
transformRequest: [function transformRequest(data, headers) {
|
|
2530
|
+
var contentType = headers.getContentType() || '';
|
|
2531
|
+
var hasJSONContentType = contentType.indexOf('application/json') > -1;
|
|
2532
|
+
var isObjectPayload = utils$1.isObject(data);
|
|
2533
|
+
if (isObjectPayload && utils$1.isHTMLForm(data)) {
|
|
2534
|
+
data = new FormData(data);
|
|
2459
2535
|
}
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
return Object.entries(this.toJSON()).map(function (_ref) {
|
|
2464
|
-
var _ref2 = _slicedToArray(_ref, 2),
|
|
2465
|
-
header = _ref2[0],
|
|
2466
|
-
value = _ref2[1];
|
|
2467
|
-
return header + ': ' + value;
|
|
2468
|
-
}).join('\n');
|
|
2536
|
+
var isFormData = utils$1.isFormData(data);
|
|
2537
|
+
if (isFormData) {
|
|
2538
|
+
return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
|
|
2469
2539
|
}
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
value: function getSetCookie() {
|
|
2473
|
-
return this.get('set-cookie') || [];
|
|
2540
|
+
if (utils$1.isArrayBuffer(data) || utils$1.isBuffer(data) || utils$1.isStream(data) || utils$1.isFile(data) || utils$1.isBlob(data) || utils$1.isReadableStream(data)) {
|
|
2541
|
+
return data;
|
|
2474
2542
|
}
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
get: function get() {
|
|
2478
|
-
return 'AxiosHeaders';
|
|
2543
|
+
if (utils$1.isArrayBufferView(data)) {
|
|
2544
|
+
return data.buffer;
|
|
2479
2545
|
}
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
return thing instanceof this ? thing : new this(thing);
|
|
2546
|
+
if (utils$1.isURLSearchParams(data)) {
|
|
2547
|
+
headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);
|
|
2548
|
+
return data.toString();
|
|
2484
2549
|
}
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2550
|
+
var isFileList;
|
|
2551
|
+
if (isObjectPayload) {
|
|
2552
|
+
var formSerializer = own(this, 'formSerializer');
|
|
2553
|
+
if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {
|
|
2554
|
+
return toURLEncodedForm(data, formSerializer).toString();
|
|
2555
|
+
}
|
|
2556
|
+
if ((isFileList = utils$1.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {
|
|
2557
|
+
var env = own(this, 'env');
|
|
2558
|
+
var _FormData = env && env.FormData;
|
|
2559
|
+
return toFormData(isFileList ? {
|
|
2560
|
+
'files[]': data
|
|
2561
|
+
} : data, _FormData && new _FormData(), formSerializer);
|
|
2491
2562
|
}
|
|
2492
|
-
targets.forEach(function (target) {
|
|
2493
|
-
return computed.set(target);
|
|
2494
|
-
});
|
|
2495
|
-
return computed;
|
|
2496
2563
|
}
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2564
|
+
if (isObjectPayload || hasJSONContentType) {
|
|
2565
|
+
headers.setContentType('application/json', false);
|
|
2566
|
+
return stringifySafely(data);
|
|
2567
|
+
}
|
|
2568
|
+
return data;
|
|
2569
|
+
}],
|
|
2570
|
+
transformResponse: [function transformResponse(data) {
|
|
2571
|
+
var transitional = own(this, 'transitional') || defaults.transitional;
|
|
2572
|
+
var forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
|
2573
|
+
var responseType = own(this, 'responseType');
|
|
2574
|
+
var JSONRequested = responseType === 'json';
|
|
2575
|
+
if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) {
|
|
2576
|
+
return data;
|
|
2577
|
+
}
|
|
2578
|
+
if (data && utils$1.isString(data) && (forcedJSONParsing && !responseType || JSONRequested)) {
|
|
2579
|
+
var silentJSONParsing = transitional && transitional.silentJSONParsing;
|
|
2580
|
+
var strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
2581
|
+
try {
|
|
2582
|
+
return JSON.parse(data, own(this, 'parseReviver'));
|
|
2583
|
+
} catch (e) {
|
|
2584
|
+
if (strictJSONParsing) {
|
|
2585
|
+
if (e.name === 'SyntaxError') {
|
|
2586
|
+
throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, own(this, 'response'));
|
|
2587
|
+
}
|
|
2588
|
+
throw e;
|
|
2510
2589
|
}
|
|
2511
2590
|
}
|
|
2512
|
-
utils$1.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
|
|
2513
|
-
return this;
|
|
2514
2591
|
}
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2592
|
+
return data;
|
|
2593
|
+
}],
|
|
2594
|
+
/**
|
|
2595
|
+
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
2596
|
+
* timeout is not created.
|
|
2597
|
+
*/
|
|
2598
|
+
timeout: 0,
|
|
2599
|
+
xsrfCookieName: 'XSRF-TOKEN',
|
|
2600
|
+
xsrfHeaderName: 'X-XSRF-TOKEN',
|
|
2601
|
+
maxContentLength: -1,
|
|
2602
|
+
maxBodyLength: -1,
|
|
2603
|
+
env: {
|
|
2604
|
+
FormData: platform.classes.FormData,
|
|
2605
|
+
Blob: platform.classes.Blob
|
|
2606
|
+
},
|
|
2607
|
+
validateStatus: function validateStatus(status) {
|
|
2608
|
+
return status >= 200 && status < 300;
|
|
2609
|
+
},
|
|
2610
|
+
headers: {
|
|
2611
|
+
common: {
|
|
2612
|
+
Accept: 'application/json, text/plain, */*',
|
|
2613
|
+
'Content-Type': undefined
|
|
2529
2614
|
}
|
|
2530
|
-
}
|
|
2615
|
+
}
|
|
2616
|
+
};
|
|
2617
|
+
utils$1.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'query'], function (method) {
|
|
2618
|
+
defaults.headers[method] = {};
|
|
2531
2619
|
});
|
|
2532
|
-
utils$1.freezeMethods(AxiosHeaders);
|
|
2533
2620
|
|
|
2534
2621
|
/**
|
|
2535
2622
|
* Transform the data for a request or a response
|
|
@@ -2591,12 +2678,12 @@
|
|
|
2591
2678
|
if (!response.status || !validateStatus || validateStatus(response.status)) {
|
|
2592
2679
|
resolve(response);
|
|
2593
2680
|
} else {
|
|
2594
|
-
reject(new AxiosError('Request failed with status code ' + response.status,
|
|
2681
|
+
reject(new AxiosError('Request failed with status code ' + response.status, response.status >= 400 && response.status < 500 ? AxiosError.ERR_BAD_REQUEST : AxiosError.ERR_BAD_RESPONSE, response.config, response.request, response));
|
|
2595
2682
|
}
|
|
2596
2683
|
}
|
|
2597
2684
|
|
|
2598
2685
|
function parseProtocol(url) {
|
|
2599
|
-
var match = /^([-+\w]{1,25})(
|
|
2686
|
+
var match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url);
|
|
2600
2687
|
return match && match[1] || '';
|
|
2601
2688
|
}
|
|
2602
2689
|
|
|
@@ -2764,8 +2851,20 @@
|
|
|
2764
2851
|
},
|
|
2765
2852
|
read: function read(name) {
|
|
2766
2853
|
if (typeof document === 'undefined') return null;
|
|
2767
|
-
|
|
2768
|
-
|
|
2854
|
+
// Match name=value by splitting on the semicolon separator instead of building a
|
|
2855
|
+
// RegExp from `name` — interpolating an unescaped string into a RegExp would let
|
|
2856
|
+
// metacharacters (e.g. `.+?` in an attacker-influenced cookie name) cause ReDoS or
|
|
2857
|
+
// match the wrong cookie. Browsers may serialize cookie pairs as either ";" or
|
|
2858
|
+
// "; ", so ignore optional whitespace before each cookie name.
|
|
2859
|
+
var cookies = document.cookie.split(';');
|
|
2860
|
+
for (var i = 0; i < cookies.length; i++) {
|
|
2861
|
+
var cookie = cookies[i].replace(/^\s+/, '');
|
|
2862
|
+
var eq = cookie.indexOf('=');
|
|
2863
|
+
if (eq !== -1 && cookie.slice(0, eq) === name) {
|
|
2864
|
+
return decodeURIComponent(cookie.slice(eq + 1));
|
|
2865
|
+
}
|
|
2866
|
+
}
|
|
2867
|
+
return null;
|
|
2769
2868
|
},
|
|
2770
2869
|
remove: function remove(name) {
|
|
2771
2870
|
this.write(name, '', Date.now() - 86400000, '/');
|
|
@@ -2843,7 +2942,21 @@
|
|
|
2843
2942
|
function mergeConfig(config1, config2) {
|
|
2844
2943
|
// eslint-disable-next-line no-param-reassign
|
|
2845
2944
|
config2 = config2 || {};
|
|
2846
|
-
|
|
2945
|
+
|
|
2946
|
+
// Use a null-prototype object so that downstream reads such as `config.auth`
|
|
2947
|
+
// or `config.baseURL` cannot inherit polluted values from Object.prototype.
|
|
2948
|
+
// `hasOwnProperty` is restored as a non-enumerable own slot to preserve
|
|
2949
|
+
// ergonomics for user code that relies on it.
|
|
2950
|
+
var config = Object.create(null);
|
|
2951
|
+
Object.defineProperty(config, 'hasOwnProperty', {
|
|
2952
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
2953
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
2954
|
+
__proto__: null,
|
|
2955
|
+
value: Object.prototype.hasOwnProperty,
|
|
2956
|
+
enumerable: false,
|
|
2957
|
+
writable: true,
|
|
2958
|
+
configurable: true
|
|
2959
|
+
});
|
|
2847
2960
|
function getMergedValue(target, source, prop, caseless) {
|
|
2848
2961
|
if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
|
|
2849
2962
|
return utils$1.merge.call({
|
|
@@ -2915,6 +3028,7 @@
|
|
|
2915
3028
|
httpsAgent: defaultToConfig2,
|
|
2916
3029
|
cancelToken: defaultToConfig2,
|
|
2917
3030
|
socketPath: defaultToConfig2,
|
|
3031
|
+
allowedSocketPaths: defaultToConfig2,
|
|
2918
3032
|
responseEncoding: defaultToConfig2,
|
|
2919
3033
|
validateStatus: mergeDirectKeys,
|
|
2920
3034
|
headers: function headers(a, b, prop) {
|
|
@@ -2932,37 +3046,65 @@
|
|
|
2932
3046
|
return config;
|
|
2933
3047
|
}
|
|
2934
3048
|
|
|
3049
|
+
var FORM_DATA_CONTENT_HEADERS = ['content-type', 'content-length'];
|
|
3050
|
+
function setFormDataHeaders(headers, formHeaders, policy) {
|
|
3051
|
+
if (policy !== 'content-only') {
|
|
3052
|
+
headers.set(formHeaders);
|
|
3053
|
+
return;
|
|
3054
|
+
}
|
|
3055
|
+
Object.entries(formHeaders).forEach(function (_ref) {
|
|
3056
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
3057
|
+
key = _ref2[0],
|
|
3058
|
+
val = _ref2[1];
|
|
3059
|
+
if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
|
|
3060
|
+
headers.set(key, val);
|
|
3061
|
+
}
|
|
3062
|
+
});
|
|
3063
|
+
}
|
|
3064
|
+
|
|
3065
|
+
/**
|
|
3066
|
+
* Encode a UTF-8 string to a Latin-1 byte string for use with btoa().
|
|
3067
|
+
* This is a modern replacement for the deprecated unescape(encodeURIComponent(str)) pattern.
|
|
3068
|
+
*
|
|
3069
|
+
* @param {string} str The string to encode
|
|
3070
|
+
*
|
|
3071
|
+
* @returns {string} UTF-8 bytes as a Latin-1 string
|
|
3072
|
+
*/
|
|
3073
|
+
var encodeUTF8 = function encodeUTF8(str) {
|
|
3074
|
+
return encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, function (_, hex) {
|
|
3075
|
+
return String.fromCharCode(parseInt(hex, 16));
|
|
3076
|
+
});
|
|
3077
|
+
};
|
|
2935
3078
|
var resolveConfig = (function (config) {
|
|
2936
3079
|
var newConfig = mergeConfig({}, config);
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
3080
|
+
|
|
3081
|
+
// Read only own properties to prevent prototype pollution gadgets
|
|
3082
|
+
// (e.g. Object.prototype.baseURL = 'https://evil.com').
|
|
3083
|
+
var own = function own(key) {
|
|
3084
|
+
return utils$1.hasOwnProp(newConfig, key) ? newConfig[key] : undefined;
|
|
3085
|
+
};
|
|
3086
|
+
var data = own('data');
|
|
3087
|
+
var withXSRFToken = own('withXSRFToken');
|
|
3088
|
+
var xsrfHeaderName = own('xsrfHeaderName');
|
|
3089
|
+
var xsrfCookieName = own('xsrfCookieName');
|
|
3090
|
+
var headers = own('headers');
|
|
3091
|
+
var auth = own('auth');
|
|
3092
|
+
var baseURL = own('baseURL');
|
|
3093
|
+
var allowAbsoluteUrls = own('allowAbsoluteUrls');
|
|
3094
|
+
var url = own('url');
|
|
2943
3095
|
newConfig.headers = headers = AxiosHeaders.from(headers);
|
|
2944
|
-
newConfig.url = buildURL(buildFullPath(
|
|
3096
|
+
newConfig.url = buildURL(buildFullPath(baseURL, url, allowAbsoluteUrls), config.params, config.paramsSerializer);
|
|
2945
3097
|
|
|
2946
3098
|
// HTTP basic authentication
|
|
2947
3099
|
if (auth) {
|
|
2948
|
-
headers.set('Authorization', 'Basic ' + btoa((auth.username || '') + ':' + (auth.password ?
|
|
3100
|
+
headers.set('Authorization', 'Basic ' + btoa((auth.username || '') + ':' + (auth.password ? encodeUTF8(auth.password) : '')));
|
|
2949
3101
|
}
|
|
2950
3102
|
if (utils$1.isFormData(data)) {
|
|
2951
3103
|
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
|
|
2952
3104
|
headers.setContentType(undefined); // browser handles it
|
|
2953
3105
|
} else if (utils$1.isFunction(data.getHeaders)) {
|
|
2954
3106
|
// Node.js FormData (like form-data package)
|
|
2955
|
-
|
|
2956
|
-
// Only set safe headers to avoid overwriting security headers
|
|
2957
|
-
var allowedHeaders = ['content-type', 'content-length'];
|
|
2958
|
-
Object.entries(formHeaders).forEach(function (_ref) {
|
|
2959
|
-
var _ref2 = _slicedToArray(_ref, 2),
|
|
2960
|
-
key = _ref2[0],
|
|
2961
|
-
val = _ref2[1];
|
|
2962
|
-
if (allowedHeaders.includes(key.toLowerCase())) {
|
|
2963
|
-
headers.set(key, val);
|
|
2964
|
-
}
|
|
2965
|
-
});
|
|
3107
|
+
setFormDataHeaders(headers, data.getHeaders(), own('formDataHeaderPolicy'));
|
|
2966
3108
|
}
|
|
2967
3109
|
}
|
|
2968
3110
|
|
|
@@ -2977,7 +3119,7 @@
|
|
|
2977
3119
|
|
|
2978
3120
|
// Strict boolean check — prevents proto-pollution gadgets (e.g. Object.prototype.withXSRFToken = 1)
|
|
2979
3121
|
// and misconfigurations (e.g. "false") from short-circuiting the same-origin check and leaking
|
|
2980
|
-
// the XSRF token cross-origin.
|
|
3122
|
+
// the XSRF token cross-origin.
|
|
2981
3123
|
var shouldSendXSRF = withXSRFToken === true || withXSRFToken == null && isURLSameOrigin(newConfig.url);
|
|
2982
3124
|
if (shouldSendXSRF) {
|
|
2983
3125
|
var xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);
|
|
@@ -3053,7 +3195,7 @@
|
|
|
3053
3195
|
// handled by onerror instead
|
|
3054
3196
|
// With one exception: request that using file: protocol, most browsers
|
|
3055
3197
|
// will return status as 0 even though it's a successful request
|
|
3056
|
-
if (request.status === 0 && !(request.responseURL && request.responseURL.
|
|
3198
|
+
if (request.status === 0 && !(request.responseURL && request.responseURL.startsWith('file:'))) {
|
|
3057
3199
|
return;
|
|
3058
3200
|
}
|
|
3059
3201
|
// readystate handler is calling before onerror or ontimeout handlers,
|
|
@@ -3068,6 +3210,7 @@
|
|
|
3068
3210
|
return;
|
|
3069
3211
|
}
|
|
3070
3212
|
reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));
|
|
3213
|
+
done();
|
|
3071
3214
|
|
|
3072
3215
|
// Clean up request
|
|
3073
3216
|
request = null;
|
|
@@ -3083,6 +3226,7 @@
|
|
|
3083
3226
|
// attach the underlying event for consumers who want details
|
|
3084
3227
|
err.event = event || null;
|
|
3085
3228
|
reject(err);
|
|
3229
|
+
done();
|
|
3086
3230
|
request = null;
|
|
3087
3231
|
};
|
|
3088
3232
|
|
|
@@ -3094,6 +3238,7 @@
|
|
|
3094
3238
|
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
3095
3239
|
}
|
|
3096
3240
|
reject(new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config, request));
|
|
3241
|
+
done();
|
|
3097
3242
|
|
|
3098
3243
|
// Clean up request
|
|
3099
3244
|
request = null;
|
|
@@ -3146,6 +3291,7 @@
|
|
|
3146
3291
|
}
|
|
3147
3292
|
reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
|
|
3148
3293
|
request.abort();
|
|
3294
|
+
done();
|
|
3149
3295
|
request = null;
|
|
3150
3296
|
};
|
|
3151
3297
|
_config.cancelToken && _config.cancelToken.subscribe(onCanceled);
|
|
@@ -3154,7 +3300,7 @@
|
|
|
3154
3300
|
}
|
|
3155
3301
|
}
|
|
3156
3302
|
var protocol = parseProtocol(_config.url);
|
|
3157
|
-
if (protocol && platform.protocols.
|
|
3303
|
+
if (protocol && !platform.protocols.includes(protocol)) {
|
|
3158
3304
|
reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));
|
|
3159
3305
|
return;
|
|
3160
3306
|
}
|
|
@@ -3406,19 +3552,102 @@
|
|
|
3406
3552
|
});
|
|
3407
3553
|
};
|
|
3408
3554
|
|
|
3555
|
+
/**
|
|
3556
|
+
* Estimate decoded byte length of a data:// URL *without* allocating large buffers.
|
|
3557
|
+
* - For base64: compute exact decoded size using length and padding;
|
|
3558
|
+
* handle %XX at the character-count level (no string allocation).
|
|
3559
|
+
* - For non-base64: use UTF-8 byteLength of the encoded body as a safe upper bound.
|
|
3560
|
+
*
|
|
3561
|
+
* @param {string} url
|
|
3562
|
+
* @returns {number}
|
|
3563
|
+
*/
|
|
3564
|
+
function estimateDataURLDecodedBytes(url) {
|
|
3565
|
+
if (!url || typeof url !== 'string') return 0;
|
|
3566
|
+
if (!url.startsWith('data:')) return 0;
|
|
3567
|
+
var comma = url.indexOf(',');
|
|
3568
|
+
if (comma < 0) return 0;
|
|
3569
|
+
var meta = url.slice(5, comma);
|
|
3570
|
+
var body = url.slice(comma + 1);
|
|
3571
|
+
var isBase64 = /;base64/i.test(meta);
|
|
3572
|
+
if (isBase64) {
|
|
3573
|
+
var effectiveLen = body.length;
|
|
3574
|
+
var len = body.length; // cache length
|
|
3575
|
+
|
|
3576
|
+
for (var i = 0; i < len; i++) {
|
|
3577
|
+
if (body.charCodeAt(i) === 37 /* '%' */ && i + 2 < len) {
|
|
3578
|
+
var a = body.charCodeAt(i + 1);
|
|
3579
|
+
var b = body.charCodeAt(i + 2);
|
|
3580
|
+
var isHex = (a >= 48 && a <= 57 || a >= 65 && a <= 70 || a >= 97 && a <= 102) && (b >= 48 && b <= 57 || b >= 65 && b <= 70 || b >= 97 && b <= 102);
|
|
3581
|
+
if (isHex) {
|
|
3582
|
+
effectiveLen -= 2;
|
|
3583
|
+
i += 2;
|
|
3584
|
+
}
|
|
3585
|
+
}
|
|
3586
|
+
}
|
|
3587
|
+
var pad = 0;
|
|
3588
|
+
var idx = len - 1;
|
|
3589
|
+
var tailIsPct3D = function tailIsPct3D(j) {
|
|
3590
|
+
return j >= 2 && body.charCodeAt(j - 2) === 37 &&
|
|
3591
|
+
// '%'
|
|
3592
|
+
body.charCodeAt(j - 1) === 51 && (
|
|
3593
|
+
// '3'
|
|
3594
|
+
body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100);
|
|
3595
|
+
}; // 'D' or 'd'
|
|
3596
|
+
|
|
3597
|
+
if (idx >= 0) {
|
|
3598
|
+
if (body.charCodeAt(idx) === 61 /* '=' */) {
|
|
3599
|
+
pad++;
|
|
3600
|
+
idx--;
|
|
3601
|
+
} else if (tailIsPct3D(idx)) {
|
|
3602
|
+
pad++;
|
|
3603
|
+
idx -= 3;
|
|
3604
|
+
}
|
|
3605
|
+
}
|
|
3606
|
+
if (pad === 1 && idx >= 0) {
|
|
3607
|
+
if (body.charCodeAt(idx) === 61 /* '=' */) {
|
|
3608
|
+
pad++;
|
|
3609
|
+
} else if (tailIsPct3D(idx)) {
|
|
3610
|
+
pad++;
|
|
3611
|
+
}
|
|
3612
|
+
}
|
|
3613
|
+
var groups = Math.floor(effectiveLen / 4);
|
|
3614
|
+
var _bytes = groups * 3 - (pad || 0);
|
|
3615
|
+
return _bytes > 0 ? _bytes : 0;
|
|
3616
|
+
}
|
|
3617
|
+
if (typeof Buffer !== 'undefined' && typeof Buffer.byteLength === 'function') {
|
|
3618
|
+
return Buffer.byteLength(body, 'utf8');
|
|
3619
|
+
}
|
|
3620
|
+
|
|
3621
|
+
// Compute UTF-8 byte length directly from UTF-16 code units without allocating
|
|
3622
|
+
// a byte buffer (TextEncoder.encode would defeat the DoS guard on large bodies).
|
|
3623
|
+
// Using body.length here would undercount non-ASCII (e.g. '€' is 1 code unit
|
|
3624
|
+
// but 3 UTF-8 bytes).
|
|
3625
|
+
var bytes = 0;
|
|
3626
|
+
for (var _i = 0, _len = body.length; _i < _len; _i++) {
|
|
3627
|
+
var c = body.charCodeAt(_i);
|
|
3628
|
+
if (c < 0x80) {
|
|
3629
|
+
bytes += 1;
|
|
3630
|
+
} else if (c < 0x800) {
|
|
3631
|
+
bytes += 2;
|
|
3632
|
+
} else if (c >= 0xd800 && c <= 0xdbff && _i + 1 < _len) {
|
|
3633
|
+
var next = body.charCodeAt(_i + 1);
|
|
3634
|
+
if (next >= 0xdc00 && next <= 0xdfff) {
|
|
3635
|
+
bytes += 4;
|
|
3636
|
+
_i++;
|
|
3637
|
+
} else {
|
|
3638
|
+
bytes += 3;
|
|
3639
|
+
}
|
|
3640
|
+
} else {
|
|
3641
|
+
bytes += 3;
|
|
3642
|
+
}
|
|
3643
|
+
}
|
|
3644
|
+
return bytes;
|
|
3645
|
+
}
|
|
3646
|
+
|
|
3647
|
+
var VERSION = "1.16.0";
|
|
3648
|
+
|
|
3409
3649
|
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
3410
3650
|
var isFunction = utils$1.isFunction;
|
|
3411
|
-
var globalFetchAPI = function (_ref) {
|
|
3412
|
-
var Request = _ref.Request,
|
|
3413
|
-
Response = _ref.Response;
|
|
3414
|
-
return {
|
|
3415
|
-
Request: Request,
|
|
3416
|
-
Response: Response
|
|
3417
|
-
};
|
|
3418
|
-
}(utils$1.global);
|
|
3419
|
-
var _utils$global = utils$1.global,
|
|
3420
|
-
ReadableStream$1 = _utils$global.ReadableStream,
|
|
3421
|
-
TextEncoder = _utils$global.TextEncoder;
|
|
3422
3651
|
var test = function test(fn) {
|
|
3423
3652
|
try {
|
|
3424
3653
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
@@ -3430,9 +3659,16 @@
|
|
|
3430
3659
|
}
|
|
3431
3660
|
};
|
|
3432
3661
|
var factory = function factory(env) {
|
|
3662
|
+
var _utils$global;
|
|
3663
|
+
var globalObject = (_utils$global = utils$1.global) !== null && _utils$global !== void 0 ? _utils$global : globalThis;
|
|
3664
|
+
var ReadableStream = globalObject.ReadableStream,
|
|
3665
|
+
TextEncoder = globalObject.TextEncoder;
|
|
3433
3666
|
env = utils$1.merge.call({
|
|
3434
3667
|
skipUndefined: true
|
|
3435
|
-
},
|
|
3668
|
+
}, {
|
|
3669
|
+
Request: globalObject.Request,
|
|
3670
|
+
Response: globalObject.Response
|
|
3671
|
+
}, env);
|
|
3436
3672
|
var _env = env,
|
|
3437
3673
|
envFetch = _env.fetch,
|
|
3438
3674
|
Request = _env.Request,
|
|
@@ -3443,13 +3679,13 @@
|
|
|
3443
3679
|
if (!isFetchSupported) {
|
|
3444
3680
|
return false;
|
|
3445
3681
|
}
|
|
3446
|
-
var isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream
|
|
3682
|
+
var isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream);
|
|
3447
3683
|
var encodeText = isFetchSupported && (typeof TextEncoder === 'function' ? function (encoder) {
|
|
3448
3684
|
return function (str) {
|
|
3449
3685
|
return encoder.encode(str);
|
|
3450
3686
|
};
|
|
3451
3687
|
}(new TextEncoder()) : (/*#__PURE__*/function () {
|
|
3452
|
-
var
|
|
3688
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(str) {
|
|
3453
3689
|
var _t, _t2;
|
|
3454
3690
|
return _regenerator().w(function (_context) {
|
|
3455
3691
|
while (1) switch (_context.n) {
|
|
@@ -3464,13 +3700,13 @@
|
|
|
3464
3700
|
}, _callee);
|
|
3465
3701
|
}));
|
|
3466
3702
|
return function (_x) {
|
|
3467
|
-
return
|
|
3703
|
+
return _ref.apply(this, arguments);
|
|
3468
3704
|
};
|
|
3469
3705
|
}()));
|
|
3470
3706
|
var supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(function () {
|
|
3471
3707
|
var duplexAccessed = false;
|
|
3472
3708
|
var request = new Request(platform.origin, {
|
|
3473
|
-
body: new ReadableStream
|
|
3709
|
+
body: new ReadableStream(),
|
|
3474
3710
|
method: 'POST',
|
|
3475
3711
|
get duplex() {
|
|
3476
3712
|
duplexAccessed = true;
|
|
@@ -3503,7 +3739,7 @@
|
|
|
3503
3739
|
});
|
|
3504
3740
|
}();
|
|
3505
3741
|
var getBodyLength = /*#__PURE__*/function () {
|
|
3506
|
-
var
|
|
3742
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(body) {
|
|
3507
3743
|
var _request;
|
|
3508
3744
|
return _regenerator().w(function (_context2) {
|
|
3509
3745
|
while (1) switch (_context2.n) {
|
|
@@ -3556,11 +3792,11 @@
|
|
|
3556
3792
|
}, _callee2);
|
|
3557
3793
|
}));
|
|
3558
3794
|
return function getBodyLength(_x2) {
|
|
3559
|
-
return
|
|
3795
|
+
return _ref2.apply(this, arguments);
|
|
3560
3796
|
};
|
|
3561
3797
|
}();
|
|
3562
3798
|
var resolveBodyLength = /*#__PURE__*/function () {
|
|
3563
|
-
var
|
|
3799
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(headers, body) {
|
|
3564
3800
|
var length;
|
|
3565
3801
|
return _regenerator().w(function (_context3) {
|
|
3566
3802
|
while (1) switch (_context3.n) {
|
|
@@ -3571,16 +3807,18 @@
|
|
|
3571
3807
|
}, _callee3);
|
|
3572
3808
|
}));
|
|
3573
3809
|
return function resolveBodyLength(_x3, _x4) {
|
|
3574
|
-
return
|
|
3810
|
+
return _ref3.apply(this, arguments);
|
|
3575
3811
|
};
|
|
3576
3812
|
}();
|
|
3577
3813
|
return /*#__PURE__*/function () {
|
|
3578
|
-
var
|
|
3579
|
-
var _resolveConfig, url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, _resolveConfig$withCr, withCredentials, fetchOptions, _fetch, composedSignal, request, unsubscribe, requestContentLength, _request, contentTypeHeader, _progressEventDecorat, _progressEventDecorat2, onProgress, flush, isCredentialsSupported, contentType, resolvedOptions, response, isStreamResponse, options, responseContentLength,
|
|
3814
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(config) {
|
|
3815
|
+
var _resolveConfig, url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, _resolveConfig$withCr, withCredentials, fetchOptions, maxContentLength, maxBodyLength, hasMaxContentLength, hasMaxBodyLength, _fetch, composedSignal, request, unsubscribe, requestContentLength, estimated, outboundLength, _request, contentTypeHeader, _progressEventDecorat, _progressEventDecorat2, onProgress, flush, isCredentialsSupported, contentType, resolvedOptions, response, declaredLength, isStreamResponse, options, responseContentLength, _ref5, _ref6, _onProgress, _flush, bytesRead, onChunkProgress, responseData, materializedSize, canceledError, _t3, _t4, _t5;
|
|
3580
3816
|
return _regenerator().w(function (_context4) {
|
|
3581
3817
|
while (1) switch (_context4.p = _context4.n) {
|
|
3582
3818
|
case 0:
|
|
3583
|
-
_resolveConfig = resolveConfig(config), url = _resolveConfig.url, method = _resolveConfig.method, data = _resolveConfig.data, signal = _resolveConfig.signal, cancelToken = _resolveConfig.cancelToken, timeout = _resolveConfig.timeout, onDownloadProgress = _resolveConfig.onDownloadProgress, onUploadProgress = _resolveConfig.onUploadProgress, responseType = _resolveConfig.responseType, headers = _resolveConfig.headers, _resolveConfig$withCr = _resolveConfig.withCredentials, withCredentials = _resolveConfig$withCr === void 0 ? 'same-origin' : _resolveConfig$withCr, fetchOptions = _resolveConfig.fetchOptions;
|
|
3819
|
+
_resolveConfig = resolveConfig(config), url = _resolveConfig.url, method = _resolveConfig.method, data = _resolveConfig.data, signal = _resolveConfig.signal, cancelToken = _resolveConfig.cancelToken, timeout = _resolveConfig.timeout, onDownloadProgress = _resolveConfig.onDownloadProgress, onUploadProgress = _resolveConfig.onUploadProgress, responseType = _resolveConfig.responseType, headers = _resolveConfig.headers, _resolveConfig$withCr = _resolveConfig.withCredentials, withCredentials = _resolveConfig$withCr === void 0 ? 'same-origin' : _resolveConfig$withCr, fetchOptions = _resolveConfig.fetchOptions, maxContentLength = _resolveConfig.maxContentLength, maxBodyLength = _resolveConfig.maxBodyLength;
|
|
3820
|
+
hasMaxContentLength = utils$1.isNumber(maxContentLength) && maxContentLength > -1;
|
|
3821
|
+
hasMaxBodyLength = utils$1.isNumber(maxBodyLength) && maxBodyLength > -1;
|
|
3584
3822
|
_fetch = envFetch || fetch;
|
|
3585
3823
|
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
|
3586
3824
|
composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
@@ -3589,19 +3827,44 @@
|
|
|
3589
3827
|
composedSignal.unsubscribe();
|
|
3590
3828
|
};
|
|
3591
3829
|
_context4.p = 1;
|
|
3830
|
+
if (!(hasMaxContentLength && typeof url === 'string' && url.startsWith('data:'))) {
|
|
3831
|
+
_context4.n = 2;
|
|
3832
|
+
break;
|
|
3833
|
+
}
|
|
3834
|
+
estimated = estimateDataURLDecodedBytes(url);
|
|
3835
|
+
if (!(estimated > maxContentLength)) {
|
|
3836
|
+
_context4.n = 2;
|
|
3837
|
+
break;
|
|
3838
|
+
}
|
|
3839
|
+
throw new AxiosError('maxContentLength size of ' + maxContentLength + ' exceeded', AxiosError.ERR_BAD_RESPONSE, config, request);
|
|
3840
|
+
case 2:
|
|
3841
|
+
if (!(hasMaxBodyLength && method !== 'get' && method !== 'head')) {
|
|
3842
|
+
_context4.n = 4;
|
|
3843
|
+
break;
|
|
3844
|
+
}
|
|
3845
|
+
_context4.n = 3;
|
|
3846
|
+
return resolveBodyLength(headers, data);
|
|
3847
|
+
case 3:
|
|
3848
|
+
outboundLength = _context4.v;
|
|
3849
|
+
if (!(typeof outboundLength === 'number' && isFinite(outboundLength) && outboundLength > maxBodyLength)) {
|
|
3850
|
+
_context4.n = 4;
|
|
3851
|
+
break;
|
|
3852
|
+
}
|
|
3853
|
+
throw new AxiosError('Request body larger than maxBodyLength limit', AxiosError.ERR_BAD_REQUEST, config, request);
|
|
3854
|
+
case 4:
|
|
3592
3855
|
_t3 = onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head';
|
|
3593
3856
|
if (!_t3) {
|
|
3594
|
-
_context4.n =
|
|
3857
|
+
_context4.n = 6;
|
|
3595
3858
|
break;
|
|
3596
3859
|
}
|
|
3597
|
-
_context4.n =
|
|
3860
|
+
_context4.n = 5;
|
|
3598
3861
|
return resolveBodyLength(headers, data);
|
|
3599
|
-
case
|
|
3862
|
+
case 5:
|
|
3600
3863
|
_t4 = requestContentLength = _context4.v;
|
|
3601
3864
|
_t3 = _t4 !== 0;
|
|
3602
|
-
case
|
|
3865
|
+
case 6:
|
|
3603
3866
|
if (!_t3) {
|
|
3604
|
-
_context4.n =
|
|
3867
|
+
_context4.n = 7;
|
|
3605
3868
|
break;
|
|
3606
3869
|
}
|
|
3607
3870
|
_request = new Request(url, {
|
|
@@ -3616,7 +3879,7 @@
|
|
|
3616
3879
|
_progressEventDecorat = progressEventDecorator(requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress))), _progressEventDecorat2 = _slicedToArray(_progressEventDecorat, 2), onProgress = _progressEventDecorat2[0], flush = _progressEventDecorat2[1];
|
|
3617
3880
|
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
3618
3881
|
}
|
|
3619
|
-
case
|
|
3882
|
+
case 7:
|
|
3620
3883
|
if (!utils$1.isString(withCredentials)) {
|
|
3621
3884
|
withCredentials = withCredentials ? 'include' : 'omit';
|
|
3622
3885
|
}
|
|
@@ -3631,6 +3894,9 @@
|
|
|
3631
3894
|
headers["delete"]('content-type');
|
|
3632
3895
|
}
|
|
3633
3896
|
}
|
|
3897
|
+
|
|
3898
|
+
// Set User-Agent header if not already set (fetch defaults to 'node' in Node.js)
|
|
3899
|
+
headers.set('User-Agent', 'axios/' + VERSION, false);
|
|
3634
3900
|
resolvedOptions = _objectSpread2(_objectSpread2({}, fetchOptions), {}, {
|
|
3635
3901
|
signal: composedSignal,
|
|
3636
3902
|
method: method.toUpperCase(),
|
|
@@ -3640,30 +3906,70 @@
|
|
|
3640
3906
|
credentials: isCredentialsSupported ? withCredentials : undefined
|
|
3641
3907
|
});
|
|
3642
3908
|
request = isRequestSupported && new Request(url, resolvedOptions);
|
|
3643
|
-
_context4.n =
|
|
3909
|
+
_context4.n = 8;
|
|
3644
3910
|
return isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions);
|
|
3645
|
-
case
|
|
3911
|
+
case 8:
|
|
3646
3912
|
response = _context4.v;
|
|
3913
|
+
if (!hasMaxContentLength) {
|
|
3914
|
+
_context4.n = 9;
|
|
3915
|
+
break;
|
|
3916
|
+
}
|
|
3917
|
+
declaredLength = utils$1.toFiniteNumber(response.headers.get('content-length'));
|
|
3918
|
+
if (!(declaredLength != null && declaredLength > maxContentLength)) {
|
|
3919
|
+
_context4.n = 9;
|
|
3920
|
+
break;
|
|
3921
|
+
}
|
|
3922
|
+
throw new AxiosError('maxContentLength size of ' + maxContentLength + ' exceeded', AxiosError.ERR_BAD_RESPONSE, config, request);
|
|
3923
|
+
case 9:
|
|
3647
3924
|
isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
|
|
3648
|
-
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
3925
|
+
if (supportsResponseStream && response.body && (onDownloadProgress || hasMaxContentLength || isStreamResponse && unsubscribe)) {
|
|
3649
3926
|
options = {};
|
|
3650
3927
|
['status', 'statusText', 'headers'].forEach(function (prop) {
|
|
3651
3928
|
options[prop] = response[prop];
|
|
3652
3929
|
});
|
|
3653
3930
|
responseContentLength = utils$1.toFiniteNumber(response.headers.get('content-length'));
|
|
3654
|
-
|
|
3655
|
-
|
|
3931
|
+
_ref5 = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [], _ref6 = _slicedToArray(_ref5, 2), _onProgress = _ref6[0], _flush = _ref6[1];
|
|
3932
|
+
bytesRead = 0;
|
|
3933
|
+
onChunkProgress = function onChunkProgress(loadedBytes) {
|
|
3934
|
+
if (hasMaxContentLength) {
|
|
3935
|
+
bytesRead = loadedBytes;
|
|
3936
|
+
if (bytesRead > maxContentLength) {
|
|
3937
|
+
throw new AxiosError('maxContentLength size of ' + maxContentLength + ' exceeded', AxiosError.ERR_BAD_RESPONSE, config, request);
|
|
3938
|
+
}
|
|
3939
|
+
}
|
|
3940
|
+
_onProgress && _onProgress(loadedBytes);
|
|
3941
|
+
};
|
|
3942
|
+
response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, onChunkProgress, function () {
|
|
3656
3943
|
_flush && _flush();
|
|
3657
3944
|
unsubscribe && unsubscribe();
|
|
3658
3945
|
}), options);
|
|
3659
3946
|
}
|
|
3660
3947
|
responseType = responseType || 'text';
|
|
3661
|
-
_context4.n =
|
|
3948
|
+
_context4.n = 10;
|
|
3662
3949
|
return resolvers[utils$1.findKey(resolvers, responseType) || 'text'](response, config);
|
|
3663
|
-
case
|
|
3950
|
+
case 10:
|
|
3664
3951
|
responseData = _context4.v;
|
|
3952
|
+
if (!(hasMaxContentLength && !supportsResponseStream && !isStreamResponse)) {
|
|
3953
|
+
_context4.n = 11;
|
|
3954
|
+
break;
|
|
3955
|
+
}
|
|
3956
|
+
if (responseData != null) {
|
|
3957
|
+
if (typeof responseData.byteLength === 'number') {
|
|
3958
|
+
materializedSize = responseData.byteLength;
|
|
3959
|
+
} else if (typeof responseData.size === 'number') {
|
|
3960
|
+
materializedSize = responseData.size;
|
|
3961
|
+
} else if (typeof responseData === 'string') {
|
|
3962
|
+
materializedSize = typeof TextEncoder === 'function' ? new TextEncoder().encode(responseData).byteLength : responseData.length;
|
|
3963
|
+
}
|
|
3964
|
+
}
|
|
3965
|
+
if (!(typeof materializedSize === 'number' && materializedSize > maxContentLength)) {
|
|
3966
|
+
_context4.n = 11;
|
|
3967
|
+
break;
|
|
3968
|
+
}
|
|
3969
|
+
throw new AxiosError('maxContentLength size of ' + maxContentLength + ' exceeded', AxiosError.ERR_BAD_RESPONSE, config, request);
|
|
3970
|
+
case 11:
|
|
3665
3971
|
!isStreamResponse && unsubscribe && unsubscribe();
|
|
3666
|
-
_context4.n =
|
|
3972
|
+
_context4.n = 12;
|
|
3667
3973
|
return new Promise(function (resolve, reject) {
|
|
3668
3974
|
settle(resolve, reject, {
|
|
3669
3975
|
data: responseData,
|
|
@@ -3674,28 +3980,42 @@
|
|
|
3674
3980
|
request: request
|
|
3675
3981
|
});
|
|
3676
3982
|
});
|
|
3677
|
-
case
|
|
3983
|
+
case 12:
|
|
3678
3984
|
return _context4.a(2, _context4.v);
|
|
3679
|
-
case
|
|
3680
|
-
_context4.p =
|
|
3985
|
+
case 13:
|
|
3986
|
+
_context4.p = 13;
|
|
3681
3987
|
_t5 = _context4.v;
|
|
3682
3988
|
unsubscribe && unsubscribe();
|
|
3989
|
+
|
|
3990
|
+
// Safari can surface fetch aborts as a DOMException-like object whose
|
|
3991
|
+
// branded getters throw. Prefer our composed signal reason before reading
|
|
3992
|
+
// the caught error, preserving timeout vs cancellation semantics.
|
|
3993
|
+
if (!(composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError)) {
|
|
3994
|
+
_context4.n = 14;
|
|
3995
|
+
break;
|
|
3996
|
+
}
|
|
3997
|
+
canceledError = composedSignal.reason;
|
|
3998
|
+
canceledError.config = config;
|
|
3999
|
+
request && (canceledError.request = request);
|
|
4000
|
+
_t5 !== canceledError && (canceledError.cause = _t5);
|
|
4001
|
+
throw canceledError;
|
|
4002
|
+
case 14:
|
|
3683
4003
|
if (!(_t5 && _t5.name === 'TypeError' && /Load failed|fetch/i.test(_t5.message))) {
|
|
3684
|
-
_context4.n =
|
|
4004
|
+
_context4.n = 15;
|
|
3685
4005
|
break;
|
|
3686
4006
|
}
|
|
3687
4007
|
throw Object.assign(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request, _t5 && _t5.response), {
|
|
3688
4008
|
cause: _t5.cause || _t5
|
|
3689
4009
|
});
|
|
3690
|
-
case
|
|
4010
|
+
case 15:
|
|
3691
4011
|
throw AxiosError.from(_t5, _t5 && _t5.code, config, request, _t5 && _t5.response);
|
|
3692
|
-
case
|
|
4012
|
+
case 16:
|
|
3693
4013
|
return _context4.a(2);
|
|
3694
4014
|
}
|
|
3695
|
-
}, _callee4, null, [[1,
|
|
4015
|
+
}, _callee4, null, [[1, 13]]);
|
|
3696
4016
|
}));
|
|
3697
4017
|
return function (_x5) {
|
|
3698
|
-
return
|
|
4018
|
+
return _ref4.apply(this, arguments);
|
|
3699
4019
|
};
|
|
3700
4020
|
}();
|
|
3701
4021
|
};
|
|
@@ -3742,13 +4062,17 @@
|
|
|
3742
4062
|
utils$1.forEach(knownAdapters, function (fn, value) {
|
|
3743
4063
|
if (fn) {
|
|
3744
4064
|
try {
|
|
4065
|
+
// Null-proto descriptors so a polluted Object.prototype.get cannot turn
|
|
4066
|
+
// these data descriptors into accessor descriptors on the way in.
|
|
3745
4067
|
Object.defineProperty(fn, 'name', {
|
|
4068
|
+
__proto__: null,
|
|
3746
4069
|
value: value
|
|
3747
4070
|
});
|
|
3748
4071
|
} catch (e) {
|
|
3749
4072
|
// eslint-disable-next-line no-empty
|
|
3750
4073
|
}
|
|
3751
4074
|
Object.defineProperty(fn, 'adapterName', {
|
|
4075
|
+
__proto__: null,
|
|
3752
4076
|
value: value
|
|
3753
4077
|
});
|
|
3754
4078
|
}
|
|
@@ -3871,8 +4195,15 @@
|
|
|
3871
4195
|
return adapter(config).then(function onAdapterResolution(response) {
|
|
3872
4196
|
throwIfCancellationRequested(config);
|
|
3873
4197
|
|
|
3874
|
-
//
|
|
3875
|
-
|
|
4198
|
+
// Expose the current response on config so that transformResponse can
|
|
4199
|
+
// attach it to any AxiosError it throws (e.g. on JSON parse failure).
|
|
4200
|
+
// We clean it up afterwards to avoid polluting the config object.
|
|
4201
|
+
config.response = response;
|
|
4202
|
+
try {
|
|
4203
|
+
response.data = transformData.call(config, config.transformResponse, response);
|
|
4204
|
+
} finally {
|
|
4205
|
+
delete config.response;
|
|
4206
|
+
}
|
|
3876
4207
|
response.headers = AxiosHeaders.from(response.headers);
|
|
3877
4208
|
return response;
|
|
3878
4209
|
}, function onAdapterRejection(reason) {
|
|
@@ -3881,7 +4212,12 @@
|
|
|
3881
4212
|
|
|
3882
4213
|
// Transform response data
|
|
3883
4214
|
if (reason && reason.response) {
|
|
3884
|
-
|
|
4215
|
+
config.response = reason.response;
|
|
4216
|
+
try {
|
|
4217
|
+
reason.response.data = transformData.call(config, config.transformResponse, reason.response);
|
|
4218
|
+
} finally {
|
|
4219
|
+
delete config.response;
|
|
4220
|
+
}
|
|
3885
4221
|
reason.response.headers = AxiosHeaders.from(reason.response.headers);
|
|
3886
4222
|
}
|
|
3887
4223
|
}
|
|
@@ -3889,8 +4225,6 @@
|
|
|
3889
4225
|
});
|
|
3890
4226
|
}
|
|
3891
4227
|
|
|
3892
|
-
var VERSION = "1.15.1";
|
|
3893
|
-
|
|
3894
4228
|
var validators$1 = {};
|
|
3895
4229
|
|
|
3896
4230
|
// eslint-disable-next-line func-names
|
|
@@ -3954,7 +4288,9 @@
|
|
|
3954
4288
|
var i = keys.length;
|
|
3955
4289
|
while (i-- > 0) {
|
|
3956
4290
|
var opt = keys[i];
|
|
3957
|
-
|
|
4291
|
+
// Use hasOwnProperty so a polluted Object.prototype.<opt> cannot supply
|
|
4292
|
+
// a non-function validator and cause a TypeError.
|
|
4293
|
+
var validator = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : undefined;
|
|
3958
4294
|
if (validator) {
|
|
3959
4295
|
var value = options[opt];
|
|
3960
4296
|
var result = value === undefined || validator(value, opt, options);
|
|
@@ -4108,7 +4444,7 @@
|
|
|
4108
4444
|
|
|
4109
4445
|
// Flatten headers
|
|
4110
4446
|
var contextHeaders = headers && utils$1.merge(headers.common, headers[config.method]);
|
|
4111
|
-
headers && utils$1.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], function (method) {
|
|
4447
|
+
headers && utils$1.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'query', 'common'], function (method) {
|
|
4112
4448
|
delete headers[method];
|
|
4113
4449
|
});
|
|
4114
4450
|
config.headers = AxiosHeaders.concat(contextHeaders, headers);
|
|
@@ -4190,7 +4526,7 @@
|
|
|
4190
4526
|
}));
|
|
4191
4527
|
};
|
|
4192
4528
|
});
|
|
4193
|
-
utils$1.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
4529
|
+
utils$1.forEach(['post', 'put', 'patch', 'query'], function forEachMethodWithData(method) {
|
|
4194
4530
|
function generateHTTPMethod(isForm) {
|
|
4195
4531
|
return function httpMethod(url, data, config) {
|
|
4196
4532
|
return this.request(mergeConfig(config || {}, {
|
|
@@ -4204,7 +4540,12 @@
|
|
|
4204
4540
|
};
|
|
4205
4541
|
}
|
|
4206
4542
|
Axios.prototype[method] = generateHTTPMethod();
|
|
4207
|
-
|
|
4543
|
+
|
|
4544
|
+
// QUERY is a safe/idempotent read method; multipart form bodies don't fit
|
|
4545
|
+
// its semantics, so no queryForm shorthand is generated.
|
|
4546
|
+
if (method !== 'query') {
|
|
4547
|
+
Axios.prototype[method + 'Form'] = generateHTTPMethod(true);
|
|
4548
|
+
}
|
|
4208
4549
|
});
|
|
4209
4550
|
|
|
4210
4551
|
/**
|