UNPKG

mastercache

Version:

Multi-tier cache module for Node.js. Redis, Upstash, CloudfareKV, File, in-memory and others drivers

1,307 lines (1,224 loc) 773 kB
var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __esm = (fn, res) => function __init() { return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res; }; var __commonJS = (cb, mod) => function __require() { return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; }; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( // If the importer is in node compatibility mode or this is not an ESM // file that has been converted to a CommonJS file using a Babel- // compatible transform (i.e. "__esModule" has not been set), then set // "default" to the CommonJS "module.exports" for node compatibility. isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod )); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/abort.js var init_abort = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/abort.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/auth/auth.js var HttpAuthLocation; var init_auth = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/auth/auth.js"() { (function(HttpAuthLocation2) { HttpAuthLocation2["HEADER"] = "header"; HttpAuthLocation2["QUERY"] = "query"; })(HttpAuthLocation || (HttpAuthLocation = {})); } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/auth/HttpApiKeyAuth.js var HttpApiKeyAuthLocation; var init_HttpApiKeyAuth = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/auth/HttpApiKeyAuth.js"() { (function(HttpApiKeyAuthLocation2) { HttpApiKeyAuthLocation2["HEADER"] = "header"; HttpApiKeyAuthLocation2["QUERY"] = "query"; })(HttpApiKeyAuthLocation || (HttpApiKeyAuthLocation = {})); } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/auth/HttpAuthScheme.js var init_HttpAuthScheme = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/auth/HttpAuthScheme.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/auth/HttpAuthSchemeProvider.js var init_HttpAuthSchemeProvider = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/auth/HttpAuthSchemeProvider.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/auth/HttpSigner.js var init_HttpSigner = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/auth/HttpSigner.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/auth/IdentityProviderConfig.js var init_IdentityProviderConfig = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/auth/IdentityProviderConfig.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/auth/index.js var init_auth2 = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/auth/index.js"() { init_auth(); init_HttpApiKeyAuth(); init_HttpAuthScheme(); init_HttpAuthSchemeProvider(); init_HttpSigner(); init_IdentityProviderConfig(); } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/blob/blob-payload-input-types.js var init_blob_payload_input_types = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/blob/blob-payload-input-types.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/checksum.js var init_checksum = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/checksum.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/client.js var init_client = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/client.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/command.js var init_command = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/command.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/connection/config.js var init_config = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/connection/config.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/connection/manager.js var init_manager = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/connection/manager.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/connection/pool.js var init_pool = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/connection/pool.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/connection/index.js var init_connection = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/connection/index.js"() { init_config(); init_manager(); init_pool(); } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/crypto.js var init_crypto = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/crypto.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/encode.js var init_encode = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/encode.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/endpoint.js var EndpointURLScheme; var init_endpoint = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/endpoint.js"() { (function(EndpointURLScheme2) { EndpointURLScheme2["HTTP"] = "http"; EndpointURLScheme2["HTTPS"] = "https"; })(EndpointURLScheme || (EndpointURLScheme = {})); } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/endpoints/EndpointRuleObject.js var init_EndpointRuleObject = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/endpoints/EndpointRuleObject.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/endpoints/ErrorRuleObject.js var init_ErrorRuleObject = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/endpoints/ErrorRuleObject.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/endpoints/RuleSetObject.js var init_RuleSetObject = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/endpoints/RuleSetObject.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/endpoints/shared.js var init_shared = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/endpoints/shared.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/endpoints/TreeRuleObject.js var init_TreeRuleObject = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/endpoints/TreeRuleObject.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/endpoints/index.js var init_endpoints = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/endpoints/index.js"() { init_EndpointRuleObject(); init_ErrorRuleObject(); init_RuleSetObject(); init_shared(); init_TreeRuleObject(); } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/eventStream.js var init_eventStream = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/eventStream.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/extensions/checksum.js var AlgorithmId; var init_checksum2 = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/extensions/checksum.js"() { (function(AlgorithmId2) { AlgorithmId2["MD5"] = "md5"; AlgorithmId2["CRC32"] = "crc32"; AlgorithmId2["CRC32C"] = "crc32c"; AlgorithmId2["SHA1"] = "sha1"; AlgorithmId2["SHA256"] = "sha256"; })(AlgorithmId || (AlgorithmId = {})); } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/extensions/defaultClientConfiguration.js var init_defaultClientConfiguration = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/extensions/defaultClientConfiguration.js"() { init_checksum2(); } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/extensions/defaultExtensionConfiguration.js var init_defaultExtensionConfiguration = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/extensions/defaultExtensionConfiguration.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/extensions/index.js var init_extensions = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/extensions/index.js"() { init_defaultClientConfiguration(); init_defaultExtensionConfiguration(); init_checksum2(); } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/feature-ids.js var init_feature_ids = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/feature-ids.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/http.js var FieldPosition; var init_http = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/http.js"() { (function(FieldPosition2) { FieldPosition2[FieldPosition2["HEADER"] = 0] = "HEADER"; FieldPosition2[FieldPosition2["TRAILER"] = 1] = "TRAILER"; })(FieldPosition || (FieldPosition = {})); } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/http/httpHandlerInitialization.js var init_httpHandlerInitialization = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/http/httpHandlerInitialization.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/identity/apiKeyIdentity.js var init_apiKeyIdentity = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/identity/apiKeyIdentity.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/identity/awsCredentialIdentity.js var init_awsCredentialIdentity = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/identity/awsCredentialIdentity.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/identity/identity.js var init_identity = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/identity/identity.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/identity/tokenIdentity.js var init_tokenIdentity = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/identity/tokenIdentity.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/identity/index.js var init_identity2 = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/identity/index.js"() { init_apiKeyIdentity(); init_awsCredentialIdentity(); init_identity(); init_tokenIdentity(); } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/logger.js var init_logger = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/logger.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/middleware.js var SMITHY_CONTEXT_KEY; var init_middleware = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/middleware.js"() { SMITHY_CONTEXT_KEY = "__smithy_context"; } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/pagination.js var init_pagination = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/pagination.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/profile.js var IniSectionType; var init_profile = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/profile.js"() { (function(IniSectionType2) { IniSectionType2["PROFILE"] = "profile"; IniSectionType2["SSO_SESSION"] = "sso-session"; IniSectionType2["SERVICES"] = "services"; })(IniSectionType || (IniSectionType = {})); } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/response.js var init_response = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/response.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/retry.js var init_retry = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/retry.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/serde.js var init_serde = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/serde.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/shapes.js var init_shapes = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/shapes.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/signature.js var init_signature = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/signature.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/stream.js var init_stream = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/stream.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-common-types.js var init_streaming_blob_common_types = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-common-types.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-payload-input-types.js var init_streaming_blob_payload_input_types = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-payload-input-types.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-payload-output-types.js var init_streaming_blob_payload_output_types = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-payload-output-types.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/transfer.js var RequestHandlerProtocol; var init_transfer = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/transfer.js"() { (function(RequestHandlerProtocol2) { RequestHandlerProtocol2["HTTP_0_9"] = "http/0.9"; RequestHandlerProtocol2["HTTP_1_0"] = "http/1.0"; RequestHandlerProtocol2["TDS_8_0"] = "tds/8.0"; })(RequestHandlerProtocol || (RequestHandlerProtocol = {})); } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/transform/client-payload-blob-type-narrow.js var init_client_payload_blob_type_narrow = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/transform/client-payload-blob-type-narrow.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/transform/no-undefined.js var init_no_undefined = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/transform/no-undefined.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/transform/type-transform.js var init_type_transform = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/transform/type-transform.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/uri.js var init_uri = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/uri.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/util.js var init_util = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/util.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/waiter.js var init_waiter = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/waiter.js"() { } }); // ../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/index.js var init_dist_es = __esm({ "../../node_modules/.pnpm/@smithy+types@3.7.1/node_modules/@smithy/types/dist-es/index.js"() { init_abort(); init_auth2(); init_blob_payload_input_types(); init_checksum(); init_client(); init_command(); init_connection(); init_crypto(); init_encode(); init_endpoint(); init_endpoints(); init_eventStream(); init_extensions(); init_feature_ids(); init_http(); init_httpHandlerInitialization(); init_identity2(); init_logger(); init_middleware(); init_pagination(); init_profile(); init_response(); init_retry(); init_serde(); init_shapes(); init_signature(); init_stream(); init_streaming_blob_common_types(); init_streaming_blob_payload_input_types(); init_streaming_blob_payload_output_types(); init_transfer(); init_client_payload_blob_type_narrow(); init_no_undefined(); init_type_transform(); init_uri(); init_util(); init_waiter(); } }); // ../../node_modules/.pnpm/@smithy+util-middleware@3.0.10/node_modules/@smithy/util-middleware/dist-es/getSmithyContext.js var getSmithyContext; var init_getSmithyContext = __esm({ "../../node_modules/.pnpm/@smithy+util-middleware@3.0.10/node_modules/@smithy/util-middleware/dist-es/getSmithyContext.js"() { init_dist_es(); getSmithyContext = (context) => context[SMITHY_CONTEXT_KEY] || (context[SMITHY_CONTEXT_KEY] = {}); } }); // ../../node_modules/.pnpm/@smithy+util-middleware@3.0.10/node_modules/@smithy/util-middleware/dist-es/normalizeProvider.js var normalizeProvider; var init_normalizeProvider = __esm({ "../../node_modules/.pnpm/@smithy+util-middleware@3.0.10/node_modules/@smithy/util-middleware/dist-es/normalizeProvider.js"() { normalizeProvider = (input) => { if (typeof input === "function") return input; const promisified = Promise.resolve(input); return () => promisified; }; } }); // ../../node_modules/.pnpm/@smithy+util-middleware@3.0.10/node_modules/@smithy/util-middleware/dist-es/index.js var init_dist_es2 = __esm({ "../../node_modules/.pnpm/@smithy+util-middleware@3.0.10/node_modules/@smithy/util-middleware/dist-es/index.js"() { init_getSmithyContext(); init_normalizeProvider(); } }); // ../../node_modules/.pnpm/@smithy+protocol-http@4.1.7/node_modules/@smithy/protocol-http/dist-es/extensions/httpExtensionConfiguration.js var getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig; var init_httpExtensionConfiguration = __esm({ "../../node_modules/.pnpm/@smithy+protocol-http@4.1.7/node_modules/@smithy/protocol-http/dist-es/extensions/httpExtensionConfiguration.js"() { getHttpHandlerExtensionConfiguration = (runtimeConfig) => { let httpHandler = runtimeConfig.httpHandler; return { setHttpHandler(handler) { httpHandler = handler; }, httpHandler() { return httpHandler; }, updateHttpClientConfig(key, value) { httpHandler.updateHttpClientConfig(key, value); }, httpHandlerConfigs() { return httpHandler.httpHandlerConfigs(); } }; }; resolveHttpHandlerRuntimeConfig = (httpHandlerExtensionConfiguration) => { return { httpHandler: httpHandlerExtensionConfiguration.httpHandler() }; }; } }); // ../../node_modules/.pnpm/@smithy+protocol-http@4.1.7/node_modules/@smithy/protocol-http/dist-es/extensions/index.js var init_extensions2 = __esm({ "../../node_modules/.pnpm/@smithy+protocol-http@4.1.7/node_modules/@smithy/protocol-http/dist-es/extensions/index.js"() { init_httpExtensionConfiguration(); } }); // ../../node_modules/.pnpm/@smithy+protocol-http@4.1.7/node_modules/@smithy/protocol-http/dist-es/Field.js var init_Field = __esm({ "../../node_modules/.pnpm/@smithy+protocol-http@4.1.7/node_modules/@smithy/protocol-http/dist-es/Field.js"() { init_dist_es(); } }); // ../../node_modules/.pnpm/@smithy+protocol-http@4.1.7/node_modules/@smithy/protocol-http/dist-es/Fields.js var init_Fields = __esm({ "../../node_modules/.pnpm/@smithy+protocol-http@4.1.7/node_modules/@smithy/protocol-http/dist-es/Fields.js"() { } }); // ../../node_modules/.pnpm/@smithy+protocol-http@4.1.7/node_modules/@smithy/protocol-http/dist-es/httpHandler.js var init_httpHandler = __esm({ "../../node_modules/.pnpm/@smithy+protocol-http@4.1.7/node_modules/@smithy/protocol-http/dist-es/httpHandler.js"() { } }); // ../../node_modules/.pnpm/@smithy+protocol-http@4.1.7/node_modules/@smithy/protocol-http/dist-es/httpRequest.js function cloneQuery(query) { return Object.keys(query).reduce((carry, paramName) => { const param = query[paramName]; return { ...carry, [paramName]: Array.isArray(param) ? [...param] : param }; }, {}); } var HttpRequest; var init_httpRequest = __esm({ "../../node_modules/.pnpm/@smithy+protocol-http@4.1.7/node_modules/@smithy/protocol-http/dist-es/httpRequest.js"() { HttpRequest = class _HttpRequest { constructor(options) { this.method = options.method || "GET"; this.hostname = options.hostname || "localhost"; this.port = options.port; this.query = options.query || {}; this.headers = options.headers || {}; this.body = options.body; this.protocol = options.protocol ? options.protocol.slice(-1) !== ":" ? `${options.protocol}:` : options.protocol : "https:"; this.path = options.path ? options.path.charAt(0) !== "/" ? `/${options.path}` : options.path : "/"; this.username = options.username; this.password = options.password; this.fragment = options.fragment; } static clone(request2) { const cloned = new _HttpRequest({ ...request2, headers: { ...request2.headers } }); if (cloned.query) { cloned.query = cloneQuery(cloned.query); } return cloned; } static isInstance(request2) { if (!request2) { return false; } const req = request2; return "method" in req && "protocol" in req && "hostname" in req && "path" in req && typeof req["query"] === "object" && typeof req["headers"] === "object"; } clone() { return _HttpRequest.clone(this); } }; } }); // ../../node_modules/.pnpm/@smithy+protocol-http@4.1.7/node_modules/@smithy/protocol-http/dist-es/httpResponse.js var HttpResponse; var init_httpResponse = __esm({ "../../node_modules/.pnpm/@smithy+protocol-http@4.1.7/node_modules/@smithy/protocol-http/dist-es/httpResponse.js"() { HttpResponse = class { constructor(options) { this.statusCode = options.statusCode; this.reason = options.reason; this.headers = options.headers || {}; this.body = options.body; } static isInstance(response) { if (!response) return false; const resp = response; return typeof resp.statusCode === "number" && typeof resp.headers === "object"; } }; } }); // ../../node_modules/.pnpm/@smithy+protocol-http@4.1.7/node_modules/@smithy/protocol-http/dist-es/isValidHostname.js var init_isValidHostname = __esm({ "../../node_modules/.pnpm/@smithy+protocol-http@4.1.7/node_modules/@smithy/protocol-http/dist-es/isValidHostname.js"() { } }); // ../../node_modules/.pnpm/@smithy+protocol-http@4.1.7/node_modules/@smithy/protocol-http/dist-es/types.js var init_types = __esm({ "../../node_modules/.pnpm/@smithy+protocol-http@4.1.7/node_modules/@smithy/protocol-http/dist-es/types.js"() { } }); // ../../node_modules/.pnpm/@smithy+protocol-http@4.1.7/node_modules/@smithy/protocol-http/dist-es/index.js var init_dist_es3 = __esm({ "../../node_modules/.pnpm/@smithy+protocol-http@4.1.7/node_modules/@smithy/protocol-http/dist-es/index.js"() { init_extensions2(); init_Field(); init_Fields(); init_httpHandler(); init_httpRequest(); init_httpResponse(); init_isValidHostname(); init_types(); } }); // ../../node_modules/.pnpm/obliterator@1.6.1/node_modules/obliterator/iterator.js var require_iterator = __commonJS({ "../../node_modules/.pnpm/obliterator@1.6.1/node_modules/obliterator/iterator.js"(exports, module) { function Iterator(next) { Object.defineProperty(this, "_next", { writable: false, enumerable: false, value: next }); this.done = false; } Iterator.prototype.next = function() { if (this.done) return { done: true }; var step = this._next(); if (step.done) this.done = true; return step; }; if (typeof Symbol !== "undefined") Iterator.prototype[Symbol.iterator] = function() { return this; }; Iterator.of = function() { var args = arguments, l5 = args.length, i5 = 0; return new Iterator(function() { if (i5 >= l5) return { done: true }; return { done: false, value: args[i5++] }; }); }; Iterator.empty = function() { var iterator = new Iterator(null); iterator.done = true; return iterator; }; Iterator.is = function(value) { if (value instanceof Iterator) return true; return typeof value === "object" && value !== null && typeof value.next === "function"; }; module.exports = Iterator; } }); // ../../node_modules/.pnpm/obliterator@1.6.1/node_modules/obliterator/foreach.js var require_foreach = __commonJS({ "../../node_modules/.pnpm/obliterator@1.6.1/node_modules/obliterator/foreach.js"(exports, module) { var ARRAY_BUFFER_SUPPORT = typeof ArrayBuffer !== "undefined"; var SYMBOL_SUPPORT = typeof Symbol !== "undefined"; function forEach(iterable, callback) { var iterator, k5, i5, l5, s5; if (!iterable) throw new Error("obliterator/forEach: invalid iterable."); if (typeof callback !== "function") throw new Error("obliterator/forEach: expecting a callback."); if (Array.isArray(iterable) || ARRAY_BUFFER_SUPPORT && ArrayBuffer.isView(iterable) || typeof iterable === "string" || iterable.toString() === "[object Arguments]") { for (i5 = 0, l5 = iterable.length; i5 < l5; i5++) callback(iterable[i5], i5); return; } if (typeof iterable.forEach === "function") { iterable.forEach(callback); return; } if (SYMBOL_SUPPORT && Symbol.iterator in iterable && typeof iterable.next !== "function") { iterable = iterable[Symbol.iterator](); } if (typeof iterable.next === "function") { iterator = iterable; i5 = 0; while (s5 = iterator.next(), s5.done !== true) { callback(s5.value, i5); i5++; } return; } for (k5 in iterable) { if (iterable.hasOwnProperty(k5)) { callback(iterable[k5], k5); } } return; } forEach.forEachWithNullKeys = function(iterable, callback) { var iterator, k5, i5, l5, s5; if (!iterable) throw new Error("obliterator/forEachWithNullKeys: invalid iterable."); if (typeof callback !== "function") throw new Error("obliterator/forEachWithNullKeys: expecting a callback."); if (Array.isArray(iterable) || ARRAY_BUFFER_SUPPORT && ArrayBuffer.isView(iterable) || typeof iterable === "string" || iterable.toString() === "[object Arguments]") { for (i5 = 0, l5 = iterable.length; i5 < l5; i5++) callback(iterable[i5], null); return; } if (iterable instanceof Set) { iterable.forEach(function(value) { callback(value, null); }); return; } if (typeof iterable.forEach === "function") { iterable.forEach(callback); return; } if (SYMBOL_SUPPORT && Symbol.iterator in iterable && typeof iterable.next !== "function") { iterable = iterable[Symbol.iterator](); } if (typeof iterable.next === "function") { iterator = iterable; i5 = 0; while (s5 = iterator.next(), s5.done !== true) { callback(s5.value, null); i5++; } return; } for (k5 in iterable) { if (iterable.hasOwnProperty(k5)) { callback(iterable[k5], k5); } } return; }; module.exports = forEach; } }); // ../../node_modules/.pnpm/mnemonist@0.38.3/node_modules/mnemonist/utils/typed-arrays.js var require_typed_arrays = __commonJS({ "../../node_modules/.pnpm/mnemonist@0.38.3/node_modules/mnemonist/utils/typed-arrays.js"(exports) { var MAX_8BIT_INTEGER = Math.pow(2, 8) - 1; var MAX_16BIT_INTEGER = Math.pow(2, 16) - 1; var MAX_32BIT_INTEGER = Math.pow(2, 32) - 1; var MAX_SIGNED_8BIT_INTEGER = Math.pow(2, 7) - 1; var MAX_SIGNED_16BIT_INTEGER = Math.pow(2, 15) - 1; var MAX_SIGNED_32BIT_INTEGER = Math.pow(2, 31) - 1; exports.getPointerArray = function(size) { var maxIndex = size - 1; if (maxIndex <= MAX_8BIT_INTEGER) return Uint8Array; if (maxIndex <= MAX_16BIT_INTEGER) return Uint16Array; if (maxIndex <= MAX_32BIT_INTEGER) return Uint32Array; return Float64Array; }; exports.getSignedPointerArray = function(size) { var maxIndex = size - 1; if (maxIndex <= MAX_SIGNED_8BIT_INTEGER) return Int8Array; if (maxIndex <= MAX_SIGNED_16BIT_INTEGER) return Int16Array; if (maxIndex <= MAX_SIGNED_32BIT_INTEGER) return Int32Array; return Float64Array; }; exports.getNumberType = function(value) { if (value === (value | 0)) { if (Math.sign(value) === -1) { if (value <= 127 && value >= -128) return Int8Array; if (value <= 32767 && value >= -32768) return Int16Array; return Int32Array; } else { if (value <= 255) return Uint8Array; if (value <= 65535) return Uint16Array; return Uint32Array; } } return Float64Array; }; var TYPE_PRIORITY = { Uint8Array: 1, Int8Array: 2, Uint16Array: 3, Int16Array: 4, Uint32Array: 5, Int32Array: 6, Float32Array: 7, Float64Array: 8 }; exports.getMinimalRepresentation = function(array, getter) { var maxType = null, maxPriority = 0, p5, t5, v6, i5, l5; for (i5 = 0, l5 = array.length; i5 < l5; i5++) { v6 = getter ? getter(array[i5]) : array[i5]; t5 = exports.getNumberType(v6); p5 = TYPE_PRIORITY[t5.name]; if (p5 > maxPriority) { maxPriority = p5; maxType = t5; } } return maxType; }; exports.isTypedArray = function(value) { return typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView(value); }; exports.concat = function() { var length = 0, i5, o5, l5; for (i5 = 0, l5 = arguments.length; i5 < l5; i5++) length += arguments[i5].length; var array = new arguments[0].constructor(length); for (i5 = 0, o5 = 0; i5 < l5; i5++) { array.set(arguments[i5], o5); o5 += arguments[i5].length; } return array; }; exports.indices = function(length) { var PointerArray = exports.getPointerArray(length); var array = new PointerArray(length); for (var i5 = 0; i5 < length; i5++) array[i5] = i5; return array; }; } }); // ../../node_modules/.pnpm/mnemonist@0.38.3/node_modules/mnemonist/utils/iterables.js var require_iterables = __commonJS({ "../../node_modules/.pnpm/mnemonist@0.38.3/node_modules/mnemonist/utils/iterables.js"(exports) { var forEach = require_foreach(); var typed = require_typed_arrays(); function isArrayLike(target) { return Array.isArray(target) || typed.isTypedArray(target); } function guessLength(target) { if (typeof target.length === "number") return target.length; if (typeof target.size === "number") return target.size; return; } function toArray(target) { var l5 = guessLength(target); var array = typeof l5 === "number" ? new Array(l5) : []; var i5 = 0; forEach(target, function(value) { array[i5++] = value; }); return array; } function toArrayWithIndices(target) { var l5 = guessLength(target); var IndexArray = typeof l5 === "number" ? typed.getPointerArray(l5) : Array; var array = typeof l5 === "number" ? new Array(l5) : []; var indices = typeof l5 === "number" ? new IndexArray(l5) : []; var i5 = 0; forEach(target, function(value) { array[i5] = value; indices[i5] = i5++; }); return [array, indices]; } exports.isArrayLike = isArrayLike; exports.guessLength = guessLength; exports.toArray = toArray; exports.toArrayWithIndices = toArrayWithIndices; } }); // ../../node_modules/.pnpm/mnemonist@0.38.3/node_modules/mnemonist/lru-cache.js var require_lru_cache = __commonJS({ "../../node_modules/.pnpm/mnemonist@0.38.3/node_modules/mnemonist/lru-cache.js"(exports, module) { var Iterator = require_iterator(); var forEach = require_foreach(); var typed = require_typed_arrays(); var iterables = require_iterables(); function LRUCache2(Keys, Values, capacity) { if (arguments.length < 2) { capacity = Keys; Keys = null; Values = null; } this.capacity = capacity; if (typeof this.capacity !== "number" || this.capacity <= 0) throw new Error("mnemonist/lru-cache: capacity should be positive number."); var PointerArray = typed.getPointerArray(capacity); this.forward = new PointerArray(capacity); this.backward = new PointerArray(capacity); this.K = typeof Keys === "function" ? new Keys(capacity) : new Array(capacity); this.V = typeof Values === "function" ? new Values(capacity) : new Array(capacity); this.size = 0; this.head = 0; this.tail = 0; this.items = {}; } LRUCache2.prototype.clear = function() { this.size = 0; this.head = 0; this.tail = 0; this.items = {}; }; LRUCache2.prototype.splayOnTop = function(pointer) { var oldHead = this.head; if (this.head === pointer) return this; var previous = this.backward[pointer], next = this.forward[pointer]; if (this.tail === pointer) { this.tail = previous; } else { this.backward[next] = previous; } this.forward[previous] = next; this.backward[oldHead] = pointer; this.head = pointer; this.forward[pointer] = oldHead; return this; }; LRUCache2.prototype.set = function(key, value) { var pointer = this.items[key]; if (typeof pointer !== "undefined") { this.splayOnTop(pointer); this.V[pointer] = value; return; } if (this.size < this.capacity) { pointer = this.size++; } else { pointer = this.tail; this.tail = this.backward[pointer]; delete this.items[this.K[pointer]]; } this.items[key] = pointer; this.K[pointer] = key; this.V[pointer] = value; this.forward[pointer] = this.head; this.backward[this.head] = pointer; this.head = pointer; }; LRUCache2.prototype.setpop = function(key, value) { var oldValue = null; var oldKey = null; var pointer = this.items[key]; if (typeof pointer !== "undefined") { this.splayOnTop(pointer); oldValue = this.V[pointer]; this.V[pointer] = value; return { evicted: false, key, value: oldValue }; } if (this.size < this.capacity) { pointer = this.size++; } else { pointer = this.tail; this.tail = this.backward[pointer]; oldValue = this.V[pointer]; oldKey = this.K[pointer]; delete this.items[this.K[pointer]]; } this.items[key] = pointer; this.K[pointer] = key; this.V[pointer] = value; this.forward[pointer] = this.head; this.backward[this.head] = pointer; this.head = pointer; if (oldKey) { return { evicted: true, key: oldKey, value: oldValue }; } else { return null; } }; LRUCache2.prototype.has = function(key) { return key in this.items; }; LRUCache2.prototype.get = function(key) { var pointer = this.items[key]; if (typeof pointer === "undefined") return; this.splayOnTop(pointer); return this.V[pointer]; }; LRUCache2.prototype.peek = function(key) { var pointer = this.items[key]; if (typeof pointer === "undefined") return; return this.V[pointer]; }; LRUCache2.prototype.forEach = function(callback, scope) { scope = arguments.length > 1 ? scope : this; var i5 = 0, l5 = this.size; var pointer = this.head, keys = this.K, values = this.V, forward = this.forward; while (i5 < l5) { callback.call(scope, values[pointer], keys[pointer], this); pointer = forward[pointer]; i5++; } }; LRUCache2.prototype.keys = function() { var i5 = 0, l5 = this.size; var pointer = this.head, keys = this.K, forward = this.forward; return new Iterator(function() { if (i5 >= l5) return { done: true }; var key = keys[pointer]; i5++; if (i5 < l5) pointer = forward[pointer]; return { done: false, value: key }; }); }; LRUCache2.prototype.values = function() { var i5 = 0, l5 = this.size; var pointer = this.head, values = this.V, forward = this.forward; return new Iterator(function() { if (i5 >= l5) return { done: true }; var value = values[pointer]; i5++; if (i5 < l5) pointer = forward[pointer]; return { done: false, value }; }); }; LRUCache2.prototype.entries = function() { var i5 = 0, l5 = this.size; var pointer = this.head, keys = this.K, values = this.V, forward = this.forward; return new Iterator(function() { if (i5 >= l5) return { done: true }; var key = keys[pointer], value = values[pointer]; i5++; if (i5 < l5) pointer = forward[pointer]; return { done: false, value: [key, value] }; }); }; if (typeof Symbol !== "undefined") LRUCache2.prototype[Symbol.iterator] = LRUCache2.prototype.entries; LRUCache2.prototype.inspect = function() { var proxy = /* @__PURE__ */ new Map(); var iterator = this.entries(), step; while (step = iterator.next(), !step.done) proxy.set(step.value[0], step.value[1]); Object.defineProperty(proxy, "constructor", { value: LRUCache2, enumerable: false }); return proxy; }; if (typeof Symbol !== "undefined") LRUCache2.prototype[Symbol.for("nodejs.util.inspect.custom")] = LRUCache2.prototype.inspect; LRUCache2.from = function(iterable, Keys, Values, capacity) { if (arguments.length < 2) { capacity = iterables.guessLength(iterable); if (typeof capacity !== "number") throw new Error("mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument."); } else if (arguments.length === 2) { capacity = Keys; Keys = null; Values = null; } var cache5 = new LRUCache2(Keys, Values, capacity); forEach(iterable, function(value, key) { cache5.set(key, value); }); return cache5; }; module.exports = LRUCache2; } }); // ../../node_modules/.pnpm/@aws-sdk+middleware-host-header@3.696.0/node_modules/@aws-sdk/middleware-host-header/dist-es/index.js function resolveHostHeaderConfig(input) { return input; } var hostHeaderMiddleware, hostHeaderMiddlewareOptions, getHostHeaderPlugin; var init_dist_es4 = __esm({ "../../node_modules/.pnpm/@aws-sdk+middleware-host-header@3.696.0/node_modules/@aws-sdk/middleware-host-header/dist-es/index.js"() { init_dist_es3(); hostHeaderMiddleware = (options) => (next) => async (args) => { if (!HttpRequest.isInstance(args.request)) return next(args); const { request: request2 } = args; const { handlerProtocol = "" } = options.requestHandler.metadata || {}; if (handlerProtocol.indexOf("h2") >= 0 && !request2.headers[":authority"]) { delete request2.headers["host"]; request2.headers[":authority"] = request2.hostname + (request2.port ? ":" + request2.port : ""); } else if (!request2.headers["host"]) { let host = request2.hostname; if (request2.port != null) host += `:${request2.port}`; request2.headers["host"] = host; } return next(args); }; hostHeaderMiddlewareOptions = { name: "hostHeaderMiddleware", step: "build", priority: "low", tags: ["HOST"], override: true }; getHostHeaderPlugin = (options) => ({ applyToStack: (clientStack) => { clientStack.add(hostHeaderMiddleware(options), hostHeaderMiddlewareOptions); } }); } }); // ../../node_modules/.pnpm/@aws-sdk+middleware-logger@3.696.0/node_modules/@aws-sdk/middleware-logger/dist-es/loggerMiddleware.js var loggerMiddleware, loggerMiddlewareOptions, getLoggerPlugin; var init_loggerMiddleware = __esm({ "../../node_modules/.pnpm/@aws-sdk+middleware-logger@3.696.0/node_modules/@aws-sdk/middleware-logger/dist-es/loggerMiddleware.js"() { loggerMiddleware = () => (next, context) => async (args) => { try { const response = await next(args); const { clientName, commandName, logger: logger2, dynamoDbDocumentClientOptions = {} } = context; const { overrideInputFilterSensitiveLog, overrideOutputFilterSensitiveLog } = dynamoDbDocumentClientOptions; const inputFilterSensitiveLog = overrideInputFilterSensitiveLog ?? context.inputFilterSensitiveLog; const outputFilterSensitiveLog = overrideOutputFilterSensitiveLog ?? context.outputFilterSensitiveLog; const { $metadata, ...outputWithoutMetadata } = response.output; logger2?.info?.({ clientName, commandName, input: inputFilterSensitiveLog(args.input), output: outputFilterSensitiveLog(outputWithoutMetadata), metadata: $metadata }); return response; } catch (error) { const { clientName, commandName, logger: logger2, dynamoDbDocumentClientOptions = {} } = context; const { overrideInputFilterSensitiveLog } = dynamoDbDocumentClientOptions; const inputFilterSensitiveLog = overrideInputFilterSensitiveLog ?? context.inputFilterSensitiveLog; logger2?.error?.({ clientName, commandName, input: inputFilterSensitiveLog(args.input), error, metadata: error.$metadata }); throw error; } }; loggerMiddlewareOptions = { name: "loggerMiddleware", tags: ["LOGGER"], step: "initialize", override: true }; getLoggerPlugin = (options) => ({ applyToStack: (clientStack) => { clientStack.add(loggerMiddleware(), loggerMiddlewareOptions); } }); } }); // ../../node_modules/.pnpm/@aws-sdk+middleware-logger@3.696.0/node_modules/@aws-sdk/middleware-logger/dist-es/index.js var init_dist_es5 = __esm({ "../../node_modules/.pnpm/@aws-sdk+middleware-logger@3.696.0/node_modules/@aws-sdk/middleware-logger/dist-es/index.js"() { init_loggerMiddleware(); } }); // ../../node_modules/.pnpm/@aws-sdk+middleware-recursion-detection@3.696.0/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/index.js var TRACE_ID_HEADER_NAME, ENV_LAMBDA_FUNCTION_NAME, ENV_TRACE_ID, recursionDetectionMiddleware, addRecursionDetectionMiddlewareOptions, getRecursionDetectionPlugin; var init_dist_es6 = __esm({ "../../node_modules/.pnpm/@aws-sdk+middleware-recursion-detection@3.696.0/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/index.js"() { init_dist_es3(); TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id"; ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME"; ENV_TRACE_ID = "_X_AMZN_TRACE_ID"; recursionDetectionMiddleware = (options) => (next) => async (args) => { const { request: request2 } = args; if (!HttpRequest.isInstance(request2) || options.runtime !== "node" || request2.headers.hasOwnProperty(TRACE_ID_HEADER_NAME)) { return next(args); } const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME]; const traceId = process.env[ENV_TRACE_ID]; const nonEmptyString = (str) => typeof str === "string" && str.length > 0; if (nonEmptyString(functionName) && nonEmptyString(traceId)) { request2.headers[TRACE_ID_HEADER_NAME] = traceId; } return next({ ...args, request: request2 }); }; addRecursionDetectionMiddlewareOptions = { step: "build", tags: ["RECURSION_DETECTION"], name: "recursionDetectionMiddleware", override: true, priority: "low" }; getRecursionDetectionPlugin = (options) => ({ applyToStack: (clientStack) => { clientStack.add(recursionDetectionMiddleware(options), addRecursionDetectionMiddlewareOptions); } }); } }); // ../../node_modules/.pnpm/@smithy+core@2.5.4/node_modules/@smithy/core/dist-es/getSmithyContext.js var init_getSmithyContext2 = __esm({ "../../node_modules/.pnpm/@smithy+core@2.5.4/node_modules/@smithy/core/dist-es/getSmithyContext.js"() { init_dist_es(); } }); // ../../node_modules/.pnpm/@smithy+core@2.5.4/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js function convertHttpAuthSchemesToMap(httpAuthSchemes) { const map2 = /* @__PURE__ */ new Map(); for (const scheme of httpAuthSchemes) { map2.set(scheme.schemeId, scheme); } return map2; } var httpAuthSchemeMiddleware; var init_httpAuthSchemeMiddleware = __esm({ "../../node_modules/.pnpm/@smithy+core@2.5.4/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js"() { init_dist_es(); init_dist_es2(); httpAuthSchemeMiddleware = (config, mwOptions) => (next, context) => async (args) => { const options = config.httpAuthSchemeProvider(await mwOptions.httpAuthSchemeParametersProvider(config, context, args.input)); const authSchemes = convertHttpAuthSchemesToMap(config.httpAuthSchemes); const smithyContext = getSmithyContext(context); const failureReasons = []; for (const option of options) { const scheme = authSchemes.get(option.schemeId); if (!scheme) { failureReasons.push(`HttpAuthScheme \`${option.schemeId}\