/**
 * Minified by jsDelivr using Terser v5.48.0.
 * Original file: /npm/@aws-sdk/client-rds-data@3.1108.0/dist-cjs/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
const{awsEndpointFunctions:awsEndpointFunctions,emitWarningIfUnsupportedVersion:emitWarningIfUnsupportedVersion$1,createDefaultUserAgentProvider:createDefaultUserAgentProvider,NODE_APP_ID_CONFIG_OPTIONS:NODE_APP_ID_CONFIG_OPTIONS,getAwsRegionExtensionConfiguration:getAwsRegionExtensionConfiguration,resolveAwsRegionExtensionConfiguration:resolveAwsRegionExtensionConfiguration,resolveUserAgentConfig:resolveUserAgentConfig,resolveHostHeaderConfig:resolveHostHeaderConfig,getUserAgentPlugin:getUserAgentPlugin,getHostHeaderPlugin:getHostHeaderPlugin,getLoggerPlugin:getLoggerPlugin,getRecursionDetectionPlugin:getRecursionDetectionPlugin}=require("@aws-sdk/core/client"),{getHttpAuthSchemeEndpointRuleSetPlugin:getHttpAuthSchemeEndpointRuleSetPlugin,DefaultIdentityProviderConfig:DefaultIdentityProviderConfig,getHttpSigningPlugin:getHttpSigningPlugin}=require("@smithy/core"),{normalizeProvider:normalizeProvider,getSmithyContext:getSmithyContext,ServiceException:ServiceException,NoOpLogger:NoOpLogger,emitWarningIfUnsupportedVersion:emitWarningIfUnsupportedVersion,loadConfigsForDefaultMode:loadConfigsForDefaultMode,getDefaultExtensionConfiguration:getDefaultExtensionConfiguration,resolveDefaultRuntimeConfig:resolveDefaultRuntimeConfig,Client:Client,makeBuilder:makeBuilder,createAggregatedClient:createAggregatedClient}=require("@smithy/core/client"),{Command:$Command}=require("@smithy/core/client");exports.$Command=$Command,exports.__Client=Client;const{resolveDefaultsModeConfig:resolveDefaultsModeConfig,loadConfig:loadConfig,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,NODE_REGION_CONFIG_OPTIONS:NODE_REGION_CONFIG_OPTIONS,NODE_REGION_CONFIG_FILE_OPTIONS:NODE_REGION_CONFIG_FILE_OPTIONS,resolveRegionConfig:resolveRegionConfig}=require("@smithy/core/config"),{BinaryDecisionDiagram:BinaryDecisionDiagram,EndpointCache:EndpointCache,decideEndpoint:decideEndpoint,customEndpointFunctions:customEndpointFunctions,resolveEndpointConfig:resolveEndpointConfig,getEndpointPlugin:getEndpointPlugin}=require("@smithy/core/endpoints"),{parseUrl:parseUrl,getHttpHandlerExtensionConfiguration:getHttpHandlerExtensionConfiguration,resolveHttpHandlerRuntimeConfig:resolveHttpHandlerRuntimeConfig,getContentLengthPlugin:getContentLengthPlugin}=require("@smithy/core/protocols"),{DEFAULT_RETRY_MODE:DEFAULT_RETRY_MODE,NODE_RETRY_MODE_CONFIG_OPTIONS:NODE_RETRY_MODE_CONFIG_OPTIONS,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:NODE_MAX_ATTEMPT_CONFIG_OPTIONS,resolveRetryConfig:resolveRetryConfig,getRetryPlugin:getRetryPlugin}=require("@smithy/core/retry"),{TypeRegistry:TypeRegistry,getSchemaSerdePlugin:getSchemaSerdePlugin}=require("@smithy/core/schema"),{resolveAwsSdkSigV4Config:resolveAwsSdkSigV4Config,AwsSdkSigV4Signer:AwsSdkSigV4Signer,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:NODE_AUTH_SCHEME_PREFERENCE_OPTIONS}=require("@aws-sdk/core/httpAuthSchemes"),{defaultProvider:defaultProvider}=require("@aws-sdk/credential-provider-node"),{toUtf8:toUtf8,fromUtf8:fromUtf8,toBase64:toBase64,fromBase64:fromBase64,calculateBodyLength:calculateBodyLength}=require("@smithy/core/serde"),{streamCollector:streamCollector,NodeHttpHandler:NodeHttpHandler}=require("@smithy/node-http-handler"),{AwsRestJsonProtocol:AwsRestJsonProtocol}=require("@aws-sdk/core/protocols"),{Sha256:Sha256}=require("@smithy/core/checksum"),defaultRDSDataHttpAuthSchemeParametersProvider=async(e,t,n)=>({operation:getSmithyContext(t).operation,region:await normalizeProvider(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function createAwsAuthSigv4HttpAuthOption(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"rds-data",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}const defaultRDSDataHttpAuthSchemeProvider=e=>{const t=[];return e.operation,t.push(createAwsAuthSigv4HttpAuthOption(e)),t},resolveHttpAuthSchemeConfig=e=>{const t=resolveAwsSdkSigV4Config(e);return Object.assign(t,{authSchemePreference:normalizeProvider(e.authSchemePreference??[])})},resolveClientEndpointParameters=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"rds-data"}),commonParams={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var version="3.1107.0",packageInfo={version:version};const k="ref",a=-1,b=!0,c="isSet",d="PartitionResult",e="booleanEquals",f="getAttr",g={[k]:"Endpoint"},h={[k]:d},i={},j=[{[k]:"Region"}],_data={conditions:[[c,[g]],[c,j],["aws.partition",j,d],[e,[{[k]:"UseFIPS"},b]],[e,[{[k]:"UseDualStack"},b]],[e,[{fn:f,argv:[h,"supportsDualStack"]},b]],[e,[{fn:f,argv:[h,"supportsFIPS"]},b]]],results:[[a],[a,"Invalid Configuration: FIPS and custom endpoint are not supported"],[a,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[g,i],["https://rds-data-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",i],[a,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://rds-data-fips.{Region}.{PartitionResult#dnsSuffix}",i],[a,"FIPS is enabled but this partition does not support FIPS"],["https://rds-data.{Region}.{PartitionResult#dualStackDnsSuffix}",i],[a,"DualStack is enabled but this partition does not support DualStack"],["https://rds-data.{Region}.{PartitionResult#dnsSuffix}",i],[a,"Invalid Configuration: Missing Region"]]},root=2,r=1e8,nodes=new Int32Array([-1,1,-1,0,12,3,1,4,r+11,2,5,r+11,3,8,6,4,7,r+10,5,r+8,r+9,4,10,9,6,r+6,r+7,5,11,r+5,6,r+4,r+5,3,r+1,13,4,r+2,r+3]),bdd=BinaryDecisionDiagram.from(nodes,2,_data.conditions,_data.results),cache=new EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),defaultEndpointResolver=(e,t={})=>cache.get(e,()=>decideEndpoint(bdd,{endpointParams:e,logger:t.logger}));customEndpointFunctions.aws=awsEndpointFunctions;class RDSDataServiceException extends ServiceException{constructor(e){super(e),Object.setPrototypeOf(this,RDSDataServiceException.prototype)}}class AccessDeniedException extends RDSDataServiceException{name="AccessDeniedException";$fault="client";constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,AccessDeniedException.prototype)}}class BadRequestException extends RDSDataServiceException{name="BadRequestException";$fault="client";constructor(e){super({name:"BadRequestException",$fault:"client",...e}),Object.setPrototypeOf(this,BadRequestException.prototype)}}class DatabaseErrorException extends RDSDataServiceException{name="DatabaseErrorException";$fault="client";constructor(e){super({name:"DatabaseErrorException",$fault:"client",...e}),Object.setPrototypeOf(this,DatabaseErrorException.prototype)}}class DatabaseNotFoundException extends RDSDataServiceException{name="DatabaseNotFoundException";$fault="client";constructor(e){super({name:"DatabaseNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,DatabaseNotFoundException.prototype)}}class DatabaseResumingException extends RDSDataServiceException{name="DatabaseResumingException";$fault="client";constructor(e){super({name:"DatabaseResumingException",$fault:"client",...e}),Object.setPrototypeOf(this,DatabaseResumingException.prototype)}}class DatabaseUnavailableException extends RDSDataServiceException{name="DatabaseUnavailableException";$fault="server";constructor(e){super({name:"DatabaseUnavailableException",$fault:"server",...e}),Object.setPrototypeOf(this,DatabaseUnavailableException.prototype)}}class ForbiddenException extends RDSDataServiceException{name="ForbiddenException";$fault="client";constructor(e){super({name:"ForbiddenException",$fault:"client",...e}),Object.setPrototypeOf(this,ForbiddenException.prototype)}}class HttpEndpointNotEnabledException extends RDSDataServiceException{name="HttpEndpointNotEnabledException";$fault="client";constructor(e){super({name:"HttpEndpointNotEnabledException",$fault:"client",...e}),Object.setPrototypeOf(this,HttpEndpointNotEnabledException.prototype)}}class InternalServerErrorException extends RDSDataServiceException{name="InternalServerErrorException";$fault="server";constructor(e){super({name:"InternalServerErrorException",$fault:"server",...e}),Object.setPrototypeOf(this,InternalServerErrorException.prototype)}}class InvalidResourceStateException extends RDSDataServiceException{name="InvalidResourceStateException";$fault="client";constructor(e){super({name:"InvalidResourceStateException",$fault:"client",...e}),Object.setPrototypeOf(this,InvalidResourceStateException.prototype)}}class InvalidSecretException extends RDSDataServiceException{name="InvalidSecretException";$fault="client";constructor(e){super({name:"InvalidSecretException",$fault:"client",...e}),Object.setPrototypeOf(this,InvalidSecretException.prototype)}}class SecretsErrorException extends RDSDataServiceException{name="SecretsErrorException";$fault="client";constructor(e){super({name:"SecretsErrorException",$fault:"client",...e}),Object.setPrototypeOf(this,SecretsErrorException.prototype)}}class ServiceUnavailableError extends RDSDataServiceException{name="ServiceUnavailableError";$fault="server";constructor(e){super({name:"ServiceUnavailableError",$fault:"server",...e}),Object.setPrototypeOf(this,ServiceUnavailableError.prototype)}}class StatementTimeoutException extends RDSDataServiceException{name="StatementTimeoutException";$fault="client";dbConnectionId;constructor(e){super({name:"StatementTimeoutException",$fault:"client",...e}),Object.setPrototypeOf(this,StatementTimeoutException.prototype),this.dbConnectionId=e.dbConnectionId}}class TransactionNotFoundException extends RDSDataServiceException{name="TransactionNotFoundException";$fault="client";constructor(e){super({name:"TransactionNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,TransactionNotFoundException.prototype)}}class NotFoundException extends RDSDataServiceException{name="NotFoundException";$fault="client";constructor(e){super({name:"NotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,NotFoundException.prototype)}}class UnsupportedResultException extends RDSDataServiceException{name="UnsupportedResultException";$fault="client";constructor(e){super({name:"UnsupportedResultException",$fault:"client",...e}),Object.setPrototypeOf(this,UnsupportedResultException.prototype)}}const _ADE="AccessDeniedException",_AOA="ArrayOfArray",_AV="ArrayValue",_AVL="ArrayValueList",_BA="BooleanArray",_BES="BatchExecuteStatement",_BESR="BatchExecuteStatementRequest",_BESRa="BatchExecuteStatementResponse",_BRE="BadRequestException",_BT="BeginTransaction",_BTR="BeginTransactionRequest",_BTRe="BeginTransactionResponse",_CM="ColumnMetadata",_CT="CommitTransaction",_CTR="CommitTransactionRequest",_CTRo="CommitTransactionResponse",_DA="DoubleArray",_DEE="DatabaseErrorException",_DNFE="DatabaseNotFoundException",_DRE="DatabaseResumingException",_DUE="DatabaseUnavailableException",_ES="ExecuteSql",_ESR="ExecuteSqlRequest",_ESRx="ExecuteSqlResponse",_ESRxe="ExecuteStatementRequest",_ESRxec="ExecuteStatementResponse",_ESx="ExecuteStatement",_F="Field",_FE="ForbiddenException",_FL="FieldList",_HENEE="HttpEndpointNotEnabledException",_IRSE="InvalidResourceStateException",_ISE="InvalidSecretException",_ISEE="InternalServerErrorException",_LA="LongArray",_M="Metadata",_NFE="NotFoundException",_R="Record",_RF="ResultFrame",_RSM="ResultSetMetadata",_RSO="ResultSetOptions",_RT="RollbackTransaction",_RTR="RollbackTransactionRequest",_RTRo="RollbackTransactionResponse",_Re="Records",_Ro="Row",_SA="StringArray",_SEE="SecretsErrorException",_SP="SqlParameter",_SPL="SqlParametersList",_SPS="SqlParameterSets",_SR="SqlRecords",_SSR="SqlStatementResult",_SSRq="SqlStatementResults",_STE="StatementTimeoutException",_SUE="ServiceUnavailableError",_SV="StructValue",_TNFE="TransactionNotFoundException",_UR="UpdateResult",_URE="UnsupportedResultException",_URp="UpdateResults",_V="Value",_a="attributes",_aBCT="arrayBaseColumnType",_aSSA="awsSecretStoreArn",_aV="arrayValues",_aVr="arrayValue",_bIV="bigIntValue",_bV="booleanValues",_bVi="bitValue",_bVl="blobValue",_bVo="booleanValue",_c="client",_cAT="continueAfterTimeout",_cC="columnCount",_cM="columnMetadata",_d="database",_dCI="dbConnectionId",_dCOIA="dbClusterOrInstanceArn",_dRT="decimalReturnType",_dV="doubleValues",_dVo="doubleValue",_e="error",_fR="formattedRecords",_fRA="formatRecordsAs",_gF="generatedFields",_h="http",_hE="httpError",_iAI="isAutoIncrement",_iC="isCurrency",_iCS="isCaseSensitive",_iN="isNull",_iRM="includeResultMetadata",_iS="isSigned",_iV="intValue",_l="label",_lRT="longReturnType",_lV="longValues",_lVo="longValue",_m="message",_n="name",_nORU="numberOfRecordsUpdated",_nu="nullable",_p="precision",_pS="parameterSets",_pa="parameters",_r="records",_rA="resourceArn",_rF="resultFrame",_rSM="resultSetMetadata",_rSO="resultSetOptions",_rV="realValue",_s="smithy.ts.sdk.synthetic.com.amazonaws.rdsdata",_sA="secretArn",_sN="schemaName",_sS="sqlStatements",_sSR="sqlStatementResults",_sV="stringValues",_sVt="stringValue",_sVtr="structValue",_sc="schema",_sca="scale",_se="server",_sp="sparse",_sq="sql",_t="type",_tH="typeHint",_tI="transactionId",_tN="typeName",_tNa="tableName",_tS="transactionStatus",_uR="updateResults",_v="values",_va="value",n0="com.amazonaws.rdsdata",_s_registry=TypeRegistry.for(_s);var RDSDataServiceException$=[-3,_s,"RDSDataServiceException",0,[],[]];_s_registry.registerError(RDSDataServiceException$,RDSDataServiceException);const n0_registry=TypeRegistry.for(n0);var AccessDeniedException$=[-3,n0,_ADE,{[_e]:_c,[_hE]:403},[_m],[0]];n0_registry.registerError(AccessDeniedException$,AccessDeniedException);var BadRequestException$=[-3,n0,_BRE,{[_e]:_c,[_hE]:400},[_m],[0]];n0_registry.registerError(BadRequestException$,BadRequestException);var DatabaseErrorException$=[-3,n0,_DEE,{[_e]:_c,[_hE]:400},[_m],[0]];n0_registry.registerError(DatabaseErrorException$,DatabaseErrorException);var DatabaseNotFoundException$=[-3,n0,_DNFE,{[_e]:_c,[_hE]:404},[_m],[0]];n0_registry.registerError(DatabaseNotFoundException$,DatabaseNotFoundException);var DatabaseResumingException$=[-3,n0,_DRE,{[_e]:_c,[_hE]:400},[_m],[0]];n0_registry.registerError(DatabaseResumingException$,DatabaseResumingException);var DatabaseUnavailableException$=[-3,n0,_DUE,{[_e]:_se,[_hE]:504},[],[]];n0_registry.registerError(DatabaseUnavailableException$,DatabaseUnavailableException);var ForbiddenException$=[-3,n0,_FE,{[_e]:_c,[_hE]:403},[_m],[0]];n0_registry.registerError(ForbiddenException$,ForbiddenException);var HttpEndpointNotEnabledException$=[-3,n0,_HENEE,{[_e]:_c,[_hE]:400},[_m],[0]];n0_registry.registerError(HttpEndpointNotEnabledException$,HttpEndpointNotEnabledException);var InternalServerErrorException$=[-3,n0,_ISEE,{[_e]:_se,[_hE]:500},[],[]];n0_registry.registerError(InternalServerErrorException$,InternalServerErrorException);var InvalidResourceStateException$=[-3,n0,_IRSE,{[_e]:_c,[_hE]:400},[_m],[0]];n0_registry.registerError(InvalidResourceStateException$,InvalidResourceStateException);var InvalidSecretException$=[-3,n0,_ISE,{[_e]:_c,[_hE]:400},[_m],[0]];n0_registry.registerError(InvalidSecretException$,InvalidSecretException);var NotFoundException$=[-3,n0,_NFE,{[_e]:_c,[_hE]:404},[_m],[0]];n0_registry.registerError(NotFoundException$,NotFoundException);var SecretsErrorException$=[-3,n0,_SEE,{[_e]:_c,[_hE]:400},[_m],[0]];n0_registry.registerError(SecretsErrorException$,SecretsErrorException);var ServiceUnavailableError$=[-3,n0,_SUE,{[_e]:_se,[_hE]:503},[],[]];n0_registry.registerError(ServiceUnavailableError$,ServiceUnavailableError);var StatementTimeoutException$=[-3,n0,_STE,{[_e]:_c,[_hE]:400},[_m,_dCI],[0,1]];n0_registry.registerError(StatementTimeoutException$,StatementTimeoutException);var TransactionNotFoundException$=[-3,n0,_TNFE,{[_e]:_c,[_hE]:404},[_m],[0]];n0_registry.registerError(TransactionNotFoundException$,TransactionNotFoundException);var UnsupportedResultException$=[-3,n0,_URE,{[_e]:_c,[_hE]:400},[_m],[0]];n0_registry.registerError(UnsupportedResultException$,UnsupportedResultException);const errorTypeRegistries=[_s_registry,n0_registry];var BatchExecuteStatementRequest$=[3,n0,_BESR,0,[_rA,_sA,_sq,_d,_sc,_pS,_tI],[0,0,0,0,0,[()=>SqlParameterSets,0],0],3],BatchExecuteStatementResponse$=[3,n0,_BESRa,0,[_uR],[[()=>UpdateResults,0]]],BeginTransactionRequest$=[3,n0,_BTR,0,[_rA,_sA,_d,_sc],[0,0,0,0],2],BeginTransactionResponse$=[3,n0,_BTRe,0,[_tI],[0]],ColumnMetadata$=[3,n0,_CM,0,[_n,_t,_tN,_l,_sN,_tNa,_iAI,_iS,_iC,_iCS,_nu,_p,_sca,_aBCT],[0,1,0,0,0,0,2,2,2,2,1,1,1,1]],CommitTransactionRequest$=[3,n0,_CTR,0,[_rA,_sA,_tI],[0,0,0],3],CommitTransactionResponse$=[3,n0,_CTRo,0,[_tS],[0]],ExecuteSqlRequest$=[3,n0,_ESR,0,[_dCOIA,_aSSA,_sS,_d,_sc],[0,0,0,0,0],3],ExecuteSqlResponse$=[3,n0,_ESRx,0,[_sSR],[()=>SqlStatementResults]],ExecuteStatementRequest$=[3,n0,_ESRxe,0,[_rA,_sA,_sq,_d,_sc,_pa,_tI,_iRM,_cAT,_rSO,_fRA],[0,0,0,0,0,[()=>SqlParametersList,0],0,2,2,()=>ResultSetOptions$,0],3],ExecuteStatementResponse$=[3,n0,_ESRxec,0,[_r,_cM,_nORU,_gF,_fR],[[()=>SqlRecords,0],()=>Metadata,1,[()=>FieldList,0],0]],_Record$=[3,n0,_R,0,[_v],[()=>Row]],ResultFrame$=[3,n0,_RF,0,[_rSM,_r],[()=>ResultSetMetadata$,()=>Records]],ResultSetMetadata$=[3,n0,_RSM,0,[_cC,_cM],[1,()=>Metadata]],ResultSetOptions$=[3,n0,_RSO,0,[_dRT,_lRT],[0,0]],RollbackTransactionRequest$=[3,n0,_RTR,0,[_rA,_sA,_tI],[0,0,0],3],RollbackTransactionResponse$=[3,n0,_RTRo,0,[_tS],[0]],SqlParameter$=[3,n0,_SP,0,[_n,_va,_tH],[0,[()=>Field$,0],0]],SqlStatementResult$=[3,n0,_SSR,0,[_rF,_nORU],[()=>ResultFrame$,1]],StructValue$=[3,n0,_SV,0,[_a],[()=>ArrayValueList]],UpdateResult$=[3,n0,_UR,0,[_gF],[[()=>FieldList,0]]],ArrayOfArray=[1,n0,_AOA,{[_sp]:1},[()=>ArrayValue$,0]],ArrayValueList=[1,n0,_AVL,0,()=>Value$],BooleanArray=[1,n0,_BA,{[_sp]:1},2],DoubleArray=[1,n0,_DA,{[_sp]:1},1],FieldList=[1,n0,_FL,0,[()=>Field$,0]],LongArray=[1,n0,_LA,{[_sp]:1},1],Metadata=[1,n0,_M,0,()=>ColumnMetadata$],Records=[1,n0,_Re,0,()=>_Record$],Row=[1,n0,_Ro,0,()=>Value$],SqlParameterSets=[1,n0,_SPS,0,[()=>SqlParametersList,0]],SqlParametersList=[1,n0,_SPL,0,[()=>SqlParameter$,0]],SqlRecords=[1,n0,_SR,0,[()=>FieldList,0]],SqlStatementResults=[1,n0,_SSRq,0,()=>SqlStatementResult$],StringArray=[1,n0,_SA,{[_sp]:1},0],UpdateResults=[1,n0,_URp,0,[()=>UpdateResult$,0]],ArrayValue$=[4,n0,_AV,0,[_bV,_lV,_dV,_sV,_aV],[[()=>BooleanArray,0],[()=>LongArray,0],[()=>DoubleArray,0],[()=>StringArray,0],[()=>ArrayOfArray,0]]],Field$=[4,n0,_F,0,[_iN,_bVo,_lVo,_dVo,_sVt,_bVl,_aVr],[2,2,1,1,0,21,[()=>ArrayValue$,0]]],Value$=[4,n0,_V,0,[_iN,_bVi,_bIV,_iV,_dVo,_rV,_sVt,_bVl,_aV,_sVtr],[2,2,1,1,1,1,0,21,()=>ArrayValueList,()=>StructValue$]],BatchExecuteStatement$=[9,n0,_BES,{[_h]:["POST","/BatchExecute",200]},()=>BatchExecuteStatementRequest$,()=>BatchExecuteStatementResponse$],BeginTransaction$=[9,n0,_BT,{[_h]:["POST","/BeginTransaction",200]},()=>BeginTransactionRequest$,()=>BeginTransactionResponse$],CommitTransaction$=[9,n0,_CT,{[_h]:["POST","/CommitTransaction",200]},()=>CommitTransactionRequest$,()=>CommitTransactionResponse$],ExecuteSql$=[9,n0,_ES,{[_h]:["POST","/ExecuteSql",200]},()=>ExecuteSqlRequest$,()=>ExecuteSqlResponse$],ExecuteStatement$=[9,n0,_ESx,{[_h]:["POST","/Execute",200]},()=>ExecuteStatementRequest$,()=>ExecuteStatementResponse$],RollbackTransaction$=[9,n0,_RT,{[_h]:["POST","/RollbackTransaction",200]},()=>RollbackTransactionRequest$,()=>RollbackTransactionResponse$];const getRuntimeConfig$1=e=>({apiVersion:"2018-08-01",base64Decoder:e?.base64Decoder??fromBase64,base64Encoder:e?.base64Encoder??toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??defaultRDSDataHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new AwsSdkSigV4Signer}],logger:e?.logger??new NoOpLogger,protocol:e?.protocol??AwsRestJsonProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.rdsdata",errorTypeRegistries:errorTypeRegistries,version:"2018-08-01",serviceTarget:"RdsDataService"},serviceId:e?.serviceId??"RDS Data",sha256:e?.sha256??Sha256,urlParser:e?.urlParser??parseUrl,utf8Decoder:e?.utf8Decoder??fromUtf8,utf8Encoder:e?.utf8Encoder??toUtf8}),getRuntimeConfig=e=>{emitWarningIfUnsupportedVersion(process.version);const t=resolveDefaultsModeConfig(e),n=()=>t().then(loadConfigsForDefaultMode),o=getRuntimeConfig$1(e);emitWarningIfUnsupportedVersion$1(process.version);const r={profile:e?.profile,logger:o.logger};return{...o,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,r),bodyLengthChecker:e?.bodyLengthChecker??calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??defaultProvider,defaultUserAgentProvider:e?.defaultUserAgentProvider??createDefaultUserAgentProvider({serviceId:o.serviceId,clientVersion:packageInfo.version}),maxAttempts:e?.maxAttempts??loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??loadConfig(NODE_REGION_CONFIG_OPTIONS,{...NODE_REGION_CONFIG_FILE_OPTIONS,...r}),requestHandler:NodeHttpHandler.create(e?.requestHandler??n),retryMode:e?.retryMode??loadConfig({...NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await n()).retryMode||DEFAULT_RETRY_MODE},e),streamCollector:e?.streamCollector??streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,r),useFipsEndpoint:e?.useFipsEndpoint??loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,r),userAgentAppId:e?.userAgentAppId??loadConfig(NODE_APP_ID_CONFIG_OPTIONS,r)}},getHttpAuthExtensionConfiguration=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider,o=e.credentials;return{setHttpAuthScheme(e){const n=t.findIndex(t=>t.schemeId===e.schemeId);-1===n?t.push(e):t.splice(n,1,e)},httpAuthSchemes:()=>t,setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider:()=>n,setCredentials(e){o=e},credentials:()=>o}},resolveHttpAuthRuntimeConfig=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),resolveRuntimeExtensions=(e,t)=>{const n=Object.assign(getAwsRegionExtensionConfiguration(e),getDefaultExtensionConfiguration(e),getHttpHandlerExtensionConfiguration(e),getHttpAuthExtensionConfiguration(e));return t.forEach(e=>e.configure(n)),Object.assign(e,resolveAwsRegionExtensionConfiguration(n),resolveDefaultRuntimeConfig(n),resolveHttpHandlerRuntimeConfig(n),resolveHttpAuthRuntimeConfig(n))};class RDSDataClient extends Client{config;constructor(...[e]){const t=getRuntimeConfig(e||{});super(t),this.initConfig=t;const n=resolveClientEndpointParameters(t),o=resolveUserAgentConfig(n),r=resolveRetryConfig(o),a=resolveRegionConfig(r),i=resolveHostHeaderConfig(a),s=resolveEndpointConfig(i),c=resolveHttpAuthSchemeConfig(s),p=resolveRuntimeExtensions(c,e?.extensions||[]);this.config=p,this.middlewareStack.use(getSchemaSerdePlugin(this.config)),this.middlewareStack.use(getUserAgentPlugin(this.config)),this.middlewareStack.use(getRetryPlugin(this.config)),this.middlewareStack.use(getContentLengthPlugin(this.config)),this.middlewareStack.use(getHostHeaderPlugin(this.config)),this.middlewareStack.use(getLoggerPlugin(this.config)),this.middlewareStack.use(getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:defaultRDSDataHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async e=>new DefaultIdentityProviderConfig({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}const command=makeBuilder(commonParams,"RdsDataService","RDSDataClient",getEndpointPlugin),_ep0={},_mw0=(e,t,n,o)=>[];class BatchExecuteStatementCommand extends(command(_ep0,_mw0,"BatchExecuteStatement",BatchExecuteStatement$)){}class BeginTransactionCommand extends(command(_ep0,_mw0,"BeginTransaction",BeginTransaction$)){}class CommitTransactionCommand extends(command(_ep0,_mw0,"CommitTransaction",CommitTransaction$)){}class ExecuteSqlCommand extends(command(_ep0,_mw0,"ExecuteSql",ExecuteSql$)){}class ExecuteStatementCommand extends(command(_ep0,_mw0,"ExecuteStatement",ExecuteStatement$)){}class RollbackTransactionCommand extends(command(_ep0,_mw0,"RollbackTransaction",RollbackTransaction$)){}const commands={BatchExecuteStatementCommand:BatchExecuteStatementCommand,BeginTransactionCommand:BeginTransactionCommand,CommitTransactionCommand:CommitTransactionCommand,ExecuteSqlCommand:ExecuteSqlCommand,ExecuteStatementCommand:ExecuteStatementCommand,RollbackTransactionCommand:RollbackTransactionCommand};class RDSData extends RDSDataClient{}createAggregatedClient(commands,RDSData);const TypeHint={DATE:"DATE",DECIMAL:"DECIMAL",JSON:"JSON",TIME:"TIME",TIMESTAMP:"TIMESTAMP",UUID:"UUID"},DecimalReturnType={DOUBLE_OR_LONG:"DOUBLE_OR_LONG",STRING:"STRING"},RecordsFormatType={JSON:"JSON",NONE:"NONE"},LongReturnType={LONG:"LONG",STRING:"STRING"};exports.AccessDeniedException=AccessDeniedException,exports.AccessDeniedException$=AccessDeniedException$,exports.ArrayValue$=ArrayValue$,exports.BadRequestException=BadRequestException,exports.BadRequestException$=BadRequestException$,exports.BatchExecuteStatement$=BatchExecuteStatement$,exports.BatchExecuteStatementCommand=BatchExecuteStatementCommand,exports.BatchExecuteStatementRequest$=BatchExecuteStatementRequest$,exports.BatchExecuteStatementResponse$=BatchExecuteStatementResponse$,exports.BeginTransaction$=BeginTransaction$,exports.BeginTransactionCommand=BeginTransactionCommand,exports.BeginTransactionRequest$=BeginTransactionRequest$,exports.BeginTransactionResponse$=BeginTransactionResponse$,exports.ColumnMetadata$=ColumnMetadata$,exports.CommitTransaction$=CommitTransaction$,exports.CommitTransactionCommand=CommitTransactionCommand,exports.CommitTransactionRequest$=CommitTransactionRequest$,exports.CommitTransactionResponse$=CommitTransactionResponse$,exports.DatabaseErrorException=DatabaseErrorException,exports.DatabaseErrorException$=DatabaseErrorException$,exports.DatabaseNotFoundException=DatabaseNotFoundException,exports.DatabaseNotFoundException$=DatabaseNotFoundException$,exports.DatabaseResumingException=DatabaseResumingException,exports.DatabaseResumingException$=DatabaseResumingException$,exports.DatabaseUnavailableException=DatabaseUnavailableException,exports.DatabaseUnavailableException$=DatabaseUnavailableException$,exports.DecimalReturnType=DecimalReturnType,exports.ExecuteSql$=ExecuteSql$,exports.ExecuteSqlCommand=ExecuteSqlCommand,exports.ExecuteSqlRequest$=ExecuteSqlRequest$,exports.ExecuteSqlResponse$=ExecuteSqlResponse$,exports.ExecuteStatement$=ExecuteStatement$,exports.ExecuteStatementCommand=ExecuteStatementCommand,exports.ExecuteStatementRequest$=ExecuteStatementRequest$,exports.ExecuteStatementResponse$=ExecuteStatementResponse$,exports.Field$=Field$,exports.ForbiddenException=ForbiddenException,exports.ForbiddenException$=ForbiddenException$,exports.HttpEndpointNotEnabledException=HttpEndpointNotEnabledException,exports.HttpEndpointNotEnabledException$=HttpEndpointNotEnabledException$,exports.InternalServerErrorException=InternalServerErrorException,exports.InternalServerErrorException$=InternalServerErrorException$,exports.InvalidResourceStateException=InvalidResourceStateException,exports.InvalidResourceStateException$=InvalidResourceStateException$,exports.InvalidSecretException=InvalidSecretException,exports.InvalidSecretException$=InvalidSecretException$,exports.LongReturnType=LongReturnType,exports.NotFoundException=NotFoundException,exports.NotFoundException$=NotFoundException$,exports.RDSData=RDSData,exports.RDSDataClient=RDSDataClient,exports.RDSDataServiceException=RDSDataServiceException,exports.RDSDataServiceException$=RDSDataServiceException$,exports.RecordsFormatType=RecordsFormatType,exports.ResultFrame$=ResultFrame$,exports.ResultSetMetadata$=ResultSetMetadata$,exports.ResultSetOptions$=ResultSetOptions$,exports.RollbackTransaction$=RollbackTransaction$,exports.RollbackTransactionCommand=RollbackTransactionCommand,exports.RollbackTransactionRequest$=RollbackTransactionRequest$,exports.RollbackTransactionResponse$=RollbackTransactionResponse$,exports.SecretsErrorException=SecretsErrorException,exports.SecretsErrorException$=SecretsErrorException$,exports.ServiceUnavailableError=ServiceUnavailableError,exports.ServiceUnavailableError$=ServiceUnavailableError$,exports.SqlParameter$=SqlParameter$,exports.SqlStatementResult$=SqlStatementResult$,exports.StatementTimeoutException=StatementTimeoutException,exports.StatementTimeoutException$=StatementTimeoutException$,exports.StructValue$=StructValue$,exports.TransactionNotFoundException=TransactionNotFoundException,exports.TransactionNotFoundException$=TransactionNotFoundException$,exports.TypeHint=TypeHint,exports.UnsupportedResultException=UnsupportedResultException,exports.UnsupportedResultException$=UnsupportedResultException$,exports.UpdateResult$=UpdateResult$,exports.Value$=Value$,exports._Record$=_Record$,exports.errorTypeRegistries=errorTypeRegistries;
//# sourceMappingURL=/sm/d1f6f1af3de946ab45ddfcacf77596df38f391bd07e4080a0f5f823a9f98c18d.map