aws-sdk 2.1012.0 → 2.1013.0
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/CHANGELOG.md +8 -1
- package/README.md +1 -1
- package/apis/chime-2018-05-01.min.json +4 -2
- package/apis/quicksight-2018-04-01.min.json +27 -21
- package/clients/auditmanager.d.ts +19 -19
- package/clients/chime.d.ts +8 -0
- package/clients/connect.d.ts +11 -11
- package/clients/finspace.js +0 -1
- package/clients/finspacedata.js +0 -1
- package/clients/lexmodelsv2.js +0 -1
- package/clients/lookoutmetrics.js +0 -1
- package/clients/quicksight.d.ts +12 -2
- package/dist/aws-sdk-core-react-native.js +47 -22
- package/dist/aws-sdk-react-native.js +265 -326
- package/dist/aws-sdk.js +139 -23
- package/dist/aws-sdk.min.js +9 -9
- package/lib/core.js +1 -1
- package/lib/protocol/rest_json.js +6 -12
- package/lib/region_config.js +34 -1
- package/lib/region_config_data.json +91 -0
- package/lib/request.js +4 -6
- package/lib/service.js +1 -1
- package/package.json +2 -2
- package/scripts/region-checker/allowlist.js +4 -0
- package/lib/services/finspace.js +0 -23
- package/lib/services/finspacedata.js +0 -23
- package/lib/services/lexmodelsv2.js +0 -23
- package/lib/services/lookoutmetrics.js +0 -22
package/dist/aws-sdk.min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// AWS SDK for JavaScript v2.
|
|
1
|
+
// AWS SDK for JavaScript v2.1013.0
|
|
2
2
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
// License at https://sdk.amazonaws.com/js/BUNDLE_LICENSE.txt
|
|
4
4
|
!function(){function e(t,r,i){function a(o,n){if(!r[o]){if(!t[o]){var u="function"==typeof require&&require;if(!n&&u)return u(o,!0);if(s)return s(o,!0);var p=new Error("Cannot find module '"+o+"'");throw p.code="MODULE_NOT_FOUND",p}var m=r[o]={exports:{}};t[o][0].call(m.exports,function(e){return a(t[o][1][e]||e)},m,m.exports,e,t,r,i)}return r[o].exports}for(var s="function"==typeof require&&require,o=0;o<i.length;o++)a(i[o]);return a}return e}()({1:[function(e,t,r){t.exports={version:"2.0",metadata:{apiVersion:"2015-12-08",endpointPrefix:"acm",jsonVersion:"1.1",protocol:"json",serviceAbbreviation:"ACM",serviceFullName:"AWS Certificate Manager",serviceId:"ACM",signatureVersion:"v4",targetPrefix:"CertificateManager",uid:"acm-2015-12-08"},operations:{AddTagsToCertificate:{input:{type:"structure",required:["CertificateArn","Tags"],members:{CertificateArn:{},Tags:{shape:"S3"}}}},DeleteCertificate:{input:{type:"structure",required:["CertificateArn"],members:{CertificateArn:{}}}},DescribeCertificate:{input:{type:"structure",required:["CertificateArn"],members:{CertificateArn:{}}},output:{type:"structure",members:{Certificate:{type:"structure",members:{CertificateArn:{},DomainName:{},SubjectAlternativeNames:{shape:"Sc"},DomainValidationOptions:{shape:"Sd"},Serial:{},Subject:{},Issuer:{},CreatedAt:{type:"timestamp"},IssuedAt:{type:"timestamp"},ImportedAt:{type:"timestamp"},Status:{},RevokedAt:{type:"timestamp"},RevocationReason:{},NotBefore:{type:"timestamp"},NotAfter:{type:"timestamp"},KeyAlgorithm:{},SignatureAlgorithm:{},InUseBy:{type:"list",member:{}},FailureReason:{},Type:{},RenewalSummary:{type:"structure",required:["RenewalStatus","DomainValidationOptions","UpdatedAt"],members:{RenewalStatus:{},DomainValidationOptions:{shape:"Sd"},RenewalStatusReason:{},UpdatedAt:{type:"timestamp"}}},KeyUsages:{type:"list",member:{type:"structure",members:{Name:{}}}},ExtendedKeyUsages:{type:"list",member:{type:"structure",members:{Name:{},OID:{}}}},CertificateAuthorityArn:{},RenewalEligibility:{},Options:{shape:"S11"}}}}}},ExportCertificate:{input:{type:"structure",required:["CertificateArn","Passphrase"],members:{CertificateArn:{},Passphrase:{type:"blob",sensitive:!0}}},output:{type:"structure",members:{Certificate:{},CertificateChain:{},PrivateKey:{type:"string",sensitive:!0}}}},GetAccountConfiguration:{output:{type:"structure",members:{ExpiryEvents:{shape:"S1a"}}}},GetCertificate:{input:{type:"structure",required:["CertificateArn"],members:{CertificateArn:{}}},output:{type:"structure",members:{Certificate:{},CertificateChain:{}}}},ImportCertificate:{input:{type:"structure",required:["Certificate","PrivateKey"],members:{CertificateArn:{},Certificate:{type:"blob"},PrivateKey:{type:"blob",sensitive:!0},CertificateChain:{type:"blob"},Tags:{shape:"S3"}}},output:{type:"structure",members:{CertificateArn:{}}}},ListCertificates:{input:{type:"structure",members:{CertificateStatuses:{type:"list",member:{}},Includes:{type:"structure",members:{extendedKeyUsage:{type:"list",member:{}},keyUsage:{type:"list",member:{}},keyTypes:{type:"list",member:{}}}},NextToken:{},MaxItems:{type:"integer"}}},output:{type:"structure",members:{NextToken:{},CertificateSummaryList:{type:"list",member:{type:"structure",members:{CertificateArn:{},DomainName:{}}}}}}},ListTagsForCertificate:{input:{type:"structure",required:["CertificateArn"],members:{CertificateArn:{}}},output:{type:"structure",members:{Tags:{shape:"S3"}}}},PutAccountConfiguration:{input:{type:"structure",required:["IdempotencyToken"],members:{ExpiryEvents:{shape:"S1a"},IdempotencyToken:{}}}},RemoveTagsFromCertificate:{input:{type:"structure",required:["CertificateArn","Tags"],members:{CertificateArn:{},Tags:{shape:"S3"}}}},RenewCertificate:{input:{type:"structure",required:["CertificateArn"],members:{CertificateArn:{}}}},RequestCertificate:{input:{type:"structure",required:["DomainName"],members:{DomainName:{},ValidationMethod:{},SubjectAlternativeNames:{shape:"Sc"},IdempotencyToken:{},DomainValidationOptions:{type:"list",member:{type:"structure",required:["DomainName","ValidationDomain"],members:{DomainName:{},ValidationDomain:{}}}},Options:{shape:"S11"},CertificateAuthorityArn:{},Tags:{shape:"S3"}}},output:{type:"structure",members:{CertificateArn:{}}}},ResendValidationEmail:{input:{type:"structure",required:["CertificateArn","Domain","ValidationDomain"],members:{CertificateArn:{},Domain:{},ValidationDomain:{}}}},UpdateCertificateOptions:{input:{type:"structure",required:["CertificateArn","Options"],members:{CertificateArn:{},Options:{shape:"S11"}}}}},shapes:{S3:{type:"list",member:{type:"structure",required:["Key"],members:{Key:{},Value:{}}}},Sc:{type:"list",member:{}},Sd:{type:"list",member:{type:"structure",required:["DomainName"],members:{DomainName:{},ValidationEmails:{type:"list",member:{}},ValidationDomain:{},ValidationStatus:{},ResourceRecord:{type:"structure",required:["Name","Type","Value"],members:{Name:{},Type:{},Value:{}}},ValidationMethod:{}}}},S11:{type:"structure",members:{CertificateTransparencyLoggingPreference:{}}},S1a:{type:"structure",members:{DaysBeforeExpiry:{type:"integer"}}}}}},{}],2:[function(e,t,r){t.exports={pagination:{ListCertificates:{input_token:"NextToken",limit_key:"MaxItems",output_token:"NextToken",result_key:"CertificateSummaryList"}}}},{}],3:[function(e,t,r){t.exports={version:2,waiters:{CertificateValidated:{delay:60,maxAttempts:40,operation:"DescribeCertificate",acceptors:[{matcher:"pathAll",expected:"SUCCESS",argument:"Certificate.DomainValidationOptions[].ValidationStatus",state:"success"},{matcher:"pathAny",expected:"PENDING_VALIDATION",argument:"Certificate.DomainValidationOptions[].ValidationStatus",state:"retry"},{matcher:"path",expected:"FAILED",argument:"Certificate.Status",state:"failure"},{matcher:"error",expected:"ResourceNotFoundException",state:"failure"}]}}}},{}],4:[function(e,t,r){t.exports={version:"2.0",metadata:{apiVersion:"2015-07-09",endpointPrefix:"apigateway",protocol:"rest-json",serviceFullName:"Amazon API Gateway",serviceId:"API Gateway",signatureVersion:"v4",uid:"apigateway-2015-07-09"},operations:{CreateApiKey:{http:{requestUri:"/apikeys",responseCode:201},input:{type:"structure",members:{name:{},description:{},enabled:{type:"boolean"},generateDistinctId:{type:"boolean"},value:{},stageKeys:{type:"list",member:{type:"structure",members:{restApiId:{},stageName:{}}}},customerId:{},tags:{shape:"S6"}}},output:{shape:"S7"}},CreateAuthorizer:{http:{requestUri:"/restapis/{restapi_id}/authorizers",responseCode:201},input:{type:"structure",required:["restApiId","name","type"],members:{restApiId:{location:"uri",locationName:"restapi_id"},name:{},type:{},providerARNs:{shape:"Sc"},authType:{},authorizerUri:{},authorizerCredentials:{},identitySource:{},identityValidationExpression:{},authorizerResultTtlInSeconds:{type:"integer"}}},output:{shape:"Sf"}},CreateBasePathMapping:{http:{requestUri:"/domainnames/{domain_name}/basepathmappings",responseCode:201},input:{type:"structure",required:["domainName","restApiId"],members:{domainName:{location:"uri",locationName:"domain_name"},basePath:{},restApiId:{},stage:{}}},output:{shape:"Sh"}},CreateDeployment:{http:{requestUri:"/restapis/{restapi_id}/deployments",responseCode:201},input:{type:"structure",required:["restApiId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},stageName:{},stageDescription:{},description:{},cacheClusterEnabled:{type:"boolean"},cacheClusterSize:{},variables:{shape:"S6"},canarySettings:{type:"structure",members:{percentTraffic:{type:"double"},stageVariableOverrides:{shape:"S6"},useStageCache:{type:"boolean"}}},tracingEnabled:{type:"boolean"}}},output:{shape:"Sn"}},CreateDocumentationPart:{http:{requestUri:"/restapis/{restapi_id}/documentation/parts",responseCode:201},input:{type:"structure",required:["restApiId","location","properties"],members:{restApiId:{location:"uri",locationName:"restapi_id"},location:{shape:"Ss"},properties:{}}},output:{shape:"Sv"}},CreateDocumentationVersion:{http:{requestUri:"/restapis/{restapi_id}/documentation/versions",responseCode:201},input:{type:"structure",required:["restApiId","documentationVersion"],members:{restApiId:{location:"uri",locationName:"restapi_id"},documentationVersion:{},stageName:{},description:{}}},output:{shape:"Sx"}},CreateDomainName:{http:{requestUri:"/domainnames",responseCode:201},input:{type:"structure",required:["domainName"],members:{domainName:{},certificateName:{},certificateBody:{},certificatePrivateKey:{},certificateChain:{},certificateArn:{},regionalCertificateName:{},regionalCertificateArn:{},endpointConfiguration:{shape:"Sz"},tags:{shape:"S6"},securityPolicy:{},mutualTlsAuthentication:{type:"structure",members:{truststoreUri:{},truststoreVersion:{}}},ownershipVerificationCertificateArn:{}}},output:{shape:"S14"}},CreateModel:{http:{requestUri:"/restapis/{restapi_id}/models",responseCode:201},input:{type:"structure",required:["restApiId","name","contentType"],members:{restApiId:{location:"uri",locationName:"restapi_id"},name:{},description:{},schema:{},contentType:{}}},output:{shape:"S18"}},CreateRequestValidator:{http:{requestUri:"/restapis/{restapi_id}/requestvalidators",responseCode:201},input:{type:"structure",required:["restApiId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},name:{},validateRequestBody:{type:"boolean"},validateRequestParameters:{type:"boolean"}}},output:{shape:"S1a"}},CreateResource:{http:{requestUri:"/restapis/{restapi_id}/resources/{parent_id}",responseCode:201},input:{type:"structure",required:["restApiId","parentId","pathPart"],members:{restApiId:{location:"uri",locationName:"restapi_id"},parentId:{location:"uri",locationName:"parent_id"},pathPart:{}}},output:{shape:"S1c"}},CreateRestApi:{http:{requestUri:"/restapis",responseCode:201},input:{type:"structure",required:["name"],members:{name:{},description:{},version:{},cloneFrom:{},binaryMediaTypes:{shape:"S9"},minimumCompressionSize:{type:"integer"},apiKeySource:{},endpointConfiguration:{shape:"Sz"},policy:{},tags:{shape:"S6"},disableExecuteApiEndpoint:{type:"boolean"}}},output:{shape:"S1t"}},CreateStage:{http:{requestUri:"/restapis/{restapi_id}/stages",responseCode:201},input:{type:"structure",required:["restApiId","stageName","deploymentId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},stageName:{},deploymentId:{},description:{},cacheClusterEnabled:{type:"boolean"},cacheClusterSize:{},variables:{shape:"S6"},documentationVersion:{},canarySettings:{shape:"S1v"},tracingEnabled:{type:"boolean"},tags:{shape:"S6"}}},output:{shape:"S1w"}},CreateUsagePlan:{http:{requestUri:"/usageplans",responseCode:201},input:{type:"structure",required:["name"],members:{name:{},description:{},apiStages:{shape:"S23"},throttle:{shape:"S26"},quota:{shape:"S27"},tags:{shape:"S6"}}},output:{shape:"S29"}},CreateUsagePlanKey:{http:{requestUri:"/usageplans/{usageplanId}/keys",responseCode:201},input:{type:"structure",required:["usagePlanId","keyId","keyType"],members:{usagePlanId:{location:"uri",locationName:"usageplanId"},keyId:{},keyType:{}}},output:{shape:"S2b"}},CreateVpcLink:{http:{requestUri:"/vpclinks",responseCode:202},input:{type:"structure",required:["name","targetArns"],members:{name:{},description:{},targetArns:{shape:"S9"},tags:{shape:"S6"}}},output:{shape:"S2d"}},DeleteApiKey:{http:{method:"DELETE",requestUri:"/apikeys/{api_Key}",responseCode:202},input:{type:"structure",required:["apiKey"],members:{apiKey:{location:"uri",locationName:"api_Key"}}}},DeleteAuthorizer:{http:{method:"DELETE",requestUri:"/restapis/{restapi_id}/authorizers/{authorizer_id}",responseCode:202},input:{type:"structure",required:["restApiId","authorizerId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},authorizerId:{location:"uri",locationName:"authorizer_id"}}}},DeleteBasePathMapping:{http:{method:"DELETE",requestUri:"/domainnames/{domain_name}/basepathmappings/{base_path}",responseCode:202},input:{type:"structure",required:["domainName","basePath"],members:{domainName:{location:"uri",locationName:"domain_name"},basePath:{location:"uri",locationName:"base_path"}}}},DeleteClientCertificate:{http:{method:"DELETE",requestUri:"/clientcertificates/{clientcertificate_id}",responseCode:202},input:{type:"structure",required:["clientCertificateId"],members:{clientCertificateId:{location:"uri",locationName:"clientcertificate_id"}}}},DeleteDeployment:{http:{method:"DELETE",requestUri:"/restapis/{restapi_id}/deployments/{deployment_id}",responseCode:202},input:{type:"structure",required:["restApiId","deploymentId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},deploymentId:{location:"uri",locationName:"deployment_id"}}}},DeleteDocumentationPart:{http:{method:"DELETE",requestUri:"/restapis/{restapi_id}/documentation/parts/{part_id}",responseCode:202},input:{type:"structure",required:["restApiId","documentationPartId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},documentationPartId:{location:"uri",locationName:"part_id"}}}},DeleteDocumentationVersion:{http:{method:"DELETE",requestUri:"/restapis/{restapi_id}/documentation/versions/{doc_version}",responseCode:202},input:{type:"structure",required:["restApiId","documentationVersion"],members:{restApiId:{location:"uri",locationName:"restapi_id"},documentationVersion:{location:"uri",locationName:"doc_version"}}}},DeleteDomainName:{http:{method:"DELETE",requestUri:"/domainnames/{domain_name}",responseCode:202},input:{type:"structure",required:["domainName"],members:{domainName:{location:"uri",locationName:"domain_name"}}}},DeleteGatewayResponse:{http:{method:"DELETE",requestUri:"/restapis/{restapi_id}/gatewayresponses/{response_type}",responseCode:202},input:{type:"structure",required:["restApiId","responseType"],members:{restApiId:{location:"uri",locationName:"restapi_id"},responseType:{location:"uri",locationName:"response_type"}}}},DeleteIntegration:{http:{method:"DELETE",requestUri:"/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration",responseCode:204},input:{type:"structure",required:["restApiId","resourceId","httpMethod"],members:{restApiId:{location:"uri",locationName:"restapi_id"},resourceId:{location:"uri",locationName:"resource_id"},httpMethod:{location:"uri",locationName:"http_method"}}}},DeleteIntegrationResponse:{http:{method:"DELETE",requestUri:"/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration/responses/{status_code}",responseCode:204},input:{type:"structure",required:["restApiId","resourceId","httpMethod","statusCode"],members:{restApiId:{location:"uri",locationName:"restapi_id"},resourceId:{location:"uri",locationName:"resource_id"},httpMethod:{location:"uri",locationName:"http_method"},statusCode:{location:"uri",locationName:"status_code"}}}},DeleteMethod:{http:{method:"DELETE",requestUri:"/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}",responseCode:204},input:{type:"structure",required:["restApiId","resourceId","httpMethod"],members:{restApiId:{location:"uri",locationName:"restapi_id"},resourceId:{location:"uri",locationName:"resource_id"},httpMethod:{location:"uri",locationName:"http_method"}}}},DeleteMethodResponse:{http:{method:"DELETE",requestUri:"/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/responses/{status_code}",responseCode:204},input:{type:"structure",required:["restApiId","resourceId","httpMethod","statusCode"],members:{restApiId:{location:"uri",locationName:"restapi_id"},resourceId:{location:"uri",locationName:"resource_id"},httpMethod:{location:"uri",locationName:"http_method"},statusCode:{location:"uri",locationName:"status_code"}}}},DeleteModel:{http:{method:"DELETE",requestUri:"/restapis/{restapi_id}/models/{model_name}",responseCode:202},input:{type:"structure",required:["restApiId","modelName"],members:{restApiId:{location:"uri",locationName:"restapi_id"},modelName:{location:"uri",locationName:"model_name"}}}},DeleteRequestValidator:{http:{method:"DELETE",requestUri:"/restapis/{restapi_id}/requestvalidators/{requestvalidator_id}",responseCode:202},input:{type:"structure",required:["restApiId","requestValidatorId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},requestValidatorId:{location:"uri",locationName:"requestvalidator_id"}}}},DeleteResource:{http:{method:"DELETE",requestUri:"/restapis/{restapi_id}/resources/{resource_id}",responseCode:202},input:{type:"structure",required:["restApiId","resourceId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},resourceId:{location:"uri",locationName:"resource_id"}}}},DeleteRestApi:{http:{method:"DELETE",requestUri:"/restapis/{restapi_id}",responseCode:202},input:{type:"structure",required:["restApiId"],members:{restApiId:{location:"uri",locationName:"restapi_id"}}}},DeleteStage:{http:{method:"DELETE",requestUri:"/restapis/{restapi_id}/stages/{stage_name}",responseCode:202},input:{type:"structure",required:["restApiId","stageName"],members:{restApiId:{location:"uri",locationName:"restapi_id"},stageName:{location:"uri",locationName:"stage_name"}}}},DeleteUsagePlan:{http:{method:"DELETE",requestUri:"/usageplans/{usageplanId}",responseCode:202},input:{type:"structure",required:["usagePlanId"],members:{usagePlanId:{location:"uri",locationName:"usageplanId"}}}},DeleteUsagePlanKey:{http:{method:"DELETE",requestUri:"/usageplans/{usageplanId}/keys/{keyId}",responseCode:202},input:{type:"structure",required:["usagePlanId","keyId"],members:{usagePlanId:{location:"uri",locationName:"usageplanId"},keyId:{location:"uri",locationName:"keyId"}}}},DeleteVpcLink:{http:{method:"DELETE",requestUri:"/vpclinks/{vpclink_id}",responseCode:202},input:{type:"structure",required:["vpcLinkId"],members:{vpcLinkId:{location:"uri",locationName:"vpclink_id"}}}},FlushStageAuthorizersCache:{http:{method:"DELETE",requestUri:"/restapis/{restapi_id}/stages/{stage_name}/cache/authorizers",responseCode:202},input:{type:"structure",required:["restApiId","stageName"],members:{restApiId:{location:"uri",locationName:"restapi_id"},stageName:{location:"uri",locationName:"stage_name"}}}},FlushStageCache:{http:{method:"DELETE",requestUri:"/restapis/{restapi_id}/stages/{stage_name}/cache/data",responseCode:202},input:{type:"structure",required:["restApiId","stageName"],members:{restApiId:{location:"uri",locationName:"restapi_id"},stageName:{location:"uri",locationName:"stage_name"}}}},GenerateClientCertificate:{http:{requestUri:"/clientcertificates",responseCode:201},input:{type:"structure",members:{description:{},tags:{shape:"S6"}}},output:{shape:"S34"}},GetAccount:{http:{method:"GET",requestUri:"/account"},input:{type:"structure",members:{}},output:{shape:"S36"}},GetApiKey:{http:{method:"GET",requestUri:"/apikeys/{api_Key}"},input:{type:"structure",required:["apiKey"],members:{apiKey:{location:"uri",locationName:"api_Key"},includeValue:{location:"querystring",locationName:"includeValue",type:"boolean"}}},output:{shape:"S7"}},GetApiKeys:{http:{method:"GET",requestUri:"/apikeys"},input:{type:"structure",members:{position:{location:"querystring",locationName:"position"},limit:{location:"querystring",locationName:"limit",type:"integer"},nameQuery:{location:"querystring",locationName:"name"},customerId:{location:"querystring",locationName:"customerId"},includeValues:{location:"querystring",locationName:"includeValues",type:"boolean"}}},output:{type:"structure",members:{warnings:{shape:"S9"},position:{},items:{locationName:"item",type:"list",member:{shape:"S7"}}}}},GetAuthorizer:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/authorizers/{authorizer_id}"},input:{type:"structure",required:["restApiId","authorizerId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},authorizerId:{location:"uri",locationName:"authorizer_id"}}},output:{shape:"Sf"}},GetAuthorizers:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/authorizers"},input:{type:"structure",required:["restApiId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},position:{location:"querystring",locationName:"position"},limit:{location:"querystring",locationName:"limit",type:"integer"}}},output:{type:"structure",members:{position:{},items:{locationName:"item",type:"list",member:{shape:"Sf"}}}}},GetBasePathMapping:{http:{method:"GET",requestUri:"/domainnames/{domain_name}/basepathmappings/{base_path}"},input:{type:"structure",required:["domainName","basePath"],members:{domainName:{location:"uri",locationName:"domain_name"},basePath:{location:"uri",locationName:"base_path"}}},output:{shape:"Sh"}},GetBasePathMappings:{http:{method:"GET",requestUri:"/domainnames/{domain_name}/basepathmappings"},input:{type:"structure",required:["domainName"],members:{domainName:{location:"uri",locationName:"domain_name"},position:{location:"querystring",locationName:"position"},limit:{location:"querystring",locationName:"limit",type:"integer"}}},output:{type:"structure",members:{position:{},items:{locationName:"item",type:"list",member:{shape:"Sh"}}}}},GetClientCertificate:{http:{method:"GET",requestUri:"/clientcertificates/{clientcertificate_id}"},input:{type:"structure",required:["clientCertificateId"],members:{clientCertificateId:{location:"uri",locationName:"clientcertificate_id"}}},output:{shape:"S34"}},GetClientCertificates:{http:{method:"GET",requestUri:"/clientcertificates"},input:{type:"structure",members:{position:{location:"querystring",locationName:"position"},limit:{location:"querystring",locationName:"limit",type:"integer"}}},output:{type:"structure",members:{position:{},items:{locationName:"item",type:"list",member:{shape:"S34"}}}}},GetDeployment:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/deployments/{deployment_id}"},input:{type:"structure",required:["restApiId","deploymentId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},deploymentId:{location:"uri",locationName:"deployment_id"},embed:{shape:"S9",location:"querystring",locationName:"embed"}}},output:{shape:"Sn"}},GetDeployments:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/deployments"},input:{type:"structure",required:["restApiId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},position:{location:"querystring",locationName:"position"},limit:{location:"querystring",locationName:"limit",type:"integer"}}},output:{type:"structure",members:{position:{},items:{locationName:"item",type:"list",member:{shape:"Sn"}}}}},GetDocumentationPart:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/documentation/parts/{part_id}"},input:{type:"structure",required:["restApiId","documentationPartId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},documentationPartId:{location:"uri",locationName:"part_id"}}},output:{shape:"Sv"}},GetDocumentationParts:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/documentation/parts"},input:{type:"structure",required:["restApiId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},type:{location:"querystring",locationName:"type"},nameQuery:{location:"querystring",locationName:"name"},path:{location:"querystring",locationName:"path"},position:{location:"querystring",locationName:"position"},limit:{location:"querystring",locationName:"limit",type:"integer"},locationStatus:{location:"querystring",locationName:"locationStatus"}}},output:{type:"structure",members:{position:{},items:{locationName:"item",type:"list",member:{shape:"Sv"}}}}},GetDocumentationVersion:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/documentation/versions/{doc_version}"},input:{type:"structure",required:["restApiId","documentationVersion"],members:{restApiId:{location:"uri",locationName:"restapi_id"},documentationVersion:{location:"uri",locationName:"doc_version"}}},output:{shape:"Sx"}},GetDocumentationVersions:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/documentation/versions"},input:{type:"structure",required:["restApiId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},position:{location:"querystring",locationName:"position"},limit:{location:"querystring",locationName:"limit",type:"integer"}}},output:{type:"structure",members:{position:{},items:{locationName:"item",type:"list",member:{shape:"Sx"}}}}},GetDomainName:{http:{method:"GET",requestUri:"/domainnames/{domain_name}"},input:{type:"structure",required:["domainName"],members:{domainName:{location:"uri",locationName:"domain_name"}}},output:{shape:"S14"}},GetDomainNames:{http:{method:"GET",requestUri:"/domainnames"},input:{type:"structure",members:{position:{location:"querystring",locationName:"position"},limit:{location:"querystring",locationName:"limit",type:"integer"}}},output:{type:"structure",members:{position:{},items:{locationName:"item",type:"list",member:{shape:"S14"}}}}},GetExport:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/stages/{stage_name}/exports/{export_type}",responseCode:200},input:{type:"structure",required:["restApiId","stageName","exportType"],members:{restApiId:{location:"uri",locationName:"restapi_id"},stageName:{location:"uri",locationName:"stage_name"},exportType:{location:"uri",locationName:"export_type"},parameters:{shape:"S6",location:"querystring"},accepts:{location:"header",locationName:"Accept"}}},output:{type:"structure",members:{contentType:{location:"header",locationName:"Content-Type"},contentDisposition:{location:"header",locationName:"Content-Disposition"},body:{type:"blob"}},payload:"body"}},GetGatewayResponse:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/gatewayresponses/{response_type}"},input:{type:"structure",required:["restApiId","responseType"],members:{restApiId:{location:"uri",locationName:"restapi_id"},responseType:{location:"uri",locationName:"response_type"}}},output:{shape:"S48"}},GetGatewayResponses:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/gatewayresponses"},input:{type:"structure",required:["restApiId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},position:{location:"querystring",locationName:"position"},limit:{location:"querystring",locationName:"limit",type:"integer"}}},output:{type:"structure",members:{position:{},items:{locationName:"item",type:"list",member:{shape:"S48"}}}}},GetIntegration:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration"},input:{type:"structure",required:["restApiId","resourceId","httpMethod"],members:{restApiId:{location:"uri",locationName:"restapi_id"},resourceId:{location:"uri",locationName:"resource_id"},httpMethod:{location:"uri",locationName:"http_method"}}},output:{shape:"S1j"}},GetIntegrationResponse:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration/responses/{status_code}"},input:{type:"structure",required:["restApiId","resourceId","httpMethod","statusCode"],members:{restApiId:{location:"uri",locationName:"restapi_id"},resourceId:{location:"uri",locationName:"resource_id"},httpMethod:{location:"uri",locationName:"http_method"},statusCode:{location:"uri",locationName:"status_code"}}},output:{shape:"S1p"}},GetMethod:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}"},input:{type:"structure",required:["restApiId","resourceId","httpMethod"],members:{restApiId:{location:"uri",locationName:"restapi_id"},resourceId:{location:"uri",locationName:"resource_id"},httpMethod:{location:"uri",locationName:"http_method"}}},output:{shape:"S1e"}},GetMethodResponse:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/responses/{status_code}"},input:{type:"structure",required:["restApiId","resourceId","httpMethod","statusCode"],members:{restApiId:{location:"uri",locationName:"restapi_id"},resourceId:{location:"uri",locationName:"resource_id"},httpMethod:{location:"uri",locationName:"http_method"},statusCode:{location:"uri",locationName:"status_code"}}},output:{shape:"S1h"}},GetModel:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/models/{model_name}"},input:{type:"structure",required:["restApiId","modelName"],members:{restApiId:{location:"uri",locationName:"restapi_id"},modelName:{location:"uri",locationName:"model_name"},flatten:{location:"querystring",locationName:"flatten",type:"boolean"}}},output:{shape:"S18"}},GetModelTemplate:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/models/{model_name}/default_template"},input:{type:"structure",required:["restApiId","modelName"],members:{restApiId:{location:"uri",locationName:"restapi_id"},modelName:{location:"uri",locationName:"model_name"}}},output:{type:"structure",members:{value:{}}}},GetModels:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/models"},input:{type:"structure",required:["restApiId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},position:{location:"querystring",locationName:"position"},limit:{location:"querystring",locationName:"limit",type:"integer"}}},output:{type:"structure",members:{position:{},items:{locationName:"item",type:"list",member:{shape:"S18"}}}}},GetRequestValidator:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/requestvalidators/{requestvalidator_id}"},input:{type:"structure",required:["restApiId","requestValidatorId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},requestValidatorId:{location:"uri",locationName:"requestvalidator_id"}}},output:{shape:"S1a"}},GetRequestValidators:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/requestvalidators"},input:{type:"structure",required:["restApiId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},position:{location:"querystring",locationName:"position"},limit:{location:"querystring",locationName:"limit",type:"integer"}}},output:{type:"structure",members:{position:{},items:{locationName:"item",type:"list",member:{shape:"S1a"}}}}},GetResource:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/resources/{resource_id}"},input:{type:"structure",required:["restApiId","resourceId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},resourceId:{location:"uri",locationName:"resource_id"},embed:{shape:"S9",location:"querystring",locationName:"embed"}}},output:{shape:"S1c"}},GetResources:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/resources"},input:{type:"structure",required:["restApiId"],members:{restApiId:{location:"uri",locationName:"restapi_id"},position:{location:"querystring",locationName:"position"},limit:{location:"querystring",locationName:"limit",type:"integer"},embed:{shape:"S9",location:"querystring",locationName:"embed"}}},output:{type:"structure",members:{position:{},items:{locationName:"item",type:"list",member:{shape:"S1c"}}}}},GetRestApi:{http:{method:"GET",requestUri:"/restapis/{restapi_id}"},input:{type:"structure",required:["restApiId"],members:{restApiId:{location:"uri",locationName:"restapi_id"}}},output:{shape:"S1t"}},GetRestApis:{http:{method:"GET",requestUri:"/restapis"},input:{type:"structure",members:{position:{location:"querystring",locationName:"position"},limit:{location:"querystring",locationName:"limit",type:"integer"}}},output:{type:"structure",members:{position:{},items:{locationName:"item",type:"list",member:{shape:"S1t"}}}}},GetSdk:{http:{method:"GET",requestUri:"/restapis/{restapi_id}/stages/{stage_name}/sdks/{sdk_type}",responseCode:200},input:{type:"structure",required:["restApiId","stageName","sdkType"],members:{restApiId:{location:"uri",locationName:"restapi_id"},stageName:{location:"uri",locationName:"stage_name"},sdkType:{location:"uri",locationName:"sdk_type"},parameters:{shape:"S6",location:"querystring"}}},output:{type:"structure",members:{contentType:{location:"header",locationName:"Content-Type"},contentDisposition:{location:"header",locationName:"Content-Disposition"},body:{type:"blob"}},payload:"body"}},GetSdkType:{http:{method:"GET",requestUri:"/sdktypes/{sdktype_id}"},input:{type:"structure",required:["id"],members:{id:{location:"uri",locationName:"sdktype_id"}}},output:{shape:"S51"}},GetSdkTypes:{http:{method:"GET",requestUri:"/sdktypes"},input:{type:"structure",
|
|
@@ -80,12 +80,12 @@ shape:"S4"},EncryptionKey:{shape:"S7"},ClientToken:{idempotencyToken:!0}}},outpu
|
|
|
80
80
|
requestUri:"/api/v1/resources/{ResourceId}/customMetadata",responseCode:200},input:{type:"structure",required:["ResourceId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},ResourceId:{location:"uri",locationName:"ResourceId"},VersionId:{location:"querystring",locationName:"versionId"},Keys:{location:"querystring",locationName:"keys",type:"list",member:{}},DeleteAll:{location:"querystring",locationName:"deleteAll",type:"boolean"}}},output:{type:"structure",members:{}}},DeleteDocument:{http:{method:"DELETE",requestUri:"/api/v1/documents/{DocumentId}",responseCode:204},input:{type:"structure",required:["DocumentId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},DocumentId:{location:"uri",locationName:"DocumentId"}}}},DeleteFolder:{http:{method:"DELETE",requestUri:"/api/v1/folders/{FolderId}",responseCode:204},input:{type:"structure",required:["FolderId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},FolderId:{location:"uri",locationName:"FolderId"}}}},DeleteFolderContents:{http:{method:"DELETE",requestUri:"/api/v1/folders/{FolderId}/contents",responseCode:204},input:{type:"structure",required:["FolderId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},FolderId:{location:"uri",locationName:"FolderId"}}}},DeleteLabels:{http:{method:"DELETE",requestUri:"/api/v1/resources/{ResourceId}/labels",responseCode:200},input:{type:"structure",required:["ResourceId"],members:{ResourceId:{location:"uri",locationName:"ResourceId"},AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},Labels:{shape:"S1g",location:"querystring",locationName:"labels"},DeleteAll:{location:"querystring",locationName:"deleteAll",type:"boolean"}}},output:{type:"structure",members:{}}},DeleteNotificationSubscription:{http:{method:"DELETE",requestUri:"/api/v1/organizations/{OrganizationId}/subscriptions/{SubscriptionId}",responseCode:200},input:{type:"structure",required:["SubscriptionId","OrganizationId"],members:{SubscriptionId:{location:"uri",locationName:"SubscriptionId"},OrganizationId:{location:"uri",locationName:"OrganizationId"}}}},DeleteUser:{http:{method:"DELETE",requestUri:"/api/v1/users/{UserId}",responseCode:204},input:{type:"structure",required:["UserId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},UserId:{location:"uri",locationName:"UserId"}}}},DescribeActivities:{http:{method:"GET",requestUri:"/api/v1/activities",responseCode:200},input:{type:"structure",members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},StartTime:{location:"querystring",locationName:"startTime",type:"timestamp"},EndTime:{location:"querystring",locationName:"endTime",type:"timestamp"},OrganizationId:{location:"querystring",locationName:"organizationId"},ActivityTypes:{location:"querystring",locationName:"activityTypes"},ResourceId:{location:"querystring",locationName:"resourceId"},UserId:{location:"querystring",locationName:"userId"},IncludeIndirectActivities:{location:"querystring",locationName:"includeIndirectActivities",type:"boolean"},Limit:{location:"querystring",locationName:"limit",type:"integer"},Marker:{location:"querystring",locationName:"marker"}}},output:{type:"structure",members:{UserActivities:{type:"list",member:{type:"structure",members:{Type:{},TimeStamp:{type:"timestamp"},IsIndirectActivity:{type:"boolean"},OrganizationId:{},Initiator:{shape:"S2d"},Participants:{type:"structure",members:{Users:{type:"list",member:{shape:"S2d"}},Groups:{shape:"S2g"}}},ResourceMetadata:{shape:"S2j"},OriginalParent:{shape:"S2j"},CommentMetadata:{type:"structure",members:{CommentId:{},Contributor:{shape:"S8"},CreatedTimestamp:{type:"timestamp"},CommentStatus:{},RecipientId:{}}}}}},Marker:{}}}},DescribeComments:{http:{method:"GET",requestUri:"/api/v1/documents/{DocumentId}/versions/{VersionId}/comments",responseCode:200},input:{type:"structure",required:["DocumentId","VersionId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},DocumentId:{location:"uri",locationName:"DocumentId"},VersionId:{location:"uri",locationName:"VersionId"},Limit:{location:"querystring",locationName:"limit",type:"integer"},Marker:{location:"querystring",locationName:"marker"}}},output:{type:"structure",members:{Comments:{type:"list",member:{shape:"S13"}},Marker:{}}}},DescribeDocumentVersions:{http:{method:"GET",requestUri:"/api/v1/documents/{DocumentId}/versions",responseCode:200},input:{type:"structure",required:["DocumentId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},DocumentId:{location:"uri",locationName:"DocumentId"},Marker:{location:"querystring",locationName:"marker"},Limit:{location:"querystring",locationName:"limit",type:"integer"},Include:{location:"querystring",locationName:"include"},Fields:{location:"querystring",locationName:"fields"}}},output:{type:"structure",members:{DocumentVersions:{type:"list",member:{shape:"S2u"}},Marker:{}}}},DescribeFolderContents:{http:{method:"GET",requestUri:"/api/v1/folders/{FolderId}/contents",responseCode:200},input:{type:"structure",required:["FolderId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},FolderId:{location:"uri",locationName:"FolderId"},Sort:{location:"querystring",locationName:"sort"},Order:{location:"querystring",locationName:"order"},Limit:{location:"querystring",locationName:"limit",type:"integer"},Marker:{location:"querystring",locationName:"marker"},Type:{location:"querystring",locationName:"type"},Include:{location:"querystring",locationName:"include"}}},output:{type:"structure",members:{Folders:{shape:"S37"},Documents:{shape:"S38"},Marker:{}}}},DescribeGroups:{http:{method:"GET",requestUri:"/api/v1/groups",responseCode:200},input:{type:"structure",required:["SearchQuery"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},SearchQuery:{shape:"S3b",location:"querystring",locationName:"searchQuery"},OrganizationId:{location:"querystring",locationName:"organizationId"},Marker:{location:"querystring",locationName:"marker"},Limit:{location:"querystring",locationName:"limit",type:"integer"}}},output:{type:"structure",members:{Groups:{shape:"S2g"},Marker:{}}}},DescribeNotificationSubscriptions:{http:{method:"GET",requestUri:"/api/v1/organizations/{OrganizationId}/subscriptions",responseCode:200},input:{type:"structure",required:["OrganizationId"],members:{OrganizationId:{location:"uri",locationName:"OrganizationId"},Marker:{location:"querystring",locationName:"marker"},Limit:{location:"querystring",locationName:"limit",type:"integer"}}},output:{type:"structure",members:{Subscriptions:{type:"list",member:{shape:"S1p"}},Marker:{}}}},DescribeResourcePermissions:{http:{method:"GET",requestUri:"/api/v1/resources/{ResourceId}/permissions",responseCode:200},input:{type:"structure",required:["ResourceId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},ResourceId:{location:"uri",locationName:"ResourceId"},PrincipalId:{location:"querystring",locationName:"principalId"},Limit:{location:"querystring",locationName:"limit",type:"integer"},Marker:{location:"querystring",locationName:"marker"}}},output:{type:"structure",members:{Principals:{type:"list",member:{type:"structure",members:{Id:{},Type:{},Roles:{type:"list",member:{type:"structure",members:{Role:{},Type:{}}}}}}},Marker:{}}}},DescribeRootFolders:{http:{method:"GET",requestUri:"/api/v1/me/root",responseCode:200},input:{type:"structure",required:["AuthenticationToken"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},Limit:{location:"querystring",locationName:"limit",type:"integer"},Marker:{location:"querystring",locationName:"marker"}}},output:{type:"structure",members:{Folders:{shape:"S37"},Marker:{}}}},DescribeUsers:{http:{method:"GET",requestUri:"/api/v1/users",responseCode:200},input:{type:"structure",members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},OrganizationId:{location:"querystring",locationName:"organizationId"},UserIds:{location:"querystring",locationName:"userIds"},Query:{shape:"S3b",location:"querystring",locationName:"query"},Include:{location:"querystring",locationName:"include"},Order:{location:"querystring",locationName:"order"},Sort:{location:"querystring",locationName:"sort"},Marker:{location:"querystring",locationName:"marker"},Limit:{location:"querystring",locationName:"limit",type:"integer"},Fields:{location:"querystring",locationName:"fields"}}},output:{type:"structure",members:{Users:{type:"list",member:{shape:"S8"}},TotalNumberOfUsers:{deprecated:!0,type:"long"},Marker:{}}}},GetCurrentUser:{http:{method:"GET",requestUri:"/api/v1/me",responseCode:200},input:{type:"structure",required:["AuthenticationToken"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"}}},output:{type:"structure",members:{User:{shape:"S8"}}}},GetDocument:{http:{method:"GET",requestUri:"/api/v1/documents/{DocumentId}",responseCode:200},input:{type:"structure",required:["DocumentId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},DocumentId:{location:"uri",locationName:"DocumentId"},IncludeCustomMetadata:{location:"querystring",locationName:"includeCustomMetadata",type:"boolean"}}},output:{type:"structure",members:{Metadata:{shape:"S39"},CustomMetadata:{shape:"S16"}}}},GetDocumentPath:{http:{method:"GET",requestUri:"/api/v1/documents/{DocumentId}/path",responseCode:200},input:{type:"structure",required:["DocumentId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},DocumentId:{location:"uri",locationName:"DocumentId"},Limit:{location:"querystring",locationName:"limit",type:"integer"},Fields:{location:"querystring",locationName:"fields"},Marker:{location:"querystring",locationName:"marker"}}},output:{type:"structure",members:{Path:{shape:"S42"}}}},GetDocumentVersion:{http:{method:"GET",requestUri:"/api/v1/documents/{DocumentId}/versions/{VersionId}",responseCode:200},input:{type:"structure",required:["DocumentId","VersionId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},DocumentId:{location:"uri",locationName:"DocumentId"},VersionId:{location:"uri",locationName:"VersionId"},Fields:{location:"querystring",locationName:"fields"},IncludeCustomMetadata:{location:"querystring",locationName:"includeCustomMetadata",type:"boolean"}}},output:{type:"structure",members:{Metadata:{shape:"S2u"},CustomMetadata:{shape:"S16"}}}},GetFolder:{http:{method:"GET",requestUri:"/api/v1/folders/{FolderId}",responseCode:200},input:{type:"structure",required:["FolderId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},FolderId:{location:"uri",locationName:"FolderId"},IncludeCustomMetadata:{location:"querystring",locationName:"includeCustomMetadata",type:"boolean"}}},output:{type:"structure",members:{Metadata:{shape:"S1d"},CustomMetadata:{shape:"S16"}}}},GetFolderPath:{http:{method:"GET",requestUri:"/api/v1/folders/{FolderId}/path",responseCode:200},input:{type:"structure",required:["FolderId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},FolderId:{location:"uri",locationName:"FolderId"},Limit:{location:"querystring",locationName:"limit",type:"integer"},Fields:{location:"querystring",locationName:"fields"},Marker:{location:"querystring",locationName:"marker"}}},output:{type:"structure",members:{Path:{shape:"S42"}}}},GetResources:{http:{method:"GET",requestUri:"/api/v1/resources",responseCode:200},input:{type:"structure",members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},UserId:{location:"querystring",locationName:"userId"},CollectionType:{location:"querystring",locationName:"collectionType"},Limit:{location:"querystring",locationName:"limit",type:"integer"},Marker:{location:"querystring",locationName:"marker"}}},output:{type:"structure",members:{Folders:{shape:"S37"},Documents:{shape:"S38"},Marker:{}}}},InitiateDocumentVersionUpload:{http:{requestUri:"/api/v1/documents",responseCode:201},input:{type:"structure",required:["ParentFolderId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},Id:{},Name:{},ContentCreatedTimestamp:{type:"timestamp"},ContentModifiedTimestamp:{type:"timestamp"},ContentType:{},DocumentSizeInBytes:{type:"long"},ParentFolderId:{}}},output:{type:"structure",members:{Metadata:{shape:"S39"},UploadMetadata:{type:"structure",members:{UploadUrl:{shape:"S2z"},SignedHeaders:{type:"map",key:{},value:{}}}}}}},RemoveAllResourcePermissions:{http:{method:"DELETE",requestUri:"/api/v1/resources/{ResourceId}/permissions",responseCode:204},input:{type:"structure",required:["ResourceId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},ResourceId:{location:"uri",locationName:"ResourceId"}}}},RemoveResourcePermission:{http:{method:"DELETE",requestUri:"/api/v1/resources/{ResourceId}/permissions/{PrincipalId}",responseCode:204},input:{type:"structure",required:["ResourceId","PrincipalId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},ResourceId:{location:"uri",locationName:"ResourceId"},PrincipalId:{location:"uri",locationName:"PrincipalId"},PrincipalType:{location:"querystring",locationName:"type"}}}},UpdateDocument:{http:{method:"PATCH",requestUri:"/api/v1/documents/{DocumentId}",responseCode:200},input:{type:"structure",required:["DocumentId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},DocumentId:{location:"uri",locationName:"DocumentId"},Name:{},ParentFolderId:{},ResourceState:{}}}},UpdateDocumentVersion:{http:{method:"PATCH",requestUri:"/api/v1/documents/{DocumentId}/versions/{VersionId}",responseCode:200},input:{type:"structure",required:["DocumentId","VersionId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},DocumentId:{location:"uri",locationName:"DocumentId"},VersionId:{location:"uri",locationName:"VersionId"},VersionStatus:{}}}},UpdateFolder:{http:{method:"PATCH",requestUri:"/api/v1/folders/{FolderId}",responseCode:200},input:{type:"structure",required:["FolderId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},FolderId:{location:"uri",locationName:"FolderId"},Name:{},ParentFolderId:{},ResourceState:{}}}},UpdateUser:{http:{method:"PATCH",requestUri:"/api/v1/users/{UserId}",responseCode:200},input:{type:"structure",required:["UserId"],members:{AuthenticationToken:{shape:"S2",location:"header",locationName:"Authentication"},UserId:{location:"uri",locationName:"UserId"},GivenName:{},Surname:{},Type:{},StorageRule:{shape:"Sj"},TimeZoneId:{},Locale:{},GrantPoweruserPrivileges:{}}},output:{type:"structure",members:{User:{shape:"S8"}}}}},shapes:{S2:{type:"string",sensitive:!0},S8:{type:"structure",members:{Id:{},Username:{},EmailAddress:{},GivenName:{},Surname:{},OrganizationId:{},RootFolderId:{},RecycleBinFolderId:{},Status:{},Type:{},CreatedTimestamp:{type:"timestamp"},ModifiedTimestamp:{type:"timestamp"},TimeZoneId:{},Locale:{},Storage:{type:"structure",members:{StorageUtilizedInBytes:{type:"long"},StorageRule:{shape:"Sj"}}}}},Sj:{type:"structure",members:{StorageAllocatedInBytes:{type:"long"},StorageType:{}}},St:{type:"string",sensitive:!0},S10:{type:"string",sensitive:!0},S13:{type:"structure",required:["CommentId"],members:{CommentId:{},ParentId:{},ThreadId:{},Text:{shape:"S10"},Contributor:{shape:"S8"},CreatedTimestamp:{type:"timestamp"},Status:{},Visibility:{},RecipientId:{}}},S16:{type:"map",key:{},value:{}},S1d:{type:"structure",members:{Id:{},Name:{},CreatorId:{},ParentFolderId:{},CreatedTimestamp:{type:"timestamp"},ModifiedTimestamp:{type:"timestamp"},ResourceState:{},Signature:{},Labels:{shape:"S1g"},Size:{type:"long"},LatestVersionSize:{type:"long"}}},S1g:{type:"list",member:{}},S1p:{type:"structure",members:{SubscriptionId:{},EndPoint:{},Protocol:{}}},S2d:{type:"structure",members:{Id:{},Username:{},GivenName:{},Surname:{},EmailAddress:{}}},S2g:{type:"list",member:{type:"structure",members:{Id:{},Name:{}}}},S2j:{type:"structure",members:{Type:{},Name:{},OriginalName:{},Id:{},VersionId:{},Owner:{shape:"S2d"},ParentId:{}}},S2u:{type:"structure",members:{Id:{},Name:{},ContentType:{},Size:{type:"long"},Signature:{},Status:{},CreatedTimestamp:{type:"timestamp"},ModifiedTimestamp:{type:"timestamp"},ContentCreatedTimestamp:{type:"timestamp"},ContentModifiedTimestamp:{type:"timestamp"},CreatorId:{},Thumbnail:{type:"map",key:{},value:{shape:"S2z"}},Source:{type:"map",key:{},value:{shape:"S2z"}}}},S2z:{type:"string",sensitive:!0},S37:{type:"list",member:{shape:"S1d"}},S38:{type:"list",member:{shape:"S39"}},S39:{type:"structure",members:{Id:{},CreatorId:{},ParentFolderId:{},CreatedTimestamp:{type:"timestamp"},ModifiedTimestamp:{type:"timestamp"},LatestVersionMetadata:{shape:"S2u"},ResourceState:{},Labels:{shape:"S1g"}}},S3b:{type:"string",sensitive:!0},S42:{type:"structure",members:{Components:{type:"list",member:{type:"structure",members:{Id:{},Name:{}}}}}}}}},{}],237:[function(e,t,r){t.exports={pagination:{DescribeDocumentVersions:{input_token:"Marker",limit_key:"Limit",output_token:"Marker",result_key:"DocumentVersions"},DescribeFolderContents:{input_token:"Marker",limit_key:"Limit",output_token:"Marker",result_key:["Folders","Documents"]},DescribeUsers:{input_token:"Marker",limit_key:"Limit",output_token:"Marker",result_key:"Users"}}}},{}],238:[function(e,t,r){t.exports={version:"2.0",metadata:{apiVersion:"2016-04-12",endpointPrefix:"xray",protocol:"rest-json",serviceFullName:"AWS X-Ray",serviceId:"XRay",signatureVersion:"v4",uid:"xray-2016-04-12"},operations:{BatchGetTraces:{http:{requestUri:"/Traces"},input:{type:"structure",required:["TraceIds"],members:{TraceIds:{shape:"S2"},NextToken:{}}},output:{type:"structure",members:{Traces:{type:"list",member:{type:"structure",members:{Id:{},Duration:{type:"double"},LimitExceeded:{type:"boolean"},Segments:{type:"list",member:{type:"structure",members:{Id:{},Document:{}}}}}}},UnprocessedTraceIds:{type:"list",member:{}},NextToken:{}}}},CreateGroup:{http:{requestUri:"/CreateGroup"},input:{type:"structure",required:["GroupName"],members:{GroupName:{},FilterExpression:{},InsightsConfiguration:{shape:"Si"},Tags:{shape:"Sj"}}},output:{type:"structure",members:{Group:{shape:"So"}}}},CreateSamplingRule:{http:{requestUri:"/CreateSamplingRule"},input:{type:"structure",required:["SamplingRule"],members:{SamplingRule:{shape:"Sq"},Tags:{shape:"Sj"}}},output:{type:"structure",members:{SamplingRuleRecord:{shape:"S16"}}}},DeleteGroup:{http:{requestUri:"/DeleteGroup"},input:{type:"structure",members:{GroupName:{},GroupARN:{}}},output:{type:"structure",members:{}}},DeleteSamplingRule:{http:{requestUri:"/DeleteSamplingRule"},input:{type:"structure",members:{RuleName:{},RuleARN:{}}},output:{type:"structure",members:{SamplingRuleRecord:{shape:"S16"}}}},GetEncryptionConfig:{http:{requestUri:"/EncryptionConfig"},input:{type:"structure",members:{}},output:{type:"structure",members:{EncryptionConfig:{shape:"S1f"}}}},GetGroup:{http:{requestUri:"/GetGroup"},input:{type:"structure",members:{GroupName:{},GroupARN:{}}},output:{type:"structure",members:{Group:{shape:"So"}}}},GetGroups:{http:{requestUri:"/Groups"},input:{type:"structure",members:{NextToken:{}}},output:{type:"structure",members:{Groups:{type:"list",member:{type:"structure",members:{GroupName:{},GroupARN:{},FilterExpression:{},InsightsConfiguration:{shape:"Si"}}}},NextToken:{}}}},GetInsight:{http:{requestUri:"/Insight"},input:{type:"structure",required:["InsightId"],members:{InsightId:{}}},output:{type:"structure",members:{Insight:{type:"structure",members:{InsightId:{},GroupARN:{},GroupName:{},RootCauseServiceId:{shape:"S1t"},Categories:{shape:"S1v"},State:{},StartTime:{type:"timestamp"},EndTime:{type:"timestamp"},Summary:{},ClientRequestImpactStatistics:{shape:"S1z"},RootCauseServiceRequestImpactStatistics:{shape:"S1z"},TopAnomalousServices:{shape:"S21"}}}}}},GetInsightEvents:{http:{requestUri:"/InsightEvents"},input:{type:"structure",required:["InsightId"],members:{InsightId:{},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{InsightEvents:{type:"list",member:{type:"structure",members:{Summary:{},EventTime:{type:"timestamp"},ClientRequestImpactStatistics:{shape:"S1z"},RootCauseServiceRequestImpactStatistics:{shape:"S1z"},TopAnomalousServices:{shape:"S21"}}}},NextToken:{}}}},GetInsightImpactGraph:{http:{requestUri:"/InsightImpactGraph"},input:{type:"structure",required:["InsightId","StartTime","EndTime"],members:{InsightId:{},StartTime:{type:"timestamp"},EndTime:{type:"timestamp"},NextToken:{}}},output:{type:"structure",members:{InsightId:{},StartTime:{type:"timestamp"},EndTime:{type:"timestamp"},ServiceGraphStartTime:{type:"timestamp"},ServiceGraphEndTime:{type:"timestamp"},Services:{type:"list",member:{type:"structure",members:{ReferenceId:{type:"integer"},Type:{},Name:{},Names:{shape:"S1u"},AccountId:{},Edges:{type:"list",member:{type:"structure",members:{ReferenceId:{type:"integer"}}}}}}},NextToken:{}}}},GetInsightSummaries:{http:{requestUri:"/InsightSummaries"},input:{type:"structure",required:["StartTime","EndTime"],members:{States:{type:"list",member:{}},GroupARN:{},GroupName:{},StartTime:{type:"timestamp"},EndTime:{type:"timestamp"},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{InsightSummaries:{type:"list",member:{type:"structure",members:{InsightId:{},GroupARN:{},GroupName:{},RootCauseServiceId:{shape:"S1t"},Categories:{shape:"S1v"},State:{},StartTime:{type:"timestamp"},EndTime:{type:"timestamp"},Summary:{},ClientRequestImpactStatistics:{shape:"S1z"},RootCauseServiceRequestImpactStatistics:{shape:"S1z"},TopAnomalousServices:{shape:"S21"},LastUpdateTime:{type:"timestamp"}}}},NextToken:{}}}},GetSamplingRules:{http:{requestUri:"/GetSamplingRules"},input:{type:"structure",members:{NextToken:{}}},output:{type:"structure",members:{SamplingRuleRecords:{type:"list",member:{shape:"S16"}},NextToken:{}}}},GetSamplingStatisticSummaries:{http:{requestUri:"/SamplingStatisticSummaries"},input:{type:"structure",members:{NextToken:{}}},output:{type:"structure",members:{SamplingStatisticSummaries:{type:"list",member:{type:"structure",members:{RuleName:{},Timestamp:{type:"timestamp"},RequestCount:{type:"integer"},BorrowCount:{type:"integer"},SampledCount:{type:"integer"}}}},NextToken:{}}}},GetSamplingTargets:{http:{requestUri:"/SamplingTargets"},input:{type:"structure",required:["SamplingStatisticsDocuments"],members:{SamplingStatisticsDocuments:{type:"list",member:{type:"structure",required:["RuleName","ClientID","Timestamp","RequestCount","SampledCount"],members:{RuleName:{},ClientID:{},Timestamp:{type:"timestamp"},RequestCount:{type:"integer"},SampledCount:{type:"integer"},BorrowCount:{type:"integer"}}}}}},output:{type:"structure",members:{SamplingTargetDocuments:{type:"list",member:{type:"structure",members:{RuleName:{},FixedRate:{type:"double"},ReservoirQuota:{type:"integer"},ReservoirQuotaTTL:{type:"timestamp"},Interval:{type:"integer"}}}},LastRuleModification:{type:"timestamp"},UnprocessedStatistics:{type:"list",member:{type:"structure",members:{RuleName:{},ErrorCode:{},Message:{}}}}}}},GetServiceGraph:{http:{requestUri:"/ServiceGraph"},input:{type:"structure",required:["StartTime","EndTime"],members:{StartTime:{type:"timestamp"},EndTime:{type:"timestamp"},GroupName:{},GroupARN:{},NextToken:{}}},output:{type:"structure",members:{StartTime:{type:"timestamp"},EndTime:{type:"timestamp"},Services:{shape:"S3a"},ContainsOldGroupVersions:{type:"boolean"},NextToken:{}}}},GetTimeSeriesServiceStatistics:{http:{requestUri:"/TimeSeriesServiceStatistics"},input:{type:"structure",required:["StartTime","EndTime"],members:{StartTime:{type:"timestamp"},EndTime:{type:"timestamp"},GroupName:{},GroupARN:{},EntitySelectorExpression:{},Period:{type:"integer"},ForecastStatistics:{type:"boolean"},NextToken:{}}},output:{type:"structure",members:{TimeSeriesServiceStatistics:{type:"list",member:{type:"structure",members:{Timestamp:{type:"timestamp"},EdgeSummaryStatistics:{shape:"S3e"},ServiceSummaryStatistics:{shape:"S3m"},ServiceForecastStatistics:{type:"structure",members:{FaultCountHigh:{type:"long"},FaultCountLow:{type:"long"}}},ResponseTimeHistogram:{shape:"S3h"}}}},ContainsOldGroupVersions:{type:"boolean"},NextToken:{}}}},GetTraceGraph:{http:{requestUri:"/TraceGraph"},input:{type:"structure",required:["TraceIds"],members:{TraceIds:{shape:"S2"},NextToken:{}}},output:{type:"structure",members:{Services:{shape:"S3a"},NextToken:{}}}},GetTraceSummaries:{http:{requestUri:"/TraceSummaries"},input:{type:"structure",required:["StartTime","EndTime"],members:{StartTime:{type:"timestamp"},EndTime:{type:"timestamp"},TimeRangeType:{},Sampling:{type:"boolean"},SamplingStrategy:{type:"structure",members:{Name:{},Value:{type:"double"}}},FilterExpression:{},NextToken:{}}},output:{type:"structure",members:{TraceSummaries:{type:"list",member:{type:"structure",members:{Id:{},Duration:{type:"double"},ResponseTime:{type:"double"},HasFault:{type:"boolean"},HasError:{type:"boolean"},HasThrottle:{type:"boolean"},IsPartial:{type:"boolean"},Http:{type:"structure",members:{HttpURL:{},HttpStatus:{type:"integer"},HttpMethod:{},UserAgent:{},ClientIp:{}}},Annotations:{type:"map",key:{},value:{type:"list",member:{type:"structure",members:{AnnotationValue:{type:"structure",members:{NumberValue:{type:"double"},BooleanValue:{type:"boolean"},StringValue:{}}},ServiceIds:{shape:"S49"}}}}},Users:{type:"list",member:{type:"structure",members:{UserName:{},ServiceIds:{shape:"S49"}}}},ServiceIds:{shape:"S49"},ResourceARNs:{type:"list",member:{type:"structure",members:{ARN:{}}}},InstanceIds:{type:"list",member:{type:"structure",members:{Id:{}}}},AvailabilityZones:{type:"list",member:{type:"structure",members:{Name:{}}}},EntryPoint:{shape:"S1t"},FaultRootCauses:{type:"list",member:{type:"structure",members:{Services:{type:"list",member:{type:"structure",members:{Name:{},Names:{shape:"S1u"},Type:{},AccountId:{},EntityPath:{type:"list",member:{type:"structure",members:{Name:{},Exceptions:{shape:"S4o"},Remote:{type:"boolean"}}}},Inferred:{type:"boolean"}}}},ClientImpacting:{type:"boolean"}}}},ErrorRootCauses:{type:"list",member:{type:"structure",members:{Services:{type:"list",member:{type:"structure",members:{Name:{},Names:{shape:"S1u"},Type:{},AccountId:{},EntityPath:{type:"list",member:{type:"structure",members:{Name:{},Exceptions:{shape:"S4o"},Remote:{type:"boolean"}}}},Inferred:{type:"boolean"}}}},ClientImpacting:{type:"boolean"}}}},ResponseTimeRootCauses:{type:"list",member:{type:"structure",members:{Services:{type:"list",member:{type:"structure",members:{Name:{},Names:{shape:"S1u"},Type:{},AccountId:{},EntityPath:{type:"list",member:{type:"structure",members:{Name:{},Coverage:{type:"double"},Remote:{type:"boolean"}}}},Inferred:{type:"boolean"}}}},ClientImpacting:{type:"boolean"}}}},Revision:{type:"integer"},MatchedEventTime:{type:"timestamp"}}}},ApproximateTime:{type:"timestamp"},TracesProcessedCount:{type:"long"},NextToken:{}}}},ListTagsForResource:{http:{requestUri:"/ListTagsForResource"},input:{type:"structure",required:["ResourceARN"],members:{ResourceARN:{},NextToken:{}}},output:{type:"structure",members:{Tags:{shape:"Sj"},NextToken:{}}}},PutEncryptionConfig:{http:{requestUri:"/PutEncryptionConfig"},input:{type:"structure",required:["Type"],members:{KeyId:{},Type:{}}},output:{type:"structure",members:{EncryptionConfig:{shape:"S1f"}}}},PutTelemetryRecords:{http:{requestUri:"/TelemetryRecords"},input:{type:"structure",required:["TelemetryRecords"],members:{TelemetryRecords:{type:"list",member:{type:"structure",required:["Timestamp"],members:{Timestamp:{type:"timestamp"},SegmentsReceivedCount:{type:"integer"},SegmentsSentCount:{type:"integer"},SegmentsSpilloverCount:{type:"integer"},SegmentsRejectedCount:{type:"integer"},BackendConnectionErrors:{type:"structure",members:{TimeoutCount:{type:"integer"},ConnectionRefusedCount:{type:"integer"},HTTPCode4XXCount:{type:"integer"},HTTPCode5XXCount:{type:"integer"},UnknownHostCount:{type:"integer"},OtherCount:{type:"integer"}}}}}},EC2InstanceId:{},Hostname:{},ResourceARN:{}}},output:{type:"structure",members:{}}},PutTraceSegments:{http:{requestUri:"/TraceSegments"},input:{type:"structure",required:["TraceSegmentDocuments"],members:{TraceSegmentDocuments:{type:"list",member:{}}}},output:{type:"structure",members:{UnprocessedTraceSegments:{type:"list",member:{type:"structure",members:{Id:{},ErrorCode:{},Message:{}}}}}}},TagResource:{http:{requestUri:"/TagResource"},input:{type:"structure",required:["ResourceARN","Tags"],members:{ResourceARN:{},Tags:{shape:"Sj"}}},output:{type:"structure",members:{}}},UntagResource:{http:{requestUri:"/UntagResource"},input:{type:"structure",required:["ResourceARN","TagKeys"],members:{ResourceARN:{},TagKeys:{type:"list",member:{}}}},output:{type:"structure",members:{}}},UpdateGroup:{http:{requestUri:"/UpdateGroup"},input:{type:"structure",members:{GroupName:{},GroupARN:{},FilterExpression:{},InsightsConfiguration:{shape:"Si"}}},output:{type:"structure",members:{Group:{shape:"So"}}}},UpdateSamplingRule:{http:{requestUri:"/UpdateSamplingRule"},input:{type:"structure",required:["SamplingRuleUpdate"],members:{SamplingRuleUpdate:{type:"structure",members:{RuleName:{},RuleARN:{},ResourceARN:{},Priority:{type:"integer"},FixedRate:{type:"double"},ReservoirSize:{type:"integer"},Host:{},ServiceName:{},ServiceType:{},HTTPMethod:{},URLPath:{},Attributes:{shape:"S12"}}}}},output:{type:"structure",members:{SamplingRuleRecord:{shape:"S16"}}}}},shapes:{S2:{type:"list",member:{}},Si:{type:"structure",members:{InsightsEnabled:{type:"boolean"},NotificationsEnabled:{type:"boolean"}}},Sj:{type:"list",member:{type:"structure",required:["Key","Value"],members:{Key:{},Value:{}}}},So:{type:"structure",members:{GroupName:{},GroupARN:{},FilterExpression:{},InsightsConfiguration:{shape:"Si"}}},Sq:{type:"structure",required:["ResourceARN","Priority","FixedRate","ReservoirSize","ServiceName","ServiceType","Host","HTTPMethod","URLPath","Version"],members:{RuleName:{},RuleARN:{},ResourceARN:{},Priority:{type:"integer"},FixedRate:{type:"double"},ReservoirSize:{type:"integer"},ServiceName:{},ServiceType:{},Host:{},HTTPMethod:{},URLPath:{},Version:{type:"integer"},Attributes:{shape:"S12"}}},S12:{type:"map",key:{},value:{}},S16:{type:"structure",members:{SamplingRule:{shape:"Sq"},CreatedAt:{type:"timestamp"},ModifiedAt:{type:"timestamp"}}},S1f:{type:"structure",members:{KeyId:{},Status:{},Type:{}}},S1t:{type:"structure",members:{Name:{},Names:{shape:"S1u"},AccountId:{},Type:{}}},S1u:{type:"list",member:{}},S1v:{type:"list",member:{}},S1z:{type:"structure",members:{FaultCount:{type:"long"},OkCount:{type:"long"},TotalCount:{type:"long"}}},S21:{type:"list",member:{type:"structure",members:{ServiceId:{shape:"S1t"}}}},S3a:{type:"list",member:{type:"structure",members:{ReferenceId:{type:"integer"},Name:{},Names:{shape:"S1u"},Root:{type:"boolean"},AccountId:{},Type:{},State:{},StartTime:{type:"timestamp"},EndTime:{type:"timestamp"},Edges:{type:"list",member:{type:"structure",members:{ReferenceId:{type:"integer"},StartTime:{type:"timestamp"},EndTime:{type:"timestamp"},SummaryStatistics:{shape:"S3e"},ResponseTimeHistogram:{shape:"S3h"},Aliases:{type:"list",member:{type:"structure",members:{Name:{},Names:{type:"list",member:{}},Type:{}}}}}}},SummaryStatistics:{shape:"S3m"},DurationHistogram:{shape:"S3h"},ResponseTimeHistogram:{shape:"S3h"}}}},S3e:{type:"structure",members:{OkCount:{type:"long"},ErrorStatistics:{shape:"S3f"},FaultStatistics:{shape:"S3g"},TotalCount:{type:"long"},
|
|
81
81
|
TotalResponseTime:{type:"double"}}},S3f:{type:"structure",members:{ThrottleCount:{type:"long"},OtherCount:{type:"long"},TotalCount:{type:"long"}}},S3g:{type:"structure",members:{OtherCount:{type:"long"},TotalCount:{type:"long"}}},S3h:{type:"list",member:{type:"structure",members:{Value:{type:"double"},Count:{type:"integer"}}}},S3m:{type:"structure",members:{OkCount:{type:"long"},ErrorStatistics:{shape:"S3f"},FaultStatistics:{shape:"S3g"},TotalCount:{type:"long"},TotalResponseTime:{type:"double"}}},S49:{type:"list",member:{shape:"S1t"}},S4o:{type:"list",member:{type:"structure",members:{Name:{},Message:{}}}}}}},{}],239:[function(e,t,r){t.exports={pagination:{BatchGetTraces:{input_token:"NextToken",output_token:"NextToken",result_key:"Traces"},GetGroups:{input_token:"NextToken",output_token:"NextToken",result_key:"Groups"},GetInsightEvents:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken"},GetInsightSummaries:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken"},GetSamplingRules:{input_token:"NextToken",output_token:"NextToken",result_key:"SamplingRuleRecords"},GetSamplingStatisticSummaries:{input_token:"NextToken",output_token:"NextToken",result_key:"SamplingStatisticSummaries"},GetServiceGraph:{input_token:"NextToken",output_token:"NextToken",result_key:"Services"},GetTimeSeriesServiceStatistics:{input_token:"NextToken",output_token:"NextToken",result_key:"TimeSeriesServiceStatistics"},GetTraceGraph:{input_token:"NextToken",output_token:"NextToken",result_key:"Services"},GetTraceSummaries:{input_token:"NextToken",output_token:"NextToken",result_key:"TraceSummaries"}}}},{}],240:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.acm={},i.ACM=a.defineService("acm",["2015-12-08"]),Object.defineProperty(s.services.acm,"2015-12-08",{get:function(){var t=e("../apis/acm-2015-12-08.min.json");return t.paginators=e("../apis/acm-2015-12-08.paginators.json").pagination,t.waiters=e("../apis/acm-2015-12-08.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=i.ACM},{"../apis/acm-2015-12-08.min.json":1,"../apis/acm-2015-12-08.paginators.json":2,"../apis/acm-2015-12-08.waiters2.json":3,"../lib/core":342,"../lib/node_loader":338}],241:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.apigateway={},i.APIGateway=a.defineService("apigateway",["2015-07-09"]),e("../lib/services/apigateway"),Object.defineProperty(s.services.apigateway,"2015-07-09",{get:function(){var t=e("../apis/apigateway-2015-07-09.min.json");return t.paginators=e("../apis/apigateway-2015-07-09.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.APIGateway},{"../apis/apigateway-2015-07-09.min.json":4,"../apis/apigateway-2015-07-09.paginators.json":5,"../lib/core":342,"../lib/node_loader":338,"../lib/services/apigateway":393}],242:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.applicationautoscaling={},i.ApplicationAutoScaling=a.defineService("applicationautoscaling",["2016-02-06"]),Object.defineProperty(s.services.applicationautoscaling,"2016-02-06",{get:function(){var t=e("../apis/application-autoscaling-2016-02-06.min.json");return t.paginators=e("../apis/application-autoscaling-2016-02-06.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.ApplicationAutoScaling},{"../apis/application-autoscaling-2016-02-06.min.json":6,"../apis/application-autoscaling-2016-02-06.paginators.json":7,"../lib/core":342,"../lib/node_loader":338}],243:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.athena={},i.Athena=a.defineService("athena",["2017-05-18"]),Object.defineProperty(s.services.athena,"2017-05-18",{get:function(){var t=e("../apis/athena-2017-05-18.min.json");return t.paginators=e("../apis/athena-2017-05-18.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.Athena},{"../apis/athena-2017-05-18.min.json":8,"../apis/athena-2017-05-18.paginators.json":9,"../lib/core":342,"../lib/node_loader":338}],244:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.autoscaling={},i.AutoScaling=a.defineService("autoscaling",["2011-01-01"]),Object.defineProperty(s.services.autoscaling,"2011-01-01",{get:function(){var t=e("../apis/autoscaling-2011-01-01.min.json");return t.paginators=e("../apis/autoscaling-2011-01-01.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.AutoScaling},{"../apis/autoscaling-2011-01-01.min.json":10,"../apis/autoscaling-2011-01-01.paginators.json":11,"../lib/core":342,"../lib/node_loader":338}],245:[function(e,t,r){e("../lib/node_loader"),t.exports={ACM:e("./acm"),APIGateway:e("./apigateway"),ApplicationAutoScaling:e("./applicationautoscaling"),AutoScaling:e("./autoscaling"),CloudFormation:e("./cloudformation"),CloudFront:e("./cloudfront"),CloudHSM:e("./cloudhsm"),CloudTrail:e("./cloudtrail"),CloudWatch:e("./cloudwatch"),CloudWatchEvents:e("./cloudwatchevents"),CloudWatchLogs:e("./cloudwatchlogs"),CodeBuild:e("./codebuild"),CodeCommit:e("./codecommit"),CodeDeploy:e("./codedeploy"),CodePipeline:e("./codepipeline"),CognitoIdentity:e("./cognitoidentity"),CognitoIdentityServiceProvider:e("./cognitoidentityserviceprovider"),CognitoSync:e("./cognitosync"),ConfigService:e("./configservice"),CUR:e("./cur"),DeviceFarm:e("./devicefarm"),DirectConnect:e("./directconnect"),DynamoDB:e("./dynamodb"),DynamoDBStreams:e("./dynamodbstreams"),EC2:e("./ec2"),ECR:e("./ecr"),ECS:e("./ecs"),EFS:e("./efs"),ElastiCache:e("./elasticache"),ElasticBeanstalk:e("./elasticbeanstalk"),ELB:e("./elb"),ELBv2:e("./elbv2"),EMR:e("./emr"),ElasticTranscoder:e("./elastictranscoder"),Firehose:e("./firehose"),GameLift:e("./gamelift"),IAM:e("./iam"),Inspector:e("./inspector"),Iot:e("./iot"),IotData:e("./iotdata"),Kinesis:e("./kinesis"),KMS:e("./kms"),Lambda:e("./lambda"),LexRuntime:e("./lexruntime"),MachineLearning:e("./machinelearning"),MarketplaceCommerceAnalytics:e("./marketplacecommerceanalytics"),MTurk:e("./mturk"),MobileAnalytics:e("./mobileanalytics"),OpsWorks:e("./opsworks"),Polly:e("./polly"),RDS:e("./rds"),Redshift:e("./redshift"),Rekognition:e("./rekognition"),Route53:e("./route53"),Route53Domains:e("./route53domains"),S3:e("./s3"),ServiceCatalog:e("./servicecatalog"),SES:e("./ses"),SNS:e("./sns"),SQS:e("./sqs"),SSM:e("./ssm"),StorageGateway:e("./storagegateway"),STS:e("./sts"),XRay:e("./xray"),WAF:e("./waf"),WorkDocs:e("./workdocs"),LexModelBuildingService:e("./lexmodelbuildingservice"),Athena:e("./athena"),CloudHSMV2:e("./cloudhsmv2"),Pricing:e("./pricing"),CostExplorer:e("./costexplorer"),MediaStoreData:e("./mediastoredata"),Comprehend:e("./comprehend"),KinesisVideoArchivedMedia:e("./kinesisvideoarchivedmedia"),KinesisVideoMedia:e("./kinesisvideomedia"),KinesisVideo:e("./kinesisvideo"),Translate:e("./translate"),ResourceGroups:e("./resourcegroups"),Connect:e("./connect"),SecretsManager:e("./secretsmanager"),IoTAnalytics:e("./iotanalytics"),ComprehendMedical:e("./comprehendmedical"),Personalize:e("./personalize"),PersonalizeEvents:e("./personalizeevents"),PersonalizeRuntime:e("./personalizeruntime"),ForecastService:e("./forecastservice"),ForecastQueryService:e("./forecastqueryservice"),KinesisVideoSignalingChannels:e("./kinesisvideosignalingchannels"),Location:e("./location"),LexRuntimeV2:e("./lexruntimev2")}},{"../lib/node_loader":338,"./acm":240,"./apigateway":241,"./applicationautoscaling":242,"./athena":243,"./autoscaling":244,"./cloudformation":246,"./cloudfront":247,"./cloudhsm":248,"./cloudhsmv2":249,"./cloudtrail":250,"./cloudwatch":251,"./cloudwatchevents":252,"./cloudwatchlogs":253,"./codebuild":254,"./codecommit":255,"./codedeploy":256,"./codepipeline":257,"./cognitoidentity":258,"./cognitoidentityserviceprovider":259,"./cognitosync":260,"./comprehend":261,"./comprehendmedical":262,"./configservice":263,"./connect":264,"./costexplorer":265,"./cur":266,"./devicefarm":267,"./directconnect":268,"./dynamodb":269,"./dynamodbstreams":270,"./ec2":271,"./ecr":272,"./ecs":273,"./efs":274,"./elasticache":275,"./elasticbeanstalk":276,"./elastictranscoder":277,"./elb":278,"./elbv2":279,"./emr":280,"./firehose":281,"./forecastqueryservice":282,"./forecastservice":283,"./gamelift":284,"./iam":285,"./inspector":286,"./iot":287,"./iotanalytics":288,"./iotdata":289,"./kinesis":290,"./kinesisvideo":291,"./kinesisvideoarchivedmedia":292,"./kinesisvideomedia":293,"./kinesisvideosignalingchannels":294,"./kms":295,"./lambda":296,"./lexmodelbuildingservice":297,"./lexruntime":298,"./lexruntimev2":299,"./location":300,"./machinelearning":301,"./marketplacecommerceanalytics":302,"./mediastoredata":303,"./mobileanalytics":304,"./mturk":305,"./opsworks":306,"./personalize":307,"./personalizeevents":308,"./personalizeruntime":309,"./polly":310,"./pricing":311,"./rds":312,"./redshift":313,"./rekognition":314,"./resourcegroups":315,"./route53":316,"./route53domains":317,"./s3":318,"./secretsmanager":319,"./servicecatalog":320,"./ses":321,"./sns":322,"./sqs":323,"./ssm":324,"./storagegateway":325,"./sts":326,"./translate":327,"./waf":328,"./workdocs":329,"./xray":330}],246:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.cloudformation={},i.CloudFormation=a.defineService("cloudformation",["2010-05-15"]),Object.defineProperty(s.services.cloudformation,"2010-05-15",{get:function(){var t=e("../apis/cloudformation-2010-05-15.min.json");return t.paginators=e("../apis/cloudformation-2010-05-15.paginators.json").pagination,t.waiters=e("../apis/cloudformation-2010-05-15.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=i.CloudFormation},{"../apis/cloudformation-2010-05-15.min.json":14,"../apis/cloudformation-2010-05-15.paginators.json":15,"../apis/cloudformation-2010-05-15.waiters2.json":16,"../lib/core":342,"../lib/node_loader":338}],247:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.cloudfront={},i.CloudFront=a.defineService("cloudfront",["2013-05-12*","2013-11-11*","2014-05-31*","2014-10-21*","2014-11-06*","2015-04-17*","2015-07-27*","2015-09-17*","2016-01-13*","2016-01-28*","2016-08-01*","2016-08-20*","2016-09-07*","2016-09-29*","2016-11-25","2016-11-25*","2017-03-25","2017-03-25*","2017-10-30","2017-10-30*","2018-06-18","2018-06-18*","2018-11-05","2018-11-05*","2019-03-26","2019-03-26*","2020-05-31"]),e("../lib/services/cloudfront"),Object.defineProperty(s.services.cloudfront,"2016-11-25",{get:function(){var t=e("../apis/cloudfront-2016-11-25.min.json");return t.paginators=e("../apis/cloudfront-2016-11-25.paginators.json").pagination,t.waiters=e("../apis/cloudfront-2016-11-25.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),Object.defineProperty(s.services.cloudfront,"2017-03-25",{get:function(){var t=e("../apis/cloudfront-2017-03-25.min.json");return t.paginators=e("../apis/cloudfront-2017-03-25.paginators.json").pagination,t.waiters=e("../apis/cloudfront-2017-03-25.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),Object.defineProperty(s.services.cloudfront,"2017-10-30",{get:function(){var t=e("../apis/cloudfront-2017-10-30.min.json");return t.paginators=e("../apis/cloudfront-2017-10-30.paginators.json").pagination,t.waiters=e("../apis/cloudfront-2017-10-30.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),Object.defineProperty(s.services.cloudfront,"2018-06-18",{get:function(){var t=e("../apis/cloudfront-2018-06-18.min.json");return t.paginators=e("../apis/cloudfront-2018-06-18.paginators.json").pagination,t.waiters=e("../apis/cloudfront-2018-06-18.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),Object.defineProperty(s.services.cloudfront,"2018-11-05",{get:function(){var t=e("../apis/cloudfront-2018-11-05.min.json");return t.paginators=e("../apis/cloudfront-2018-11-05.paginators.json").pagination,t.waiters=e("../apis/cloudfront-2018-11-05.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),Object.defineProperty(s.services.cloudfront,"2019-03-26",{get:function(){var t=e("../apis/cloudfront-2019-03-26.min.json");return t.paginators=e("../apis/cloudfront-2019-03-26.paginators.json").pagination,t.waiters=e("../apis/cloudfront-2019-03-26.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),Object.defineProperty(s.services.cloudfront,"2020-05-31",{get:function(){var t=e("../apis/cloudfront-2020-05-31.min.json");return t.paginators=e("../apis/cloudfront-2020-05-31.paginators.json").pagination,t.waiters=e("../apis/cloudfront-2020-05-31.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=i.CloudFront},{"../apis/cloudfront-2016-11-25.min.json":17,"../apis/cloudfront-2016-11-25.paginators.json":18,"../apis/cloudfront-2016-11-25.waiters2.json":19,"../apis/cloudfront-2017-03-25.min.json":20,"../apis/cloudfront-2017-03-25.paginators.json":21,"../apis/cloudfront-2017-03-25.waiters2.json":22,"../apis/cloudfront-2017-10-30.min.json":23,"../apis/cloudfront-2017-10-30.paginators.json":24,"../apis/cloudfront-2017-10-30.waiters2.json":25,"../apis/cloudfront-2018-06-18.min.json":26,"../apis/cloudfront-2018-06-18.paginators.json":27,"../apis/cloudfront-2018-06-18.waiters2.json":28,"../apis/cloudfront-2018-11-05.min.json":29,"../apis/cloudfront-2018-11-05.paginators.json":30,"../apis/cloudfront-2018-11-05.waiters2.json":31,"../apis/cloudfront-2019-03-26.min.json":32,"../apis/cloudfront-2019-03-26.paginators.json":33,"../apis/cloudfront-2019-03-26.waiters2.json":34,"../apis/cloudfront-2020-05-31.min.json":35,"../apis/cloudfront-2020-05-31.paginators.json":36,"../apis/cloudfront-2020-05-31.waiters2.json":37,"../lib/core":342,"../lib/node_loader":338,"../lib/services/cloudfront":394}],248:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.cloudhsm={},i.CloudHSM=a.defineService("cloudhsm",["2014-05-30"]),Object.defineProperty(s.services.cloudhsm,"2014-05-30",{get:function(){var t=e("../apis/cloudhsm-2014-05-30.min.json");return t.paginators=e("../apis/cloudhsm-2014-05-30.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.CloudHSM},{"../apis/cloudhsm-2014-05-30.min.json":38,"../apis/cloudhsm-2014-05-30.paginators.json":39,"../lib/core":342,"../lib/node_loader":338}],249:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.cloudhsmv2={},i.CloudHSMV2=a.defineService("cloudhsmv2",["2017-04-28"]),Object.defineProperty(s.services.cloudhsmv2,"2017-04-28",{get:function(){var t=e("../apis/cloudhsmv2-2017-04-28.min.json");return t.paginators=e("../apis/cloudhsmv2-2017-04-28.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.CloudHSMV2},{"../apis/cloudhsmv2-2017-04-28.min.json":40,"../apis/cloudhsmv2-2017-04-28.paginators.json":41,"../lib/core":342,"../lib/node_loader":338}],250:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.cloudtrail={},i.CloudTrail=a.defineService("cloudtrail",["2013-11-01"]),Object.defineProperty(s.services.cloudtrail,"2013-11-01",{get:function(){var t=e("../apis/cloudtrail-2013-11-01.min.json");return t.paginators=e("../apis/cloudtrail-2013-11-01.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.CloudTrail},{"../apis/cloudtrail-2013-11-01.min.json":42,"../apis/cloudtrail-2013-11-01.paginators.json":43,"../lib/core":342,"../lib/node_loader":338}],251:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.cloudwatch={},i.CloudWatch=a.defineService("cloudwatch",["2010-08-01"]),Object.defineProperty(s.services.cloudwatch,"2010-08-01",{get:function(){var t=e("../apis/monitoring-2010-08-01.min.json");return t.paginators=e("../apis/monitoring-2010-08-01.paginators.json").pagination,t.waiters=e("../apis/monitoring-2010-08-01.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=i.CloudWatch},{"../apis/monitoring-2010-08-01.min.json":165,"../apis/monitoring-2010-08-01.paginators.json":166,"../apis/monitoring-2010-08-01.waiters2.json":167,"../lib/core":342,"../lib/node_loader":338}],252:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.cloudwatchevents={},i.CloudWatchEvents=a.defineService("cloudwatchevents",["2014-02-03*","2015-10-07"]),Object.defineProperty(s.services.cloudwatchevents,"2015-10-07",{get:function(){var t=e("../apis/events-2015-10-07.min.json");return t.paginators=e("../apis/events-2015-10-07.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.CloudWatchEvents},{"../apis/events-2015-10-07.min.json":111,"../apis/events-2015-10-07.paginators.json":112,"../lib/core":342,"../lib/node_loader":338}],253:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.cloudwatchlogs={},i.CloudWatchLogs=a.defineService("cloudwatchlogs",["2014-03-28"]),Object.defineProperty(s.services.cloudwatchlogs,"2014-03-28",{get:function(){var t=e("../apis/logs-2014-03-28.min.json");return t.paginators=e("../apis/logs-2014-03-28.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.CloudWatchLogs},{"../apis/logs-2014-03-28.min.json":154,"../apis/logs-2014-03-28.paginators.json":155,"../lib/core":342,"../lib/node_loader":338}],254:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.codebuild={},i.CodeBuild=a.defineService("codebuild",["2016-10-06"]),Object.defineProperty(s.services.codebuild,"2016-10-06",{get:function(){var t=e("../apis/codebuild-2016-10-06.min.json");return t.paginators=e("../apis/codebuild-2016-10-06.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.CodeBuild},{"../apis/codebuild-2016-10-06.min.json":44,"../apis/codebuild-2016-10-06.paginators.json":45,"../lib/core":342,"../lib/node_loader":338}],255:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.codecommit={},i.CodeCommit=a.defineService("codecommit",["2015-04-13"]),Object.defineProperty(s.services.codecommit,"2015-04-13",{get:function(){var t=e("../apis/codecommit-2015-04-13.min.json");return t.paginators=e("../apis/codecommit-2015-04-13.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.CodeCommit},{"../apis/codecommit-2015-04-13.min.json":46,"../apis/codecommit-2015-04-13.paginators.json":47,"../lib/core":342,"../lib/node_loader":338}],256:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.codedeploy={},i.CodeDeploy=a.defineService("codedeploy",["2014-10-06"]),Object.defineProperty(s.services.codedeploy,"2014-10-06",{get:function(){var t=e("../apis/codedeploy-2014-10-06.min.json");return t.paginators=e("../apis/codedeploy-2014-10-06.paginators.json").pagination,t.waiters=e("../apis/codedeploy-2014-10-06.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=i.CodeDeploy},{"../apis/codedeploy-2014-10-06.min.json":48,"../apis/codedeploy-2014-10-06.paginators.json":49,"../apis/codedeploy-2014-10-06.waiters2.json":50,"../lib/core":342,"../lib/node_loader":338}],257:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.codepipeline={},i.CodePipeline=a.defineService("codepipeline",["2015-07-09"]),Object.defineProperty(s.services.codepipeline,"2015-07-09",{get:function(){var t=e("../apis/codepipeline-2015-07-09.min.json");return t.paginators=e("../apis/codepipeline-2015-07-09.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.CodePipeline},{"../apis/codepipeline-2015-07-09.min.json":51,"../apis/codepipeline-2015-07-09.paginators.json":52,"../lib/core":342,"../lib/node_loader":338}],258:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.cognitoidentity={},i.CognitoIdentity=a.defineService("cognitoidentity",["2014-06-30"]),Object.defineProperty(s.services.cognitoidentity,"2014-06-30",{get:function(){var t=e("../apis/cognito-identity-2014-06-30.min.json");return t.paginators=e("../apis/cognito-identity-2014-06-30.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.CognitoIdentity},{"../apis/cognito-identity-2014-06-30.min.json":53,"../apis/cognito-identity-2014-06-30.paginators.json":54,"../lib/core":342,"../lib/node_loader":338}],259:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.cognitoidentityserviceprovider={},i.CognitoIdentityServiceProvider=a.defineService("cognitoidentityserviceprovider",["2016-04-18"]),Object.defineProperty(s.services.cognitoidentityserviceprovider,"2016-04-18",{get:function(){var t=e("../apis/cognito-idp-2016-04-18.min.json");return t.paginators=e("../apis/cognito-idp-2016-04-18.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.CognitoIdentityServiceProvider},{"../apis/cognito-idp-2016-04-18.min.json":55,"../apis/cognito-idp-2016-04-18.paginators.json":56,"../lib/core":342,"../lib/node_loader":338}],260:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.cognitosync={},i.CognitoSync=a.defineService("cognitosync",["2014-06-30"]),Object.defineProperty(s.services.cognitosync,"2014-06-30",{get:function(){var t=e("../apis/cognito-sync-2014-06-30.min.json");return t.paginators=e("../apis/cognito-sync-2014-06-30.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.CognitoSync},{"../apis/cognito-sync-2014-06-30.min.json":57,"../apis/cognito-sync-2014-06-30.paginators.json":58,"../lib/core":342,"../lib/node_loader":338}],261:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.comprehend={},i.Comprehend=a.defineService("comprehend",["2017-11-27"]),Object.defineProperty(s.services.comprehend,"2017-11-27",{get:function(){var t=e("../apis/comprehend-2017-11-27.min.json");return t.paginators=e("../apis/comprehend-2017-11-27.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.Comprehend},{"../apis/comprehend-2017-11-27.min.json":59,"../apis/comprehend-2017-11-27.paginators.json":60,"../lib/core":342,"../lib/node_loader":338}],262:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.comprehendmedical={},i.ComprehendMedical=a.defineService("comprehendmedical",["2018-10-30"]),Object.defineProperty(s.services.comprehendmedical,"2018-10-30",{get:function(){var t=e("../apis/comprehendmedical-2018-10-30.min.json");return t.paginators=e("../apis/comprehendmedical-2018-10-30.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.ComprehendMedical},{"../apis/comprehendmedical-2018-10-30.min.json":61,"../apis/comprehendmedical-2018-10-30.paginators.json":62,"../lib/core":342,"../lib/node_loader":338}],263:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.configservice={},i.ConfigService=a.defineService("configservice",["2014-11-12"]),Object.defineProperty(s.services.configservice,"2014-11-12",{get:function(){var t=e("../apis/config-2014-11-12.min.json");return t.paginators=e("../apis/config-2014-11-12.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.ConfigService},{"../apis/config-2014-11-12.min.json":63,"../apis/config-2014-11-12.paginators.json":64,"../lib/core":342,"../lib/node_loader":338}],264:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.connect={},i.Connect=a.defineService("connect",["2017-08-08"]),Object.defineProperty(s.services.connect,"2017-08-08",{get:function(){var t=e("../apis/connect-2017-08-08.min.json");return t.paginators=e("../apis/connect-2017-08-08.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.Connect},{"../apis/connect-2017-08-08.min.json":65,"../apis/connect-2017-08-08.paginators.json":66,"../lib/core":342,"../lib/node_loader":338}],265:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.costexplorer={},i.CostExplorer=a.defineService("costexplorer",["2017-10-25"]),Object.defineProperty(s.services.costexplorer,"2017-10-25",{get:function(){var t=e("../apis/ce-2017-10-25.min.json");return t.paginators=e("../apis/ce-2017-10-25.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.CostExplorer},{"../apis/ce-2017-10-25.min.json":12,"../apis/ce-2017-10-25.paginators.json":13,"../lib/core":342,"../lib/node_loader":338}],266:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.cur={},i.CUR=a.defineService("cur",["2017-01-06"]),Object.defineProperty(s.services.cur,"2017-01-06",{get:function(){var t=e("../apis/cur-2017-01-06.min.json");return t.paginators=e("../apis/cur-2017-01-06.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.CUR},{"../apis/cur-2017-01-06.min.json":67,"../apis/cur-2017-01-06.paginators.json":68,"../lib/core":342,"../lib/node_loader":338}],267:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.devicefarm={},i.DeviceFarm=a.defineService("devicefarm",["2015-06-23"]),Object.defineProperty(s.services.devicefarm,"2015-06-23",{get:function(){var t=e("../apis/devicefarm-2015-06-23.min.json");return t.paginators=e("../apis/devicefarm-2015-06-23.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.DeviceFarm},{"../apis/devicefarm-2015-06-23.min.json":69,"../apis/devicefarm-2015-06-23.paginators.json":70,"../lib/core":342,"../lib/node_loader":338}],268:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.directconnect={},i.DirectConnect=a.defineService("directconnect",["2012-10-25"]),Object.defineProperty(s.services.directconnect,"2012-10-25",{get:function(){var t=e("../apis/directconnect-2012-10-25.min.json");return t.paginators=e("../apis/directconnect-2012-10-25.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.DirectConnect},{"../apis/directconnect-2012-10-25.min.json":71,"../apis/directconnect-2012-10-25.paginators.json":72,"../lib/core":342,"../lib/node_loader":338}],269:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.dynamodb={},i.DynamoDB=a.defineService("dynamodb",["2011-12-05","2012-08-10"]),e("../lib/services/dynamodb"),Object.defineProperty(s.services.dynamodb,"2011-12-05",{get:function(){var t=e("../apis/dynamodb-2011-12-05.min.json");return t.paginators=e("../apis/dynamodb-2011-12-05.paginators.json").pagination,t.waiters=e("../apis/dynamodb-2011-12-05.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),Object.defineProperty(s.services.dynamodb,"2012-08-10",{get:function(){var t=e("../apis/dynamodb-2012-08-10.min.json");return t.paginators=e("../apis/dynamodb-2012-08-10.paginators.json").pagination,t.waiters=e("../apis/dynamodb-2012-08-10.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=i.DynamoDB},{"../apis/dynamodb-2011-12-05.min.json":73,"../apis/dynamodb-2011-12-05.paginators.json":74,"../apis/dynamodb-2011-12-05.waiters2.json":75,"../apis/dynamodb-2012-08-10.min.json":76,"../apis/dynamodb-2012-08-10.paginators.json":77,"../apis/dynamodb-2012-08-10.waiters2.json":78,"../lib/core":342,"../lib/node_loader":338,"../lib/services/dynamodb":395}],270:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.dynamodbstreams={},i.DynamoDBStreams=a.defineService("dynamodbstreams",["2012-08-10"]),Object.defineProperty(s.services.dynamodbstreams,"2012-08-10",{get:function(){var t=e("../apis/streams.dynamodb-2012-08-10.min.json");return t.paginators=e("../apis/streams.dynamodb-2012-08-10.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.DynamoDBStreams},{"../apis/streams.dynamodb-2012-08-10.min.json":228,"../apis/streams.dynamodb-2012-08-10.paginators.json":229,"../lib/core":342,"../lib/node_loader":338}],271:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.ec2={},i.EC2=a.defineService("ec2",["2013-06-15*","2013-10-15*","2014-02-01*","2014-05-01*","2014-06-15*","2014-09-01*","2014-10-01*","2015-03-01*","2015-04-15*","2015-10-01*","2016-04-01*","2016-09-15*","2016-11-15"]),e("../lib/services/ec2"),Object.defineProperty(s.services.ec2,"2016-11-15",{get:function(){var t=e("../apis/ec2-2016-11-15.min.json");return t.paginators=e("../apis/ec2-2016-11-15.paginators.json").pagination,t.waiters=e("../apis/ec2-2016-11-15.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=i.EC2},{"../apis/ec2-2016-11-15.min.json":79,"../apis/ec2-2016-11-15.paginators.json":80,"../apis/ec2-2016-11-15.waiters2.json":81,"../lib/core":342,"../lib/node_loader":338,"../lib/services/ec2":396}],272:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.ecr={},i.ECR=a.defineService("ecr",["2015-09-21"]),Object.defineProperty(s.services.ecr,"2015-09-21",{get:function(){var t=e("../apis/ecr-2015-09-21.min.json");return t.paginators=e("../apis/ecr-2015-09-21.paginators.json").pagination,t.waiters=e("../apis/ecr-2015-09-21.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=i.ECR},{"../apis/ecr-2015-09-21.min.json":82,"../apis/ecr-2015-09-21.paginators.json":83,"../apis/ecr-2015-09-21.waiters2.json":84,"../lib/core":342,"../lib/node_loader":338}],273:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.ecs={},i.ECS=a.defineService("ecs",["2014-11-13"]),Object.defineProperty(s.services.ecs,"2014-11-13",{get:function(){var t=e("../apis/ecs-2014-11-13.min.json");return t.paginators=e("../apis/ecs-2014-11-13.paginators.json").pagination,t.waiters=e("../apis/ecs-2014-11-13.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=i.ECS},{"../apis/ecs-2014-11-13.min.json":85,"../apis/ecs-2014-11-13.paginators.json":86,"../apis/ecs-2014-11-13.waiters2.json":87,"../lib/core":342,"../lib/node_loader":338}],274:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.efs={},i.EFS=a.defineService("efs",["2015-02-01"]),Object.defineProperty(s.services.efs,"2015-02-01",{get:function(){var t=e("../apis/elasticfilesystem-2015-02-01.min.json");return t.paginators=e("../apis/elasticfilesystem-2015-02-01.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.EFS},{"../apis/elasticfilesystem-2015-02-01.min.json":94,"../apis/elasticfilesystem-2015-02-01.paginators.json":95,"../lib/core":342,"../lib/node_loader":338}],275:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.elasticache={},i.ElastiCache=a.defineService("elasticache",["2012-11-15*","2014-03-24*","2014-07-15*","2014-09-30*","2015-02-02"]),Object.defineProperty(s.services.elasticache,"2015-02-02",{get:function(){var t=e("../apis/elasticache-2015-02-02.min.json");return t.paginators=e("../apis/elasticache-2015-02-02.paginators.json").pagination,t.waiters=e("../apis/elasticache-2015-02-02.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=i.ElastiCache},{"../apis/elasticache-2015-02-02.min.json":88,"../apis/elasticache-2015-02-02.paginators.json":89,"../apis/elasticache-2015-02-02.waiters2.json":90,"../lib/core":342,"../lib/node_loader":338}],276:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.elasticbeanstalk={},i.ElasticBeanstalk=a.defineService("elasticbeanstalk",["2010-12-01"]),Object.defineProperty(s.services.elasticbeanstalk,"2010-12-01",{get:function(){
|
|
82
82
|
var t=e("../apis/elasticbeanstalk-2010-12-01.min.json");return t.paginators=e("../apis/elasticbeanstalk-2010-12-01.paginators.json").pagination,t.waiters=e("../apis/elasticbeanstalk-2010-12-01.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=i.ElasticBeanstalk},{"../apis/elasticbeanstalk-2010-12-01.min.json":91,"../apis/elasticbeanstalk-2010-12-01.paginators.json":92,"../apis/elasticbeanstalk-2010-12-01.waiters2.json":93,"../lib/core":342,"../lib/node_loader":338}],277:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.elastictranscoder={},i.ElasticTranscoder=a.defineService("elastictranscoder",["2012-09-25"]),Object.defineProperty(s.services.elastictranscoder,"2012-09-25",{get:function(){var t=e("../apis/elastictranscoder-2012-09-25.min.json");return t.paginators=e("../apis/elastictranscoder-2012-09-25.paginators.json").pagination,t.waiters=e("../apis/elastictranscoder-2012-09-25.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=i.ElasticTranscoder},{"../apis/elastictranscoder-2012-09-25.min.json":105,"../apis/elastictranscoder-2012-09-25.paginators.json":106,"../apis/elastictranscoder-2012-09-25.waiters2.json":107,"../lib/core":342,"../lib/node_loader":338}],278:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.elb={},i.ELB=a.defineService("elb",["2012-06-01"]),Object.defineProperty(s.services.elb,"2012-06-01",{get:function(){var t=e("../apis/elasticloadbalancing-2012-06-01.min.json");return t.paginators=e("../apis/elasticloadbalancing-2012-06-01.paginators.json").pagination,t.waiters=e("../apis/elasticloadbalancing-2012-06-01.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=i.ELB},{"../apis/elasticloadbalancing-2012-06-01.min.json":96,"../apis/elasticloadbalancing-2012-06-01.paginators.json":97,"../apis/elasticloadbalancing-2012-06-01.waiters2.json":98,"../lib/core":342,"../lib/node_loader":338}],279:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.elbv2={},i.ELBv2=a.defineService("elbv2",["2015-12-01"]),Object.defineProperty(s.services.elbv2,"2015-12-01",{get:function(){var t=e("../apis/elasticloadbalancingv2-2015-12-01.min.json");return t.paginators=e("../apis/elasticloadbalancingv2-2015-12-01.paginators.json").pagination,t.waiters=e("../apis/elasticloadbalancingv2-2015-12-01.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=i.ELBv2},{"../apis/elasticloadbalancingv2-2015-12-01.min.json":99,"../apis/elasticloadbalancingv2-2015-12-01.paginators.json":100,"../apis/elasticloadbalancingv2-2015-12-01.waiters2.json":101,"../lib/core":342,"../lib/node_loader":338}],280:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.emr={},i.EMR=a.defineService("emr",["2009-03-31"]),Object.defineProperty(s.services.emr,"2009-03-31",{get:function(){var t=e("../apis/elasticmapreduce-2009-03-31.min.json");return t.paginators=e("../apis/elasticmapreduce-2009-03-31.paginators.json").pagination,t.waiters=e("../apis/elasticmapreduce-2009-03-31.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=i.EMR},{"../apis/elasticmapreduce-2009-03-31.min.json":102,"../apis/elasticmapreduce-2009-03-31.paginators.json":103,"../apis/elasticmapreduce-2009-03-31.waiters2.json":104,"../lib/core":342,"../lib/node_loader":338}],281:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.firehose={},i.Firehose=a.defineService("firehose",["2015-08-04"]),Object.defineProperty(s.services.firehose,"2015-08-04",{get:function(){var t=e("../apis/firehose-2015-08-04.min.json");return t.paginators=e("../apis/firehose-2015-08-04.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.Firehose},{"../apis/firehose-2015-08-04.min.json":113,"../apis/firehose-2015-08-04.paginators.json":114,"../lib/core":342,"../lib/node_loader":338}],282:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.forecastqueryservice={},i.ForecastQueryService=a.defineService("forecastqueryservice",["2018-06-26"]),Object.defineProperty(s.services.forecastqueryservice,"2018-06-26",{get:function(){var t=e("../apis/forecastquery-2018-06-26.min.json");return t.paginators=e("../apis/forecastquery-2018-06-26.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.ForecastQueryService},{"../apis/forecastquery-2018-06-26.min.json":117,"../apis/forecastquery-2018-06-26.paginators.json":118,"../lib/core":342,"../lib/node_loader":338}],283:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.forecastservice={},i.ForecastService=a.defineService("forecastservice",["2018-06-26"]),Object.defineProperty(s.services.forecastservice,"2018-06-26",{get:function(){var t=e("../apis/forecast-2018-06-26.min.json");return t.paginators=e("../apis/forecast-2018-06-26.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.ForecastService},{"../apis/forecast-2018-06-26.min.json":115,"../apis/forecast-2018-06-26.paginators.json":116,"../lib/core":342,"../lib/node_loader":338}],284:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.gamelift={},i.GameLift=a.defineService("gamelift",["2015-10-01"]),Object.defineProperty(s.services.gamelift,"2015-10-01",{get:function(){var t=e("../apis/gamelift-2015-10-01.min.json");return t.paginators=e("../apis/gamelift-2015-10-01.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.GameLift},{"../apis/gamelift-2015-10-01.min.json":119,"../apis/gamelift-2015-10-01.paginators.json":120,"../lib/core":342,"../lib/node_loader":338}],285:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.iam={},i.IAM=a.defineService("iam",["2010-05-08"]),Object.defineProperty(s.services.iam,"2010-05-08",{get:function(){var t=e("../apis/iam-2010-05-08.min.json");return t.paginators=e("../apis/iam-2010-05-08.paginators.json").pagination,t.waiters=e("../apis/iam-2010-05-08.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=i.IAM},{"../apis/iam-2010-05-08.min.json":121,"../apis/iam-2010-05-08.paginators.json":122,"../apis/iam-2010-05-08.waiters2.json":123,"../lib/core":342,"../lib/node_loader":338}],286:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.inspector={},i.Inspector=a.defineService("inspector",["2015-08-18*","2016-02-16"]),Object.defineProperty(s.services.inspector,"2016-02-16",{get:function(){var t=e("../apis/inspector-2016-02-16.min.json");return t.paginators=e("../apis/inspector-2016-02-16.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.Inspector},{"../apis/inspector-2016-02-16.min.json":124,"../apis/inspector-2016-02-16.paginators.json":125,"../lib/core":342,"../lib/node_loader":338}],287:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.iot={},i.Iot=a.defineService("iot",["2015-05-28"]),Object.defineProperty(s.services.iot,"2015-05-28",{get:function(){var t=e("../apis/iot-2015-05-28.min.json");return t.paginators=e("../apis/iot-2015-05-28.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.Iot},{"../apis/iot-2015-05-28.min.json":126,"../apis/iot-2015-05-28.paginators.json":127,"../lib/core":342,"../lib/node_loader":338}],288:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.iotanalytics={},i.IoTAnalytics=a.defineService("iotanalytics",["2017-11-27"]),Object.defineProperty(s.services.iotanalytics,"2017-11-27",{get:function(){var t=e("../apis/iotanalytics-2017-11-27.min.json");return t.paginators=e("../apis/iotanalytics-2017-11-27.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.IoTAnalytics},{"../apis/iotanalytics-2017-11-27.min.json":130,"../apis/iotanalytics-2017-11-27.paginators.json":131,"../lib/core":342,"../lib/node_loader":338}],289:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.iotdata={},i.IotData=a.defineService("iotdata",["2015-05-28"]),e("../lib/services/iotdata"),Object.defineProperty(s.services.iotdata,"2015-05-28",{get:function(){var t=e("../apis/iot-data-2015-05-28.min.json");return t.paginators=e("../apis/iot-data-2015-05-28.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.IotData},{"../apis/iot-data-2015-05-28.min.json":128,"../apis/iot-data-2015-05-28.paginators.json":129,"../lib/core":342,"../lib/node_loader":338,"../lib/services/iotdata":397}],290:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.kinesis={},i.Kinesis=a.defineService("kinesis",["2013-12-02"]),Object.defineProperty(s.services.kinesis,"2013-12-02",{get:function(){var t=e("../apis/kinesis-2013-12-02.min.json");return t.paginators=e("../apis/kinesis-2013-12-02.paginators.json").pagination,t.waiters=e("../apis/kinesis-2013-12-02.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=i.Kinesis},{"../apis/kinesis-2013-12-02.min.json":132,"../apis/kinesis-2013-12-02.paginators.json":133,"../apis/kinesis-2013-12-02.waiters2.json":134,"../lib/core":342,"../lib/node_loader":338}],291:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.kinesisvideo={},i.KinesisVideo=a.defineService("kinesisvideo",["2017-09-30"]),Object.defineProperty(s.services.kinesisvideo,"2017-09-30",{get:function(){var t=e("../apis/kinesisvideo-2017-09-30.min.json");return t.paginators=e("../apis/kinesisvideo-2017-09-30.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.KinesisVideo},{"../apis/kinesisvideo-2017-09-30.min.json":141,"../apis/kinesisvideo-2017-09-30.paginators.json":142,"../lib/core":342,"../lib/node_loader":338}],292:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.kinesisvideoarchivedmedia={},i.KinesisVideoArchivedMedia=a.defineService("kinesisvideoarchivedmedia",["2017-09-30"]),Object.defineProperty(s.services.kinesisvideoarchivedmedia,"2017-09-30",{get:function(){var t=e("../apis/kinesis-video-archived-media-2017-09-30.min.json");return t.paginators=e("../apis/kinesis-video-archived-media-2017-09-30.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.KinesisVideoArchivedMedia},{"../apis/kinesis-video-archived-media-2017-09-30.min.json":135,"../apis/kinesis-video-archived-media-2017-09-30.paginators.json":136,"../lib/core":342,"../lib/node_loader":338}],293:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.kinesisvideomedia={},i.KinesisVideoMedia=a.defineService("kinesisvideomedia",["2017-09-30"]),Object.defineProperty(s.services.kinesisvideomedia,"2017-09-30",{get:function(){var t=e("../apis/kinesis-video-media-2017-09-30.min.json");return t.paginators=e("../apis/kinesis-video-media-2017-09-30.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.KinesisVideoMedia},{"../apis/kinesis-video-media-2017-09-30.min.json":137,"../apis/kinesis-video-media-2017-09-30.paginators.json":138,"../lib/core":342,"../lib/node_loader":338}],294:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.kinesisvideosignalingchannels={},i.KinesisVideoSignalingChannels=a.defineService("kinesisvideosignalingchannels",["2019-12-04"]),Object.defineProperty(s.services.kinesisvideosignalingchannels,"2019-12-04",{get:function(){var t=e("../apis/kinesis-video-signaling-2019-12-04.min.json");return t.paginators=e("../apis/kinesis-video-signaling-2019-12-04.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.KinesisVideoSignalingChannels},{"../apis/kinesis-video-signaling-2019-12-04.min.json":139,"../apis/kinesis-video-signaling-2019-12-04.paginators.json":140,"../lib/core":342,"../lib/node_loader":338}],295:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.kms={},i.KMS=a.defineService("kms",["2014-11-01"]),Object.defineProperty(s.services.kms,"2014-11-01",{get:function(){var t=e("../apis/kms-2014-11-01.min.json");return t.paginators=e("../apis/kms-2014-11-01.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.KMS},{"../apis/kms-2014-11-01.min.json":143,"../apis/kms-2014-11-01.paginators.json":144,"../lib/core":342,"../lib/node_loader":338}],296:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.lambda={},i.Lambda=a.defineService("lambda",["2014-11-11","2015-03-31"]),e("../lib/services/lambda"),Object.defineProperty(s.services.lambda,"2014-11-11",{get:function(){var t=e("../apis/lambda-2014-11-11.min.json");return t.paginators=e("../apis/lambda-2014-11-11.paginators.json").pagination,t},enumerable:!0,configurable:!0}),Object.defineProperty(s.services.lambda,"2015-03-31",{get:function(){var t=e("../apis/lambda-2015-03-31.min.json");return t.paginators=e("../apis/lambda-2015-03-31.paginators.json").pagination,t.waiters=e("../apis/lambda-2015-03-31.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=i.Lambda},{"../apis/lambda-2014-11-11.min.json":145,"../apis/lambda-2014-11-11.paginators.json":146,"../apis/lambda-2015-03-31.min.json":147,"../apis/lambda-2015-03-31.paginators.json":148,"../apis/lambda-2015-03-31.waiters2.json":149,"../lib/core":342,"../lib/node_loader":338,"../lib/services/lambda":398}],297:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.lexmodelbuildingservice={},i.LexModelBuildingService=a.defineService("lexmodelbuildingservice",["2017-04-19"]),Object.defineProperty(s.services.lexmodelbuildingservice,"2017-04-19",{get:function(){var t=e("../apis/lex-models-2017-04-19.min.json");return t.paginators=e("../apis/lex-models-2017-04-19.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.LexModelBuildingService},{"../apis/lex-models-2017-04-19.min.json":150,"../apis/lex-models-2017-04-19.paginators.json":151,"../lib/core":342,"../lib/node_loader":338}],298:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.lexruntime={},i.LexRuntime=a.defineService("lexruntime",["2016-11-28"]),Object.defineProperty(s.services.lexruntime,"2016-11-28",{get:function(){var t=e("../apis/runtime.lex-2016-11-28.min.json");return t.paginators=e("../apis/runtime.lex-2016-11-28.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.LexRuntime},{"../apis/runtime.lex-2016-11-28.min.json":208,"../apis/runtime.lex-2016-11-28.paginators.json":209,"../lib/core":342,"../lib/node_loader":338}],299:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.lexruntimev2={},i.LexRuntimeV2=a.defineService("lexruntimev2",["2020-08-07"]),Object.defineProperty(s.services.lexruntimev2,"2020-08-07",{get:function(){var t=e("../apis/runtime.lex.v2-2020-08-07.min.json");return t.paginators=e("../apis/runtime.lex.v2-2020-08-07.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.LexRuntimeV2},{"../apis/runtime.lex.v2-2020-08-07.min.json":210,"../apis/runtime.lex.v2-2020-08-07.paginators.json":211,"../lib/core":342,"../lib/node_loader":338}],300:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.location={},i.Location=a.defineService("location",["2020-11-19"]),Object.defineProperty(s.services.location,"2020-11-19",{get:function(){var t=e("../apis/location-2020-11-19.min.json");return t.paginators=e("../apis/location-2020-11-19.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.Location},{"../apis/location-2020-11-19.min.json":152,"../apis/location-2020-11-19.paginators.json":153,"../lib/core":342,"../lib/node_loader":338}],301:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.machinelearning={},i.MachineLearning=a.defineService("machinelearning",["2014-12-12"]),e("../lib/services/machinelearning"),Object.defineProperty(s.services.machinelearning,"2014-12-12",{get:function(){var t=e("../apis/machinelearning-2014-12-12.min.json");return t.paginators=e("../apis/machinelearning-2014-12-12.paginators.json").pagination,t.waiters=e("../apis/machinelearning-2014-12-12.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=i.MachineLearning},{"../apis/machinelearning-2014-12-12.min.json":156,"../apis/machinelearning-2014-12-12.paginators.json":157,"../apis/machinelearning-2014-12-12.waiters2.json":158,"../lib/core":342,"../lib/node_loader":338,"../lib/services/machinelearning":399}],302:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.marketplacecommerceanalytics={},i.MarketplaceCommerceAnalytics=a.defineService("marketplacecommerceanalytics",["2015-07-01"]),Object.defineProperty(s.services.marketplacecommerceanalytics,"2015-07-01",{get:function(){var t=e("../apis/marketplacecommerceanalytics-2015-07-01.min.json");return t.paginators=e("../apis/marketplacecommerceanalytics-2015-07-01.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.MarketplaceCommerceAnalytics},{"../apis/marketplacecommerceanalytics-2015-07-01.min.json":159,"../apis/marketplacecommerceanalytics-2015-07-01.paginators.json":160,"../lib/core":342,"../lib/node_loader":338}],303:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.mediastoredata={},i.MediaStoreData=a.defineService("mediastoredata",["2017-09-01"]),Object.defineProperty(s.services.mediastoredata,"2017-09-01",{get:function(){var t=e("../apis/mediastore-data-2017-09-01.min.json");return t.paginators=e("../apis/mediastore-data-2017-09-01.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.MediaStoreData},{"../apis/mediastore-data-2017-09-01.min.json":161,"../apis/mediastore-data-2017-09-01.paginators.json":162,"../lib/core":342,"../lib/node_loader":338}],304:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.mobileanalytics={},i.MobileAnalytics=a.defineService("mobileanalytics",["2014-06-05"]),Object.defineProperty(s.services.mobileanalytics,"2014-06-05",{get:function(){return e("../apis/mobileanalytics-2014-06-05.min.json")},enumerable:!0,configurable:!0}),t.exports=i.MobileAnalytics},{"../apis/mobileanalytics-2014-06-05.min.json":164,"../lib/core":342,"../lib/node_loader":338}],305:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.mturk={},i.MTurk=a.defineService("mturk",["2017-01-17"]),Object.defineProperty(s.services.mturk,"2017-01-17",{get:function(){var t=e("../apis/mturk-requester-2017-01-17.min.json");return t.paginators=e("../apis/mturk-requester-2017-01-17.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.MTurk},{"../apis/mturk-requester-2017-01-17.min.json":168,"../apis/mturk-requester-2017-01-17.paginators.json":169,"../lib/core":342,"../lib/node_loader":338}],306:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.opsworks={},i.OpsWorks=a.defineService("opsworks",["2013-02-18"]),Object.defineProperty(s.services.opsworks,"2013-02-18",{get:function(){var t=e("../apis/opsworks-2013-02-18.min.json");return t.paginators=e("../apis/opsworks-2013-02-18.paginators.json").pagination,t.waiters=e("../apis/opsworks-2013-02-18.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=i.OpsWorks},{"../apis/opsworks-2013-02-18.min.json":170,"../apis/opsworks-2013-02-18.paginators.json":171,"../apis/opsworks-2013-02-18.waiters2.json":172,"../lib/core":342,"../lib/node_loader":338}],307:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.personalize={},i.Personalize=a.defineService("personalize",["2018-05-22"]),Object.defineProperty(s.services.personalize,"2018-05-22",{get:function(){var t=e("../apis/personalize-2018-05-22.min.json");return t.paginators=e("../apis/personalize-2018-05-22.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.Personalize},{"../apis/personalize-2018-05-22.min.json":173,"../apis/personalize-2018-05-22.paginators.json":174,"../lib/core":342,"../lib/node_loader":338}],308:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.personalizeevents={},i.PersonalizeEvents=a.defineService("personalizeevents",["2018-03-22"]),Object.defineProperty(s.services.personalizeevents,"2018-03-22",{get:function(){var t=e("../apis/personalize-events-2018-03-22.min.json");return t.paginators=e("../apis/personalize-events-2018-03-22.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.PersonalizeEvents},{"../apis/personalize-events-2018-03-22.min.json":175,"../apis/personalize-events-2018-03-22.paginators.json":176,"../lib/core":342,"../lib/node_loader":338}],309:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.personalizeruntime={},i.PersonalizeRuntime=a.defineService("personalizeruntime",["2018-05-22"]),Object.defineProperty(s.services.personalizeruntime,"2018-05-22",{get:function(){var t=e("../apis/personalize-runtime-2018-05-22.min.json");return t.paginators=e("../apis/personalize-runtime-2018-05-22.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.PersonalizeRuntime},{"../apis/personalize-runtime-2018-05-22.min.json":177,"../apis/personalize-runtime-2018-05-22.paginators.json":178,"../lib/core":342,"../lib/node_loader":338}],310:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.polly={},i.Polly=a.defineService("polly",["2016-06-10"]),e("../lib/services/polly"),Object.defineProperty(s.services.polly,"2016-06-10",{get:function(){var t=e("../apis/polly-2016-06-10.min.json");return t.paginators=e("../apis/polly-2016-06-10.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.Polly},{"../apis/polly-2016-06-10.min.json":179,"../apis/polly-2016-06-10.paginators.json":180,"../lib/core":342,"../lib/node_loader":338,"../lib/services/polly":400}],311:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.pricing={},i.Pricing=a.defineService("pricing",["2017-10-15"]),Object.defineProperty(s.services.pricing,"2017-10-15",{get:function(){var t=e("../apis/pricing-2017-10-15.min.json");return t.paginators=e("../apis/pricing-2017-10-15.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.Pricing},{"../apis/pricing-2017-10-15.min.json":181,"../apis/pricing-2017-10-15.paginators.json":182,"../lib/core":342,"../lib/node_loader":338}],312:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.rds={},i.RDS=a.defineService("rds",["2013-01-10","2013-02-12","2013-09-09","2014-09-01","2014-09-01*","2014-10-31"]),e("../lib/services/rds"),Object.defineProperty(s.services.rds,"2013-01-10",{get:function(){var t=e("../apis/rds-2013-01-10.min.json");return t.paginators=e("../apis/rds-2013-01-10.paginators.json").pagination,t},enumerable:!0,configurable:!0}),Object.defineProperty(s.services.rds,"2013-02-12",{get:function(){var t=e("../apis/rds-2013-02-12.min.json");return t.paginators=e("../apis/rds-2013-02-12.paginators.json").pagination,t},enumerable:!0,configurable:!0}),Object.defineProperty(s.services.rds,"2013-09-09",{get:function(){var t=e("../apis/rds-2013-09-09.min.json");return t.paginators=e("../apis/rds-2013-09-09.paginators.json").pagination,t.waiters=e("../apis/rds-2013-09-09.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),Object.defineProperty(s.services.rds,"2014-09-01",{get:function(){var t=e("../apis/rds-2014-09-01.min.json");return t.paginators=e("../apis/rds-2014-09-01.paginators.json").pagination,t},enumerable:!0,configurable:!0}),Object.defineProperty(s.services.rds,"2014-10-31",{get:function(){var t=e("../apis/rds-2014-10-31.min.json");return t.paginators=e("../apis/rds-2014-10-31.paginators.json").pagination,t.waiters=e("../apis/rds-2014-10-31.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=i.RDS},{"../apis/rds-2013-01-10.min.json":183,"../apis/rds-2013-01-10.paginators.json":184,"../apis/rds-2013-02-12.min.json":185,"../apis/rds-2013-02-12.paginators.json":186,"../apis/rds-2013-09-09.min.json":187,"../apis/rds-2013-09-09.paginators.json":188,"../apis/rds-2013-09-09.waiters2.json":189,"../apis/rds-2014-09-01.min.json":190,"../apis/rds-2014-09-01.paginators.json":191,"../apis/rds-2014-10-31.min.json":192,"../apis/rds-2014-10-31.paginators.json":193,"../apis/rds-2014-10-31.waiters2.json":194,"../lib/core":342,"../lib/node_loader":338,"../lib/services/rds":401}],313:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.redshift={},i.Redshift=a.defineService("redshift",["2012-12-01"]),Object.defineProperty(s.services.redshift,"2012-12-01",{get:function(){var t=e("../apis/redshift-2012-12-01.min.json");return t.paginators=e("../apis/redshift-2012-12-01.paginators.json").pagination,t.waiters=e("../apis/redshift-2012-12-01.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=i.Redshift},{"../apis/redshift-2012-12-01.min.json":195,"../apis/redshift-2012-12-01.paginators.json":196,"../apis/redshift-2012-12-01.waiters2.json":197,"../lib/core":342,"../lib/node_loader":338}],314:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.rekognition={},i.Rekognition=a.defineService("rekognition",["2016-06-27"]),Object.defineProperty(s.services.rekognition,"2016-06-27",{get:function(){var t=e("../apis/rekognition-2016-06-27.min.json");return t.paginators=e("../apis/rekognition-2016-06-27.paginators.json").pagination,t.waiters=e("../apis/rekognition-2016-06-27.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=i.Rekognition},{"../apis/rekognition-2016-06-27.min.json":198,"../apis/rekognition-2016-06-27.paginators.json":199,"../apis/rekognition-2016-06-27.waiters2.json":200,"../lib/core":342,"../lib/node_loader":338}],315:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.resourcegroups={},i.ResourceGroups=a.defineService("resourcegroups",["2017-11-27"]),Object.defineProperty(s.services.resourcegroups,"2017-11-27",{get:function(){var t=e("../apis/resource-groups-2017-11-27.min.json");return t.paginators=e("../apis/resource-groups-2017-11-27.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.ResourceGroups},{"../apis/resource-groups-2017-11-27.min.json":201,"../apis/resource-groups-2017-11-27.paginators.json":202,"../lib/core":342,"../lib/node_loader":338}],316:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.route53={},i.Route53=a.defineService("route53",["2013-04-01"]),e("../lib/services/route53"),Object.defineProperty(s.services.route53,"2013-04-01",{get:function(){var t=e("../apis/route53-2013-04-01.min.json");return t.paginators=e("../apis/route53-2013-04-01.paginators.json").pagination,t.waiters=e("../apis/route53-2013-04-01.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=i.Route53},{"../apis/route53-2013-04-01.min.json":203,"../apis/route53-2013-04-01.paginators.json":204,"../apis/route53-2013-04-01.waiters2.json":205,"../lib/core":342,"../lib/node_loader":338,"../lib/services/route53":403}],317:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.route53domains={},i.Route53Domains=a.defineService("route53domains",["2014-05-15"]),Object.defineProperty(s.services.route53domains,"2014-05-15",{get:function(){var t=e("../apis/route53domains-2014-05-15.min.json");return t.paginators=e("../apis/route53domains-2014-05-15.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.Route53Domains},{"../apis/route53domains-2014-05-15.min.json":206,"../apis/route53domains-2014-05-15.paginators.json":207,"../lib/core":342,"../lib/node_loader":338}],318:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.s3={},i.S3=a.defineService("s3",["2006-03-01"]),e("../lib/services/s3"),Object.defineProperty(s.services.s3,"2006-03-01",{get:function(){var t=e("../apis/s3-2006-03-01.min.json");return t.paginators=e("../apis/s3-2006-03-01.paginators.json").pagination,t.waiters=e("../apis/s3-2006-03-01.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=i.S3},{"../apis/s3-2006-03-01.min.json":212,"../apis/s3-2006-03-01.paginators.json":213,"../apis/s3-2006-03-01.waiters2.json":214,"../lib/core":342,"../lib/node_loader":338,"../lib/services/s3":404}],319:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.secretsmanager={},i.SecretsManager=a.defineService("secretsmanager",["2017-10-17"]),Object.defineProperty(s.services.secretsmanager,"2017-10-17",{get:function(){var t=e("../apis/secretsmanager-2017-10-17.min.json");return t.paginators=e("../apis/secretsmanager-2017-10-17.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.SecretsManager},{"../apis/secretsmanager-2017-10-17.min.json":215,"../apis/secretsmanager-2017-10-17.paginators.json":216,"../lib/core":342,"../lib/node_loader":338}],320:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.servicecatalog={},i.ServiceCatalog=a.defineService("servicecatalog",["2015-12-10"]),Object.defineProperty(s.services.servicecatalog,"2015-12-10",{get:function(){var t=e("../apis/servicecatalog-2015-12-10.min.json");return t.paginators=e("../apis/servicecatalog-2015-12-10.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.ServiceCatalog},{"../apis/servicecatalog-2015-12-10.min.json":217,"../apis/servicecatalog-2015-12-10.paginators.json":218,"../lib/core":342,"../lib/node_loader":338}],321:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.ses={},i.SES=a.defineService("ses",["2010-12-01"]),Object.defineProperty(s.services.ses,"2010-12-01",{get:function(){var t=e("../apis/email-2010-12-01.min.json");return t.paginators=e("../apis/email-2010-12-01.paginators.json").pagination,t.waiters=e("../apis/email-2010-12-01.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=i.SES},{"../apis/email-2010-12-01.min.json":108,"../apis/email-2010-12-01.paginators.json":109,"../apis/email-2010-12-01.waiters2.json":110,"../lib/core":342,"../lib/node_loader":338}],322:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.sns={},i.SNS=a.defineService("sns",["2010-03-31"]),Object.defineProperty(s.services.sns,"2010-03-31",{get:function(){var t=e("../apis/sns-2010-03-31.min.json");return t.paginators=e("../apis/sns-2010-03-31.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.SNS},{"../apis/sns-2010-03-31.min.json":219,"../apis/sns-2010-03-31.paginators.json":220,"../lib/core":342,"../lib/node_loader":338}],323:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.sqs={},i.SQS=a.defineService("sqs",["2012-11-05"]),e("../lib/services/sqs"),Object.defineProperty(s.services.sqs,"2012-11-05",{get:function(){var t=e("../apis/sqs-2012-11-05.min.json");return t.paginators=e("../apis/sqs-2012-11-05.paginators.json").pagination,t},enumerable:!0,
|
|
83
|
-
configurable:!0}),t.exports=i.SQS},{"../apis/sqs-2012-11-05.min.json":221,"../apis/sqs-2012-11-05.paginators.json":222,"../lib/core":342,"../lib/node_loader":338,"../lib/services/sqs":406}],324:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.ssm={},i.SSM=a.defineService("ssm",["2014-11-06"]),Object.defineProperty(s.services.ssm,"2014-11-06",{get:function(){var t=e("../apis/ssm-2014-11-06.min.json");return t.paginators=e("../apis/ssm-2014-11-06.paginators.json").pagination,t.waiters=e("../apis/ssm-2014-11-06.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=i.SSM},{"../apis/ssm-2014-11-06.min.json":223,"../apis/ssm-2014-11-06.paginators.json":224,"../apis/ssm-2014-11-06.waiters2.json":225,"../lib/core":342,"../lib/node_loader":338}],325:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.storagegateway={},i.StorageGateway=a.defineService("storagegateway",["2013-06-30"]),Object.defineProperty(s.services.storagegateway,"2013-06-30",{get:function(){var t=e("../apis/storagegateway-2013-06-30.min.json");return t.paginators=e("../apis/storagegateway-2013-06-30.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.StorageGateway},{"../apis/storagegateway-2013-06-30.min.json":226,"../apis/storagegateway-2013-06-30.paginators.json":227,"../lib/core":342,"../lib/node_loader":338}],326:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.sts={},i.STS=a.defineService("sts",["2011-06-15"]),e("../lib/services/sts"),Object.defineProperty(s.services.sts,"2011-06-15",{get:function(){var t=e("../apis/sts-2011-06-15.min.json");return t.paginators=e("../apis/sts-2011-06-15.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.STS},{"../apis/sts-2011-06-15.min.json":230,"../apis/sts-2011-06-15.paginators.json":231,"../lib/core":342,"../lib/node_loader":338,"../lib/services/sts":407}],327:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.translate={},i.Translate=a.defineService("translate",["2017-07-01"]),Object.defineProperty(s.services.translate,"2017-07-01",{get:function(){var t=e("../apis/translate-2017-07-01.min.json");return t.paginators=e("../apis/translate-2017-07-01.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.Translate},{"../apis/translate-2017-07-01.min.json":232,"../apis/translate-2017-07-01.paginators.json":233,"../lib/core":342,"../lib/node_loader":338}],328:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.waf={},i.WAF=a.defineService("waf",["2015-08-24"]),Object.defineProperty(s.services.waf,"2015-08-24",{get:function(){var t=e("../apis/waf-2015-08-24.min.json");return t.paginators=e("../apis/waf-2015-08-24.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.WAF},{"../apis/waf-2015-08-24.min.json":234,"../apis/waf-2015-08-24.paginators.json":235,"../lib/core":342,"../lib/node_loader":338}],329:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.workdocs={},i.WorkDocs=a.defineService("workdocs",["2016-05-01"]),Object.defineProperty(s.services.workdocs,"2016-05-01",{get:function(){var t=e("../apis/workdocs-2016-05-01.min.json");return t.paginators=e("../apis/workdocs-2016-05-01.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.WorkDocs},{"../apis/workdocs-2016-05-01.min.json":236,"../apis/workdocs-2016-05-01.paginators.json":237,"../lib/core":342,"../lib/node_loader":338}],330:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.xray={},i.XRay=a.defineService("xray",["2016-04-12"]),Object.defineProperty(s.services.xray,"2016-04-12",{get:function(){var t=e("../apis/xray-2016-04-12.min.json");return t.paginators=e("../apis/xray-2016-04-12.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.XRay},{"../apis/xray-2016-04-12.min.json":238,"../apis/xray-2016-04-12.paginators.json":239,"../lib/core":342,"../lib/node_loader":338}],331:[function(e,t,r){function i(e,t){if(!i.services.hasOwnProperty(e))throw new Error("InvalidService: Failed to load api for "+e);return i.services[e][t]}i.services={},t.exports=i},{}],332:[function(e,t,r){var i=e("./browserHmac"),a=e("./browserMd5"),s=e("./browserSha1"),o=e("./browserSha256");t.exports={createHash:function(e){if("md5"===(e=e.toLowerCase()))return new a;if("sha256"===e)return new o;if("sha1"===e)return new s;throw new Error("Hash algorithm "+e+" is not supported in the browser SDK")},createHmac:function(e,t){if("md5"===(e=e.toLowerCase()))return new i(a,t);if("sha256"===e)return new i(o,t);if("sha1"===e)return new i(s,t);throw new Error("HMAC algorithm "+e+" is not supported in the browser SDK")},createSign:function(){throw new Error("createSign is not implemented in the browser")}}},{"./browserHmac":334,"./browserMd5":335,"./browserSha1":336,"./browserSha256":337}],333:[function(e,t,r){function i(e){return"string"==typeof e?0===e.length:0===e.byteLength}function a(e){return"string"==typeof e&&(e=new s(e,"utf8")),ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var s=e("buffer/").Buffer;"undefined"!=typeof ArrayBuffer&&void 0===ArrayBuffer.isView&&(ArrayBuffer.isView=function(e){return o.indexOf(Object.prototype.toString.call(e))>-1});var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];t.exports={isEmptyData:i,convertToBuffer:a}},{"buffer/":426}],334:[function(e,t,r){function i(e,t){this.hash=new e,this.outer=new e;var r=a(e,t),i=new Uint8Array(e.BLOCK_SIZE);i.set(r);for(var s=0;s<e.BLOCK_SIZE;s++)r[s]^=54,i[s]^=92;this.hash.update(r),this.outer.update(i);for(var s=0;s<r.byteLength;s++)r[s]=0}function a(e,t){var r=s.convertToBuffer(t);if(r.byteLength>e.BLOCK_SIZE){var i=new e;i.update(r),r=i.digest()}var a=new Uint8Array(e.BLOCK_SIZE);return a.set(r),a}var s=e("./browserHashUtils");t.exports=i,i.prototype.update=function(e){if(s.isEmptyData(e)||this.error)return this;try{this.hash.update(s.convertToBuffer(e))}catch(e){this.error=e}return this},i.prototype.digest=function(e){return this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest(e)}},{"./browserHashUtils":333}],335:[function(e,t,r){function i(){this.state=[1732584193,4023233417,2562383102,271733878],this.buffer=new DataView(new ArrayBuffer(c)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}function a(e,t,r,i,a,s){return((t=(t+e&4294967295)+(i+s&4294967295)&4294967295)<<a|t>>>32-a)+r&4294967295}function s(e,t,r,i,s,o,n){return a(t&r|~t&i,e,t,s,o,n)}function o(e,t,r,i,s,o,n){return a(t&i|r&~i,e,t,s,o,n)}function n(e,t,r,i,s,o,n){return a(t^r^i,e,t,s,o,n)}function u(e,t,r,i,s,o,n){return a(r^(t|~i),e,t,s,o,n)}var p=e("./browserHashUtils"),m=e("buffer/").Buffer,c=64;t.exports=i,i.BLOCK_SIZE=c,i.prototype.update=function(e){if(p.isEmptyData(e))return this;if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=p.convertToBuffer(e),r=0,i=t.byteLength;for(this.bytesHashed+=i;i>0;)this.buffer.setUint8(this.bufferLength++,t[r++]),i--,this.bufferLength===c&&(this.hashBuffer(),this.bufferLength=0);return this},i.prototype.digest=function(e){if(!this.finished){var t=this,r=t.buffer,i=t.bufferLength,a=t.bytesHashed,s=8*a;if(r.setUint8(this.bufferLength++,128),i%c>=c-8){for(var o=this.bufferLength;o<c;o++)r.setUint8(o,0);this.hashBuffer(),this.bufferLength=0}for(var o=this.bufferLength;o<c-8;o++)r.setUint8(o,0);r.setUint32(c-8,s>>>0,!0),r.setUint32(c-4,Math.floor(s/4294967296),!0),this.hashBuffer(),this.finished=!0}for(var n=new DataView(new ArrayBuffer(16)),o=0;o<4;o++)n.setUint32(4*o,this.state[o],!0);var u=new m(n.buffer,n.byteOffset,n.byteLength);return e?u.toString(e):u},i.prototype.hashBuffer=function(){var e=this,t=e.buffer,r=e.state,i=r[0],a=r[1],p=r[2],m=r[3];i=s(i,a,p,m,t.getUint32(0,!0),7,3614090360),m=s(m,i,a,p,t.getUint32(4,!0),12,3905402710),p=s(p,m,i,a,t.getUint32(8,!0),17,606105819),a=s(a,p,m,i,t.getUint32(12,!0),22,3250441966),i=s(i,a,p,m,t.getUint32(16,!0),7,4118548399),m=s(m,i,a,p,t.getUint32(20,!0),12,1200080426),p=s(p,m,i,a,t.getUint32(24,!0),17,2821735955),a=s(a,p,m,i,t.getUint32(28,!0),22,4249261313),i=s(i,a,p,m,t.getUint32(32,!0),7,1770035416),m=s(m,i,a,p,t.getUint32(36,!0),12,2336552879),p=s(p,m,i,a,t.getUint32(40,!0),17,4294925233),a=s(a,p,m,i,t.getUint32(44,!0),22,2304563134),i=s(i,a,p,m,t.getUint32(48,!0),7,1804603682),m=s(m,i,a,p,t.getUint32(52,!0),12,4254626195),p=s(p,m,i,a,t.getUint32(56,!0),17,2792965006),a=s(a,p,m,i,t.getUint32(60,!0),22,1236535329),i=o(i,a,p,m,t.getUint32(4,!0),5,4129170786),m=o(m,i,a,p,t.getUint32(24,!0),9,3225465664),p=o(p,m,i,a,t.getUint32(44,!0),14,643717713),a=o(a,p,m,i,t.getUint32(0,!0),20,3921069994),i=o(i,a,p,m,t.getUint32(20,!0),5,3593408605),m=o(m,i,a,p,t.getUint32(40,!0),9,38016083),p=o(p,m,i,a,t.getUint32(60,!0),14,3634488961),a=o(a,p,m,i,t.getUint32(16,!0),20,3889429448),i=o(i,a,p,m,t.getUint32(36,!0),5,568446438),m=o(m,i,a,p,t.getUint32(56,!0),9,3275163606),p=o(p,m,i,a,t.getUint32(12,!0),14,4107603335),a=o(a,p,m,i,t.getUint32(32,!0),20,1163531501),i=o(i,a,p,m,t.getUint32(52,!0),5,2850285829),m=o(m,i,a,p,t.getUint32(8,!0),9,4243563512),p=o(p,m,i,a,t.getUint32(28,!0),14,1735328473),a=o(a,p,m,i,t.getUint32(48,!0),20,2368359562),i=n(i,a,p,m,t.getUint32(20,!0),4,4294588738),m=n(m,i,a,p,t.getUint32(32,!0),11,2272392833),p=n(p,m,i,a,t.getUint32(44,!0),16,1839030562),a=n(a,p,m,i,t.getUint32(56,!0),23,4259657740),i=n(i,a,p,m,t.getUint32(4,!0),4,2763975236),m=n(m,i,a,p,t.getUint32(16,!0),11,1272893353),p=n(p,m,i,a,t.getUint32(28,!0),16,4139469664),a=n(a,p,m,i,t.getUint32(40,!0),23,3200236656),i=n(i,a,p,m,t.getUint32(52,!0),4,681279174),m=n(m,i,a,p,t.getUint32(0,!0),11,3936430074),p=n(p,m,i,a,t.getUint32(12,!0),16,3572445317),a=n(a,p,m,i,t.getUint32(24,!0),23,76029189),i=n(i,a,p,m,t.getUint32(36,!0),4,3654602809),m=n(m,i,a,p,t.getUint32(48,!0),11,3873151461),p=n(p,m,i,a,t.getUint32(60,!0),16,530742520),a=n(a,p,m,i,t.getUint32(8,!0),23,3299628645),i=u(i,a,p,m,t.getUint32(0,!0),6,4096336452),m=u(m,i,a,p,t.getUint32(28,!0),10,1126891415),p=u(p,m,i,a,t.getUint32(56,!0),15,2878612391),a=u(a,p,m,i,t.getUint32(20,!0),21,4237533241),i=u(i,a,p,m,t.getUint32(48,!0),6,1700485571),m=u(m,i,a,p,t.getUint32(12,!0),10,2399980690),p=u(p,m,i,a,t.getUint32(40,!0),15,4293915773),a=u(a,p,m,i,t.getUint32(4,!0),21,2240044497),i=u(i,a,p,m,t.getUint32(32,!0),6,1873313359),m=u(m,i,a,p,t.getUint32(60,!0),10,4264355552),p=u(p,m,i,a,t.getUint32(24,!0),15,2734768916),a=u(a,p,m,i,t.getUint32(52,!0),21,1309151649),i=u(i,a,p,m,t.getUint32(16,!0),6,4149444226),m=u(m,i,a,p,t.getUint32(44,!0),10,3174756917),p=u(p,m,i,a,t.getUint32(8,!0),15,718787259),a=u(a,p,m,i,t.getUint32(36,!0),21,3951481745),r[0]=i+r[0]&4294967295,r[1]=a+r[1]&4294967295,r[2]=p+r[2]&4294967295,r[3]=m+r[3]&4294967295}},{"./browserHashUtils":333,"buffer/":426}],336:[function(e,t,r){function i(){this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=new Uint32Array(80),this.offset=0,this.shift=24,this.totalLength=0}var a=e("buffer/").Buffer,s=e("./browserHashUtils");new Uint32Array([1518500249,1859775393,-1894007588,-899497514]),Math.pow(2,53);t.exports=i,i.BLOCK_SIZE=64,i.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(s.isEmptyData(e))return this;e=s.convertToBuffer(e);var t=e.length;this.totalLength+=8*t;for(var r=0;r<t;r++)this.write(e[r]);return this},i.prototype.write=function(e){this.block[this.offset]|=(255&e)<<this.shift,this.shift?this.shift-=8:(this.offset++,this.shift=24),16===this.offset&&this.processBlock()},i.prototype.digest=function(e){this.write(128),(this.offset>14||14===this.offset&&this.shift<24)&&this.processBlock(),this.offset=14,this.shift=24,this.write(0),this.write(0),this.write(this.totalLength>0xffffffffff?this.totalLength/1099511627776:0),this.write(this.totalLength>4294967295?this.totalLength/4294967296:0);for(var t=24;t>=0;t-=8)this.write(this.totalLength>>t);var r=new a(20),i=new DataView(r.buffer);return i.setUint32(0,this.h0,!1),i.setUint32(4,this.h1,!1),i.setUint32(8,this.h2,!1),i.setUint32(12,this.h3,!1),i.setUint32(16,this.h4,!1),e?r.toString(e):r},i.prototype.processBlock=function(){for(var e=16;e<80;e++){var t=this.block[e-3]^this.block[e-8]^this.block[e-14]^this.block[e-16];this.block[e]=t<<1|t>>>31}var r,i,a=this.h0,s=this.h1,o=this.h2,n=this.h3,u=this.h4;for(e=0;e<80;e++){e<20?(r=n^s&(o^n),i=1518500249):e<40?(r=s^o^n,i=1859775393):e<60?(r=s&o|n&(s|o),i=2400959708):(r=s^o^n,i=3395469782);var p=(a<<5|a>>>27)+r+u+i+(0|this.block[e]);u=n,n=o,o=s<<30|s>>>2,s=a,a=p}for(this.h0=this.h0+a|0,this.h1=this.h1+s|0,this.h2=this.h2+o|0,this.h3=this.h3+n|0,this.h4=this.h4+u|0,this.offset=0,e=0;e<16;e++)this.block[e]=0}},{"./browserHashUtils":333,"buffer/":426}],337:[function(e,t,r){function i(){this.state=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}var a=e("buffer/").Buffer,s=e("./browserHashUtils"),o=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),n=Math.pow(2,53)-1;t.exports=i,i.BLOCK_SIZE=64,i.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(s.isEmptyData(e))return this;e=s.convertToBuffer(e);var t=0,r=e.byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>n)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},i.prototype.digest=function(e){if(!this.finished){var t=8*this.bytesHashed,r=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),i=this.bufferLength;if(r.setUint8(this.bufferLength++,128),i%64>=56){for(var s=this.bufferLength;s<64;s++)r.setUint8(s,0);this.hashBuffer(),this.bufferLength=0}for(var s=this.bufferLength;s<56;s++)r.setUint8(s,0);r.setUint32(56,Math.floor(t/4294967296),!0),r.setUint32(60,t),this.hashBuffer(),this.finished=!0}for(var o=new a(32),s=0;s<8;s++)o[4*s]=this.state[s]>>>24&255,o[4*s+1]=this.state[s]>>>16&255,o[4*s+2]=this.state[s]>>>8&255,o[4*s+3]=this.state[s]>>>0&255;return e?o.toString(e):o},i.prototype.hashBuffer=function(){for(var e=this,t=e.buffer,r=e.state,i=r[0],a=r[1],s=r[2],n=r[3],u=r[4],p=r[5],m=r[6],c=r[7],l=0;l<64;l++){if(l<16)this.temp[l]=(255&t[4*l])<<24|(255&t[4*l+1])<<16|(255&t[4*l+2])<<8|255&t[4*l+3];else{var d=this.temp[l-2],y=(d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10;d=this.temp[l-15];var b=(d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3;this.temp[l]=(y+this.temp[l-7]|0)+(b+this.temp[l-16]|0)}var S=(((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&p^~u&m)|0)+(c+(o[l]+this.temp[l]|0)|0)|0,g=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&a^i&s^a&s)|0;c=m,m=p,p=u,u=n+S|0,n=s,s=a,a=i,i=S+g|0}r[0]+=i,r[1]+=a,r[2]+=s,r[3]+=n,r[4]+=u,r[5]+=p,r[6]+=m,r[7]+=c}},{"./browserHashUtils":333,"buffer/":426}],338:[function(e,t,r){(function(r){(function(){var r=e("./util");r.crypto.lib=e("./browserCryptoLib"),r.Buffer=e("buffer/").Buffer,r.url=e("url/"),r.querystring=e("querystring/"),r.realClock=e("./realclock/browserClock"),r.environment="js",r.createEventStream=e("./event-stream/buffered-create-event-stream").createEventStream,r.isBrowser=function(){return!0},r.isNode=function(){return!1};var i=e("./core");if(t.exports=i,e("./credentials"),e("./credentials/credential_provider_chain"),e("./credentials/temporary_credentials"),e("./credentials/chainable_temporary_credentials"),e("./credentials/web_identity_credentials"),e("./credentials/cognito_identity_credentials"),e("./credentials/saml_credentials"),i.XML.Parser=e("./xml/browser_parser"),e("./http/xhr"),void 0===a)var a={browser:!0}}).call(this)}).call(this,e("_process"))},{"./browserCryptoLib":332,"./core":342,"./credentials":343,"./credentials/chainable_temporary_credentials":344,"./credentials/cognito_identity_credentials":345,"./credentials/credential_provider_chain":346,"./credentials/saml_credentials":347,"./credentials/temporary_credentials":348,"./credentials/web_identity_credentials":349,"./event-stream/buffered-create-event-stream":357,"./http/xhr":365,"./realclock/browserClock":384,"./util":417,"./xml/browser_parser":418,_process:431,"buffer/":426,"querystring/":438,"url/":440}],339:[function(e,t,r){var i=e("../core"),a=i.util.url,s=i.util.crypto.lib,o=i.util.base64.encode,n=i.util.inherit,u=function(e){var t={"+":"-","=":"_","/":"~"};return e.replace(/[\+=\/]/g,function(e){return t[e]})},p=function(e,t){var r=s.createSign("RSA-SHA1");return r.write(e),u(r.sign(t,"base64"))},m=function(e,t,r,i){var a=JSON.stringify({Statement:[{Resource:e,Condition:{DateLessThan:{"AWS:EpochTime":t}}}]});return{Expires:t,"Key-Pair-Id":r,Signature:p(a.toString(),i)}},c=function(e,t,r){return e=e.replace(/\s/gm,""),{Policy:u(o(e)),"Key-Pair-Id":t,Signature:p(e,r)}},l=function(e){var t=e.split("://");if(t.length<2)throw new Error("Invalid URL.");return t[0].replace("*","")},d=function(e){var t=a.parse(e);return t.path.replace(/^\//,"")+(t.hash||"")},y=function(e){switch(l(e)){case"http":case"https":return e;case"rtmp":return d(e);default:throw new Error("Invalid URI scheme. Scheme must be one of http, https, or rtmp")}},b=function(e,t){if(!t||"function"!=typeof t)throw e;t(e)},S=function(e,t){if(!t||"function"!=typeof t)return e;t(null,e)};i.CloudFront.Signer=n({constructor:function(e,t){if(void 0===e||void 0===t)throw new Error("A key pair ID and private key are required");this.keyPairId=e,this.privateKey=t},getSignedCookie:function(e,t){var r="policy"in e?c(e.policy,this.keyPairId,this.privateKey):m(e.url,e.expires,this.keyPairId,this.privateKey),i={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i["CloudFront-"+a]=r[a]);return S(i,t)},getSignedUrl:function(e,t){try{var r=y(e.url)}catch(e){return b(e,t)}var i=a.parse(e.url,!0),s=Object.prototype.hasOwnProperty.call(e,"policy")?c(e.policy,this.keyPairId,this.privateKey):m(r,e.expires,this.keyPairId,this.privateKey);i.search=null;for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(i.query[o]=s[o]);try{var n="rtmp"===l(e.url)?d(a.format(i)):a.format(i)}catch(e){return b(e,t)}return S(n,t)}}),t.exports=i.CloudFront.Signer},{"../core":342}],340:[function(e,t,r){var i=e("./core");e("./credentials"),e("./credentials/credential_provider_chain");var a;i.Config=i.util.inherit({constructor:function(e){void 0===e&&(e={}),e=this.extractCredentials(e),i.util.each.call(this,this.keys,function(t,r){this.set(t,e[t],r)})},getCredentials:function(e){function t(t){e(t,t?null:a.credentials)}function r(e,t){return new i.util.error(t||new Error,{code:"CredentialsError",message:e,name:"CredentialsError"})}var a=this;a.credentials?"function"==typeof a.credentials.get?function(){a.credentials.get(function(e){e&&(e=r("Could not load credentials from "+a.credentials.constructor.name,e)),t(e)})}():function(){var e=null;a.credentials.accessKeyId&&a.credentials.secretAccessKey||(e=r("Missing credentials")),t(e)}():a.credentialProvider?a.credentialProvider.resolve(function(e,i){e&&(e=r("Could not load credentials from any providers",e)),a.credentials=i,t(e)}):t(r("No credentials to load"))},update:function(e,t){t=t||!1,e=this.extractCredentials(e),i.util.each.call(this,e,function(e,r){(t||Object.prototype.hasOwnProperty.call(this.keys,e)||i.Service.hasService(e))&&this.set(e,r)})},loadFromPath:function(e){this.clear();var t=JSON.parse(i.util.readFileSync(e)),r=new i.FileSystemCredentials(e),a=new i.CredentialProviderChain;return a.providers.unshift(r),a.resolve(function(e,r){if(e)throw e;t.credentials=r}),this.constructor(t),this},clear:function(){i.util.each.call(this,this.keys,function(e){delete this[e]}),this.set("credentials",void 0),this.set("credentialProvider",void 0)},set:function(e,t,r){void 0===t?(void 0===r&&(r=this.keys[e]),this[e]="function"==typeof r?r.call(this):r):"httpOptions"===e&&this[e]?this[e]=i.util.merge(this[e],t):this[e]=t},keys:{credentials:null,credentialProvider:null,region:null,logger:null,apiVersions:{},apiVersion:null,endpoint:void 0,httpOptions:{timeout:12e4},maxRetries:void 0,maxRedirects:10,paramValidation:!0,sslEnabled:!0,s3ForcePathStyle:!1,s3BucketEndpoint:!1,s3DisableBodySigning:!0,s3UsEast1RegionalEndpoint:"legacy",s3UseArnRegion:void 0,computeChecksums:!0,convertResponseTypes:!0,correctClockSkew:!1,customUserAgent:null,dynamoDbCrc32:!0,systemClockOffset:0,signatureVersion:null,signatureCache:!0,retryDelayOptions:{},useAccelerateEndpoint:!1,clientSideMonitoring:!1,endpointDiscoveryEnabled:void 0,endpointCacheSize:1e3,hostPrefixEnabled:!0,stsRegionalEndpoints:"legacy"},extractCredentials:function(e){return e.accessKeyId&&e.secretAccessKey&&(e=i.util.copy(e),e.credentials=new i.Credentials(e)),e},setPromisesDependency:function(e){a=e,null===e&&"function"==typeof Promise&&(a=Promise);var t=[i.Request,i.Credentials,i.CredentialProviderChain];i.S3&&(t.push(i.S3),i.S3.ManagedUpload&&t.push(i.S3.ManagedUpload)),i.util.addPromises(t,a)},getPromisesDependency:function(){return a}}),i.config=new i.Config},{"./core":342,"./credentials":343,"./credentials/credential_provider_chain":346}],341:[function(e,t,r){(function(r){(function(){function i(e,t){if("string"==typeof e){if(["legacy","regional"].indexOf(e.toLowerCase())>=0)return e.toLowerCase();throw s.util.error(new Error,t)}}function a(e,t){e=e||{};var a;if(e[t.clientConfig]&&(a=i(e[t.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+t.clientConfig+'" configuration. Expect "legacy" or "regional". Got "'+e[t.clientConfig]+'".'})))return a;if(!s.util.isNode())return a;if(Object.prototype.hasOwnProperty.call(r.env,t.env)){if(a=i(r.env[t.env],{code:"InvalidEnvironmentalVariable",message:"invalid "+t.env+' environmental variable. Expect "legacy" or "regional". Got "'+r.env[t.env]+'".'}))return a}var o={};try{o=s.util.getProfilesFromSharedConfig(s.util.iniLoader)[r.env.AWS_PROFILE||s.util.defaultProfile]}catch(e){}if(o&&Object.prototype.hasOwnProperty.call(o,t.sharedConfig)){if(a=i(o[t.sharedConfig],{code:"InvalidConfiguration",message:"invalid "+t.sharedConfig+' profile config. Expect "legacy" or "regional". Got "'+o[t.sharedConfig]+'".'}))return a}return a}var s=e("./core");t.exports=a}).call(this)}).call(this,e("_process"))},{"./core":342,_process:431}],342:[function(e,t,r){var i={util:e("./util")};({}).toString(),t.exports=i,i.util.update(i,{VERSION:"2.1012.0",Signers:{},Protocol:{Json:e("./protocol/json"),Query:e("./protocol/query"),Rest:e("./protocol/rest"),RestJson:e("./protocol/rest_json"),RestXml:e("./protocol/rest_xml")},XML:{Builder:e("./xml/builder"),Parser:null},JSON:{Builder:e("./json/builder"),Parser:e("./json/parser")},Model:{Api:e("./model/api"),Operation:e("./model/operation"),Shape:e("./model/shape"),Paginator:e("./model/paginator"),ResourceWaiter:e("./model/resource_waiter")},apiLoader:e("./api_loader"),EndpointCache:e("../vendor/endpoint-cache").EndpointCache}),e("./sequential_executor"),e("./service"),e("./config"),e("./http"),e("./event_listeners"),e("./request"),e("./response"),e("./resource_waiter"),e("./signers/request_signer"),e("./param_validator"),i.events=new i.SequentialExecutor,i.util.memoizedProperty(i,"endpointCache",function(){return new i.EndpointCache(i.config.endpointCacheSize)},!0)},{"../vendor/endpoint-cache":449,"./api_loader":331,"./config":340,"./event_listeners":363,"./http":364,"./json/builder":366,"./json/parser":367,"./model/api":368,"./model/operation":370,"./model/paginator":371,"./model/resource_waiter":372,"./model/shape":373,"./param_validator":374,"./protocol/json":377,"./protocol/query":378,"./protocol/rest":379,"./protocol/rest_json":380,"./protocol/rest_xml":381,"./request":387,"./resource_waiter":388,"./response":389,"./sequential_executor":391,"./service":392,"./signers/request_signer":409,"./util":417,"./xml/builder":419}],343:[function(e,t,r){var i=e("./core");i.Credentials=i.util.inherit({constructor:function(){if(i.util.hideProperties(this,["secretAccessKey"]),this.expired=!1,this.expireTime=null,this.refreshCallbacks=[],1===arguments.length&&"object"==typeof arguments[0]){var e=arguments[0].credentials||arguments[0];this.accessKeyId=e.accessKeyId,this.secretAccessKey=e.secretAccessKey,this.sessionToken=e.sessionToken}else this.accessKeyId=arguments[0],this.secretAccessKey=arguments[1],this.sessionToken=arguments[2]},expiryWindow:15,needsRefresh:function(){var e=i.util.date.getDate().getTime(),t=new Date(e+1e3*this.expiryWindow);return!!(this.expireTime&&t>this.expireTime)||(this.expired||!this.accessKeyId||!this.secretAccessKey)},get:function(e){var t=this;this.needsRefresh()?this.refresh(function(r){r||(t.expired=!1),e&&e(r)}):e&&e()},refresh:function(e){this.expired=!1,e()},coalesceRefresh:function(e,t){var r=this;1===r.refreshCallbacks.push(e)&&r.load(function(e){i.util.arrayEach(r.refreshCallbacks,function(r){t?r(e):i.util.defer(function(){r(e)})}),r.refreshCallbacks.length=0})},load:function(e){e()}}),i.Credentials.addPromisesToClass=function(e){this.prototype.getPromise=i.util.promisifyMethod("get",e),this.prototype.refreshPromise=i.util.promisifyMethod("refresh",e)},i.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},i.util.addPromises(i.Credentials)},{"./core":342}],344:[function(e,t,r){var i=e("../core"),a=e("../../clients/sts");i.ChainableTemporaryCredentials=i.util.inherit(i.Credentials,{constructor:function(e){i.Credentials.call(this),e=e||{},this.errorCode="ChainableTemporaryCredentialsProviderFailure",this.expired=!0,this.tokenCodeFn=null;var t=i.util.copy(e.params)||{};if(t.RoleArn&&(t.RoleSessionName=t.RoleSessionName||"temporary-credentials"),t.SerialNumber){if(!e.tokenCodeFn||"function"!=typeof e.tokenCodeFn)throw new i.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode});this.tokenCodeFn=e.tokenCodeFn}var r=i.util.merge({params:t,credentials:e.masterCredentials||i.config.credentials},e.stsConfig||{});this.service=new a(r)},refresh:function(e){this.coalesceRefresh(e||i.util.fn.callback)},load:function(e){var t=this,r=t.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode(function(i,a){var s={};if(i)return void e(i);a&&(s.TokenCode=a),t.service[r](s,function(r,i){r||t.service.credentialsFrom(i,t),e(r)})})},getTokenCode:function(e){var t=this;this.tokenCodeFn?this.tokenCodeFn(this.service.config.params.SerialNumber,function(r,a){if(r){var s=r;return r instanceof Error&&(s=r.message),void e(i.util.error(new Error("Error fetching MFA token: "+s),{code:t.errorCode}))}e(null,a)}):e(null)}})},{"../../clients/sts":326,"../core":342}],345:[function(e,t,r){var i=e("../core"),a=e("../../clients/cognitoidentity"),s=e("../../clients/sts");i.CognitoIdentityCredentials=i.util.inherit(i.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function(e,t){i.Credentials.call(this),this.expired=!0,this.params=e,this.data=null,this._identityId=null,this._clientConfig=i.util.copy(t||{}),this.loadCachedId();var r=this;Object.defineProperty(this,"identityId",{get:function(){return r.loadCachedId(),r._identityId||r.params.IdentityId},set:function(e){r._identityId=e}})},refresh:function(e){this.coalesceRefresh(e||i.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.data=null,t._identityId=null,t.getId(function(r){r?(t.clearIdOnNotAuthorized(r),e(r)):t.params.RoleArn?t.getCredentialsFromSTS(e):t.getCredentialsForIdentity(e)})},clearCachedId:function(){this._identityId=null,delete this.params.IdentityId;var e=this.params.IdentityPoolId,t=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+e+t],delete this.storage[this.localStorageKey.providers+e+t]},clearIdOnNotAuthorized:function(e){var t=this;"NotAuthorizedException"==e.code&&t.clearCachedId()},getId:function(e){var t=this;if("string"==typeof t.params.IdentityId)return e(null,t.params.IdentityId);t.cognito.getId(function(r,i){!r&&i.IdentityId?(t.params.IdentityId=i.IdentityId,e(null,i.IdentityId)):e(r)})},loadCredentials:function(e,t){e&&t&&(t.expired=!1,t.accessKeyId=e.Credentials.AccessKeyId,t.secretAccessKey=e.Credentials.SecretKey,t.sessionToken=e.Credentials.SessionToken,t.expireTime=e.Credentials.Expiration)},getCredentialsForIdentity:function(e){var t=this;t.cognito.getCredentialsForIdentity(function(r,i){r?t.clearIdOnNotAuthorized(r):(t.cacheId(i),t.data=i,t.loadCredentials(t.data,t)),e(r)})},getCredentialsFromSTS:function(e){var t=this;t.cognito.getOpenIdToken(function(r,i){r?(t.clearIdOnNotAuthorized(r),e(r)):(t.cacheId(i),t.params.WebIdentityToken=i.Token,t.webIdentityCredentials.refresh(function(r){r||(t.data=t.webIdentityCredentials.data,t.sts.credentialsFrom(t.data,t)),e(r)}))})},loadCachedId:function(){var e=this;if(i.util.isBrowser()&&!e.params.IdentityId){var t=e.getStorage("id");if(t&&e.params.Logins){var r=Object.keys(e.params.Logins);0!==(e.getStorage("providers")||"").split(",").filter(function(e){return-1!==r.indexOf(e)}).length&&(e.params.IdentityId=t)}else t&&(e.params.IdentityId=t)}},createClients:function(){var e=this._clientConfig;if(this.webIdentityCredentials=this.webIdentityCredentials||new i.WebIdentityCredentials(this.params,e),!this.cognito){var t=i.util.merge({},e);t.params=this.params,this.cognito=new a(t)}this.sts=this.sts||new s(e)},cacheId:function(e){this._identityId=e.IdentityId,this.params.IdentityId=this._identityId,i.util.isBrowser()&&(this.setStorage("id",e.IdentityId),this.params.Logins&&this.setStorage("providers",Object.keys(this.params.Logins).join(",")))},getStorage:function(e){return this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function(e,t){try{this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]=t}catch(e){}},storage:function(){try{var e=i.util.isBrowser()&&null!==window.localStorage&&"object"==typeof window.localStorage?window.localStorage:{};return e["aws.test-storage"]="foobar",delete e["aws.test-storage"],e}catch(e){return{}}}()})},{"../../clients/cognitoidentity":258,"../../clients/sts":326,"../core":342}],346:[function(e,t,r){var i=e("../core");i.CredentialProviderChain=i.util.inherit(i.Credentials,{constructor:function(e){this.providers=e||i.CredentialProviderChain.defaultProviders.slice(0),this.resolveCallbacks=[]},resolve:function(e){function t(e,o){if(!e&&o||a===s.length)return i.util.arrayEach(r.resolveCallbacks,function(t){t(e,o)}),void(r.resolveCallbacks.length=0);var n=s[a++];o="function"==typeof n?n.call():n,o.get?o.get(function(e){t(e,e?null:o)}):t(null,o)}var r=this;if(0===r.providers.length)return e(new Error("No providers")),r;if(1===r.resolveCallbacks.push(e)){var a=0,s=r.providers.slice(0);t()}return r}}),
|
|
83
|
+
configurable:!0}),t.exports=i.SQS},{"../apis/sqs-2012-11-05.min.json":221,"../apis/sqs-2012-11-05.paginators.json":222,"../lib/core":342,"../lib/node_loader":338,"../lib/services/sqs":406}],324:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.ssm={},i.SSM=a.defineService("ssm",["2014-11-06"]),Object.defineProperty(s.services.ssm,"2014-11-06",{get:function(){var t=e("../apis/ssm-2014-11-06.min.json");return t.paginators=e("../apis/ssm-2014-11-06.paginators.json").pagination,t.waiters=e("../apis/ssm-2014-11-06.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=i.SSM},{"../apis/ssm-2014-11-06.min.json":223,"../apis/ssm-2014-11-06.paginators.json":224,"../apis/ssm-2014-11-06.waiters2.json":225,"../lib/core":342,"../lib/node_loader":338}],325:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.storagegateway={},i.StorageGateway=a.defineService("storagegateway",["2013-06-30"]),Object.defineProperty(s.services.storagegateway,"2013-06-30",{get:function(){var t=e("../apis/storagegateway-2013-06-30.min.json");return t.paginators=e("../apis/storagegateway-2013-06-30.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.StorageGateway},{"../apis/storagegateway-2013-06-30.min.json":226,"../apis/storagegateway-2013-06-30.paginators.json":227,"../lib/core":342,"../lib/node_loader":338}],326:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.sts={},i.STS=a.defineService("sts",["2011-06-15"]),e("../lib/services/sts"),Object.defineProperty(s.services.sts,"2011-06-15",{get:function(){var t=e("../apis/sts-2011-06-15.min.json");return t.paginators=e("../apis/sts-2011-06-15.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.STS},{"../apis/sts-2011-06-15.min.json":230,"../apis/sts-2011-06-15.paginators.json":231,"../lib/core":342,"../lib/node_loader":338,"../lib/services/sts":407}],327:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.translate={},i.Translate=a.defineService("translate",["2017-07-01"]),Object.defineProperty(s.services.translate,"2017-07-01",{get:function(){var t=e("../apis/translate-2017-07-01.min.json");return t.paginators=e("../apis/translate-2017-07-01.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.Translate},{"../apis/translate-2017-07-01.min.json":232,"../apis/translate-2017-07-01.paginators.json":233,"../lib/core":342,"../lib/node_loader":338}],328:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.waf={},i.WAF=a.defineService("waf",["2015-08-24"]),Object.defineProperty(s.services.waf,"2015-08-24",{get:function(){var t=e("../apis/waf-2015-08-24.min.json");return t.paginators=e("../apis/waf-2015-08-24.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.WAF},{"../apis/waf-2015-08-24.min.json":234,"../apis/waf-2015-08-24.paginators.json":235,"../lib/core":342,"../lib/node_loader":338}],329:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.workdocs={},i.WorkDocs=a.defineService("workdocs",["2016-05-01"]),Object.defineProperty(s.services.workdocs,"2016-05-01",{get:function(){var t=e("../apis/workdocs-2016-05-01.min.json");return t.paginators=e("../apis/workdocs-2016-05-01.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.WorkDocs},{"../apis/workdocs-2016-05-01.min.json":236,"../apis/workdocs-2016-05-01.paginators.json":237,"../lib/core":342,"../lib/node_loader":338}],330:[function(e,t,r){e("../lib/node_loader");var i=e("../lib/core"),a=i.Service,s=i.apiLoader;s.services.xray={},i.XRay=a.defineService("xray",["2016-04-12"]),Object.defineProperty(s.services.xray,"2016-04-12",{get:function(){var t=e("../apis/xray-2016-04-12.min.json");return t.paginators=e("../apis/xray-2016-04-12.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=i.XRay},{"../apis/xray-2016-04-12.min.json":238,"../apis/xray-2016-04-12.paginators.json":239,"../lib/core":342,"../lib/node_loader":338}],331:[function(e,t,r){function i(e,t){if(!i.services.hasOwnProperty(e))throw new Error("InvalidService: Failed to load api for "+e);return i.services[e][t]}i.services={},t.exports=i},{}],332:[function(e,t,r){var i=e("./browserHmac"),a=e("./browserMd5"),s=e("./browserSha1"),o=e("./browserSha256");t.exports={createHash:function(e){if("md5"===(e=e.toLowerCase()))return new a;if("sha256"===e)return new o;if("sha1"===e)return new s;throw new Error("Hash algorithm "+e+" is not supported in the browser SDK")},createHmac:function(e,t){if("md5"===(e=e.toLowerCase()))return new i(a,t);if("sha256"===e)return new i(o,t);if("sha1"===e)return new i(s,t);throw new Error("HMAC algorithm "+e+" is not supported in the browser SDK")},createSign:function(){throw new Error("createSign is not implemented in the browser")}}},{"./browserHmac":334,"./browserMd5":335,"./browserSha1":336,"./browserSha256":337}],333:[function(e,t,r){function i(e){return"string"==typeof e?0===e.length:0===e.byteLength}function a(e){return"string"==typeof e&&(e=new s(e,"utf8")),ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var s=e("buffer/").Buffer;"undefined"!=typeof ArrayBuffer&&void 0===ArrayBuffer.isView&&(ArrayBuffer.isView=function(e){return o.indexOf(Object.prototype.toString.call(e))>-1});var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];t.exports={isEmptyData:i,convertToBuffer:a}},{"buffer/":426}],334:[function(e,t,r){function i(e,t){this.hash=new e,this.outer=new e;var r=a(e,t),i=new Uint8Array(e.BLOCK_SIZE);i.set(r);for(var s=0;s<e.BLOCK_SIZE;s++)r[s]^=54,i[s]^=92;this.hash.update(r),this.outer.update(i);for(var s=0;s<r.byteLength;s++)r[s]=0}function a(e,t){var r=s.convertToBuffer(t);if(r.byteLength>e.BLOCK_SIZE){var i=new e;i.update(r),r=i.digest()}var a=new Uint8Array(e.BLOCK_SIZE);return a.set(r),a}var s=e("./browserHashUtils");t.exports=i,i.prototype.update=function(e){if(s.isEmptyData(e)||this.error)return this;try{this.hash.update(s.convertToBuffer(e))}catch(e){this.error=e}return this},i.prototype.digest=function(e){return this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest(e)}},{"./browserHashUtils":333}],335:[function(e,t,r){function i(){this.state=[1732584193,4023233417,2562383102,271733878],this.buffer=new DataView(new ArrayBuffer(c)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}function a(e,t,r,i,a,s){return((t=(t+e&4294967295)+(i+s&4294967295)&4294967295)<<a|t>>>32-a)+r&4294967295}function s(e,t,r,i,s,o,n){return a(t&r|~t&i,e,t,s,o,n)}function o(e,t,r,i,s,o,n){return a(t&i|r&~i,e,t,s,o,n)}function n(e,t,r,i,s,o,n){return a(t^r^i,e,t,s,o,n)}function u(e,t,r,i,s,o,n){return a(r^(t|~i),e,t,s,o,n)}var p=e("./browserHashUtils"),m=e("buffer/").Buffer,c=64;t.exports=i,i.BLOCK_SIZE=c,i.prototype.update=function(e){if(p.isEmptyData(e))return this;if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=p.convertToBuffer(e),r=0,i=t.byteLength;for(this.bytesHashed+=i;i>0;)this.buffer.setUint8(this.bufferLength++,t[r++]),i--,this.bufferLength===c&&(this.hashBuffer(),this.bufferLength=0);return this},i.prototype.digest=function(e){if(!this.finished){var t=this,r=t.buffer,i=t.bufferLength,a=t.bytesHashed,s=8*a;if(r.setUint8(this.bufferLength++,128),i%c>=c-8){for(var o=this.bufferLength;o<c;o++)r.setUint8(o,0);this.hashBuffer(),this.bufferLength=0}for(var o=this.bufferLength;o<c-8;o++)r.setUint8(o,0);r.setUint32(c-8,s>>>0,!0),r.setUint32(c-4,Math.floor(s/4294967296),!0),this.hashBuffer(),this.finished=!0}for(var n=new DataView(new ArrayBuffer(16)),o=0;o<4;o++)n.setUint32(4*o,this.state[o],!0);var u=new m(n.buffer,n.byteOffset,n.byteLength);return e?u.toString(e):u},i.prototype.hashBuffer=function(){var e=this,t=e.buffer,r=e.state,i=r[0],a=r[1],p=r[2],m=r[3];i=s(i,a,p,m,t.getUint32(0,!0),7,3614090360),m=s(m,i,a,p,t.getUint32(4,!0),12,3905402710),p=s(p,m,i,a,t.getUint32(8,!0),17,606105819),a=s(a,p,m,i,t.getUint32(12,!0),22,3250441966),i=s(i,a,p,m,t.getUint32(16,!0),7,4118548399),m=s(m,i,a,p,t.getUint32(20,!0),12,1200080426),p=s(p,m,i,a,t.getUint32(24,!0),17,2821735955),a=s(a,p,m,i,t.getUint32(28,!0),22,4249261313),i=s(i,a,p,m,t.getUint32(32,!0),7,1770035416),m=s(m,i,a,p,t.getUint32(36,!0),12,2336552879),p=s(p,m,i,a,t.getUint32(40,!0),17,4294925233),a=s(a,p,m,i,t.getUint32(44,!0),22,2304563134),i=s(i,a,p,m,t.getUint32(48,!0),7,1804603682),m=s(m,i,a,p,t.getUint32(52,!0),12,4254626195),p=s(p,m,i,a,t.getUint32(56,!0),17,2792965006),a=s(a,p,m,i,t.getUint32(60,!0),22,1236535329),i=o(i,a,p,m,t.getUint32(4,!0),5,4129170786),m=o(m,i,a,p,t.getUint32(24,!0),9,3225465664),p=o(p,m,i,a,t.getUint32(44,!0),14,643717713),a=o(a,p,m,i,t.getUint32(0,!0),20,3921069994),i=o(i,a,p,m,t.getUint32(20,!0),5,3593408605),m=o(m,i,a,p,t.getUint32(40,!0),9,38016083),p=o(p,m,i,a,t.getUint32(60,!0),14,3634488961),a=o(a,p,m,i,t.getUint32(16,!0),20,3889429448),i=o(i,a,p,m,t.getUint32(36,!0),5,568446438),m=o(m,i,a,p,t.getUint32(56,!0),9,3275163606),p=o(p,m,i,a,t.getUint32(12,!0),14,4107603335),a=o(a,p,m,i,t.getUint32(32,!0),20,1163531501),i=o(i,a,p,m,t.getUint32(52,!0),5,2850285829),m=o(m,i,a,p,t.getUint32(8,!0),9,4243563512),p=o(p,m,i,a,t.getUint32(28,!0),14,1735328473),a=o(a,p,m,i,t.getUint32(48,!0),20,2368359562),i=n(i,a,p,m,t.getUint32(20,!0),4,4294588738),m=n(m,i,a,p,t.getUint32(32,!0),11,2272392833),p=n(p,m,i,a,t.getUint32(44,!0),16,1839030562),a=n(a,p,m,i,t.getUint32(56,!0),23,4259657740),i=n(i,a,p,m,t.getUint32(4,!0),4,2763975236),m=n(m,i,a,p,t.getUint32(16,!0),11,1272893353),p=n(p,m,i,a,t.getUint32(28,!0),16,4139469664),a=n(a,p,m,i,t.getUint32(40,!0),23,3200236656),i=n(i,a,p,m,t.getUint32(52,!0),4,681279174),m=n(m,i,a,p,t.getUint32(0,!0),11,3936430074),p=n(p,m,i,a,t.getUint32(12,!0),16,3572445317),a=n(a,p,m,i,t.getUint32(24,!0),23,76029189),i=n(i,a,p,m,t.getUint32(36,!0),4,3654602809),m=n(m,i,a,p,t.getUint32(48,!0),11,3873151461),p=n(p,m,i,a,t.getUint32(60,!0),16,530742520),a=n(a,p,m,i,t.getUint32(8,!0),23,3299628645),i=u(i,a,p,m,t.getUint32(0,!0),6,4096336452),m=u(m,i,a,p,t.getUint32(28,!0),10,1126891415),p=u(p,m,i,a,t.getUint32(56,!0),15,2878612391),a=u(a,p,m,i,t.getUint32(20,!0),21,4237533241),i=u(i,a,p,m,t.getUint32(48,!0),6,1700485571),m=u(m,i,a,p,t.getUint32(12,!0),10,2399980690),p=u(p,m,i,a,t.getUint32(40,!0),15,4293915773),a=u(a,p,m,i,t.getUint32(4,!0),21,2240044497),i=u(i,a,p,m,t.getUint32(32,!0),6,1873313359),m=u(m,i,a,p,t.getUint32(60,!0),10,4264355552),p=u(p,m,i,a,t.getUint32(24,!0),15,2734768916),a=u(a,p,m,i,t.getUint32(52,!0),21,1309151649),i=u(i,a,p,m,t.getUint32(16,!0),6,4149444226),m=u(m,i,a,p,t.getUint32(44,!0),10,3174756917),p=u(p,m,i,a,t.getUint32(8,!0),15,718787259),a=u(a,p,m,i,t.getUint32(36,!0),21,3951481745),r[0]=i+r[0]&4294967295,r[1]=a+r[1]&4294967295,r[2]=p+r[2]&4294967295,r[3]=m+r[3]&4294967295}},{"./browserHashUtils":333,"buffer/":426}],336:[function(e,t,r){function i(){this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=new Uint32Array(80),this.offset=0,this.shift=24,this.totalLength=0}var a=e("buffer/").Buffer,s=e("./browserHashUtils");new Uint32Array([1518500249,1859775393,-1894007588,-899497514]),Math.pow(2,53);t.exports=i,i.BLOCK_SIZE=64,i.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(s.isEmptyData(e))return this;e=s.convertToBuffer(e);var t=e.length;this.totalLength+=8*t;for(var r=0;r<t;r++)this.write(e[r]);return this},i.prototype.write=function(e){this.block[this.offset]|=(255&e)<<this.shift,this.shift?this.shift-=8:(this.offset++,this.shift=24),16===this.offset&&this.processBlock()},i.prototype.digest=function(e){this.write(128),(this.offset>14||14===this.offset&&this.shift<24)&&this.processBlock(),this.offset=14,this.shift=24,this.write(0),this.write(0),this.write(this.totalLength>0xffffffffff?this.totalLength/1099511627776:0),this.write(this.totalLength>4294967295?this.totalLength/4294967296:0);for(var t=24;t>=0;t-=8)this.write(this.totalLength>>t);var r=new a(20),i=new DataView(r.buffer);return i.setUint32(0,this.h0,!1),i.setUint32(4,this.h1,!1),i.setUint32(8,this.h2,!1),i.setUint32(12,this.h3,!1),i.setUint32(16,this.h4,!1),e?r.toString(e):r},i.prototype.processBlock=function(){for(var e=16;e<80;e++){var t=this.block[e-3]^this.block[e-8]^this.block[e-14]^this.block[e-16];this.block[e]=t<<1|t>>>31}var r,i,a=this.h0,s=this.h1,o=this.h2,n=this.h3,u=this.h4;for(e=0;e<80;e++){e<20?(r=n^s&(o^n),i=1518500249):e<40?(r=s^o^n,i=1859775393):e<60?(r=s&o|n&(s|o),i=2400959708):(r=s^o^n,i=3395469782);var p=(a<<5|a>>>27)+r+u+i+(0|this.block[e]);u=n,n=o,o=s<<30|s>>>2,s=a,a=p}for(this.h0=this.h0+a|0,this.h1=this.h1+s|0,this.h2=this.h2+o|0,this.h3=this.h3+n|0,this.h4=this.h4+u|0,this.offset=0,e=0;e<16;e++)this.block[e]=0}},{"./browserHashUtils":333,"buffer/":426}],337:[function(e,t,r){function i(){this.state=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}var a=e("buffer/").Buffer,s=e("./browserHashUtils"),o=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),n=Math.pow(2,53)-1;t.exports=i,i.BLOCK_SIZE=64,i.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(s.isEmptyData(e))return this;e=s.convertToBuffer(e);var t=0,r=e.byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>n)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},i.prototype.digest=function(e){if(!this.finished){var t=8*this.bytesHashed,r=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),i=this.bufferLength;if(r.setUint8(this.bufferLength++,128),i%64>=56){for(var s=this.bufferLength;s<64;s++)r.setUint8(s,0);this.hashBuffer(),this.bufferLength=0}for(var s=this.bufferLength;s<56;s++)r.setUint8(s,0);r.setUint32(56,Math.floor(t/4294967296),!0),r.setUint32(60,t),this.hashBuffer(),this.finished=!0}for(var o=new a(32),s=0;s<8;s++)o[4*s]=this.state[s]>>>24&255,o[4*s+1]=this.state[s]>>>16&255,o[4*s+2]=this.state[s]>>>8&255,o[4*s+3]=this.state[s]>>>0&255;return e?o.toString(e):o},i.prototype.hashBuffer=function(){for(var e=this,t=e.buffer,r=e.state,i=r[0],a=r[1],s=r[2],n=r[3],u=r[4],p=r[5],m=r[6],c=r[7],l=0;l<64;l++){if(l<16)this.temp[l]=(255&t[4*l])<<24|(255&t[4*l+1])<<16|(255&t[4*l+2])<<8|255&t[4*l+3];else{var d=this.temp[l-2],y=(d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10;d=this.temp[l-15];var b=(d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3;this.temp[l]=(y+this.temp[l-7]|0)+(b+this.temp[l-16]|0)}var S=(((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&p^~u&m)|0)+(c+(o[l]+this.temp[l]|0)|0)|0,g=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&a^i&s^a&s)|0;c=m,m=p,p=u,u=n+S|0,n=s,s=a,a=i,i=S+g|0}r[0]+=i,r[1]+=a,r[2]+=s,r[3]+=n,r[4]+=u,r[5]+=p,r[6]+=m,r[7]+=c}},{"./browserHashUtils":333,"buffer/":426}],338:[function(e,t,r){(function(r){(function(){var r=e("./util");r.crypto.lib=e("./browserCryptoLib"),r.Buffer=e("buffer/").Buffer,r.url=e("url/"),r.querystring=e("querystring/"),r.realClock=e("./realclock/browserClock"),r.environment="js",r.createEventStream=e("./event-stream/buffered-create-event-stream").createEventStream,r.isBrowser=function(){return!0},r.isNode=function(){return!1};var i=e("./core");if(t.exports=i,e("./credentials"),e("./credentials/credential_provider_chain"),e("./credentials/temporary_credentials"),e("./credentials/chainable_temporary_credentials"),e("./credentials/web_identity_credentials"),e("./credentials/cognito_identity_credentials"),e("./credentials/saml_credentials"),i.XML.Parser=e("./xml/browser_parser"),e("./http/xhr"),void 0===a)var a={browser:!0}}).call(this)}).call(this,e("_process"))},{"./browserCryptoLib":332,"./core":342,"./credentials":343,"./credentials/chainable_temporary_credentials":344,"./credentials/cognito_identity_credentials":345,"./credentials/credential_provider_chain":346,"./credentials/saml_credentials":347,"./credentials/temporary_credentials":348,"./credentials/web_identity_credentials":349,"./event-stream/buffered-create-event-stream":357,"./http/xhr":365,"./realclock/browserClock":384,"./util":417,"./xml/browser_parser":418,_process:431,"buffer/":426,"querystring/":438,"url/":440}],339:[function(e,t,r){var i=e("../core"),a=i.util.url,s=i.util.crypto.lib,o=i.util.base64.encode,n=i.util.inherit,u=function(e){var t={"+":"-","=":"_","/":"~"};return e.replace(/[\+=\/]/g,function(e){return t[e]})},p=function(e,t){var r=s.createSign("RSA-SHA1");return r.write(e),u(r.sign(t,"base64"))},m=function(e,t,r,i){var a=JSON.stringify({Statement:[{Resource:e,Condition:{DateLessThan:{"AWS:EpochTime":t}}}]});return{Expires:t,"Key-Pair-Id":r,Signature:p(a.toString(),i)}},c=function(e,t,r){return e=e.replace(/\s/gm,""),{Policy:u(o(e)),"Key-Pair-Id":t,Signature:p(e,r)}},l=function(e){var t=e.split("://");if(t.length<2)throw new Error("Invalid URL.");return t[0].replace("*","")},d=function(e){var t=a.parse(e);return t.path.replace(/^\//,"")+(t.hash||"")},y=function(e){switch(l(e)){case"http":case"https":return e;case"rtmp":return d(e);default:throw new Error("Invalid URI scheme. Scheme must be one of http, https, or rtmp")}},b=function(e,t){if(!t||"function"!=typeof t)throw e;t(e)},S=function(e,t){if(!t||"function"!=typeof t)return e;t(null,e)};i.CloudFront.Signer=n({constructor:function(e,t){if(void 0===e||void 0===t)throw new Error("A key pair ID and private key are required");this.keyPairId=e,this.privateKey=t},getSignedCookie:function(e,t){var r="policy"in e?c(e.policy,this.keyPairId,this.privateKey):m(e.url,e.expires,this.keyPairId,this.privateKey),i={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i["CloudFront-"+a]=r[a]);return S(i,t)},getSignedUrl:function(e,t){try{var r=y(e.url)}catch(e){return b(e,t)}var i=a.parse(e.url,!0),s=Object.prototype.hasOwnProperty.call(e,"policy")?c(e.policy,this.keyPairId,this.privateKey):m(r,e.expires,this.keyPairId,this.privateKey);i.search=null;for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(i.query[o]=s[o]);try{var n="rtmp"===l(e.url)?d(a.format(i)):a.format(i)}catch(e){return b(e,t)}return S(n,t)}}),t.exports=i.CloudFront.Signer},{"../core":342}],340:[function(e,t,r){var i=e("./core");e("./credentials"),e("./credentials/credential_provider_chain");var a;i.Config=i.util.inherit({constructor:function(e){void 0===e&&(e={}),e=this.extractCredentials(e),i.util.each.call(this,this.keys,function(t,r){this.set(t,e[t],r)})},getCredentials:function(e){function t(t){e(t,t?null:a.credentials)}function r(e,t){return new i.util.error(t||new Error,{code:"CredentialsError",message:e,name:"CredentialsError"})}var a=this;a.credentials?"function"==typeof a.credentials.get?function(){a.credentials.get(function(e){e&&(e=r("Could not load credentials from "+a.credentials.constructor.name,e)),t(e)})}():function(){var e=null;a.credentials.accessKeyId&&a.credentials.secretAccessKey||(e=r("Missing credentials")),t(e)}():a.credentialProvider?a.credentialProvider.resolve(function(e,i){e&&(e=r("Could not load credentials from any providers",e)),a.credentials=i,t(e)}):t(r("No credentials to load"))},update:function(e,t){t=t||!1,e=this.extractCredentials(e),i.util.each.call(this,e,function(e,r){(t||Object.prototype.hasOwnProperty.call(this.keys,e)||i.Service.hasService(e))&&this.set(e,r)})},loadFromPath:function(e){this.clear();var t=JSON.parse(i.util.readFileSync(e)),r=new i.FileSystemCredentials(e),a=new i.CredentialProviderChain;return a.providers.unshift(r),a.resolve(function(e,r){if(e)throw e;t.credentials=r}),this.constructor(t),this},clear:function(){i.util.each.call(this,this.keys,function(e){delete this[e]}),this.set("credentials",void 0),this.set("credentialProvider",void 0)},set:function(e,t,r){void 0===t?(void 0===r&&(r=this.keys[e]),this[e]="function"==typeof r?r.call(this):r):"httpOptions"===e&&this[e]?this[e]=i.util.merge(this[e],t):this[e]=t},keys:{credentials:null,credentialProvider:null,region:null,logger:null,apiVersions:{},apiVersion:null,endpoint:void 0,httpOptions:{timeout:12e4},maxRetries:void 0,maxRedirects:10,paramValidation:!0,sslEnabled:!0,s3ForcePathStyle:!1,s3BucketEndpoint:!1,s3DisableBodySigning:!0,s3UsEast1RegionalEndpoint:"legacy",s3UseArnRegion:void 0,computeChecksums:!0,convertResponseTypes:!0,correctClockSkew:!1,customUserAgent:null,dynamoDbCrc32:!0,systemClockOffset:0,signatureVersion:null,signatureCache:!0,retryDelayOptions:{},useAccelerateEndpoint:!1,clientSideMonitoring:!1,endpointDiscoveryEnabled:void 0,endpointCacheSize:1e3,hostPrefixEnabled:!0,stsRegionalEndpoints:"legacy"},extractCredentials:function(e){return e.accessKeyId&&e.secretAccessKey&&(e=i.util.copy(e),e.credentials=new i.Credentials(e)),e},setPromisesDependency:function(e){a=e,null===e&&"function"==typeof Promise&&(a=Promise);var t=[i.Request,i.Credentials,i.CredentialProviderChain];i.S3&&(t.push(i.S3),i.S3.ManagedUpload&&t.push(i.S3.ManagedUpload)),i.util.addPromises(t,a)},getPromisesDependency:function(){return a}}),i.config=new i.Config},{"./core":342,"./credentials":343,"./credentials/credential_provider_chain":346}],341:[function(e,t,r){(function(r){(function(){function i(e,t){if("string"==typeof e){if(["legacy","regional"].indexOf(e.toLowerCase())>=0)return e.toLowerCase();throw s.util.error(new Error,t)}}function a(e,t){e=e||{};var a;if(e[t.clientConfig]&&(a=i(e[t.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+t.clientConfig+'" configuration. Expect "legacy" or "regional". Got "'+e[t.clientConfig]+'".'})))return a;if(!s.util.isNode())return a;if(Object.prototype.hasOwnProperty.call(r.env,t.env)){if(a=i(r.env[t.env],{code:"InvalidEnvironmentalVariable",message:"invalid "+t.env+' environmental variable. Expect "legacy" or "regional". Got "'+r.env[t.env]+'".'}))return a}var o={};try{o=s.util.getProfilesFromSharedConfig(s.util.iniLoader)[r.env.AWS_PROFILE||s.util.defaultProfile]}catch(e){}if(o&&Object.prototype.hasOwnProperty.call(o,t.sharedConfig)){if(a=i(o[t.sharedConfig],{code:"InvalidConfiguration",message:"invalid "+t.sharedConfig+' profile config. Expect "legacy" or "regional". Got "'+o[t.sharedConfig]+'".'}))return a}return a}var s=e("./core");t.exports=a}).call(this)}).call(this,e("_process"))},{"./core":342,_process:431}],342:[function(e,t,r){var i={util:e("./util")};({}).toString(),t.exports=i,i.util.update(i,{VERSION:"2.1013.0",Signers:{},Protocol:{Json:e("./protocol/json"),Query:e("./protocol/query"),Rest:e("./protocol/rest"),RestJson:e("./protocol/rest_json"),RestXml:e("./protocol/rest_xml")},XML:{Builder:e("./xml/builder"),Parser:null},JSON:{Builder:e("./json/builder"),Parser:e("./json/parser")},Model:{Api:e("./model/api"),Operation:e("./model/operation"),Shape:e("./model/shape"),Paginator:e("./model/paginator"),ResourceWaiter:e("./model/resource_waiter")},apiLoader:e("./api_loader"),EndpointCache:e("../vendor/endpoint-cache").EndpointCache}),e("./sequential_executor"),e("./service"),e("./config"),e("./http"),e("./event_listeners"),e("./request"),e("./response"),e("./resource_waiter"),e("./signers/request_signer"),e("./param_validator"),i.events=new i.SequentialExecutor,i.util.memoizedProperty(i,"endpointCache",function(){return new i.EndpointCache(i.config.endpointCacheSize)},!0)},{"../vendor/endpoint-cache":449,"./api_loader":331,"./config":340,"./event_listeners":363,"./http":364,"./json/builder":366,"./json/parser":367,"./model/api":368,"./model/operation":370,"./model/paginator":371,"./model/resource_waiter":372,"./model/shape":373,"./param_validator":374,"./protocol/json":377,"./protocol/query":378,"./protocol/rest":379,"./protocol/rest_json":380,"./protocol/rest_xml":381,"./request":387,"./resource_waiter":388,"./response":389,"./sequential_executor":391,"./service":392,"./signers/request_signer":409,"./util":417,"./xml/builder":419}],343:[function(e,t,r){var i=e("./core");i.Credentials=i.util.inherit({constructor:function(){if(i.util.hideProperties(this,["secretAccessKey"]),this.expired=!1,this.expireTime=null,this.refreshCallbacks=[],1===arguments.length&&"object"==typeof arguments[0]){var e=arguments[0].credentials||arguments[0];this.accessKeyId=e.accessKeyId,this.secretAccessKey=e.secretAccessKey,this.sessionToken=e.sessionToken}else this.accessKeyId=arguments[0],this.secretAccessKey=arguments[1],this.sessionToken=arguments[2]},expiryWindow:15,needsRefresh:function(){var e=i.util.date.getDate().getTime(),t=new Date(e+1e3*this.expiryWindow);return!!(this.expireTime&&t>this.expireTime)||(this.expired||!this.accessKeyId||!this.secretAccessKey)},get:function(e){var t=this;this.needsRefresh()?this.refresh(function(r){r||(t.expired=!1),e&&e(r)}):e&&e()},refresh:function(e){this.expired=!1,e()},coalesceRefresh:function(e,t){var r=this;1===r.refreshCallbacks.push(e)&&r.load(function(e){i.util.arrayEach(r.refreshCallbacks,function(r){t?r(e):i.util.defer(function(){r(e)})}),r.refreshCallbacks.length=0})},load:function(e){e()}}),i.Credentials.addPromisesToClass=function(e){this.prototype.getPromise=i.util.promisifyMethod("get",e),this.prototype.refreshPromise=i.util.promisifyMethod("refresh",e)},i.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},i.util.addPromises(i.Credentials)},{"./core":342}],344:[function(e,t,r){var i=e("../core"),a=e("../../clients/sts");i.ChainableTemporaryCredentials=i.util.inherit(i.Credentials,{constructor:function(e){i.Credentials.call(this),e=e||{},this.errorCode="ChainableTemporaryCredentialsProviderFailure",this.expired=!0,this.tokenCodeFn=null;var t=i.util.copy(e.params)||{};if(t.RoleArn&&(t.RoleSessionName=t.RoleSessionName||"temporary-credentials"),t.SerialNumber){if(!e.tokenCodeFn||"function"!=typeof e.tokenCodeFn)throw new i.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode});this.tokenCodeFn=e.tokenCodeFn}var r=i.util.merge({params:t,credentials:e.masterCredentials||i.config.credentials},e.stsConfig||{});this.service=new a(r)},refresh:function(e){this.coalesceRefresh(e||i.util.fn.callback)},load:function(e){var t=this,r=t.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode(function(i,a){var s={};if(i)return void e(i);a&&(s.TokenCode=a),t.service[r](s,function(r,i){r||t.service.credentialsFrom(i,t),e(r)})})},getTokenCode:function(e){var t=this;this.tokenCodeFn?this.tokenCodeFn(this.service.config.params.SerialNumber,function(r,a){if(r){var s=r;return r instanceof Error&&(s=r.message),void e(i.util.error(new Error("Error fetching MFA token: "+s),{code:t.errorCode}))}e(null,a)}):e(null)}})},{"../../clients/sts":326,"../core":342}],345:[function(e,t,r){var i=e("../core"),a=e("../../clients/cognitoidentity"),s=e("../../clients/sts");i.CognitoIdentityCredentials=i.util.inherit(i.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function(e,t){i.Credentials.call(this),this.expired=!0,this.params=e,this.data=null,this._identityId=null,this._clientConfig=i.util.copy(t||{}),this.loadCachedId();var r=this;Object.defineProperty(this,"identityId",{get:function(){return r.loadCachedId(),r._identityId||r.params.IdentityId},set:function(e){r._identityId=e}})},refresh:function(e){this.coalesceRefresh(e||i.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.data=null,t._identityId=null,t.getId(function(r){r?(t.clearIdOnNotAuthorized(r),e(r)):t.params.RoleArn?t.getCredentialsFromSTS(e):t.getCredentialsForIdentity(e)})},clearCachedId:function(){this._identityId=null,delete this.params.IdentityId;var e=this.params.IdentityPoolId,t=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+e+t],delete this.storage[this.localStorageKey.providers+e+t]},clearIdOnNotAuthorized:function(e){var t=this;"NotAuthorizedException"==e.code&&t.clearCachedId()},getId:function(e){var t=this;if("string"==typeof t.params.IdentityId)return e(null,t.params.IdentityId);t.cognito.getId(function(r,i){!r&&i.IdentityId?(t.params.IdentityId=i.IdentityId,e(null,i.IdentityId)):e(r)})},loadCredentials:function(e,t){e&&t&&(t.expired=!1,t.accessKeyId=e.Credentials.AccessKeyId,t.secretAccessKey=e.Credentials.SecretKey,t.sessionToken=e.Credentials.SessionToken,t.expireTime=e.Credentials.Expiration)},getCredentialsForIdentity:function(e){var t=this;t.cognito.getCredentialsForIdentity(function(r,i){r?t.clearIdOnNotAuthorized(r):(t.cacheId(i),t.data=i,t.loadCredentials(t.data,t)),e(r)})},getCredentialsFromSTS:function(e){var t=this;t.cognito.getOpenIdToken(function(r,i){r?(t.clearIdOnNotAuthorized(r),e(r)):(t.cacheId(i),t.params.WebIdentityToken=i.Token,t.webIdentityCredentials.refresh(function(r){r||(t.data=t.webIdentityCredentials.data,t.sts.credentialsFrom(t.data,t)),e(r)}))})},loadCachedId:function(){var e=this;if(i.util.isBrowser()&&!e.params.IdentityId){var t=e.getStorage("id");if(t&&e.params.Logins){var r=Object.keys(e.params.Logins);0!==(e.getStorage("providers")||"").split(",").filter(function(e){return-1!==r.indexOf(e)}).length&&(e.params.IdentityId=t)}else t&&(e.params.IdentityId=t)}},createClients:function(){var e=this._clientConfig;if(this.webIdentityCredentials=this.webIdentityCredentials||new i.WebIdentityCredentials(this.params,e),!this.cognito){var t=i.util.merge({},e);t.params=this.params,this.cognito=new a(t)}this.sts=this.sts||new s(e)},cacheId:function(e){this._identityId=e.IdentityId,this.params.IdentityId=this._identityId,i.util.isBrowser()&&(this.setStorage("id",e.IdentityId),this.params.Logins&&this.setStorage("providers",Object.keys(this.params.Logins).join(",")))},getStorage:function(e){return this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function(e,t){try{this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]=t}catch(e){}},storage:function(){try{var e=i.util.isBrowser()&&null!==window.localStorage&&"object"==typeof window.localStorage?window.localStorage:{};return e["aws.test-storage"]="foobar",delete e["aws.test-storage"],e}catch(e){return{}}}()})},{"../../clients/cognitoidentity":258,"../../clients/sts":326,"../core":342}],346:[function(e,t,r){var i=e("../core");i.CredentialProviderChain=i.util.inherit(i.Credentials,{constructor:function(e){this.providers=e||i.CredentialProviderChain.defaultProviders.slice(0),this.resolveCallbacks=[]},resolve:function(e){function t(e,o){if(!e&&o||a===s.length)return i.util.arrayEach(r.resolveCallbacks,function(t){t(e,o)}),void(r.resolveCallbacks.length=0);var n=s[a++];o="function"==typeof n?n.call():n,o.get?o.get(function(e){t(e,e?null:o)}):t(null,o)}var r=this;if(0===r.providers.length)return e(new Error("No providers")),r;if(1===r.resolveCallbacks.push(e)){var a=0,s=r.providers.slice(0);t()}return r}}),
|
|
84
84
|
i.CredentialProviderChain.defaultProviders=[],i.CredentialProviderChain.addPromisesToClass=function(e){this.prototype.resolvePromise=i.util.promisifyMethod("resolve",e)},i.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},i.util.addPromises(i.CredentialProviderChain)},{"../core":342}],347:[function(e,t,r){var i=e("../core"),a=e("../../clients/sts");i.SAMLCredentials=i.util.inherit(i.Credentials,{constructor:function(e){i.Credentials.call(this),this.expired=!0,this.params=e},refresh:function(e){this.coalesceRefresh(e||i.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.service.assumeRoleWithSAML(function(r,i){r||t.service.credentialsFrom(i,t),e(r)})},createClients:function(){this.service=this.service||new a({params:this.params})}})},{"../../clients/sts":326,"../core":342}],348:[function(e,t,r){var i=e("../core"),a=e("../../clients/sts");i.TemporaryCredentials=i.util.inherit(i.Credentials,{constructor:function(e,t){i.Credentials.call(this),this.loadMasterCredentials(t),this.expired=!0,this.params=e||{},this.params.RoleArn&&(this.params.RoleSessionName=this.params.RoleSessionName||"temporary-credentials")},refresh:function(e){this.coalesceRefresh(e||i.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.masterCredentials.get(function(){t.service.config.credentials=t.masterCredentials,(t.params.RoleArn?t.service.assumeRole:t.service.getSessionToken).call(t.service,function(r,i){r||t.service.credentialsFrom(i,t),e(r)})})},loadMasterCredentials:function(e){for(this.masterCredentials=e||i.config.credentials;this.masterCredentials.masterCredentials;)this.masterCredentials=this.masterCredentials.masterCredentials;"function"!=typeof this.masterCredentials.get&&(this.masterCredentials=new i.Credentials(this.masterCredentials))},createClients:function(){this.service=this.service||new a({params:this.params})}})},{"../../clients/sts":326,"../core":342}],349:[function(e,t,r){var i=e("../core"),a=e("../../clients/sts");i.WebIdentityCredentials=i.util.inherit(i.Credentials,{constructor:function(e,t){i.Credentials.call(this),this.expired=!0,this.params=e,this.params.RoleSessionName=this.params.RoleSessionName||"web-identity",this.data=null,this._clientConfig=i.util.copy(t||{})},refresh:function(e){this.coalesceRefresh(e||i.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.service.assumeRoleWithWebIdentity(function(r,i){t.data=null,r||(t.data=i,t.service.credentialsFrom(i,t)),e(r)})},createClients:function(){if(!this.service){var e=i.util.merge({},this._clientConfig);e.params=this.params,this.service=new a(e)}}})},{"../../clients/sts":326,"../core":342}],350:[function(e,t,r){(function(r){(function(){function i(e){var t=e.service,r=t.api||{},i={};return t.config.region&&(i.region=t.config.region),r.serviceId&&(i.serviceId=r.serviceId),t.config.credentials.accessKeyId&&(i.accessKeyId=t.config.credentials.accessKeyId),i}function a(e,t,r){r&&void 0!==t&&null!==t&&"structure"===r.type&&r.required&&r.required.length>0&&b.arrayEach(r.required,function(i){var s=r.members[i];if(!0===s.endpointDiscoveryId){var o=s.isLocationName?s.name:i;e[o]=String(t[i])}else a(e,t[i],s)})}function s(e,t){var r={};return a(r,e.params,t),r}function o(e){var t=e.service,r=t.api,a=r.operations?r.operations[e.operation]:void 0,o=a?a.input:void 0,n=s(e,o),p=i(e);Object.keys(n).length>0&&(p=b.update(p,n),a&&(p.operation=a.name));var m=y.endpointCache.get(p);if(!m||1!==m.length||""!==m[0].Address)if(m&&m.length>0)e.httpRequest.updateEndpoint(m[0].Address);else{var c=t.makeRequest(r.endpointOperation,{Operation:a.name,Identifiers:n});u(c),c.removeListener("validate",y.EventListeners.Core.VALIDATE_PARAMETERS),c.removeListener("retry",y.EventListeners.Core.RETRY_CHECK),y.endpointCache.put(p,[{Address:"",CachePeriodInMinutes:1}]),c.send(function(e,t){t&&t.Endpoints?y.endpointCache.put(p,t.Endpoints):e&&y.endpointCache.put(p,[{Address:"",CachePeriodInMinutes:1}])})}}function n(e,t){var r=e.service,a=r.api,o=a.operations?a.operations[e.operation]:void 0,n=o?o.input:void 0,p=s(e,n),m=i(e);Object.keys(p).length>0&&(m=b.update(m,p),o&&(m.operation=o.name));var c=y.EndpointCache.getKeyString(m),l=y.endpointCache.get(c);if(l&&1===l.length&&""===l[0].Address)return g[c]||(g[c]=[]),void g[c].push({request:e,callback:t});if(l&&l.length>0)e.httpRequest.updateEndpoint(l[0].Address),t();else{var d=r.makeRequest(a.endpointOperation,{Operation:o.name,Identifiers:p});d.removeListener("validate",y.EventListeners.Core.VALIDATE_PARAMETERS),u(d),y.endpointCache.put(c,[{Address:"",CachePeriodInMinutes:60}]),d.send(function(r,i){if(r){if(e.response.error=b.error(r,{retryable:!1}),y.endpointCache.remove(m),g[c]){var a=g[c];b.arrayEach(a,function(e){e.request.response.error=b.error(r,{retryable:!1}),e.callback()}),delete g[c]}}else if(i&&(y.endpointCache.put(c,i.Endpoints),e.httpRequest.updateEndpoint(i.Endpoints[0].Address),g[c])){var a=g[c];b.arrayEach(a,function(e){e.request.httpRequest.updateEndpoint(i.Endpoints[0].Address),e.callback()}),delete g[c]}t()})}}function u(e){var t=e.service.api,r=t.apiVersion;r&&!e.httpRequest.headers["x-amz-api-version"]&&(e.httpRequest.headers["x-amz-api-version"]=r)}function p(e){var t=e.error,r=e.httpResponse;if(t&&("InvalidEndpointException"===t.code||421===r.statusCode)){var a=e.request,o=a.service.api.operations||{},n=o[a.operation]?o[a.operation].input:void 0,u=s(a,n),p=i(a);Object.keys(u).length>0&&(p=b.update(p,u),o[a.operation]&&(p.operation=o[a.operation].name)),y.endpointCache.remove(p)}}function m(e){if(e._originalConfig&&e._originalConfig.endpoint&&!0===e._originalConfig.endpointDiscoveryEnabled)throw b.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."});var t=y.config[e.serviceIdentifier]||{};return Boolean(y.config.endpoint||t.endpoint||e._originalConfig&&e._originalConfig.endpoint)}function c(e){return["false","0"].indexOf(e)>=0}function l(e){var t=e.service||{};if(void 0!==t.config.endpointDiscoveryEnabled)return t.config.endpointDiscoveryEnabled;if(!b.isBrowser()){for(var i=0;i<S.length;i++){var a=S[i];if(Object.prototype.hasOwnProperty.call(r.env,a)){if(""===r.env[a]||void 0===r.env[a])throw b.error(new Error,{code:"ConfigurationException",message:"environmental variable "+a+" cannot be set to nothing"});return!c(r.env[a])}}var s={};try{s=y.util.iniLoader?y.util.iniLoader.loadFrom({isConfig:!0,filename:r.env[y.util.sharedConfigFileEnv]}):{}}catch(e){}var o=s[r.env.AWS_PROFILE||y.util.defaultProfile]||{};if(Object.prototype.hasOwnProperty.call(o,"endpoint_discovery_enabled")){if(void 0===o.endpoint_discovery_enabled)throw b.error(new Error,{code:"ConfigurationException",message:"config file entry 'endpoint_discovery_enabled' cannot be set to nothing"});return!c(o.endpoint_discovery_enabled)}}}function d(e,t){var r=e.service||{};if(m(r)||e.isPresigned())return t();var i=r.api.operations||{},a=i[e.operation],s=a?a.endpointDiscoveryRequired:"NULL",u=l(e),c=r.api.hasRequiredEndpointDiscovery;switch((u||c)&&e.httpRequest.appendToUserAgent("endpoint-discovery"),s){case"OPTIONAL":(u||c)&&(o(e),e.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",p)),t();break;case"REQUIRED":if(!1===u){e.response.error=b.error(new Error,{code:"ConfigurationException",message:"Endpoint Discovery is disabled but "+r.api.className+"."+e.operation+"() requires it. Please check your configurations."}),t();break}e.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",p),n(e,t);break;case"NULL":default:t()}}var y=e("./core"),b=e("./util"),S=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"],g={};t.exports={discoverEndpoint:d,requiredDiscoverEndpoint:n,optionalDiscoverEndpoint:o,marshallCustomIdentifiers:s,getCacheKey:i,invalidateCachedEndpoint:p}}).call(this)}).call(this,e("_process"))},{"./core":342,"./util":417,_process:431}],351:[function(e,t,r){function i(e,t){for(var r={L:[]},i=0;i<e.length;i++)r.L.push(u.DynamoDB.Converter.input(e[i],t));return r}function a(e,t){return t?new l(e):Number(e)}function s(e,t){var r={M:{}};for(var i in e){var a=u.DynamoDB.Converter.input(e[i],t);void 0!==a&&(r.M[i]=a)}return r}function o(e,t){t=t||{};var r=e.values;if(t.convertEmptyValues&&(r=n(e),0===r.length))return u.DynamoDB.Converter.input(null);var i={};switch(e.type){case"String":i.SS=r;break;case"Binary":i.BS=r;break;case"Number":i.NS=r.map(function(e){return e.toString()})}return i}function n(e){var t=[];if({String:!0,Binary:!0,Number:!1}[e.type]){for(var r=0;r<e.values.length;r++)0!==e.values[r].length&&t.push(e.values[r]);return t}return e.values}var u=e("../core"),p=u.util,m=e("./types").typeOf,c=e("./set"),l=e("./numberValue");u.DynamoDB.Converter={input:function e(t,r){r=r||{};var a=m(t);return"Object"===a?s(t,r):"Array"===a?i(t,r):"Set"===a?o(t,r):"String"===a?0===t.length&&r.convertEmptyValues?e(null):{S:t}:"Number"===a||"NumberValue"===a?{N:t.toString()}:"Binary"===a?0===t.length&&r.convertEmptyValues?e(null):{B:t}:"Boolean"===a?{BOOL:t}:"null"===a?{NULL:!0}:"undefined"!==a&&"Function"!==a?s(t,r):void 0},marshall:function(e,t){return u.DynamoDB.Converter.input(e,t).M},output:function e(t,r){r=r||{};var i,s,o;for(var n in t){var m=t[n];if("M"===n){s={};for(var l in m)s[l]=e(m[l],r);return s}if("L"===n){for(i=[],o=0;o<m.length;o++)i.push(e(m[o],r));return i}if("SS"===n){for(i=[],o=0;o<m.length;o++)i.push(m[o]+"");return new c(i)}if("NS"===n){for(i=[],o=0;o<m.length;o++)i.push(a(m[o],r.wrapNumbers));return new c(i)}if("BS"===n){for(i=[],o=0;o<m.length;o++)i.push(u.util.buffer.toBuffer(m[o]));return new c(i)}if("S"===n)return m+"";if("N"===n)return a(m,r.wrapNumbers);if("B"===n)return p.buffer.toBuffer(m);if("BOOL"===n)return"true"===m||"TRUE"===m||!0===m;if("NULL"===n)return null}},unmarshall:function(e,t){return u.DynamoDB.Converter.output({M:e},t)}},t.exports=u.DynamoDB.Converter},{"../core":342,"./numberValue":353,"./set":354,"./types":356}],352:[function(e,t,r){var i=e("../core"),a=e("./translator"),s=e("./set");i.DynamoDB.DocumentClient=i.util.inherit({constructor:function(e){var t=this;t.options=e||{},t.configure(t.options)},configure:function(e){var t=this;t.service=e.service,t.bindServiceObject(e),t.attrValue=e.attrValue=t.service.api.operations.putItem.input.members.Item.value.shape},bindServiceObject:function(e){var t=this;if(e=e||{},t.service){var r=i.util.copy(t.service.config);t.service=new t.service.constructor.__super__(r),t.service.config.params=i.util.merge(t.service.config.params||{},e.params)}else t.service=new i.DynamoDB(e)},makeServiceRequest:function(e,t,r){var i=this,a=i.service[e](t);return i.setupRequest(a),i.setupResponse(a),"function"==typeof r&&a.send(r),a},serviceClientOperationsMap:{batchGet:"batchGetItem",batchWrite:"batchWriteItem",delete:"deleteItem",get:"getItem",put:"putItem",query:"query",scan:"scan",update:"updateItem",transactGet:"transactGetItems",transactWrite:"transactWriteItems"},batchGet:function(e,t){var r=this.serviceClientOperationsMap.batchGet;return this.makeServiceRequest(r,e,t)},batchWrite:function(e,t){var r=this.serviceClientOperationsMap.batchWrite;return this.makeServiceRequest(r,e,t)},delete:function(e,t){var r=this.serviceClientOperationsMap.delete;return this.makeServiceRequest(r,e,t)},get:function(e,t){var r=this.serviceClientOperationsMap.get;return this.makeServiceRequest(r,e,t)},put:function(e,t){var r=this.serviceClientOperationsMap.put;return this.makeServiceRequest(r,e,t)},update:function(e,t){var r=this.serviceClientOperationsMap.update;return this.makeServiceRequest(r,e,t)},scan:function(e,t){var r=this.serviceClientOperationsMap.scan;return this.makeServiceRequest(r,e,t)},query:function(e,t){var r=this.serviceClientOperationsMap.query;return this.makeServiceRequest(r,e,t)},transactWrite:function(e,t){var r=this.serviceClientOperationsMap.transactWrite;return this.makeServiceRequest(r,e,t)},transactGet:function(e,t){var r=this.serviceClientOperationsMap.transactGet;return this.makeServiceRequest(r,e,t)},createSet:function(e,t){return t=t||{},new s(e,t)},getTranslator:function(){return new a(this.options)},setupRequest:function(e){var t=this,r=t.getTranslator(),a=e.operation,s=e.service.api.operations[a].input;e._events.validate.unshift(function(e){e.rawParams=i.util.copy(e.params),e.params=r.translateInput(e.rawParams,s)})},setupResponse:function(e){var t=this,r=t.getTranslator(),a=t.service.api.operations[e.operation].output;e.on("extractData",function(e){e.data=r.translateOutput(e.data,a)}),e.response.nextPage=function(e){var r,a=this,s=a.request,o=s.service,n=s.operation;try{r=o.paginationConfig(n,!0)}catch(e){a.error=e}if(!a.hasNextPage()){if(e)e(a.error,null);else if(a.error)throw a.error;return null}var u=i.util.copy(s.rawParams);if(a.nextPageTokens){var p=r.inputToken;"string"==typeof p&&(p=[p]);for(var m=0;m<p.length;m++)u[p[m]]=a.nextPageTokens[m];return t[n](u,e)}return e?e(null,null):null}}}),t.exports=i.DynamoDB.DocumentClient},{"../core":342,"./set":354,"./translator":355}],353:[function(e,t,r){var i=e("../core").util,a=i.inherit({constructor:function(e){this.wrapperName="NumberValue",this.value=e.toString()},toJSON:function(){return this.toNumber()},toNumber:function(){return Number(this.value)},toString:function(){return this.value}});t.exports=a},{"../core":342}],354:[function(e,t,r){var i=e("../core").util,a=e("./types").typeOf,s={String:"String",Number:"Number",NumberValue:"Number",Binary:"Binary"},o=i.inherit({constructor:function(e,t){t=t||{},this.wrapperName="Set",this.initialize(e,t.validate)},initialize:function(e,t){var r=this;r.values=[].concat(e),r.detectType(),t&&r.validate()},detectType:function(){if(this.type=s[a(this.values[0])],!this.type)throw i.error(new Error,{code:"InvalidSetType",message:"Sets can contain string, number, or binary values"})},validate:function(){for(var e=this,t=e.values.length,r=e.values,o=0;o<t;o++)if(s[a(r[o])]!==e.type)throw i.error(new Error,{code:"InvalidType",message:e.type+" Set contains "+a(r[o])+" value"})},toJSON:function(){return this.values}});t.exports=o},{"../core":342,"./types":356}],355:[function(e,t,r){var i=e("../core").util,a=e("./converter"),s=function(e){e=e||{},this.attrValue=e.attrValue,this.convertEmptyValues=Boolean(e.convertEmptyValues),this.wrapNumbers=Boolean(e.wrapNumbers)};s.prototype.translateInput=function(e,t){return this.mode="input",this.translate(e,t)},s.prototype.translateOutput=function(e,t){return this.mode="output",this.translate(e,t)},s.prototype.translate=function(e,t){var r=this;if(t&&void 0!==e){if(t.shape===r.attrValue)return a[r.mode](e,{convertEmptyValues:r.convertEmptyValues,wrapNumbers:r.wrapNumbers});switch(t.type){case"structure":return r.translateStructure(e,t);case"map":return r.translateMap(e,t);case"list":return r.translateList(e,t);default:return r.translateScalar(e,t)}}},s.prototype.translateStructure=function(e,t){var r=this;if(null!=e){var a={};return i.each(e,function(e,i){var s=t.members[e];if(s){var o=r.translate(i,s);void 0!==o&&(a[e]=o)}}),a}},s.prototype.translateList=function(e,t){var r=this;if(null!=e){var a=[];return i.arrayEach(e,function(e){var i=r.translate(e,t.member);void 0===i?a.push(null):a.push(i)}),a}},s.prototype.translateMap=function(e,t){var r=this;if(null!=e){var a={};return i.each(e,function(e,i){var s=r.translate(i,t.value);a[e]=void 0===s?null:s}),a}},s.prototype.translateScalar=function(e,t){return t.toType(e)},t.exports=s},{"../core":342,"./converter":351}],356:[function(e,t,r){function i(e){return null===e&&"object"==typeof e?"null":void 0!==e&&a(e)?"Binary":void 0!==e&&e.constructor?e.wrapperName||s.typeName(e.constructor):void 0!==e&&"object"==typeof e?"Object":"undefined"}function a(e){var t=["Buffer","File","Blob","ArrayBuffer","DataView","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"];if(s.isNode()){var r=s.stream.Stream;if(s.Buffer.isBuffer(e)||e instanceof r)return!0}for(var i=0;i<t.length;i++)if(void 0!==e&&e.constructor){if(s.isType(e,t[i]))return!0;if(s.typeName(e.constructor)===t[i])return!0}return!1}var s=e("../core").util;t.exports={typeOf:i,isBinary:a}},{"../core":342}],357:[function(e,t,r){function i(e,t,r){for(var i=a(e),o=[],n=0;n<i.length;n++)o.push(s(t,i[n],r));return o}var a=e("../event-stream/event-message-chunker").eventMessageChunker,s=e("./parse-event").parseEvent;t.exports={createEventStream:i}},{"../event-stream/event-message-chunker":358,"./parse-event":360}],358:[function(e,t,r){function i(e){for(var t=[],r=0;r<e.length;){var i=e.readInt32BE(r),a=e.slice(r,i+r);r+=i,t.push(a)}return t}t.exports={eventMessageChunker:i}},{}],359:[function(e,t,r){function i(e){if(8!==e.length)throw new Error("Int64 buffers must be exactly 8 bytes");s.Buffer.isBuffer(e)||(e=o(e)),this.bytes=e}function a(e){for(var t=0;t<8;t++)e[t]^=255;for(var t=7;t>-1&&0===++e[t];t--);}var s=e("../core").util,o=s.buffer.toBuffer;i.fromNumber=function(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(e+" is too large (or, if negative, too small) to represent as an Int64");for(var t=new Uint8Array(8),r=7,s=Math.abs(Math.round(e));r>-1&&s>0;r--,s/=256)t[r]=s;return e<0&&a(t),new i(t)},i.prototype.valueOf=function(){var e=this.bytes.slice(0),t=128&e[0];return t&&a(e),parseInt(e.toString("hex"),16)*(t?-1:1)},i.prototype.toString=function(){return String(this.valueOf())},t.exports={Int64:i}},{"../core":342}],360:[function(e,t,r){function i(e,t,r){var i=s(t),o=i.headers[":message-type"];if(o){if("error"===o.value)throw a(i);if("event"!==o.value)return}var n=i.headers[":event-type"],u=r.members[n.value];if(u){var p={},m=u.eventPayloadMemberName;if(m){var c=u.members[m];"binary"===c.type?p[m]=i.body:p[m]=e.parse(i.body.toString(),c)}for(var l=u.eventHeaderMemberNames,d=0;d<l.length;d++){var y=l[d];i.headers[y]&&(p[y]=u.members[y].toType(i.headers[y].value))}var b={};return b[n.value]=p,b}}function a(e){var t=e.headers[":error-code"],r=e.headers[":error-message"],i=new Error(r.value||r);return i.code=i.name=t.value||t,i}var s=e("./parse-message").parseMessage;t.exports={parseEvent:i}},{"./parse-message":361}],361:[function(e,t,r){function i(e){for(var t={},r=0;r<e.length;){var i=e.readUInt8(r++),a=e.slice(r,r+i).toString();switch(r+=i,e.readUInt8(r++)){case 0:t[a]={type:n,value:!0};break;case 1:t[a]={type:n,value:!1};break;case 2:t[a]={type:u,value:e.readInt8(r++)};break;case 3:t[a]={type:p,value:e.readInt16BE(r)},r+=2;break;case 4:t[a]={type:m,value:e.readInt32BE(r)},r+=4;break;case 5:t[a]={type:c,value:new s(e.slice(r,r+8))},r+=8;break;case 6:var o=e.readUInt16BE(r);r+=2,t[a]={type:l,value:e.slice(r,r+o)},r+=o;break;case 7:var S=e.readUInt16BE(r);r+=2,t[a]={type:d,value:e.slice(r,r+S).toString()},r+=S;break;case 8:t[a]={type:y,value:new Date(new s(e.slice(r,r+8)).valueOf())},r+=8;break;case 9:var g=e.slice(r,r+16).toString("hex");r+=16,t[a]={type:b,value:g.substr(0,8)+"-"+g.substr(8,4)+"-"+g.substr(12,4)+"-"+g.substr(16,4)+"-"+g.substr(20)};break;default:throw new Error("Unrecognized header type tag")}}return t}function a(e){var t=o(e);return{headers:i(t.headers),body:t.body}}var s=e("./int64").Int64,o=e("./split-message").splitMessage,n="boolean",u="byte",p="short",m="integer",c="long",l="binary",d="string",y="timestamp",b="uuid";t.exports={parseMessage:a}},{"./int64":359,"./split-message":362}],362:[function(e,t,r){function i(e){if(a.Buffer.isBuffer(e)||(e=s(e)),e.length<p)throw new Error("Provided message too short to accommodate event stream message overhead");if(e.length!==e.readUInt32BE(0))throw new Error("Reported message length does not match received message length");var t=e.readUInt32BE(n);if(t!==a.crypto.crc32(e.slice(0,n)))throw new Error("The prelude checksum specified in the message ("+t+") does not match the calculated CRC32 checksum.");var r=e.readUInt32BE(e.length-u);if(r!==a.crypto.crc32(e.slice(0,e.length-u)))throw new Error("The message checksum did not match the expected value of "+r);var i=n+u,m=i+e.readUInt32BE(o);return{headers:e.slice(i,m),body:e.slice(m,e.length-u)}}var a=e("../core").util,s=a.buffer.toBuffer,o=4,n=2*o,u=4,p=n+2*u;t.exports={splitMessage:i}},{"../core":342}],363:[function(e,t,r){function i(e){if(!e.service.api.operations)return"";var t=e.service.api.operations[e.operation];return t?t.authtype:""}var a=e("./core"),s=e("./sequential_executor"),o=e("./discover_endpoint").discoverEndpoint;a.EventListeners={Core:{}},a.EventListeners={Core:(new s).addNamedListeners(function(e,t){t("VALIDATE_CREDENTIALS","validate",function(e,t){if(!e.service.api.signatureVersion&&!e.service.config.signatureVersion)return t();e.service.config.getCredentials(function(r){r&&(e.response.error=a.util.error(r,{code:"CredentialsError",message:"Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1"})),t()})}),e("VALIDATE_REGION","validate",function(e){if(!e.service.isGlobalEndpoint){var t=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);e.service.config.region?t.test(e.service.config.region)||(e.response.error=a.util.error(new Error,{code:"ConfigError",message:"Invalid region in config"})):e.response.error=a.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}}),e("BUILD_IDEMPOTENCY_TOKENS","validate",function(e){if(e.service.api.operations){var t=e.service.api.operations[e.operation];if(t){var r=t.idempotentMembers;if(r.length){for(var i=a.util.copy(e.params),s=0,o=r.length;s<o;s++)i[r[s]]||(i[r[s]]=a.util.uuid.v4());e.params=i}}}}),e("VALIDATE_PARAMETERS","validate",function(e){if(e.service.api.operations){var t=e.service.api.operations[e.operation].input,r=e.service.config.paramValidation;new a.ParamValidator(r).validate(t,e.params)}}),e("COMPUTE_CHECKSUM","afterBuild",function(e){if(e.service.api.operations){var t=e.service.api.operations[e.operation];if(t){var r=e.httpRequest.body,i=r&&(a.util.Buffer.isBuffer(r)||"string"==typeof r),s=e.httpRequest.headers;if(t.httpChecksumRequired&&e.service.config.computeChecksums&&i&&!s["Content-MD5"]){var o=a.util.crypto.md5(r,"base64");s["Content-MD5"]=o}}}}),t("COMPUTE_SHA256","afterBuild",function(e,t){if(e.haltHandlersOnError(),e.service.api.operations){var r=e.service.api.operations[e.operation],i=r?r.authtype:"";if(!e.service.api.signatureVersion&&!i&&!e.service.config.signatureVersion)return t();if(e.service.getSignerClass(e)===a.Signers.V4){var s=e.httpRequest.body||"";if(i.indexOf("unsigned-body")>=0)return e.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",t();a.util.computeSha256(s,function(r,i){r?t(r):(e.httpRequest.headers["X-Amz-Content-Sha256"]=i,t())})}else t()}}),e("SET_CONTENT_LENGTH","afterBuild",function(e){var t=i(e),r=a.util.getRequestPayloadShape(e);if(void 0===e.httpRequest.headers["Content-Length"])try{var s=a.util.string.byteLength(e.httpRequest.body);e.httpRequest.headers["Content-Length"]=s}catch(i){if(r&&r.isStreaming){if(r.requiresLength)throw i;if(t.indexOf("unsigned-body")>=0)return void(e.httpRequest.headers["Transfer-Encoding"]="chunked");throw i}throw i}}),e("SET_HTTP_HOST","afterBuild",function(e){e.httpRequest.headers.Host=e.httpRequest.endpoint.host}),e("RESTART","restart",function(){var e=this.response.error;e&&e.retryable&&(this.httpRequest=new a.HttpRequest(this.service.endpoint,this.service.region),this.response.retryCount<this.service.config.maxRetries?this.response.retryCount++:this.response.error=null)});t("DISCOVER_ENDPOINT","sign",o,!0),t("SIGN","sign",function(e,t){var r=e.service,i=e.service.api.operations||{},a=i[e.operation],s=a?a.authtype:"";if(!r.api.signatureVersion&&!s&&!r.config.signatureVersion)return t();r.config.getCredentials(function(i,s){if(i)return e.response.error=i,t();try{var o=r.getSkewCorrectedDate(),n=r.getSignerClass(e),u=new n(e.httpRequest,r.getSigningName(e),{signatureCache:r.config.signatureCache,operation:a,signatureVersion:r.api.signatureVersion});u.setServiceClientId(r._clientId),delete e.httpRequest.headers.Authorization,delete e.httpRequest.headers.Date,delete e.httpRequest.headers["X-Amz-Date"],u.addAuthorization(s,o),e.signedAt=o}catch(t){e.response.error=t}t()})}),e("VALIDATE_RESPONSE","validateResponse",function(e){this.service.successfulResponse(e,this)?(e.data={},e.error=null):(e.data=null,e.error=a.util.error(new Error,{code:"UnknownError",message:"An unknown error occurred."}))}),t("SEND","send",function(e,t){function r(r){e.httpResponse.stream=r;var i=e.request.httpRequest.stream,s=e.request.service,o=s.api,n=e.request.operation,u=o.operations[n]||{};r.on("headers",function(i,o,n){if(e.request.emit("httpHeaders",[i,o,e,n]),!e.httpResponse.streaming)if(2===a.HttpClient.streamsApiVersion){if(u.hasEventOutput&&s.successfulResponse(e))return e.request.emit("httpDone"),void t();r.on("readable",function(){var t=r.read();null!==t&&e.request.emit("httpData",[t,e])})}else r.on("data",function(t){e.request.emit("httpData",[t,e])})}),r.on("end",function(){if(!i||!i.didCallback){if(2===a.HttpClient.streamsApiVersion&&u.hasEventOutput&&s.successfulResponse(e))return;e.request.emit("httpDone"),t()}})}function i(t){t.on("sendProgress",function(t){e.request.emit("httpUploadProgress",[t,e])}),t.on("receiveProgress",function(t){e.request.emit("httpDownloadProgress",[t,e])})}function s(r){if("RequestAbortedError"!==r.code){var i="TimeoutError"===r.code?r.code:"NetworkingError";r=a.util.error(r,{code:i,region:e.request.httpRequest.region,hostname:e.request.httpRequest.endpoint.hostname,retryable:!0})}e.error=r,e.request.emit("httpError",[e.error,e],function(){t()})}function o(){var t=a.HttpClient.getInstance(),o=e.request.service.config.httpOptions||{};try{i(t.handleRequest(e.request.httpRequest,o,r,s))}catch(e){s(e)}}e.httpResponse._abortCallback=t,e.error=null,e.data=null,(e.request.service.getSkewCorrectedDate()-this.signedAt)/1e3>=600?this.emit("sign",[this],function(e){e?t(e):o()}):o()}),e("HTTP_HEADERS","httpHeaders",function(e,t,r,i){r.httpResponse.statusCode=e,r.httpResponse.statusMessage=i,r.httpResponse.headers=t,r.httpResponse.body=a.util.buffer.toBuffer(""),r.httpResponse.buffers=[],r.httpResponse.numBytes=0;var s=t.date||t.Date,o=r.request.service;if(s){var n=Date.parse(s);o.config.correctClockSkew&&o.isClockSkewed(n)&&o.applyClockOffset(n)}}),e("HTTP_DATA","httpData",function(e,t){if(e){if(a.util.isNode()){t.httpResponse.numBytes+=e.length;var r=t.httpResponse.headers["content-length"],i={loaded:t.httpResponse.numBytes,total:r};t.request.emit("httpDownloadProgress",[i,t])}t.httpResponse.buffers.push(a.util.buffer.toBuffer(e))}}),e("HTTP_DONE","httpDone",function(e){if(e.httpResponse.buffers&&e.httpResponse.buffers.length>0){var t=a.util.buffer.concat(e.httpResponse.buffers);e.httpResponse.body=t}delete e.httpResponse.numBytes,delete e.httpResponse.buffers}),e("FINALIZE_ERROR","retry",function(e){e.httpResponse.statusCode&&(e.error.statusCode=e.httpResponse.statusCode,void 0===e.error.retryable&&(e.error.retryable=this.service.retryableError(e.error,this)))}),e("INVALIDATE_CREDENTIALS","retry",function(e){if(e.error)switch(e.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":e.error.retryable=!0,e.request.service.config.credentials.expired=!0}}),e("EXPIRED_SIGNATURE","retry",function(e){var t=e.error;t&&"string"==typeof t.code&&"string"==typeof t.message&&t.code.match(/Signature/)&&t.message.match(/expired/)&&(e.error.retryable=!0)}),e("CLOCK_SKEWED","retry",function(e){e.error&&this.service.clockSkewError(e.error)&&this.service.config.correctClockSkew&&(e.error.retryable=!0)}),e("REDIRECT","retry",function(e){e.error&&e.error.statusCode>=300&&e.error.statusCode<400&&e.httpResponse.headers.location&&(this.httpRequest.endpoint=new a.Endpoint(e.httpResponse.headers.location),this.httpRequest.headers.Host=this.httpRequest.endpoint.host,e.error.redirect=!0,e.error.retryable=!0)}),e("RETRY_CHECK","retry",function(e){e.error&&(e.error.redirect&&e.redirectCount<e.maxRedirects?e.error.retryDelay=0:e.retryCount<e.maxRetries&&(e.error.retryDelay=this.service.retryDelays(e.retryCount,e.error)||0))}),t("RESET_RETRY_STATE","afterRetry",function(e,t){var r,i=!1;e.error&&(r=e.error.retryDelay||0,e.error.retryable&&e.retryCount<e.maxRetries?(e.retryCount++,i=!0):e.error.redirect&&e.redirectCount<e.maxRedirects&&(e.redirectCount++,i=!0)),i&&r>=0?(e.error=null,setTimeout(t,r)):t()})}),CorePost:(new s).addNamedListeners(function(e){e("EXTRACT_REQUEST_ID","extractData",a.util.extractRequestId),e("EXTRACT_REQUEST_ID","extractError",a.util.extractRequestId),e("ENOTFOUND_ERROR","httpError",function(e){if("NetworkingError"===e.code&&function(e){return"ENOTFOUND"===e.errno||"number"==typeof e.errno&&"function"==typeof a.util.getSystemErrorName&&["EAI_NONAME","EAI_NODATA"].indexOf(a.util.getSystemErrorName(e.errno)>=0)}(e)){var t="Inaccessible host: `"+e.hostname+"' at port `"+e.port+"'. This service may not be available in the `"+e.region+"' region.";this.response.error=a.util.error(new Error(t),{code:"UnknownEndpoint",region:e.region,hostname:e.hostname,retryable:!0,originalError:e})}})}),Logger:(new s).addNamedListeners(function(t){t("LOG_REQUEST","complete",function(t){function r(e,t){if(!t)return t;if(e.isSensitive)return"***SensitiveInformation***";switch(e.type){case"structure":var i={};return a.util.each(t,function(t,a){Object.prototype.hasOwnProperty.call(e.members,t)?i[t]=r(e.members[t],a):i[t]=a}),i;case"list":var s=[];return a.util.arrayEach(t,function(t,i){s.push(r(e.member,t))}),s;case"map":var o={};return a.util.each(t,function(t,i){o[t]=r(e.value,i)}),o;default:return t}}var i=t.request,s=i.service.config.logger;if(s){var o=function(){var o=t.request.service.getSkewCorrectedDate().getTime(),n=(o-i.startTime.getTime())/1e3,u=!!s.isTTY,p=t.httpResponse.statusCode,m=i.params;if(i.service.api.operations&&i.service.api.operations[i.operation]&&i.service.api.operations[i.operation].input){m=r(i.service.api.operations[i.operation].input,i.params)}var c=e("util").inspect(m,!0,null),l="";return u&&(l+="[33m"),l+="[AWS "+i.service.serviceIdentifier+" "+p,l+=" "+n.toString()+"s "+t.retryCount+" retries]",u&&(l+="[0;1m"),l+=" "+a.util.string.lowerFirst(i.operation),l+="("+c+")",u&&(l+="[0m"),l}();"function"==typeof s.log?s.log(o):"function"==typeof s.write&&s.write(o+"\n")}})}),Json:(new s).addNamedListeners(function(t){var r=e("./protocol/json");t("BUILD","build",r.buildRequest),t("EXTRACT_DATA","extractData",r.extractData),t("EXTRACT_ERROR","extractError",r.extractError)}),Rest:(new s).addNamedListeners(function(t){var r=e("./protocol/rest");t("BUILD","build",r.buildRequest),t("EXTRACT_DATA","extractData",r.extractData),t("EXTRACT_ERROR","extractError",r.extractError)}),RestJson:(new s).addNamedListeners(function(t){var r=e("./protocol/rest_json");t("BUILD","build",r.buildRequest),t("EXTRACT_DATA","extractData",r.extractData),t("EXTRACT_ERROR","extractError",r.extractError)}),RestXml:(new s).addNamedListeners(function(t){var r=e("./protocol/rest_xml");t("BUILD","build",r.buildRequest),t("EXTRACT_DATA","extractData",r.extractData),t("EXTRACT_ERROR","extractError",r.extractError)}),Query:(new s).addNamedListeners(function(t){var r=e("./protocol/query");t("BUILD","build",r.buildRequest),t("EXTRACT_DATA","extractData",r.extractData),t("EXTRACT_ERROR","extractError",r.extractError)})}},{"./core":342,"./discover_endpoint":350,"./protocol/json":377,"./protocol/query":378,"./protocol/rest":379,"./protocol/rest_json":380,"./protocol/rest_xml":381,"./sequential_executor":391,util:443}],364:[function(e,t,r){var i=e("./core"),a=i.util.inherit;i.Endpoint=a({constructor:function(e,t){if(i.util.hideProperties(this,["slashes","auth","hash","search","query"]),void 0===e||null===e)throw new Error("Invalid endpoint: "+e);if("string"!=typeof e)return i.util.copy(e);if(!e.match(/^http/)){e=((t&&void 0!==t.sslEnabled?t.sslEnabled:i.config.sslEnabled)?"https":"http")+"://"+e}i.util.update(this,i.util.urlParse(e)),
|
|
85
|
-
this.port?this.port=parseInt(this.port,10):this.port="https:"===this.protocol?443:80}}),i.HttpRequest=a({constructor:function(e,t){e=new i.Endpoint(e),this.method="POST",this.path=e.path||"/",this.headers={},this.body="",this.endpoint=e,this.region=t,this._userAgent="",this.setUserAgent()},setUserAgent:function(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=i.util.userAgent()},getUserAgentHeaderName:function(){return(i.util.isBrowser()?"X-Amz-":"")+"User-Agent"},appendToUserAgent:function(e){"string"==typeof e&&e&&(this._userAgent+=" "+e),this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function(){return this._userAgent},pathname:function(){return this.path.split("?",1)[0]},search:function(){var e=this.path.split("?",2)[1];return e?(e=i.util.queryStringParse(e),i.util.queryParamsToString(e)):""},updateEndpoint:function(e){var t=new i.Endpoint(e);this.endpoint=t,this.path=t.path||"/",this.headers.Host&&(this.headers.Host=t.host)}}),i.HttpResponse=a({constructor:function(){this.statusCode=void 0,this.headers={},this.body=void 0,this.streaming=!1,this.stream=null},createUnbufferedStream:function(){return this.streaming=!0,this.stream}}),i.HttpClient=a({}),i.HttpClient.getInstance=function(){return void 0===this.singleton&&(this.singleton=new this),this.singleton}},{"./core":342}],365:[function(e,t,r){var i=e("../core"),a=e("events").EventEmitter;e("../http"),i.XHRClient=i.util.inherit({handleRequest:function(e,t,r,s){var o=this,n=e.endpoint,u=new a,p=n.protocol+"//"+n.hostname;80!==n.port&&443!==n.port&&(p+=":"+n.port),p+=e.path;var m=new XMLHttpRequest,c=!1;e.stream=m,m.addEventListener("readystatechange",function(){try{if(0===m.status)return}catch(e){return}this.readyState>=this.HEADERS_RECEIVED&&!c&&(u.statusCode=m.status,u.headers=o.parseHeaders(m.getAllResponseHeaders()),u.emit("headers",u.statusCode,u.headers,m.statusText),c=!0),this.readyState===this.DONE&&o.finishRequest(m,u)},!1),m.upload.addEventListener("progress",function(e){u.emit("sendProgress",e)}),m.addEventListener("progress",function(e){u.emit("receiveProgress",e)},!1),m.addEventListener("timeout",function(){s(i.util.error(new Error("Timeout"),{code:"TimeoutError"}))},!1),m.addEventListener("error",function(){s(i.util.error(new Error("Network Failure"),{code:"NetworkingError"}))},!1),m.addEventListener("abort",function(){s(i.util.error(new Error("Request aborted"),{code:"RequestAbortedError"}))},!1),r(u),m.open(e.method,p,!1!==t.xhrAsync),i.util.each(e.headers,function(e,t){"Content-Length"!==e&&"User-Agent"!==e&&"Host"!==e&&m.setRequestHeader(e,t)}),t.timeout&&!1!==t.xhrAsync&&(m.timeout=t.timeout),t.xhrWithCredentials&&(m.withCredentials=!0);try{m.responseType="arraybuffer"}catch(e){}try{e.body?m.send(e.body):m.send()}catch(t){if(!e.body||"object"!=typeof e.body.buffer)throw t;m.send(e.body.buffer)}return u},parseHeaders:function(e){var t={};return i.util.arrayEach(e.split(/\r?\n/),function(e){var r=e.split(":",1)[0],i=e.substring(r.length+2);r.length>0&&(t[r.toLowerCase()]=i)}),t},finishRequest:function(e,t){var r;if("arraybuffer"===e.responseType&&e.response){var a=e.response;r=new i.util.Buffer(a.byteLength);for(var s=new Uint8Array(a),o=0;o<r.length;++o)r[o]=s[o]}try{r||"string"!=typeof e.responseText||(r=new i.util.Buffer(e.responseText))}catch(e){}r&&t.emit("data",r),t.emit("end")}}),i.HttpClient.prototype=i.XHRClient.prototype,i.HttpClient.streamsApiVersion=1},{"../core":342,"../http":364,events:427}],366:[function(e,t,r){function i(){}function a(e,t){if(t&&void 0!==e&&null!==e)switch(t.type){case"structure":return s(e,t);case"map":return n(e,t);case"list":return o(e,t);default:return u(e,t)}}function s(e,t){if(t.isDocument)return e;var r={};return p.each(e,function(e,i){var s=t.members[e];if(s){if("body"!==s.location)return;var o=s.isLocationName?s.name:e,n=a(i,s);void 0!==n&&(r[o]=n)}}),r}function o(e,t){var r=[];return p.arrayEach(e,function(e){var i=a(e,t.member);void 0!==i&&r.push(i)}),r}function n(e,t){var r={};return p.each(e,function(e,i){var s=a(i,t.value);void 0!==s&&(r[e]=s)}),r}function u(e,t){return t.toWireFormat(e)}var p=e("../util");i.prototype.build=function(e,t){return JSON.stringify(a(e,t))},t.exports=i},{"../util":417}],367:[function(e,t,r){function i(){}function a(e,t){if(t&&void 0!==e)switch(t.type){case"structure":return s(e,t);case"map":return n(e,t);case"list":return o(e,t);default:return u(e,t)}}function s(e,t){if(null!=e){if(t.isDocument)return e;var r={},i=t.members;return p.each(i,function(t,i){var s=i.isLocationName?i.name:t;if(Object.prototype.hasOwnProperty.call(e,s)){var o=e[s],n=a(o,i);void 0!==n&&(r[t]=n)}}),r}}function o(e,t){if(null!=e){var r=[];return p.arrayEach(e,function(e){var i=a(e,t.member);void 0===i?r.push(null):r.push(i)}),r}}function n(e,t){if(null!=e){var r={};return p.each(e,function(e,i){var s=a(i,t.value);r[e]=void 0===s?null:s}),r}}function u(e,t){return t.toType(e)}var p=e("../util");i.prototype.parse=function(e,t){return a(JSON.parse(e),t)},t.exports=i},{"../util":417}],368:[function(e,t,r){function i(e,t){function r(e,t){!0===t.endpointoperation&&c(i,"endpointOperation",m.string.lowerFirst(e)),t.endpointdiscovery&&!i.hasRequiredEndpointDiscovery&&c(i,"hasRequiredEndpointDiscovery",!0===t.endpointdiscovery.required)}var i=this;e=e||{},t=t||{},t.api=this,e.metadata=e.metadata||{};var d=t.serviceIdentifier;delete t.serviceIdentifier,c(this,"isApi",!0,!1),c(this,"apiVersion",e.metadata.apiVersion),c(this,"endpointPrefix",e.metadata.endpointPrefix),c(this,"signingName",e.metadata.signingName),c(this,"globalEndpoint",e.metadata.globalEndpoint),c(this,"signatureVersion",e.metadata.signatureVersion),c(this,"jsonVersion",e.metadata.jsonVersion),c(this,"targetPrefix",e.metadata.targetPrefix),c(this,"protocol",e.metadata.protocol),c(this,"timestampFormat",e.metadata.timestampFormat),c(this,"xmlNamespaceUri",e.metadata.xmlNamespace),c(this,"abbreviation",e.metadata.serviceAbbreviation),c(this,"fullName",e.metadata.serviceFullName),c(this,"serviceId",e.metadata.serviceId),d&&p[d]&&c(this,"xmlNoDefaultLists",p[d].xmlNoDefaultLists,!1),l(this,"className",function(){var t=e.metadata.serviceAbbreviation||e.metadata.serviceFullName;return t?(t=t.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,""),"ElasticLoadBalancing"===t&&(t="ELB"),t):null}),c(this,"operations",new a(e.operations,t,function(e,r){return new s(e,r,t)},m.string.lowerFirst,r)),c(this,"shapes",new a(e.shapes,t,function(e,r){return o.create(r,t)})),c(this,"paginators",new a(e.paginators,t,function(e,r){return new n(e,r,t)})),c(this,"waiters",new a(e.waiters,t,function(e,r){return new u(e,r,t)},m.string.lowerFirst)),t.documentation&&(c(this,"documentation",e.documentation),c(this,"documentationUrl",e.documentationUrl))}var a=e("./collection"),s=e("./operation"),o=e("./shape"),n=e("./paginator"),u=e("./resource_waiter"),p=e("../../apis/metadata.json"),m=e("../util"),c=m.property,l=m.memoizedProperty;t.exports=i},{"../../apis/metadata.json":163,"../util":417,"./collection":369,"./operation":370,"./paginator":371,"./resource_waiter":372,"./shape":373}],369:[function(e,t,r){function i(e,t,r,i){s(this,i(e),function(){return r(e,t)})}function a(e,t,r,a,s){a=a||String;var o=this;for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i.call(o,n,e[n],r,a),s&&s(n,e[n]))}var s=e("../util").memoizedProperty;t.exports=a},{"../util":417}],370:[function(e,t,r){function i(e,t,r){var i=this;r=r||{},n(this,"name",t.name||e),n(this,"api",r.api,!1),t.http=t.http||{},n(this,"endpoint",t.endpoint),n(this,"httpMethod",t.http.method||"POST"),n(this,"httpPath",t.http.requestUri||"/"),n(this,"authtype",t.authtype||""),n(this,"endpointDiscoveryRequired",t.endpointdiscovery?t.endpointdiscovery.required?"REQUIRED":"OPTIONAL":"NULL"),n(this,"httpChecksumRequired",t.httpChecksumRequired,!1),u(this,"input",function(){return t.input?s.create(t.input,r):new s.create({type:"structure"},r)}),u(this,"output",function(){return t.output?s.create(t.output,r):new s.create({type:"structure"},r)}),u(this,"errors",function(){var e=[];if(!t.errors)return null;for(var i=0;i<t.errors.length;i++)e.push(s.create(t.errors[i],r));return e}),u(this,"paginator",function(){return r.api.paginators[e]}),r.documentation&&(n(this,"documentation",t.documentation),n(this,"documentationUrl",t.documentationUrl)),u(this,"idempotentMembers",function(){var e=[],t=i.input,r=t.members;if(!t.members)return e;for(var a in r)r.hasOwnProperty(a)&&!0===r[a].isIdempotent&&e.push(a);return e}),u(this,"hasEventOutput",function(){return a(i.output)})}function a(e){var t=e.members,r=e.payload;if(!e.members)return!1;if(r){return t[r].isEventStream}for(var i in t)if(!t.hasOwnProperty(i)&&!0===t[i].isEventStream)return!0;return!1}var s=e("./shape"),o=e("../util"),n=o.property,u=o.memoizedProperty;t.exports=i},{"../util":417,"./shape":373}],371:[function(e,t,r){function i(e,t){a(this,"inputToken",t.input_token),a(this,"limitKey",t.limit_key),a(this,"moreResults",t.more_results),a(this,"outputToken",t.output_token),a(this,"resultKey",t.result_key)}var a=e("../util").property;t.exports=i},{"../util":417}],372:[function(e,t,r){function i(e,t,r){r=r||{},s(this,"name",e),s(this,"api",r.api,!1),t.operation&&s(this,"operation",a.string.lowerFirst(t.operation));var i=this;["type","description","delay","maxAttempts","acceptors"].forEach(function(e){var r=t[e];r&&s(i,e,r)})}var a=e("../util"),s=a.property;t.exports=i},{"../util":417}],373:[function(e,t,r){function i(e,t,r){null!==r&&void 0!==r&&h.property.apply(this,arguments)}function a(e,t){e.constructor.prototype[t]||h.memoizedProperty.apply(this,arguments)}function s(e,t,r){t=t||{},i(this,"shape",e.shape),i(this,"api",t.api,!1),i(this,"type",e.type),i(this,"enum",e.enum),i(this,"min",e.min),i(this,"max",e.max),i(this,"pattern",e.pattern),i(this,"location",e.location||this.location||"body"),i(this,"name",this.name||e.xmlName||e.queryName||e.locationName||r),i(this,"isStreaming",e.streaming||this.isStreaming||!1),i(this,"requiresLength",e.requiresLength,!1),i(this,"isComposite",e.isComposite||!1),i(this,"isShape",!0,!1),i(this,"isQueryName",Boolean(e.queryName),!1),i(this,"isLocationName",Boolean(e.locationName),!1),i(this,"isIdempotent",!0===e.idempotencyToken),i(this,"isJsonValue",!0===e.jsonvalue),i(this,"isSensitive",!0===e.sensitive||e.prototype&&!0===e.prototype.sensitive),i(this,"isEventStream",Boolean(e.eventstream),!1),i(this,"isEvent",Boolean(e.event),!1),i(this,"isEventPayload",Boolean(e.eventpayload),!1),i(this,"isEventHeader",Boolean(e.eventheader),!1),i(this,"isTimestampFormatSet",Boolean(e.timestampFormat)||e.prototype&&!0===e.prototype.isTimestampFormatSet,!1),i(this,"endpointDiscoveryId",Boolean(e.endpointdiscoveryid),!1),i(this,"hostLabel",Boolean(e.hostLabel),!1),t.documentation&&(i(this,"documentation",e.documentation),i(this,"documentationUrl",e.documentationUrl)),e.xmlAttribute&&i(this,"isXmlAttribute",e.xmlAttribute||!1),i(this,"defaultValue",null),this.toWireFormat=function(e){return null===e||void 0===e?"":e},this.toType=function(e){return e}}function o(e){s.apply(this,arguments),i(this,"isComposite",!0),e.flattened&&i(this,"flattened",e.flattened||!1)}function n(e,t){var r=this,n=null,u=!this.isShape;o.apply(this,arguments),u&&(i(this,"defaultValue",function(){return{}}),i(this,"members",{}),i(this,"memberNames",[]),i(this,"required",[]),i(this,"isRequired",function(){return!1}),i(this,"isDocument",Boolean(e.document))),e.members&&(i(this,"members",new g(e.members,t,function(e,r){return s.create(r,t,e)})),a(this,"memberNames",function(){return e.xmlOrder||Object.keys(e.members)}),e.event&&(a(this,"eventPayloadMemberName",function(){for(var e=r.members,t=r.memberNames,i=0,a=t.length;i<a;i++)if(e[t[i]].isEventPayload)return t[i]}),a(this,"eventHeaderMemberNames",function(){for(var e=r.members,t=r.memberNames,i=[],a=0,s=t.length;a<s;a++)e[t[a]].isEventHeader&&i.push(t[a]);return i}))),e.required&&(i(this,"required",e.required),i(this,"isRequired",function(t){if(!n){n={};for(var r=0;r<e.required.length;r++)n[e.required[r]]=!0}return n[t]},!1,!0)),i(this,"resultWrapper",e.resultWrapper||null),e.payload&&i(this,"payload",e.payload),"string"==typeof e.xmlNamespace?i(this,"xmlNamespaceUri",e.xmlNamespace):"object"==typeof e.xmlNamespace&&(i(this,"xmlNamespacePrefix",e.xmlNamespace.prefix),i(this,"xmlNamespaceUri",e.xmlNamespace.uri))}function u(e,t){var r=this,n=!this.isShape;if(o.apply(this,arguments),n&&i(this,"defaultValue",function(){return[]}),e.member&&a(this,"member",function(){return s.create(e.member,t)}),this.flattened){var u=this.name;a(this,"name",function(){return r.member.name||u})}}function p(e,t){var r=!this.isShape;o.apply(this,arguments),r&&(i(this,"defaultValue",function(){return{}}),i(this,"key",s.create({type:"string"},t)),i(this,"value",s.create({type:"string"},t))),e.key&&a(this,"key",function(){return s.create(e.key,t)}),e.value&&a(this,"value",function(){return s.create(e.value,t)})}function m(e){var t=this;if(s.apply(this,arguments),e.timestampFormat)i(this,"timestampFormat",e.timestampFormat);else if(t.isTimestampFormatSet&&this.timestampFormat)i(this,"timestampFormat",this.timestampFormat);else if("header"===this.location)i(this,"timestampFormat","rfc822");else if("querystring"===this.location)i(this,"timestampFormat","iso8601");else if(this.api)switch(this.api.protocol){case"json":case"rest-json":i(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":i(this,"timestampFormat","iso8601")}this.toType=function(e){return null===e||void 0===e?null:"function"==typeof e.toUTCString?e:"string"==typeof e||"number"==typeof e?h.date.parseTimestamp(e):null},this.toWireFormat=function(e){return h.date.format(e,t.timestampFormat)}}function c(){s.apply(this,arguments);var e=["rest-xml","query","ec2"];this.toType=function(t){return t=this.api&&e.indexOf(this.api.protocol)>-1?t||"":t,this.isJsonValue?JSON.parse(t):t&&"function"==typeof t.toString?t.toString():t},this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function l(){s.apply(this,arguments),this.toType=function(e){return null===e||void 0===e?null:parseFloat(e)},this.toWireFormat=this.toType}function d(){s.apply(this,arguments),this.toType=function(e){return null===e||void 0===e?null:parseInt(e,10)},this.toWireFormat=this.toType}function y(){s.apply(this,arguments),this.toType=function(e){var t=h.base64.decode(e);if(this.isSensitive&&h.isNode()&&"function"==typeof h.Buffer.alloc){var r=h.Buffer.alloc(t.length,t);t.fill(0),t=r}return t},this.toWireFormat=h.base64.encode}function b(){y.apply(this,arguments)}function S(){s.apply(this,arguments),this.toType=function(e){return"boolean"==typeof e?e:null===e||void 0===e?null:"true"===e}}var g=e("./collection"),h=e("../util");s.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},s.types={structure:n,list:u,map:p,boolean:S,timestamp:m,float:l,integer:d,string:c,base64:b,binary:y},s.resolve=function(e,t){if(e.shape){var r=t.api.shapes[e.shape];if(!r)throw new Error("Cannot find shape reference: "+e.shape);return r}return null},s.create=function(e,t,r){if(e.isShape)return e;var i=s.resolve(e,t);if(i){var a=Object.keys(e);t.documentation||(a=a.filter(function(e){return!e.match(/documentation/)}));var o=function(){i.constructor.call(this,e,t,r)};return o.prototype=i,new o}e.type||(e.members?e.type="structure":e.member?e.type="list":e.key?e.type="map":e.type="string");var n=e.type;if(s.normalizedTypes[e.type]&&(e.type=s.normalizedTypes[e.type]),s.types[e.type])return new s.types[e.type](e,t,r);throw new Error("Unrecognized shape type: "+n)},s.shapes={StructureShape:n,ListShape:u,MapShape:p,StringShape:c,BooleanShape:S,Base64Shape:b},t.exports=s},{"../util":417,"./collection":369}],374:[function(e,t,r){var i=e("./core");i.ParamValidator=i.util.inherit({constructor:function(e){!0!==e&&void 0!==e||(e={min:!0}),this.validation=e},validate:function(e,t,r){if(this.errors=[],this.validateMember(e,t||{},r||"params"),this.errors.length>1){var a=this.errors.join("\n* ");throw a="There were "+this.errors.length+" validation errors:\n* "+a,i.util.error(new Error(a),{code:"MultipleValidationErrors",errors:this.errors})}if(1===this.errors.length)throw this.errors[0];return!0},fail:function(e,t){this.errors.push(i.util.error(new Error(t),{code:e}))},validateStructure:function(e,t,r){this.validateType(t,r,["object"],"structure");for(var i,a=0;e.required&&a<e.required.length;a++){i=e.required[a];var s=t[i];void 0!==s&&null!==s||this.fail("MissingRequiredParameter","Missing required key '"+i+"' in "+r)}for(i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var o=t[i],n=e.members[i];if(void 0!==n){var u=[r,i].join(".");this.validateMember(n,o,u)}else void 0!==o&&null!==o&&this.fail("UnexpectedParameter","Unexpected key '"+i+"' found in "+r)}return!0},validateMember:function(e,t,r){switch(e.type){case"structure":return this.validateStructure(e,t,r);case"list":return this.validateList(e,t,r);case"map":return this.validateMap(e,t,r);default:return this.validateScalar(e,t,r)}},validateList:function(e,t,r){if(this.validateType(t,r,[Array])){this.validateRange(e,t.length,r,"list member count");for(var i=0;i<t.length;i++)this.validateMember(e.member,t[i],r+"["+i+"]")}},validateMap:function(e,t,r){if(this.validateType(t,r,["object"],"map")){var i=0;for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(this.validateMember(e.key,a,r+"[key='"+a+"']"),this.validateMember(e.value,t[a],r+"['"+a+"']"),i++);this.validateRange(e,i,r,"map member count")}},validateScalar:function(e,t,r){switch(e.type){case null:case void 0:case"string":return this.validateString(e,t,r);case"base64":case"binary":return this.validatePayload(t,r);case"integer":case"float":return this.validateNumber(e,t,r);case"boolean":return this.validateType(t,r,["boolean"]);case"timestamp":return this.validateType(t,r,[Date,/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$/,"number"],"Date object, ISO-8601 string, or a UNIX timestamp");default:return this.fail("UnkownType","Unhandled type "+e.type+" for "+r)}},validateString:function(e,t,r){var i=["string"];e.isJsonValue&&(i=i.concat(["number","object","boolean"])),null!==t&&this.validateType(t,r,i)&&(this.validateEnum(e,t,r),this.validateRange(e,t.length,r,"string length"),this.validatePattern(e,t,r),this.validateUri(e,t,r))},validateUri:function(e,t,r){"uri"===e.location&&0===t.length&&this.fail("UriParameterError",'Expected uri parameter to have length >= 1, but found "'+t+'" for '+r)},validatePattern:function(e,t,r){this.validation.pattern&&void 0!==e.pattern&&(new RegExp(e.pattern).test(t)||this.fail("PatternMatchError",'Provided value "'+t+'" does not match regex pattern /'+e.pattern+"/ for "+r))},validateRange:function(e,t,r,i){this.validation.min&&void 0!==e.min&&t<e.min&&this.fail("MinRangeError","Expected "+i+" >= "+e.min+", but found "+t+" for "+r),this.validation.max&&void 0!==e.max&&t>e.max&&this.fail("MaxRangeError","Expected "+i+" <= "+e.max+", but found "+t+" for "+r)},validateEnum:function(e,t,r){this.validation.enum&&void 0!==e.enum&&-1===e.enum.indexOf(t)&&this.fail("EnumError","Found string value of "+t+", but expected "+e.enum.join("|")+" for "+r)},validateType:function(e,t,r,a){if(null===e||void 0===e)return!1;for(var s=!1,o=0;o<r.length;o++){if("string"==typeof r[o]){if(typeof e===r[o])return!0}else if(r[o]instanceof RegExp){if((e||"").toString().match(r[o]))return!0}else{if(e instanceof r[o])return!0;if(i.util.isType(e,r[o]))return!0;a||s||(r=r.slice()),r[o]=i.util.typeName(r[o])}s=!0}var n=a;n||(n=r.join(", ").replace(/,([^,]+)$/,", or$1"));var u=n.match(/^[aeiou]/i)?"n":"";return this.fail("InvalidParameterType","Expected "+t+" to be a"+u+" "+n),!1},validateNumber:function(e,t,r){if(null!==t&&void 0!==t){if("string"==typeof t){var i=parseFloat(t);i.toString()===t&&(t=i)}this.validateType(t,r,["number"])&&this.validateRange(e,t,r,"numeric value")}},validatePayload:function(e,t){if(null!==e&&void 0!==e&&"string"!=typeof e&&(!e||"number"!=typeof e.byteLength)){if(i.util.isNode()){var r=i.util.stream.Stream;if(i.util.Buffer.isBuffer(e)||e instanceof r)return}else if(void 0!==typeof Blob&&e instanceof Blob)return;var a=["Buffer","Stream","File","Blob","ArrayBuffer","DataView"];if(e)for(var s=0;s<a.length;s++){if(i.util.isType(e,a[s]))return;if(i.util.typeName(e.constructor)===a[s])return}this.fail("InvalidParameterType","Expected "+t+" to be a string, Buffer, Stream, Blob, or typed array object")}}})},{"./core":342}],375:[function(e,t,r){var i=e("../core"),a=i.Protocol.Rest;i.Polly.Presigner=i.util.inherit({constructor:function(e){e=e||{},this.options=e,this.service=e.service,this.bindServiceObject(e),this._operations={}},bindServiceObject:function(e){if(e=e||{},this.service){var t=i.util.copy(this.service.config);this.service=new this.service.constructor.__super__(t),this.service.config.params=i.util.merge(this.service.config.params||{},e.params)}else this.service=new i.Polly(e)},modifyInputMembers:function(e){var t=i.util.copy(e);return t.members=i.util.copy(e.members),i.util.each(e.members,function(e,r){t.members[e]=i.util.copy(r),r.location&&"body"!==r.location||(t.members[e].location="querystring",t.members[e].locationName=e)}),t},convertPostToGet:function(e){e.httpRequest.method="GET";var t=e.service.api.operations[e.operation],r=this._operations[e.operation];r||(this._operations[e.operation]=r=this.modifyInputMembers(t.input));var i=a.generateURI(e.httpRequest.endpoint.path,t.httpPath,r,e.params);e.httpRequest.path=i,e.httpRequest.body="",delete e.httpRequest.headers["Content-Length"],delete e.httpRequest.headers["Content-Type"]},getSynthesizeSpeechUrl:function(e,t,r){var i=this,a=this.service.makeRequest("synthesizeSpeech",e);return a.removeAllListeners("build"),a.on("build",function(e){i.convertPostToGet(e)}),a.presign(t,r)}})},{"../core":342}],376:[function(e,t,r){function i(e){if(!e.service.config.hostPrefixEnabled)return e;var t=e.service.api.operations[e.operation];if(a(e))return e;if(t.endpoint&&t.endpoint.hostPrefix){var r=t.endpoint.hostPrefix,i=s(r,e.params,t.input);o(e.httpRequest.endpoint,i),n(e.httpRequest.endpoint.hostname)}return e}function a(e){var t=e.service.api,r=t.operations[e.operation],i=t.endpointOperation&&t.endpointOperation===u.string.lowerFirst(r.name);return"NULL"!==r.endpointDiscoveryRequired||!0===i}function s(e,t,r){return u.each(r.members,function(r,i){if(!0===i.hostLabel){if("string"!=typeof t[r]||""===t[r])throw u.error(new Error,{message:"Parameter "+r+" should be a non-empty string.",code:"InvalidParameter"});var a=new RegExp("\\{"+r+"\\}","g");e=e.replace(a,t[r])}}),e}function o(e,t){e.host&&(e.host=t+e.host),e.hostname&&(e.hostname=t+e.hostname)}function n(e){var t=e.split("."),r=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/;u.arrayEach(t,function(e){if(!e.length||e.length<1||e.length>63)throw u.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."});if(!r.test(e))throw p.util.error(new Error,{code:"ValidationError",message:e+" is not hostname compatible."})})}var u=e("../util"),p=e("../core");t.exports={populateHostPrefix:i}},{"../core":342,"../util":417}],377:[function(e,t,r){function i(e){var t=e.httpRequest,r=e.service.api,i=r.targetPrefix+"."+r.operations[e.operation].name,a=r.jsonVersion||"1.0",s=r.operations[e.operation].input,o=new n;1===a&&(a="1.0"),t.body=o.build(e.params||{},s),t.headers["Content-Type"]="application/x-amz-json-"+a,t.headers["X-Amz-Target"]=i,p(e)}function a(e){var t={},r=e.httpResponse;if(t.code=r.headers["x-amzn-errortype"]||"UnknownError","string"==typeof t.code&&(t.code=t.code.split(":")[0]),r.body.length>0)try{var i=JSON.parse(r.body.toString()),a=i.__type||i.code||i.Code;a&&(t.code=a.split("#").pop()),"RequestEntityTooLarge"===t.code?t.message="Request body must be less than 1 MB":t.message=i.message||i.Message||null}catch(i){t.statusCode=r.statusCode,t.message=r.statusMessage}else t.statusCode=r.statusCode,t.message=r.statusCode.toString();e.error=o.error(new Error,t)}function s(e){var t=e.httpResponse.body.toString()||"{}";if(!1===e.request.service.config.convertResponseTypes)e.data=JSON.parse(t);else{var r=e.request.service.api.operations[e.request.operation],i=r.output||{},a=new u;e.data=a.parse(t,i)}}var o=e("../util"),n=e("../json/builder"),u=e("../json/parser"),p=e("./helpers").populateHostPrefix;t.exports={buildRequest:i,extractError:a,extractData:s}},{"../json/builder":366,"../json/parser":367,"../util":417,"./helpers":376}],378:[function(e,t,r){function i(e){var t=e.service.api.operations[e.operation],r=e.httpRequest;r.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",r.params={Version:e.service.api.apiVersion,Action:t.name},(new u).serialize(e.params,t.input,function(e,t){r.params[e]=t}),r.body=n.queryParamsToString(r.params),m(e)}function a(e){var t,r=e.httpResponse.body.toString();if(r.match("<UnknownOperationException"))t={Code:"UnknownOperation",Message:"Unknown operation "+e.request.operation};else try{t=(new o.XML.Parser).parse(r)}catch(r){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}t.requestId&&!e.requestId&&(e.requestId=t.requestId),t.Errors&&(t=t.Errors),t.Error&&(t=t.Error),t.Code?e.error=n.error(new Error,{code:t.Code,message:t.Message}):e.error=n.error(new Error,{code:e.httpResponse.statusCode,message:null})}function s(e){var t=e.request,r=t.service.api.operations[t.operation],i=r.output||{},a=i;if(a.resultWrapper){var s=p.create({type:"structure"});s.members[a.resultWrapper]=i,s.memberNames=[a.resultWrapper],n.property(i,"name",i.resultWrapper),i=s}var u=new o.XML.Parser;if(i&&i.members&&!i.members._XAMZRequestId){var m=p.create({type:"string"},{api:{protocol:"query"}},"requestId");i.members._XAMZRequestId=m}var c=u.parse(e.httpResponse.body.toString(),i);e.requestId=c._XAMZRequestId||c.requestId,c._XAMZRequestId&&delete c._XAMZRequestId,a.resultWrapper&&c[a.resultWrapper]&&(n.update(c,c[a.resultWrapper]),delete c[a.resultWrapper]),e.data=c}var o=e("../core"),n=e("../util"),u=e("../query/query_param_serializer"),p=e("../model/shape"),m=e("./helpers").populateHostPrefix;t.exports={buildRequest:i,extractError:a,extractData:s}},{"../core":342,"../model/shape":373,"../query/query_param_serializer":382,"../util":417,"./helpers":376}],379:[function(e,t,r){function i(e){e.httpRequest.method=e.service.api.operations[e.operation].httpMethod}function a(e,t,r,i){var a=[e,t].join("/");a=a.replace(/\/+/g,"/");var s={},o=!1;if(m.each(r.members,function(e,t){var r=i[e];if(null!==r&&void 0!==r)if("uri"===t.location){var n=new RegExp("\\{"+t.name+"(\\+)?\\}");a=a.replace(n,function(e,t){return(t?m.uriEscapePath:m.uriEscape)(String(r))})}else"querystring"===t.location&&(o=!0,"list"===t.type?s[t.name]=r.map(function(e){return m.uriEscape(t.member.toWireFormat(e).toString())}):"map"===t.type?m.each(r,function(e,t){Array.isArray(t)?s[e]=t.map(function(e){return m.uriEscape(String(e))}):s[e]=m.uriEscape(String(t))}):s[t.name]=m.uriEscape(t.toWireFormat(r).toString()))}),o){a+=a.indexOf("?")>=0?"&":"?";var n=[];m.arrayEach(Object.keys(s).sort(),function(e){Array.isArray(s[e])||(s[e]=[s[e]]);for(var t=0;t<s[e].length;t++)n.push(m.uriEscape(String(e))+"="+s[e][t])}),a+=n.join("&")}return a}function s(e){var t=e.service.api.operations[e.operation],r=t.input,i=a(e.httpRequest.endpoint.path,t.httpPath,r,e.params);e.httpRequest.path=i}function o(e){var t=e.service.api.operations[e.operation];m.each(t.input.members,function(t,r){var i=e.params[t];null!==i&&void 0!==i&&("headers"===r.location&&"map"===r.type?m.each(i,function(t,i){e.httpRequest.headers[r.name+t]=i}):"header"===r.location&&(i=r.toWireFormat(i).toString(),r.isJsonValue&&(i=m.base64.encode(i)),e.httpRequest.headers[r.name]=i))})}function n(e){i(e),s(e),o(e),c(e)}function u(){}function p(e){var t=e.request,r={},i=e.httpResponse,a=t.service.api.operations[t.operation],s=a.output,o={};m.each(i.headers,function(e,t){o[e.toLowerCase()]=t}),m.each(s.members,function(e,t){var a=(t.name||e).toLowerCase();if("headers"===t.location&&"map"===t.type){r[e]={};var s=t.isLocationName?t.name:"",n=new RegExp("^"+s+"(.+)","i");m.each(i.headers,function(t,i){var a=t.match(n);null!==a&&(r[e][a[1]]=i)})}else if("header"===t.location){if(void 0!==o[a]){var u=t.isJsonValue?m.base64.decode(o[a]):o[a];r[e]=t.toType(u)}}else"statusCode"===t.location&&(r[e]=parseInt(i.statusCode,10))}),e.data=r}var m=e("../util"),c=e("./helpers").populateHostPrefix;t.exports={buildRequest:n,extractError:u,extractData:p,generateURI:a}},{"../util":417,"./helpers":376}],380:[function(e,t,r){function i(e){var t=new c,r=e.service.api.operations[e.operation].input;if(r.payload){var i={},s=r.members[r.payload];if(void 0===(i=e.params[r.payload]))return;"structure"===s.type?(e.httpRequest.body=t.build(i,s),a(e)):(e.httpRequest.body=i,("binary"===s.type||s.isStreaming)&&a(e,!0))}else{var o=t.build(e.params,r);"{}"===o&&"GET"===e.httpRequest.method||(e.httpRequest.body=o),a(e)}}function a(e,t){var r=e.service.api.operations[e.operation];r.input;if(!e.httpRequest.headers["Content-Type"]){var i=t?"binary/octet-stream":"application/json";e.httpRequest.headers["Content-Type"]=i}}function s(e){p.buildRequest(e),["HEAD","DELETE"].indexOf(e.httpRequest.method)<0&&i(e)}function o(e){m.extractError(e)}function n(e){p.extractData(e);var t,r=e.request,i=r.service.api.operations[r.operation],a=r.service.api.operations[r.operation].output||{};i.hasEventOutput;if(a.payload){var s=a.members[a.payload],o=e.httpResponse.body;if(s.isEventStream)t=new l,e.data[payload]=u.createEventStream(2===AWS.HttpClient.streamsApiVersion?e.httpResponse.stream:o,t,s);else if("structure"===s.type||"list"===s.type){var t=new l;e.data[a.payload]=t.parse(o,s)}else"binary"===s.type||s.isStreaming?e.data[a.payload]=o:e.data[a.payload]=s.toType(o)}else{var n=e.data;m.extractData(e),e.data=u.merge(n,e.data)}}var u=e("../util"),p=e("./rest"),m=e("./json"),c=e("../json/builder"),l=e("../json/parser");t.exports={buildRequest:s,extractError:o,extractData:n}},{"../json/builder":366,"../json/parser":367,"../util":417,"./json":377,"./rest":379}],381:[function(e,t,r){function i(e){var t=e.service.api.operations[e.operation].input,r=new n.XML.Builder,i=e.params,a=t.payload;if(a){var s=t.members[a];if(void 0===(i=i[a]))return;if("structure"===s.type){var o=s.name;e.httpRequest.body=r.toXML(i,s,o,!0)}else e.httpRequest.body=i}else e.httpRequest.body=r.toXML(i,t,t.name||t.shape||u.string.upperFirst(e.operation)+"Request")}function a(e){p.buildRequest(e),["GET","HEAD"].indexOf(e.httpRequest.method)<0&&i(e)}function s(e){p.extractError(e);var t;try{t=(new n.XML.Parser).parse(e.httpResponse.body.toString())}catch(r){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}t.Errors&&(t=t.Errors),t.Error&&(t=t.Error),t.Code?e.error=u.error(new Error,{code:t.Code,message:t.Message}):e.error=u.error(new Error,{code:e.httpResponse.statusCode,message:null})}function o(e){p.extractData(e);var t,r=e.request,i=e.httpResponse.body,a=r.service.api.operations[r.operation],s=a.output,o=(a.hasEventOutput,s.payload);if(o){var m=s.members[o];m.isEventStream?(t=new n.XML.Parser,e.data[o]=u.createEventStream(2===n.HttpClient.streamsApiVersion?e.httpResponse.stream:e.httpResponse.body,t,m)):"structure"===m.type?(t=new n.XML.Parser,e.data[o]=t.parse(i.toString(),m)):"binary"===m.type||m.isStreaming?e.data[o]=i:e.data[o]=m.toType(i)}else if(i.length>0){t=new n.XML.Parser;var c=t.parse(i.toString(),s);u.update(e.data,c)}}var n=e("../core"),u=e("../util"),p=e("./rest");t.exports={buildRequest:a,extractError:s,extractData:o}},{"../core":342,"../util":417,"./rest":379}],382:[function(e,t,r){function i(){}function a(e){return e.isQueryName||"ec2"!==e.api.protocol?e.name:e.name[0].toUpperCase()+e.name.substr(1)}function s(e,t,r,i){p.each(r.members,function(r,s){var o=t[r];if(null!==o&&void 0!==o){
|
|
86
|
-
var n=a(s);n=e?e+"."+n:n,u(n,o,s,i)}})}function o(e,t,r,i){var a=1;p.each(t,function(t,s){var o=r.flattened?".":".entry.",n=o+a+++".",p=n+(r.key.name||"key"),m=n+(r.value.name||"value");u(e+p,t,r.key,i),u(e+m,s,r.value,i)})}function n(e,t,r,i){var s=r.member||{};if(0===t.length)return void i.call(this,e,null);p.arrayEach(t,function(t,o){var n="."+(o+1);if("ec2"===r.api.protocol)n+="";else if(r.flattened){if(s.name){var p=e.split(".");p.pop(),p.push(a(s)),e=p.join(".")}}else n="."+(s.name?s.name:"member")+n;u(e+n,t,s,i)})}function u(e,t,r,i){null!==t&&void 0!==t&&("structure"===r.type?s(e,t,r,i):"list"===r.type?n(e,t,r,i):"map"===r.type?o(e,t,r,i):i(e,r.toWireFormat(t).toString()))}var p=e("../util");i.prototype.serialize=function(e,t,r){s("",e,t,r)},t.exports=i},{"../util":417}],383:[function(e,t,r){var i=e("../core"),a=null,s={signatureVersion:"v4",signingName:"rds-db",operations:{}},o={region:"string",hostname:"string",port:"number",username:"string"};i.RDS.Signer=i.util.inherit({constructor:function(e){this.options=e||{}},convertUrlToAuthToken:function(e){if(0===e.indexOf("https://"))return e.substring("https://".length)},getAuthToken:function(e,t){"function"==typeof e&&void 0===t&&(t=e,e={});var r=this,o="function"==typeof t;e=i.util.merge(this.options,e);var n=this.validateAuthTokenOptions(e);if(!0!==n){if(o)return t(n,null);throw n}var u={region:e.region,endpoint:new i.Endpoint(e.hostname+":"+e.port),paramValidation:!1,signatureVersion:"v4"};e.credentials&&(u.credentials=e.credentials),a=new i.Service(u),a.api=s;var p=a.makeRequest();if(this.modifyRequestForAuthToken(p,e),!o){var m=p.presign(900);return this.convertUrlToAuthToken(m)}p.presign(900,function(e,i){i&&(i=r.convertUrlToAuthToken(i)),t(e,i)})},modifyRequestForAuthToken:function(e,t){e.on("build",e.buildAsGet),e.httpRequest.body=i.util.queryParamsToString({Action:"connect",DBUser:t.username})},validateAuthTokenOptions:function(e){var t="";e=e||{};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&typeof e[r]!==o[r]&&(t+="option '"+r+"' should have been type '"+o[r]+"', was '"+typeof e[r]+"'.\n");return!t.length||i.util.error(new Error,{code:"InvalidParameter",message:t})}})},{"../core":342}],384:[function(e,t,r){t.exports={now:function(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now():Date.now()}}},{}],385:[function(e,t,r){function i(e){if(!e)return null;var t=e.split("-");return t.length<3?null:t.slice(0,t.length-2).join("-")+"-*"}function a(e){var t=e.config.region,r=i(t),a=e.api.endpointPrefix;return[[t,a],[r,a],[t,"*"],[r,"*"],["*",a],["*","*"]].map(function(e){return e[0]&&e[1]?e.join("/"):null})}function s(e,t){u.each(t,function(t,r){"globalEndpoint"!==t&&(void 0!==e.config[t]&&null!==e.config[t]||(e.config[t]=r))})}function o(e){for(var t=a(e),r=0;r<t.length;r++){var i=t[r];if(i&&Object.prototype.hasOwnProperty.call(p.rules,i)){var o=p.rules[i];return"string"==typeof o&&(o=p.patterns[o]),e.config.useDualstack&&u.isDualstackAvailable(e)&&(o=u.copy(o),o.endpoint=o.endpoint.replace(/{service}\.({region}\.)?/,"{service}.dualstack.{region}.")),e.isGlobalEndpoint=!!o.globalEndpoint,o.signingRegion&&(e.signingRegion=o.signingRegion),o.signatureVersion||(o.signatureVersion="v4"),void s(e,o)}}}function n(e){for(var t={"^(us|eu|ap|sa|ca|me)\\-\\w+\\-\\d+$":"amazonaws.com","^cn\\-\\w+\\-\\d+$":"amazonaws.com.cn","^us\\-gov\\-\\w+\\-\\d+$":"amazonaws.com","^us\\-iso\\-\\w+\\-\\d+$":"c2s.ic.gov","^us\\-isob\\-\\w+\\-\\d+$":"sc2s.sgov.gov"},r=Object.keys(t),i=0;i<r.length;i++){var a=RegExp(r[i]),s=t[r[i]];if(a.test(e))return s}return"amazonaws.com"}var u=e("./util"),p=e("./region_config_data.json");t.exports={configureEndpoint:o,getEndpointSuffix:n}},{"./region_config_data.json":386,"./util":417}],386:[function(e,t,r){t.exports={rules:{"*/*":{endpoint:"{service}.{region}.amazonaws.com"},"cn-*/*":{endpoint:"{service}.{region}.amazonaws.com.cn"},"us-iso-*/*":{endpoint:"{service}.{region}.c2s.ic.gov"},"us-isob-*/*":{endpoint:"{service}.{region}.sc2s.sgov.gov"},"*/budgets":"globalSSL","*/cloudfront":"globalSSL","*/sts":"globalSSL","*/importexport":{endpoint:"{service}.amazonaws.com",signatureVersion:"v2",globalEndpoint:!0},"*/route53":"globalSSL","cn-*/route53":{endpoint:"{service}.amazonaws.com.cn",globalEndpoint:!0,signingRegion:"cn-northwest-1"},"us-gov-*/route53":"globalGovCloud","*/waf":"globalSSL","*/iam":"globalSSL","cn-*/iam":{endpoint:"{service}.cn-north-1.amazonaws.com.cn",globalEndpoint:!0,signingRegion:"cn-north-1"},"us-gov-*/iam":"globalGovCloud","us-gov-*/sts":{endpoint:"{service}.{region}.amazonaws.com"},"us-gov-west-1/s3":"s3signature","us-west-1/s3":"s3signature","us-west-2/s3":"s3signature","eu-west-1/s3":"s3signature","ap-southeast-1/s3":"s3signature","ap-southeast-2/s3":"s3signature","ap-northeast-1/s3":"s3signature","sa-east-1/s3":"s3signature","us-east-1/s3":{endpoint:"{service}.amazonaws.com",signatureVersion:"s3"},"us-east-1/sdb":{endpoint:"{service}.amazonaws.com",signatureVersion:"v2"},"*/sdb":{endpoint:"{service}.{region}.amazonaws.com",signatureVersion:"v2"}},patterns:{globalSSL:{endpoint:"https://{service}.amazonaws.com",globalEndpoint:!0,signingRegion:"us-east-1"},globalGovCloud:{endpoint:"{service}.us-gov.amazonaws.com",globalEndpoint:!0,signingRegion:"us-gov-west-1"},s3signature:{endpoint:"{service}.{region}.amazonaws.com",signatureVersion:"s3"}}}},{}],387:[function(e,t,r){(function(t){(function(){function r(e){return Object.prototype.hasOwnProperty.call(u,e._asm.currentState)}var i=e("./core"),a=e("./state_machine"),s=i.util.inherit,o=i.util.domain,n=e("jmespath"),u={success:1,error:1,complete:1},p=new a;p.setupStates=function(){var e=function(e,t){var i=this;i._haltHandlersOnError=!1,i.emit(i._asm.currentState,function(e){if(e)if(r(i)){if(!(o&&i.domain instanceof o.Domain))throw e;e.domainEmitter=i,e.domain=i.domain,e.domainThrown=!1,i.domain.emit("error",e)}else i.response.error=e,t(e);else t(i.response.error)})};this.addState("validate","build","error",e),this.addState("build","afterBuild","restart",e),this.addState("afterBuild","sign","restart",e),this.addState("sign","send","retry",e),this.addState("retry","afterRetry","afterRetry",e),this.addState("afterRetry","sign","error",e),this.addState("send","validateResponse","retry",e),this.addState("validateResponse","extractData","extractError",e),this.addState("extractError","extractData","retry",e),this.addState("extractData","success","retry",e),this.addState("restart","build","error",e),this.addState("success","complete","complete",e),this.addState("error","complete","complete",e),this.addState("complete",null,null,e)},p.setupStates(),i.Request=s({constructor:function(e,t,r){var s=e.endpoint,n=e.config.region,u=e.config.customUserAgent;e.isGlobalEndpoint&&(n=e.signingRegion?e.signingRegion:"us-east-1"),this.domain=o&&o.active,this.service=e,this.operation=t,this.params=r||{},this.httpRequest=new i.HttpRequest(s,n),this.httpRequest.appendToUserAgent(u),this.startTime=e.getSkewCorrectedDate(),this.response=new i.Response(this),this._asm=new a(p.states,"validate"),this._haltHandlersOnError=!1,i.SequentialExecutor.call(this),this.emit=this.emitEvent},send:function(e){return e&&(this.httpRequest.appendToUserAgent("callback"),this.on("complete",function(t){e.call(t,t.error,t.data)})),this.runTo(),this.response},build:function(e){return this.runTo("send",e)},runTo:function(e,t){return this._asm.runTo(e,t,this),this},abort:function(){return this.removeAllListeners("validateResponse"),this.removeAllListeners("extractError"),this.on("validateResponse",function(e){e.error=i.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:!1})}),this.httpRequest.stream&&!this.httpRequest.stream.didCallback&&(this.httpRequest.stream.abort(),this.httpRequest._abortCallback?this.httpRequest._abortCallback():this.removeAllListeners("send")),this},eachPage:function(e){function t(r){e.call(r,r.error,r.data,function(a){!1!==a&&(r.hasNextPage()?r.nextPage().on("complete",t).send():e.call(r,null,null,i.util.fn.noop))})}e=i.util.fn.makeAsync(e,3),this.on("complete",t).send()},eachItem:function(e){function t(t,a){if(t)return e(t,null);if(null===a)return e(null,null);var s=r.service.paginationConfig(r.operation),o=s.resultKey;Array.isArray(o)&&(o=o[0]);var u=n.search(a,o),p=!0;return i.util.arrayEach(u,function(t){if(!1===(p=e(null,t)))return i.util.abort}),p}var r=this;this.eachPage(t)},isPageable:function(){return!!this.service.paginationConfig(this.operation)},createReadStream:function(){var e=i.util.stream,r=this,a=null;return 2===i.HttpClient.streamsApiVersion?(a=new e.PassThrough,t.nextTick(function(){r.send()})):(a=new e.Stream,a.readable=!0,a.sent=!1,a.on("newListener",function(e){a.sent||"data"!==e||(a.sent=!0,t.nextTick(function(){r.send()}))})),this.on("error",function(e){a.emit("error",e)}),this.on("httpHeaders",function(t,s,o){if(t<300){r.removeListener("httpData",i.EventListeners.Core.HTTP_DATA),r.removeListener("httpError",i.EventListeners.Core.HTTP_ERROR),r.on("httpError",function(e){o.error=e,o.error.retryable=!1});var n,u=!1;if("HEAD"!==r.httpRequest.method&&(n=parseInt(s["content-length"],10)),void 0!==n&&!isNaN(n)&&n>=0){u=!0;var p=0}var m=function(){u&&p!==n?a.emit("error",i.util.error(new Error("Stream content length mismatch. Received "+p+" of "+n+" bytes."),{code:"StreamContentLengthMismatch"})):2===i.HttpClient.streamsApiVersion?a.end():a.emit("end")},c=o.httpResponse.createUnbufferedStream();if(2===i.HttpClient.streamsApiVersion)if(u){var l=new e.PassThrough;l._write=function(t){return t&&t.length&&(p+=t.length),e.PassThrough.prototype._write.apply(this,arguments)},l.on("end",m),a.on("error",function(e){u=!1,c.unpipe(l),l.emit("end"),l.end()}),c.pipe(l).pipe(a,{end:!1})}else c.pipe(a);else u&&c.on("data",function(e){e&&e.length&&(p+=e.length)}),c.on("data",function(e){a.emit("data",e)}),c.on("end",m);c.on("error",function(e){u=!1,a.emit("error",e)})}}),a},emitEvent:function(e,t,r){"function"==typeof t&&(r=t,t=null),r||(r=function(){}),t||(t=this.eventParameters(e,this.response)),i.SequentialExecutor.prototype.emit.call(this,e,t,function(e){e&&(this.response.error=e),r.call(this,e)})},eventParameters:function(e){switch(e){case"restart":case"validate":case"sign":case"build":case"afterValidate":case"afterBuild":return[this];case"error":return[this.response.error,this.response];default:return[this.response]}},presign:function(e,t){return t||"function"!=typeof e||(t=e,e=null),(new i.Signers.Presign).sign(this.toGet(),e,t)},isPresigned:function(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function(){return this._unAuthenticated=!0,this.removeListener("validate",i.EventListeners.Core.VALIDATE_CREDENTIALS),this.removeListener("sign",i.EventListeners.Core.SIGN),this},toGet:function(){return"query"!==this.service.api.protocol&&"ec2"!==this.service.api.protocol||(this.removeListener("build",this.buildAsGet),this.addListener("build",this.buildAsGet)),this},buildAsGet:function(e){e.httpRequest.method="GET",e.httpRequest.path=e.service.endpoint.path+"?"+e.httpRequest.body,e.httpRequest.body="",delete e.httpRequest.headers["Content-Length"],delete e.httpRequest.headers["Content-Type"]},haltHandlersOnError:function(){this._haltHandlersOnError=!0}}),i.Request.addPromisesToClass=function(e){this.prototype.promise=function(){var t=this;return this.httpRequest.appendToUserAgent("promise"),new e(function(e,r){t.on("complete",function(t){t.error?r(t.error):e(Object.defineProperty(t.data||{},"$response",{value:t}))}),t.runTo()})}},i.Request.deletePromisesFromClass=function(){delete this.prototype.promise},i.util.addPromises(i.Request),i.util.mixin(i.Request,i.SequentialExecutor)}).call(this)}).call(this,e("_process"))},{"./core":342,"./state_machine":416,_process:431,jmespath:430}],388:[function(e,t,r){function i(e){var t=e.request._waiter,r=t.config.acceptors,i=!1,a="retry";r.forEach(function(r){if(!i){var s=t.matchers[r.matcher];s&&s(e,r.expected,r.argument)&&(i=!0,a=r.state)}}),!i&&e.error&&(a="failure"),"success"===a?t.setSuccess(e):t.setError(e,"retry"===a)}var a=e("./core"),s=a.util.inherit,o=e("jmespath");a.ResourceWaiter=s({constructor:function(e,t){this.service=e,this.state=t,this.loadWaiterConfig(this.state)},service:null,state:null,config:null,matchers:{path:function(e,t,r){try{var i=o.search(e.data,r)}catch(e){return!1}return o.strictDeepEqual(i,t)},pathAll:function(e,t,r){try{var i=o.search(e.data,r)}catch(e){return!1}Array.isArray(i)||(i=[i]);var a=i.length;if(!a)return!1;for(var s=0;s<a;s++)if(!o.strictDeepEqual(i[s],t))return!1;return!0},pathAny:function(e,t,r){try{var i=o.search(e.data,r)}catch(e){return!1}Array.isArray(i)||(i=[i]);for(var a=i.length,s=0;s<a;s++)if(o.strictDeepEqual(i[s],t))return!0;return!1},status:function(e,t){var r=e.httpResponse.statusCode;return"number"==typeof r&&r===t},error:function(e,t){return"string"==typeof t&&e.error?t===e.error.code:t===!!e.error}},listeners:(new a.SequentialExecutor).addNamedListeners(function(e){e("RETRY_CHECK","retry",function(e){var t=e.request._waiter;e.error&&"ResourceNotReady"===e.error.code&&(e.error.retryDelay=1e3*(t.config.delay||0))}),e("CHECK_OUTPUT","extractData",i),e("CHECK_ERROR","extractError",i)}),wait:function(e,t){"function"==typeof e&&(t=e,e=void 0),e&&e.$waiter&&(e=a.util.copy(e),"number"==typeof e.$waiter.delay&&(this.config.delay=e.$waiter.delay),"number"==typeof e.$waiter.maxAttempts&&(this.config.maxAttempts=e.$waiter.maxAttempts),delete e.$waiter);var r=this.service.makeRequest(this.config.operation,e);return r._waiter=this,r.response.maxRetries=this.config.maxAttempts,r.addListeners(this.listeners),t&&r.send(t),r},setSuccess:function(e){e.error=null,e.data=e.data||{},e.request.removeAllListeners("extractData")},setError:function(e,t){e.data=null,e.error=a.util.error(e.error||new Error,{code:"ResourceNotReady",message:"Resource is not in the state "+this.state,retryable:t})},loadWaiterConfig:function(e){if(!this.service.api.waiters[e])throw new a.util.error(new Error,{code:"StateNotFoundError",message:"State "+e+" not found."});this.config=a.util.copy(this.service.api.waiters[e])}})},{"./core":342,jmespath:430}],389:[function(e,t,r){var i=e("./core"),a=i.util.inherit,s=e("jmespath");i.Response=a({constructor:function(e){this.request=e,this.data=null,this.error=null,this.retryCount=0,this.redirectCount=0,this.httpResponse=new i.HttpResponse,e&&(this.maxRetries=e.service.numRetries(),this.maxRedirects=e.service.config.maxRedirects)},nextPage:function(e){var t,r=this.request.service,a=this.request.operation;try{t=r.paginationConfig(a,!0)}catch(e){this.error=e}if(!this.hasNextPage()){if(e)e(this.error,null);else if(this.error)throw this.error;return null}var s=i.util.copy(this.request.params);if(this.nextPageTokens){var o=t.inputToken;"string"==typeof o&&(o=[o]);for(var n=0;n<o.length;n++)s[o[n]]=this.nextPageTokens[n];return r.makeRequest(this.request.operation,s,e)}return e?e(null,null):null},hasNextPage:function(){return this.cacheNextPageTokens(),!!this.nextPageTokens||void 0===this.nextPageTokens&&void 0},cacheNextPageTokens:function(){if(Object.prototype.hasOwnProperty.call(this,"nextPageTokens"))return this.nextPageTokens;this.nextPageTokens=void 0;var e=this.request.service.paginationConfig(this.request.operation);if(!e)return this.nextPageTokens;if(this.nextPageTokens=null,e.moreResults&&!s.search(this.data,e.moreResults))return this.nextPageTokens;var t=e.outputToken;return"string"==typeof t&&(t=[t]),i.util.arrayEach.call(this,t,function(e){var t=s.search(this.data,e);t&&(this.nextPageTokens=this.nextPageTokens||[],this.nextPageTokens.push(t))}),this.nextPageTokens}})},{"./core":342,jmespath:430}],390:[function(e,t,r){var i=e("../core"),a=i.util.string.byteLength,s=i.util.Buffer;i.S3.ManagedUpload=i.util.inherit({constructor:function(e){var t=this;i.SequentialExecutor.call(t),t.body=null,t.sliceFn=null,t.callback=null,t.parts={},t.completeInfo=[],t.fillQueue=function(){t.callback(new Error("Unsupported body payload "+typeof t.body))},t.configure(e)},configure:function(e){if(e=e||{},this.partSize=this.minPartSize,e.queueSize&&(this.queueSize=e.queueSize),e.partSize&&(this.partSize=e.partSize),e.leavePartsOnError&&(this.leavePartsOnError=!0),e.tags){if(!Array.isArray(e.tags))throw new Error("Tags must be specified as an array; "+typeof e.tags+" provided.");this.tags=e.tags}if(this.partSize<this.minPartSize)throw new Error("partSize must be greater than "+this.minPartSize);this.service=e.service,this.bindServiceObject(e.params),this.validateBody(),this.adjustTotalBytes()},leavePartsOnError:!1,queueSize:4,partSize:null,minPartSize:5242880,maxTotalParts:1e4,send:function(e){var t=this;t.failed=!1,t.callback=e||function(e){if(e)throw e};var r=!0;if(t.sliceFn)t.fillQueue=t.fillBuffer;else if(i.util.isNode()){var a=i.util.stream.Stream;t.body instanceof a&&(r=!1,t.fillQueue=t.fillStream,t.partBuffers=[],t.body.on("error",function(e){t.cleanup(e)}).on("readable",function(){t.fillQueue()}).on("end",function(){t.isDoneChunking=!0,t.numParts=t.totalPartNumbers,t.fillQueue.call(t),t.isDoneChunking&&t.totalPartNumbers>=1&&t.doneParts===t.numParts&&t.finishMultiPart()}))}r&&t.fillQueue.call(t)},abort:function(){var e=this;!0===e.isDoneChunking&&1===e.totalPartNumbers&&e.singlePart?e.singlePart.abort():e.cleanup(i.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:!1}))},validateBody:function(){var e=this;if(e.body=e.service.config.params.Body,"string"==typeof e.body)e.body=i.util.buffer.toBuffer(e.body);else if(!e.body)throw new Error("params.Body is required");e.sliceFn=i.util.arraySliceFn(e.body)},bindServiceObject:function(e){e=e||{};var t=this;if(t.service){var r=t.service,a=i.util.copy(r.config);a.signatureVersion=r.getSignatureVersion(),t.service=new r.constructor.__super__(a),t.service.config.params=i.util.merge(t.service.config.params||{},e),Object.defineProperty(t.service,"_originalConfig",{get:function(){return r._originalConfig},enumerable:!1,configurable:!0})}else t.service=new i.S3({params:e})},adjustTotalBytes:function(){var e=this;try{e.totalBytes=a(e.body)}catch(e){}if(e.totalBytes){var t=Math.ceil(e.totalBytes/e.maxTotalParts);t>e.partSize&&(e.partSize=t)}else e.totalBytes=void 0},isDoneChunking:!1,partPos:0,totalChunkedBytes:0,totalUploadedBytes:0,totalBytes:void 0,numParts:0,totalPartNumbers:0,activeParts:0,doneParts:0,parts:null,completeInfo:null,failed:!1,multipartReq:null,partBuffers:null,partBufferLength:0,fillBuffer:function(){var e=this,t=a(e.body);if(0===t)return e.isDoneChunking=!0,e.numParts=1,void e.nextChunk(e.body);for(;e.activeParts<e.queueSize&&e.partPos<t;){var r=Math.min(e.partPos+e.partSize,t),i=e.sliceFn.call(e.body,e.partPos,r);e.partPos+=e.partSize,(a(i)<e.partSize||e.partPos===t)&&(e.isDoneChunking=!0,e.numParts=e.totalPartNumbers+1),e.nextChunk(i)}},fillStream:function(){var e=this;if(!(e.activeParts>=e.queueSize)){var t=e.body.read(e.partSize-e.partBufferLength)||e.body.read();if(t&&(e.partBuffers.push(t),e.partBufferLength+=t.length,e.totalChunkedBytes+=t.length),e.partBufferLength>=e.partSize){var r=1===e.partBuffers.length?e.partBuffers[0]:s.concat(e.partBuffers);if(e.partBuffers=[],e.partBufferLength=0,r.length>e.partSize){var i=r.slice(e.partSize);e.partBuffers.push(i),e.partBufferLength+=i.length,r=r.slice(0,e.partSize)}e.nextChunk(r)}e.isDoneChunking&&!e.isDoneSending&&(r=1===e.partBuffers.length?e.partBuffers[0]:s.concat(e.partBuffers),e.partBuffers=[],e.partBufferLength=0,e.totalBytes=e.totalChunkedBytes,e.isDoneSending=!0,(0===e.numParts||r.length>0)&&(e.numParts++,e.nextChunk(r))),e.body.read(0)}},nextChunk:function(e){var t=this;if(t.failed)return null;var r=++t.totalPartNumbers;if(t.isDoneChunking&&1===r){var a={Body:e};this.tags&&(a.Tagging=this.getTaggingHeader());var s=t.service.putObject(a);return s._managedUpload=t,s.on("httpUploadProgress",t.progress).send(t.finishSinglePart),t.singlePart=s,null}if(t.service.config.params.ContentMD5){var o=i.util.error(new Error("The Content-MD5 you specified is invalid for multi-part uploads."),{code:"InvalidDigest",retryable:!1});return t.cleanup(o),null}if(t.completeInfo[r]&&null!==t.completeInfo[r].ETag)return null;t.activeParts++,t.service.config.params.UploadId?t.uploadPart(e,r):t.multipartReq?t.queueChunks(e,r):(t.multipartReq=t.service.createMultipartUpload(),t.multipartReq.on("success",function(e){t.service.config.params.UploadId=e.data.UploadId,t.multipartReq=null}),t.queueChunks(e,r),t.multipartReq.on("error",function(e){t.cleanup(e)}),t.multipartReq.send())},getTaggingHeader:function(){for(var e=[],t=0;t<this.tags.length;t++)e.push(i.util.uriEscape(this.tags[t].Key)+"="+i.util.uriEscape(this.tags[t].Value));return e.join("&")},uploadPart:function(e,t){var r=this,a={Body:e,ContentLength:i.util.string.byteLength(e),PartNumber:t},s={ETag:null,PartNumber:t};r.completeInfo[t]=s;var o=r.service.uploadPart(a);r.parts[t]=o,o._lastUploadedBytes=0,o._managedUpload=r,o.on("httpUploadProgress",r.progress),o.send(function(e,o){if(delete r.parts[a.PartNumber],r.activeParts--,!(e||o&&o.ETag)){var n="No access to ETag property on response.";i.util.isBrowser()&&(n+=" Check CORS configuration to expose ETag header."),e=i.util.error(new Error(n),{code:"ETagMissing",retryable:!1})}return e?r.cleanup(e):r.completeInfo[t]&&null!==r.completeInfo[t].ETag?null:(s.ETag=o.ETag,r.doneParts++,void(r.isDoneChunking&&r.doneParts===r.numParts?r.finishMultiPart():r.fillQueue.call(r)))})},queueChunks:function(e,t){var r=this;r.multipartReq.on("success",function(){r.uploadPart(e,t)})},cleanup:function(e){var t=this;t.failed||("function"==typeof t.body.removeAllListeners&&"function"==typeof t.body.resume&&(t.body.removeAllListeners("readable"),t.body.removeAllListeners("end"),t.body.resume()),t.multipartReq&&(t.multipartReq.removeAllListeners("success"),t.multipartReq.removeAllListeners("error"),t.multipartReq.removeAllListeners("complete"),delete t.multipartReq),t.service.config.params.UploadId&&!t.leavePartsOnError?t.service.abortMultipartUpload().send():t.leavePartsOnError&&(t.isDoneChunking=!1),i.util.each(t.parts,function(e,t){t.removeAllListeners("complete"),t.abort()}),t.activeParts=0,t.partPos=0,t.numParts=0,t.totalPartNumbers=0,t.parts={},t.failed=!0,t.callback(e))},finishMultiPart:function(){var e=this,t={MultipartUpload:{Parts:e.completeInfo.slice(1)}};e.service.completeMultipartUpload(t,function(t,r){if(t)return e.cleanup(t);if(r&&"string"==typeof r.Location&&(r.Location=r.Location.replace(/%2F/g,"/")),Array.isArray(e.tags)){for(var i=0;i<e.tags.length;i++)e.tags[i].Value=String(e.tags[i].Value);e.service.putObjectTagging({Tagging:{TagSet:e.tags}},function(t,i){t?e.callback(t):e.callback(t,r)})}else e.callback(t,r)})},finishSinglePart:function(e,t){var r=this.request._managedUpload,i=this.request.httpRequest,a=i.endpoint;if(e)return r.callback(e);t.Location=[a.protocol,"//",a.host,i.path].join(""),t.key=this.request.params.Key,t.Key=this.request.params.Key,t.Bucket=this.request.params.Bucket,r.callback(e,t)},progress:function(e){var t=this._managedUpload;"putObject"===this.operation?(e.part=1,e.key=this.params.Key):(t.totalUploadedBytes+=e.loaded-this._lastUploadedBytes,this._lastUploadedBytes=e.loaded,e={loaded:t.totalUploadedBytes,total:t.totalBytes,part:this.params.PartNumber,key:this.params.Key}),t.emit("httpUploadProgress",[e])}}),i.util.mixin(i.S3.ManagedUpload,i.SequentialExecutor),i.S3.ManagedUpload.addPromisesToClass=function(e){this.prototype.promise=i.util.promisifyMethod("send",e)},i.S3.ManagedUpload.deletePromisesFromClass=function(){delete this.prototype.promise},i.util.addPromises(i.S3.ManagedUpload),t.exports=i.S3.ManagedUpload},{"../core":342}],391:[function(e,t,r){var i=e("./core");i.SequentialExecutor=i.util.inherit({constructor:function(){this._events={}},listeners:function(e){return this._events[e]?this._events[e].slice(0):[]},on:function(e,t,r){return this._events[e]?r?this._events[e].unshift(t):this._events[e].push(t):this._events[e]=[t],this},onAsync:function(e,t,r){return t._isAsync=!0,this.on(e,t,r)},removeListener:function(e,t){var r=this._events[e];if(r){for(var i=r.length,a=-1,s=0;s<i;++s)r[s]===t&&(a=s);a>-1&&r.splice(a,1)}return this},removeAllListeners:function(e){return e?delete this._events[e]:this._events={},this},emit:function(e,t,r){r||(r=function(){});var i=this.listeners(e),a=i.length;return this.callListeners(i,t,r),a>0},callListeners:function(e,t,r,a){function s(a){if(a&&(n=i.util.error(n||new Error,a),o._haltHandlersOnError))return r.call(o,n);o.callListeners(e,t,r,n)}for(var o=this,n=a||null;e.length>0;){var u=e.shift();if(u._isAsync)return void u.apply(o,t.concat([s]));try{u.apply(o,t)}catch(e){n=i.util.error(n||new Error,e)}if(n&&o._haltHandlersOnError)return void r.call(o,n)}r.call(o,n)},addListeners:function(e){var t=this;return e._events&&(e=e._events),i.util.each(e,function(e,r){"function"==typeof r&&(r=[r]),i.util.arrayEach(r,function(r){t.on(e,r)})}),t},addNamedListener:function(e,t,r,i){return this[e]=r,this.addListener(t,r,i),this},addNamedAsyncListener:function(e,t,r,i){return r._isAsync=!0,this.addNamedListener(e,t,r,i)},addNamedListeners:function(e){var t=this;return e(function(){t.addNamedListener.apply(t,arguments)},function(){t.addNamedAsyncListener.apply(t,arguments)}),this}}),i.SequentialExecutor.prototype.addListener=i.SequentialExecutor.prototype.on,t.exports=i.SequentialExecutor},{"./core":342}],392:[function(e,t,r){(function(r){(function(){var i=e("./core"),a=e("./model/api"),s=e("./region_config"),o=i.util.inherit,n=0;i.Service=o({constructor:function(e){if(!this.loadServiceClass)throw i.util.error(new Error,"Service must be constructed with `new' operator");var t=this.loadServiceClass(e||{});if(t){var r=i.util.copy(e),a=new t(e);return Object.defineProperty(a,"_originalConfig",{get:function(){return r},enumerable:!1,configurable:!0}),a._clientId=++n,a}this.initialize(e)},initialize:function(e){var t=i.config[this.serviceIdentifier];if(this.config=new i.Config(i.config),t&&this.config.update(t,!0),e&&this.config.update(e,!0),this.validateService(),this.config.endpoint||s.configureEndpoint(this),this.config.endpoint=this.endpointFromTemplate(this.config.endpoint),this.setEndpoint(this.config.endpoint),i.SequentialExecutor.call(this),i.Service.addDefaultMonitoringListeners(this),(this.config.clientSideMonitoring||i.Service._clientSideMonitoring)&&this.publisher){var a=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",function(e){r.nextTick(function(){a.eventHandler(e)})}),this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",function(e){r.nextTick(function(){a.eventHandler(e)})})}},validateService:function(){},loadServiceClass:function(e){var t=e;if(i.util.isEmpty(this.api)){if(t.apiConfig)return i.Service.defineServiceApi(this.constructor,t.apiConfig);if(this.constructor.services){t=new i.Config(i.config),t.update(e,!0);var r=t.apiVersions[this.constructor.serviceIdentifier];return r=r||t.apiVersion,this.getLatestServiceClass(r)}return null}return null},getLatestServiceClass:function(e){return e=this.getLatestServiceVersion(e),null===this.constructor.services[e]&&i.Service.defineServiceApi(this.constructor,e),this.constructor.services[e]},getLatestServiceVersion:function(e){if(!this.constructor.services||0===this.constructor.services.length)throw new Error("No services defined on "+this.constructor.serviceIdentifier);if(e?i.util.isType(e,Date)&&(e=i.util.date.iso8601(e).split("T")[0]):e="latest",Object.hasOwnProperty(this.constructor.services,e))return e;for(var t=Object.keys(this.constructor.services).sort(),r=null,a=t.length-1;a>=0;a--)if("*"!==t[a][t[a].length-1]&&(r=t[a]),t[a].substr(0,10)<=e)return r;throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+e+"'")},api:{},defaultRetryCount:3,customizeRequests:function(e){if(e){if("function"!=typeof e)throw new Error("Invalid callback type '"+typeof e+"' provided in customizeRequests");this.customRequestHandler=e}else this.customRequestHandler=null},makeRequest:function(e,t,r){if("function"==typeof t&&(r=t,t=null),t=t||{},this.config.params){var a=this.api.operations[e];a&&(t=i.util.copy(t),i.util.each(this.config.params,function(e,r){a.input.members[e]&&(void 0!==t[e]&&null!==t[e]||(t[e]=r))}))}var s=new i.Request(this,e,t);return this.addAllRequestListeners(s),this.attachMonitoringEmitter(s),r&&s.send(r),s},makeUnauthenticatedRequest:function(e,t,r){"function"==typeof t&&(r=t,t={});var i=this.makeRequest(e,t).toUnauthenticated();return r?i.send(r):i},waitFor:function(e,t,r){return new i.ResourceWaiter(this,e).wait(t,r)},addAllRequestListeners:function(e){for(var t=[i.events,i.EventListeners.Core,this.serviceInterface(),i.EventListeners.CorePost],r=0;r<t.length;r++)t[r]&&e.addListeners(t[r]);this.config.paramValidation||e.removeListener("validate",i.EventListeners.Core.VALIDATE_PARAMETERS),this.config.logger&&e.addListeners(i.EventListeners.Logger),this.setupRequestListeners(e),"function"==typeof this.constructor.prototype.customRequestHandler&&this.constructor.prototype.customRequestHandler(e),Object.prototype.hasOwnProperty.call(this,"customRequestHandler")&&"function"==typeof this.customRequestHandler&&this.customRequestHandler(e)},apiCallEvent:function(e){var t=e.service.api.operations[e.operation],r={Type:"ApiCall",Api:t?t.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Region:e.httpRequest.region,MaxRetriesExceeded:0,UserAgent:e.httpRequest.getUserAgent()},i=e.response;if(i.httpResponse.statusCode&&(r.FinalHttpStatusCode=i.httpResponse.statusCode),i.error){var a=i.error;i.httpResponse.statusCode>299?(a.code&&(r.FinalAwsException=a.code),a.message&&(r.FinalAwsExceptionMessage=a.message)):((a.code||a.name)&&(r.FinalSdkException=a.code||a.name),a.message&&(r.FinalSdkExceptionMessage=a.message))}return r},apiAttemptEvent:function(e){var t=e.service.api.operations[e.operation],r={Type:"ApiCallAttempt",Api:t?t.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Fqdn:e.httpRequest.endpoint.hostname,UserAgent:e.httpRequest.getUserAgent()},i=e.response;return i.httpResponse.statusCode&&(r.HttpStatusCode=i.httpResponse.statusCode),!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId&&(r.AccessKey=e.service.config.credentials.accessKeyId),i.httpResponse.headers?(e.httpRequest.headers["x-amz-security-token"]&&(r.SessionToken=e.httpRequest.headers["x-amz-security-token"]),i.httpResponse.headers["x-amzn-requestid"]&&(r.XAmznRequestId=i.httpResponse.headers["x-amzn-requestid"]),i.httpResponse.headers["x-amz-request-id"]&&(r.XAmzRequestId=i.httpResponse.headers["x-amz-request-id"]),i.httpResponse.headers["x-amz-id-2"]&&(r.XAmzId2=i.httpResponse.headers["x-amz-id-2"]),r):r},attemptFailEvent:function(e){var t=this.apiAttemptEvent(e),r=e.response,i=r.error;return r.httpResponse.statusCode>299?(i.code&&(t.AwsException=i.code),i.message&&(t.AwsExceptionMessage=i.message)):((i.code||i.name)&&(t.SdkException=i.code||i.name),i.message&&(t.SdkExceptionMessage=i.message)),t},attachMonitoringEmitter:function(e){var t,r,a,s,o,n,u=0,p=this;e.on("validate",function(){s=i.util.realClock.now(),n=Date.now()},!0),e.on("sign",function(){r=i.util.realClock.now(),t=Date.now(),o=e.httpRequest.region,u++},!0),e.on("validateResponse",function(){a=Math.round(i.util.realClock.now()-r)}),e.addNamedListener("API_CALL_ATTEMPT","success",function(){var r=p.apiAttemptEvent(e);r.Timestamp=t,r.AttemptLatency=a>=0?a:0,r.Region=o,p.emit("apiCallAttempt",[r])}),e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",function(){var s=p.attemptFailEvent(e);s.Timestamp=t,a=a||Math.round(i.util.realClock.now()-r),s.AttemptLatency=a>=0?a:0,s.Region=o,p.emit("apiCallAttempt",[s])}),e.addNamedListener("API_CALL","complete",function(){var t=p.apiCallEvent(e);if(t.AttemptCount=u,
|
|
87
|
-
!(t.AttemptCount<=0)){t.Timestamp=n;var r=Math.round(i.util.realClock.now()-s);t.Latency=r>=0?r:0;var a=e.response;a.error&&a.error.retryable&&"number"==typeof a.retryCount&&"number"==typeof a.maxRetries&&a.retryCount>=a.maxRetries&&(t.MaxRetriesExceeded=1),p.emit("apiCall",[t])}})},setupRequestListeners:function(e){},getSigningName:function(){return this.api.signingName||this.api.endpointPrefix},getSignerClass:function(e){var t,r=null,a="";if(e){r=(e.service.api.operations||{})[e.operation]||null,a=r?r.authtype:""}return t=this.config.signatureVersion?this.config.signatureVersion:"v4"===a||"v4-unsigned-body"===a?"v4":this.api.signatureVersion,i.Signers.RequestSigner.getVersion(t)},serviceInterface:function(){switch(this.api.protocol){case"ec2":case"query":return i.EventListeners.Query;case"json":return i.EventListeners.Json;case"rest-json":return i.EventListeners.RestJson;case"rest-xml":return i.EventListeners.RestXml}if(this.api.protocol)throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")},successfulResponse:function(e){return e.httpResponse.statusCode<300},numRetries:function(){return void 0!==this.config.maxRetries?this.config.maxRetries:this.defaultRetryCount},retryDelays:function(e,t){return i.util.calculateRetryDelay(e,this.config.retryDelayOptions,t)},retryableError:function(e){return!!this.timeoutError(e)||(!!this.networkingError(e)||(!!this.expiredCredentialsError(e)||(!!this.throttledError(e)||e.statusCode>=500)))},networkingError:function(e){return"NetworkingError"===e.code},timeoutError:function(e){return"TimeoutError"===e.code},expiredCredentialsError:function(e){return"ExpiredTokenException"===e.code},clockSkewError:function(e){switch(e.code){case"RequestTimeTooSkewed":case"RequestExpired":case"InvalidSignatureException":case"SignatureDoesNotMatch":case"AuthFailure":case"RequestInTheFuture":return!0;default:return!1}},getSkewCorrectedDate:function(){return new Date(Date.now()+this.config.systemClockOffset)},applyClockOffset:function(e){e&&(this.config.systemClockOffset=e-Date.now())},isClockSkewed:function(e){if(e)return Math.abs(this.getSkewCorrectedDate().getTime()-e)>=3e5},throttledError:function(e){if(429===e.statusCode)return!0;switch(e.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":case"RequestThrottledException":case"TooManyRequestsException":case"TransactionInProgressException":case"EC2ThrottledException":return!0;default:return!1}},endpointFromTemplate:function(e){if("string"!=typeof e)return e;var t=e;return t=t.replace(/\{service\}/g,this.api.endpointPrefix),t=t.replace(/\{region\}/g,this.config.region),t=t.replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http")},setEndpoint:function(e){this.endpoint=new i.Endpoint(e,this.config)},paginationConfig:function(e,t){var r=this.api.operations[e].paginator;if(!r){if(t){var a=new Error;throw i.util.error(a,"No pagination configuration for "+e)}return null}return r}}),i.util.update(i.Service,{defineMethods:function(e){i.util.each(e.prototype.api.operations,function(t){if(!e.prototype[t]){"none"===e.prototype.api.operations[t].authtype?e.prototype[t]=function(e,r){return this.makeUnauthenticatedRequest(t,e,r)}:e.prototype[t]=function(e,r){return this.makeRequest(t,e,r)}}})},defineService:function(e,t,r){i.Service._serviceMap[e]=!0,Array.isArray(t)||(r=t,t=[]);var a=o(i.Service,r||{});if("string"==typeof e){i.Service.addVersions(a,t);var s=a.serviceIdentifier||e;a.serviceIdentifier=s}else a.prototype.api=e,i.Service.defineMethods(a);if(i.SequentialExecutor.call(this.prototype),!this.prototype.publisher&&i.util.clientSideMonitoring){var n=i.util.clientSideMonitoring.Publisher,u=i.util.clientSideMonitoring.configProvider,p=u();this.prototype.publisher=new n(p),p.enabled&&(i.Service._clientSideMonitoring=!0)}return i.SequentialExecutor.call(a.prototype),i.Service.addDefaultMonitoringListeners(a.prototype),a},addVersions:function(e,t){Array.isArray(t)||(t=[t]),e.services=e.services||{};for(var r=0;r<t.length;r++)void 0===e.services[t[r]]&&(e.services[t[r]]=null);e.apiVersions=Object.keys(e.services).sort()},defineServiceApi:function(e,t,r){function s(t){t.isApi?n.prototype.api=t:n.prototype.api=new a(t,{serviceIdentifier:e.serviceIdentifier})}var n=o(e,{serviceIdentifier:e.serviceIdentifier});if("string"==typeof t){if(r)s(r);else try{s(i.apiLoader(e.serviceIdentifier,t))}catch(r){throw i.util.error(r,{message:"Could not find API configuration "+e.serviceIdentifier+"-"+t})}Object.prototype.hasOwnProperty.call(e.services,t)||(e.apiVersions=e.apiVersions.concat(t).sort()),e.services[t]=n}else s(t);return i.Service.defineMethods(n),n},hasService:function(e){return Object.prototype.hasOwnProperty.call(i.Service._serviceMap,e)},addDefaultMonitoringListeners:function(e){e.addNamedListener("MONITOR_EVENTS_BUBBLE","apiCallAttempt",function(t){var r=Object.getPrototypeOf(e);r._events&&r.emit("apiCallAttempt",[t])}),e.addNamedListener("CALL_EVENTS_BUBBLE","apiCall",function(t){var r=Object.getPrototypeOf(e);r._events&&r.emit("apiCall",[t])})},_serviceMap:{}}),i.util.mixin(i.Service,i.SequentialExecutor),t.exports=i.Service}).call(this)}).call(this,e("_process"))},{"./core":342,"./model/api":368,"./region_config":385,_process:431}],393:[function(e,t,r){var i=e("../core");i.util.update(i.APIGateway.prototype,{setAcceptHeader:function(e){var t=e.httpRequest;t.headers.Accept||(t.headers.Accept="application/json")},setupRequestListeners:function(e){if(e.addListener("build",this.setAcceptHeader),"getExport"===e.operation){"swagger"===(e.params||{}).exportType&&e.addListener("extractData",i.util.convertPayloadToString)}}})},{"../core":342}],394:[function(e,t,r){var i=e("../core");e("../cloudfront/signer"),i.util.update(i.CloudFront.prototype,{setupRequestListeners:function(e){e.addListener("extractData",i.util.hoistPayloadMember)}})},{"../cloudfront/signer":339,"../core":342}],395:[function(e,t,r){var i=e("../core");e("../dynamodb/document_client"),i.util.update(i.DynamoDB.prototype,{setupRequestListeners:function(e){e.service.config.dynamoDbCrc32&&(e.removeListener("extractData",i.EventListeners.Json.EXTRACT_DATA),e.addListener("extractData",this.checkCrc32),e.addListener("extractData",i.EventListeners.Json.EXTRACT_DATA))},checkCrc32:function(e){if(!e.httpResponse.streaming&&!e.request.service.crc32IsValid(e))throw e.data=null,e.error=i.util.error(new Error,{code:"CRC32CheckFailed",message:"CRC32 integrity check failed",retryable:!0}),e.request.haltHandlersOnError(),e.error},crc32IsValid:function(e){var t=e.httpResponse.headers["x-amz-crc32"];return!t||parseInt(t,10)===i.util.crypto.crc32(e.httpResponse.body)},defaultRetryCount:10,retryDelays:function(e,t){var r=i.util.copy(this.config.retryDelayOptions);return"number"!=typeof r.base&&(r.base=50),i.util.calculateRetryDelay(e,r,t)}})},{"../core":342,"../dynamodb/document_client":352}],396:[function(e,t,r){var i=e("../core");i.util.update(i.EC2.prototype,{setupRequestListeners:function(e){e.removeListener("extractError",i.EventListeners.Query.EXTRACT_ERROR),e.addListener("extractError",this.extractError),"copySnapshot"===e.operation&&e.onAsync("validate",this.buildCopySnapshotPresignedUrl)},buildCopySnapshotPresignedUrl:function(e,t){if(e.params.PresignedUrl||e._subRequest)return t();e.params=i.util.copy(e.params),e.params.DestinationRegion=e.service.config.region;var r=i.util.copy(e.service.config);delete r.endpoint,r.region=e.params.SourceRegion;var a=new e.service.constructor(r),s=a[e.operation](e.params);s._subRequest=!0,s.presign(function(r,i){r?t(r):(e.params.PresignedUrl=i,t())})},extractError:function(e){var t=e.httpResponse,r=(new i.XML.Parser).parse(t.body.toString()||"");r.Errors?e.error=i.util.error(new Error,{code:r.Errors.Error.Code,message:r.Errors.Error.Message}):e.error=i.util.error(new Error,{code:t.statusCode,message:null}),e.error.requestId=r.RequestID||null}})},{"../core":342}],397:[function(e,t,r){var i=e("../core"),a=["deleteThingShadow","getThingShadow","updateThingShadow"];i.util.update(i.IotData.prototype,{validateService:function(){if(!this.config.endpoint||this.config.endpoint.indexOf("{")>=0){throw i.util.error(new Error,{name:"InvalidEndpoint",message:"AWS.IotData requires an explicit `endpoint' configuration option."})}},setupRequestListeners:function(e){e.addListener("validateResponse",this.validateResponseBody),a.indexOf(e.operation)>-1&&e.addListener("extractData",i.util.convertPayloadToString)},validateResponseBody:function(e){var t=e.httpResponse.body.toString()||"{}",r=t.trim();r&&"{"===r.charAt(0)||(e.httpResponse.body="")}})},{"../core":342}],398:[function(e,t,r){var i=e("../core");i.util.update(i.Lambda.prototype,{setupRequestListeners:function(e){"invoke"===e.operation&&e.addListener("extractData",i.util.convertPayloadToString)}})},{"../core":342}],399:[function(e,t,r){var i=e("../core");i.util.update(i.MachineLearning.prototype,{setupRequestListeners:function(e){"predict"===e.operation&&e.addListener("build",this.buildEndpoint)},buildEndpoint:function(e){var t=e.params.PredictEndpoint;t&&(e.httpRequest.endpoint=new i.Endpoint(t))}})},{"../core":342}],400:[function(e,t,r){e("../polly/presigner")},{"../polly/presigner":375}],401:[function(e,t,r){var i=e("../core"),a=e("./rdsutil");e("../rds/signer");var s=["copyDBSnapshot","createDBInstanceReadReplica","createDBCluster","copyDBClusterSnapshot","startDBInstanceAutomatedBackupsReplication"];i.util.update(i.RDS.prototype,{setupRequestListeners:function(e){a.setupRequestListeners(this,e,s)}})},{"../core":342,"../rds/signer":383,"./rdsutil":402}],402:[function(e,t,r){var i=e("../core"),a={setupRequestListeners:function(e,t,r){if(-1!==r.indexOf(t.operation)&&t.params.SourceRegion)if(t.params=i.util.copy(t.params),t.params.PreSignedUrl||t.params.SourceRegion===e.config.region)delete t.params.SourceRegion;else{var s=!!e.config.paramValidation;s&&t.removeListener("validate",i.EventListeners.Core.VALIDATE_PARAMETERS),t.onAsync("validate",a.buildCrossRegionPresignedUrl),s&&t.addListener("validate",i.EventListeners.Core.VALIDATE_PARAMETERS)}},buildCrossRegionPresignedUrl:function(e,t){var r=i.util.copy(e.service.config);r.region=e.params.SourceRegion,delete e.params.SourceRegion,delete r.endpoint,delete r.params,r.signatureVersion="v4";var a=e.service.config.region,s=new e.service.constructor(r),o=s[e.operation](i.util.copy(e.params));o.on("build",function(e){var t=e.httpRequest;t.params.DestinationRegion=a,t.body=i.util.queryParamsToString(t.params)}),o.presign(function(r,i){r?t(r):(e.params.PreSignedUrl=i,t())})}};t.exports=a},{"../core":342}],403:[function(e,t,r){var i=e("../core");i.util.update(i.Route53.prototype,{setupRequestListeners:function(e){e.on("build",this.sanitizeUrl)},sanitizeUrl:function(e){var t=e.httpRequest.path;e.httpRequest.path=t.replace(/\/%2F\w+%2F/,"/")},retryableError:function(e){return"PriorRequestNotComplete"===e.code&&400===e.statusCode||i.Service.prototype.retryableError.call(this,e)}})},{"../core":342}],404:[function(e,t,r){var i=e("../core"),a=e("../signers/v4_credentials"),s=e("../config_regional_endpoint"),o=e("./s3util"),n=e("../region_config");e("../s3/managed_upload");var u={completeMultipartUpload:!0,copyObject:!0,uploadPartCopy:!0},p=["AuthorizationHeaderMalformed","BadRequest","PermanentRedirect",301];i.util.update(i.S3.prototype,{getSignatureVersion:function(e){var t=this.api.signatureVersion,r=this._originalConfig?this._originalConfig.signatureVersion:null,i=this.config.signatureVersion,a=!!e&&e.isPresigned();return r?r="v2"===r?"s3":r:(!0!==a?t="v4":i&&(t=i),t)},getSigningName:function(e){if(e&&"writeGetObjectResponse"===e.operation)return"s3-object-lambda";var t=i.Service.prototype.getSigningName;return e&&e._parsedArn&&e._parsedArn.service?e._parsedArn.service:t.call(this)},getSignerClass:function(e){var t=this.getSignatureVersion(e);return i.Signers.RequestSigner.getVersion(t)},validateService:function(){var e,t=[];if(this.config.region||(this.config.region="us-east-1"),!this.config.endpoint&&this.config.s3BucketEndpoint&&t.push("An endpoint must be provided when configuring `s3BucketEndpoint` to true."),1===t.length?e=t[0]:t.length>1&&(e="Multiple configuration errors:\n"+t.join("\n")),e)throw i.util.error(new Error,{name:"InvalidEndpoint",message:e})},shouldDisableBodySigning:function(e){var t=this.getSignerClass();return!0===this.config.s3DisableBodySigning&&t===i.Signers.V4&&"https:"===e.httpRequest.endpoint.protocol},setupRequestListeners:function(e){if(e.addListener("validate",this.validateScheme),e.addListener("validate",this.validateBucketName,!0),e.addListener("validate",this.optInUsEast1RegionalEndpoint,!0),e.removeListener("validate",i.EventListeners.Core.VALIDATE_REGION),e.addListener("build",this.addContentType),e.addListener("build",this.computeContentMd5),e.addListener("build",this.computeSseCustomerKeyMd5),e.addListener("build",this.populateURI),e.addListener("afterBuild",this.addExpect100Continue),e.addListener("extractError",this.extractError),e.addListener("extractData",i.util.hoistPayloadMember),e.addListener("extractData",this.extractData),e.addListener("extractData",this.extractErrorFrom200Response),e.addListener("beforePresign",this.prepareSignedUrl),this.shouldDisableBodySigning(e)&&(e.removeListener("afterBuild",i.EventListeners.Core.COMPUTE_SHA256),e.addListener("afterBuild",this.disableBodySigning)),"createBucket"!==e.operation&&o.isArnInParam(e,"Bucket"))return e._parsedArn=i.util.ARN.parse(e.params.Bucket),e.removeListener("validate",this.validateBucketName),e.removeListener("build",this.populateURI),"s3"===e._parsedArn.service?(e.addListener("validate",o.validateS3AccessPointArn),e.addListener("validate",this.validateArnResourceType)):"s3-outposts"===e._parsedArn.service&&(e.addListener("validate",o.validateOutpostsAccessPointArn),e.addListener("validate",o.validateOutpostsArn)),e.addListener("validate",o.validateArnRegion),e.addListener("validate",o.validateArnAccount),e.addListener("validate",o.validateArnService),e.addListener("build",this.populateUriFromAccessPointArn),void e.addListener("build",o.validatePopulateUriFromArn);e.addListener("validate",this.validateBucketEndpoint),e.addListener("validate",this.correctBucketRegionFromCache),e.onAsync("extractError",this.requestBucketRegion),i.util.isBrowser()&&e.onAsync("retry",this.reqRegionForNetworkingError)},validateScheme:function(e){var t=e.params,r=e.httpRequest.endpoint.protocol;if((t.SSECustomerKey||t.CopySourceSSECustomerKey)&&"https:"!==r)throw i.util.error(new Error,{code:"ConfigError",message:"Cannot send SSE keys over HTTP. Set 'sslEnabled'to 'true' in your configuration"})},validateBucketEndpoint:function(e){if(!e.params.Bucket&&e.service.config.s3BucketEndpoint){throw i.util.error(new Error,{code:"ConfigError",message:"Cannot send requests to root API with `s3BucketEndpoint` set."})}},validateArnResourceType:function(e){var t=e._parsedArn.resource;if(0!==t.indexOf("accesspoint:")&&0!==t.indexOf("accesspoint/"))throw i.util.error(new Error,{code:"InvalidARN",message:"ARN resource should begin with 'accesspoint/'"})},validateBucketName:function(e){var t=e.service,r=t.getSignatureVersion(e),a=e.params&&e.params.Bucket,s=e.params&&e.params.Key,o=a&&a.indexOf("/");if(a&&o>=0)if("string"==typeof s&&o>0){e.params=i.util.copy(e.params);var n=a.substr(o+1)||"";e.params.Key=n+"/"+s,e.params.Bucket=a.substr(0,o)}else if("v4"===r){var u="Bucket names cannot contain forward slashes. Bucket: "+a;throw i.util.error(new Error,{code:"InvalidBucket",message:u})}},isValidAccelerateOperation:function(e){return-1===["createBucket","deleteBucket","listBuckets"].indexOf(e)},optInUsEast1RegionalEndpoint:function(e){var t=e.service,r=t.config;if(r.s3UsEast1RegionalEndpoint=s(t._originalConfig,{env:"AWS_S3_US_EAST_1_REGIONAL_ENDPOINT",sharedConfig:"s3_us_east_1_regional_endpoint",clientConfig:"s3UsEast1RegionalEndpoint"}),!(t._originalConfig||{}).endpoint&&"us-east-1"===e.httpRequest.region&&"regional"===r.s3UsEast1RegionalEndpoint&&e.httpRequest.endpoint.hostname.indexOf("s3.amazonaws.com")>=0){var i=r.endpoint.indexOf(".amazonaws.com");regionalEndpoint=r.endpoint.substring(0,i)+".us-east-1"+r.endpoint.substring(i),e.httpRequest.updateEndpoint(regionalEndpoint)}},populateURI:function(e){var t=e.httpRequest,r=e.params.Bucket,i=e.service,a=t.endpoint;if(r&&!i.pathStyleBucketName(r)){i.config.useAccelerateEndpoint&&i.isValidAccelerateOperation(e.operation)?i.config.useDualstack?a.hostname=r+".s3-accelerate.dualstack.amazonaws.com":a.hostname=r+".s3-accelerate.amazonaws.com":i.config.s3BucketEndpoint||(a.hostname=r+"."+a.hostname);var s=a.port;a.host=80!==s&&443!==s?a.hostname+":"+a.port:a.hostname,t.virtualHostedBucket=r,i.removeVirtualHostedBucketFromPath(e)}},removeVirtualHostedBucketFromPath:function(e){var t=e.httpRequest,r=t.virtualHostedBucket;if(r&&t.path){if(e.params&&e.params.Key){var a="/"+i.util.uriEscapePath(e.params.Key);if(0===t.path.indexOf(a)&&(t.path.length===a.length||"?"===t.path[a.length]))return}t.path=t.path.replace(new RegExp("/"+r),""),"/"!==t.path[0]&&(t.path="/"+t.path)}},populateUriFromAccessPointArn:function(e){var t=e._parsedArn,r="s3-outposts"===t.service,a="s3-object-lambda"===t.service,s=r?"."+t.outpostId:"",o=r?"s3-outposts":"s3-accesspoint",u=!r&&e.service.config.useDualstack?".dualstack":"",p=e.httpRequest.endpoint,m=n.getEndpointSuffix(t.region),c=e.service.config.s3UseArnRegion;if(p.hostname=[t.accessPoint+"-"+t.accountId+s,o+u,c?t.region:e.service.config.region,m].join("."),a){var o="s3-object-lambda",l=t.resource.split("/")[1];p.hostname=[l+"-"+t.accountId,o,c?t.region:e.service.config.region,m].join(".")}p.host=p.hostname;var d=i.util.uriEscape(e.params.Bucket),y=e.httpRequest.path;e.httpRequest.path=y.replace(new RegExp("/"+d),""),"/"!==e.httpRequest.path[0]&&(e.httpRequest.path="/"+e.httpRequest.path),e.httpRequest.region=t.region},addExpect100Continue:function(e){var t=e.httpRequest.headers["Content-Length"];i.util.isNode()&&(t>=1048576||e.params.Body instanceof i.util.stream.Stream)&&(e.httpRequest.headers.Expect="100-continue")},addContentType:function(e){var t=e.httpRequest;if("GET"===t.method||"HEAD"===t.method)return void delete t.headers["Content-Type"];t.headers["Content-Type"]||(t.headers["Content-Type"]="application/octet-stream");var r=t.headers["Content-Type"];if(i.util.isBrowser())if("string"!=typeof t.body||r.match(/;\s*charset=/)){var a=function(e,t,r){return t+r.toUpperCase()};t.headers["Content-Type"]=r.replace(/(;\s*charset=)(.+)$/,a)}else{t.headers["Content-Type"]+="; charset=UTF-8"}},willComputeChecksums:function(e){var t=e.service.api.operations[e.operation].input.members,r=e.httpRequest.body,a=t.ContentMD5&&!e.params.ContentMD5&&r&&(i.util.Buffer.isBuffer(e.httpRequest.body)||"string"==typeof e.httpRequest.body);return!(!a||!e.service.shouldDisableBodySigning(e)||e.isPresigned())||!(!a||"s3"!==this.getSignatureVersion(e)||!e.isPresigned())},computeContentMd5:function(e){if(e.service.willComputeChecksums(e)){var t=i.util.crypto.md5(e.httpRequest.body,"base64");e.httpRequest.headers["Content-MD5"]=t}},computeSseCustomerKeyMd5:function(e){var t={SSECustomerKey:"x-amz-server-side-encryption-customer-key-MD5",CopySourceSSECustomerKey:"x-amz-copy-source-server-side-encryption-customer-key-MD5"};i.util.each(t,function(t,r){if(e.params[t]){var a=i.util.crypto.md5(e.params[t],"base64");e.httpRequest.headers[r]=a}})},pathStyleBucketName:function(e){return!!this.config.s3ForcePathStyle||!this.config.s3BucketEndpoint&&(!o.dnsCompatibleBucketName(e)||!(!this.config.sslEnabled||!e.match(/\./)))},extractErrorFrom200Response:function(e){if(u[e.request.operation]){var t=e.httpResponse;if(t.body&&t.body.toString().match("<Error>")){e.data=null;throw(this.service?this.service:this).extractError(e),e.error}if(!t.body||!t.body.toString().match(/<[\w_]/))throw e.data=null,i.util.error(new Error,{code:"InternalError",message:"S3 aborted request"})}},retryableError:function(e,t){return!(!u[t.operation]||200!==e.statusCode)||(!t._requestRegionForBucket||!t.service.bucketRegionCache[t._requestRegionForBucket])&&(!(!e||"RequestTimeout"!==e.code)||(e&&-1!=p.indexOf(e.code)&&e.region&&e.region!=t.httpRequest.region?(t.httpRequest.region=e.region,301===e.statusCode&&t.service.updateReqBucketRegion(t),!0):i.Service.prototype.retryableError.call(this,e,t)))},updateReqBucketRegion:function(e,t){var r=e.httpRequest;if("string"==typeof t&&t.length&&(r.region=t),r.endpoint.host.match(/s3(?!-accelerate).*\.amazonaws\.com$/)){var a=e.service,s=a.config,o=s.s3BucketEndpoint;o&&delete s.s3BucketEndpoint;var n=i.util.copy(s);delete n.endpoint,n.region=r.region,r.endpoint=new i.S3(n).endpoint,a.populateURI(e),s.s3BucketEndpoint=o,r.headers.Host=r.endpoint.host,"validate"===e._asm.currentState&&(e.removeListener("build",a.populateURI),e.addListener("build",a.removeVirtualHostedBucketFromPath))}},extractData:function(e){var t=e.request;if("getBucketLocation"===t.operation){var r=e.httpResponse.body.toString().match(/>(.+)<\/Location/);delete e.data._,e.data.LocationConstraint=r?r[1]:""}var i=t.params.Bucket||null;if("deleteBucket"!==t.operation||"string"!=typeof i||e.error){var a=e.httpResponse.headers||{},s=a["x-amz-bucket-region"]||null;if(!s&&"createBucket"===t.operation&&!e.error){var o=t.params.CreateBucketConfiguration;s=o?"EU"===o.LocationConstraint?"eu-west-1":o.LocationConstraint:"us-east-1"}s&&i&&s!==t.service.bucketRegionCache[i]&&(t.service.bucketRegionCache[i]=s)}else t.service.clearBucketRegionCache(i);t.service.extractRequestIds(e)},extractError:function(e){var t={304:"NotModified",403:"Forbidden",400:"BadRequest",404:"NotFound"},r=e.request,a=e.httpResponse.statusCode,s=e.httpResponse.body||"",o=e.httpResponse.headers||{},n=o["x-amz-bucket-region"]||null,u=r.params.Bucket||null,p=r.service.bucketRegionCache;n&&u&&n!==p[u]&&(p[u]=n);var m;if(t[a]&&0===s.length)u&&!n&&(m=p[u]||null)!==r.httpRequest.region&&(n=m),e.error=i.util.error(new Error,{code:t[a],message:null,region:n});else{var c=(new i.XML.Parser).parse(s.toString());c.Region&&!n?(n=c.Region,u&&n!==p[u]&&(p[u]=n)):!u||n||c.Region||(m=p[u]||null)!==r.httpRequest.region&&(n=m),e.error=i.util.error(new Error,{code:c.Code||a,message:c.Message||null,region:n})}r.service.extractRequestIds(e)},requestBucketRegion:function(e,t){var r=e.error,a=e.request,s=a.params.Bucket||null;if(!r||!s||r.region||"listObjects"===a.operation||i.util.isNode()&&"headBucket"===a.operation||400===r.statusCode&&"headObject"!==a.operation||-1===p.indexOf(r.code))return t();var o=i.util.isNode()?"headBucket":"listObjects",n={Bucket:s};"listObjects"===o&&(n.MaxKeys=0);var u=a.service[o](n);u._requestRegionForBucket=s,u.send(function(){var e=a.service.bucketRegionCache[s]||null;r.region=e,t()})},reqRegionForNetworkingError:function(e,t){if(!i.util.isBrowser())return t();var r=e.error,a=e.request,s=a.params.Bucket;if(!r||"NetworkingError"!==r.code||!s||"us-east-1"===a.httpRequest.region)return t();var n=a.service,u=n.bucketRegionCache,p=u[s]||null;if(p&&p!==a.httpRequest.region)n.updateReqBucketRegion(a,p),t();else if(o.dnsCompatibleBucketName(s))if(a.httpRequest.virtualHostedBucket){var m=n.listObjects({Bucket:s,MaxKeys:0});n.updateReqBucketRegion(m,"us-east-1"),m._requestRegionForBucket=s,m.send(function(){var e=n.bucketRegionCache[s]||null;e&&e!==a.httpRequest.region&&n.updateReqBucketRegion(a,e),t()})}else t();else n.updateReqBucketRegion(a,"us-east-1"),"us-east-1"!==u[s]&&(u[s]="us-east-1"),t()},bucketRegionCache:{},clearBucketRegionCache:function(e){var t=this.bucketRegionCache;e?"string"==typeof e&&(e=[e]):e=Object.keys(t);for(var r=0;r<e.length;r++)delete t[e[r]];return t},correctBucketRegionFromCache:function(e){var t=e.params.Bucket||null;if(t){var r=e.service,i=e.httpRequest.region,a=r.bucketRegionCache[t];a&&a!==i&&r.updateReqBucketRegion(e,a)}},extractRequestIds:function(e){var t=e.httpResponse.headers?e.httpResponse.headers["x-amz-id-2"]:null,r=e.httpResponse.headers?e.httpResponse.headers["x-amz-cf-id"]:null;e.extendedRequestId=t,e.cfId=r,e.error&&(e.error.requestId=e.requestId||null,e.error.extendedRequestId=t,e.error.cfId=r)},getSignedUrl:function(e,t,r){t=i.util.copy(t||{});var a=t.Expires||900;if("number"!=typeof a)throw i.util.error(new Error,{code:"InvalidParameterException",message:"The expiration must be a number, received "+typeof a});delete t.Expires;var s=this.makeRequest(e,t);if(!r)return s.presign(a,r);i.util.defer(function(){s.presign(a,r)})},createPresignedPost:function(e,t){function r(){return{url:i.util.urlFormat(u),fields:o.preparePostFields(n.credentials,n.region,s,e.Fields,e.Conditions,e.Expires)}}"function"==typeof e&&void 0===t&&(t=e,e=null),e=i.util.copy(e||{});var a=this.config.params||{},s=e.Bucket||a.Bucket,o=this,n=this.config,u=i.util.copy(this.endpoint);if(n.s3BucketEndpoint||(u.pathname="/"+s),!t)return r();n.getCredentials(function(e){if(e)t(e);else try{t(null,r())}catch(e){t(e)}})},preparePostFields:function(e,t,r,s,o,n){var u=this.getSkewCorrectedDate();if(!e||!t||!r)throw new Error("Unable to create a POST object policy without a bucket, region, and credentials");s=i.util.copy(s||{}),o=(o||[]).slice(0),n=n||3600;var p=i.util.date.iso8601(u).replace(/[:\-]|\.\d{3}/g,""),m=p.substr(0,8),c=a.createScope(m,t,"s3"),l=e.accessKeyId+"/"+c;s.bucket=r,s["X-Amz-Algorithm"]="AWS4-HMAC-SHA256",s["X-Amz-Credential"]=l,s["X-Amz-Date"]=p,e.sessionToken&&(s["X-Amz-Security-Token"]=e.sessionToken);for(var d in s)if(s.hasOwnProperty(d)){var y={};y[d]=s[d],o.push(y)}return s.Policy=this.preparePostPolicy(new Date(u.valueOf()+1e3*n),o),s["X-Amz-Signature"]=i.util.crypto.hmac(a.getSigningKey(e,m,t,"s3",!0),s.Policy,"hex"),s},preparePostPolicy:function(e,t){return i.util.base64.encode(JSON.stringify({expiration:i.util.date.iso8601(e),conditions:t}))},prepareSignedUrl:function(e){e.addListener("validate",e.service.noPresignedContentLength),e.removeListener("build",e.service.addContentType),e.params.Body?e.addListener("afterBuild",i.EventListeners.Core.COMPUTE_SHA256):e.removeListener("build",e.service.computeContentMd5)},disableBodySigning:function(e){var t=e.httpRequest.headers;Object.prototype.hasOwnProperty.call(t,"presigned-expires")||(t["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD")},noPresignedContentLength:function(e){if(void 0!==e.params.ContentLength)throw i.util.error(new Error,{code:"UnexpectedParameter",message:"ContentLength is not supported in pre-signed URLs."})},createBucket:function(e,t){"function"!=typeof e&&e||(t=t||e,e={});var r=this.endpoint.hostname,a=i.util.copy(e);return r===this.api.globalEndpoint||e.CreateBucketConfiguration||(a.CreateBucketConfiguration={LocationConstraint:this.config.region}),this.makeRequest("createBucket",a,t)},writeGetObjectResponse:function(e,t){var r=this.makeRequest("writeGetObjectResponse",i.util.copy(e),t),a=this.endpoint.hostname;return a=-1!==a.indexOf(this.config.region)?a.replace("s3.","s3-object-lambda."):a.replace("s3.","s3-object-lambda."+this.config.region+"."),r.httpRequest.endpoint=new i.Endpoint(a,this.config),r},upload:function(e,t,r){"function"==typeof t&&void 0===r&&(r=t,t=null),t=t||{},t=i.util.merge(t||{},{service:this,params:e});var a=new i.S3.ManagedUpload(t);return"function"==typeof r&&a.send(r),a}}),i.S3.addPromisesToClass=function(e){this.prototype.getSignedUrlPromise=i.util.promisifyMethod("getSignedUrl",e)},i.S3.deletePromisesFromClass=function(){delete this.prototype.getSignedUrlPromise},i.util.addPromises(i.S3)},{"../config_regional_endpoint":341,"../core":342,"../region_config":385,"../s3/managed_upload":390,"../signers/v4_credentials":415,"./s3util":405}],405:[function(e,t,r){(function(r){(function(){var i=e("../core"),a=e("../region_config"),s={isArnInParam:function(e,t){var r=(e.service.api.operations[e.operation]||{}).input||{},a=r.members||{};return!(!e.params[t]||!a[t])&&i.util.ARN.validate(e.params[t])},validateArnService:function(e){var t=e._parsedArn;if("s3"!==t.service&&"s3-outposts"!==t.service&&"s3-object-lambda"!==t.service)throw i.util.error(new Error,{code:"InvalidARN",message:"expect 's3' or 's3-outposts' or 's3-object-lambda' in ARN service component"})},validateArnAccount:function(e){if(!/[0-9]{12}/.exec(e._parsedArn.accountId))throw i.util.error(new Error,{code:"InvalidARN",message:'ARN accountID does not match regex "[0-9]{12}"'})},validateS3AccessPointArn:function(e){var t=e._parsedArn,r=t.resource["accesspoint".length];if(2!==t.resource.split(r).length)throw i.util.error(new Error,{code:"InvalidARN",message:"Access Point ARN should have one resource accesspoint/{accesspointName}"});var a=t.resource.split(r)[1],o=a+"-"+t.accountId;if(!s.dnsCompatibleBucketName(o)||o.match(/\./))throw i.util.error(new Error,{code:"InvalidARN",message:"Access point resource in ARN is not DNS compatible. Got "+a});e._parsedArn.accessPoint=a},validateOutpostsArn:function(e){var t=e._parsedArn;if(0!==t.resource.indexOf("outpost:")&&0!==t.resource.indexOf("outpost/"))throw i.util.error(new Error,{code:"InvalidARN",message:"ARN resource should begin with 'outpost/'"});var r=t.resource["outpost".length],a=t.resource.split(r)[1];if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(a))throw i.util.error(new Error,{code:"InvalidARN",message:"Outpost resource in ARN is not DNS compatible. Got "+a});e._parsedArn.outpostId=a},validateOutpostsAccessPointArn:function(e){var t=e._parsedArn,r=t.resource["outpost".length];if(4!==t.resource.split(r).length)throw i.util.error(new Error,{code:"InvalidARN",message:"Outposts ARN should have two resources outpost/{outpostId}/accesspoint/{accesspointName}"});var a=t.resource.split(r)[3],o=a+"-"+t.accountId;if(!s.dnsCompatibleBucketName(o)||o.match(/\./))throw i.util.error(new Error,{code:"InvalidARN",message:"Access point resource in ARN is not DNS compatible. Got "+a});e._parsedArn.accessPoint=a},validateArnRegion:function(e){var t=s.loadUseArnRegionConfig(e),r=e._parsedArn.region,o=e.service.config.region;if(!r)throw i.util.error(new Error,{code:"InvalidARN",message:"ARN region is empty"});if(o.indexOf("fips")>=0||r.indexOf("fips")>=0)throw i.util.error(new Error,{code:"InvalidConfiguration",message:"ARN endpoint is not compatible with FIPS region"});if(!t&&r!==o)throw i.util.error(new Error,{code:"InvalidConfiguration",message:"Configured region conflicts with access point region"});if(t&&a.getEndpointSuffix(r)!==a.getEndpointSuffix(o))throw i.util.error(new Error,{code:"InvalidConfiguration",message:"Configured region and access point region not in same partition"});if(e.service.config.useAccelerateEndpoint)throw i.util.error(new Error,{code:"InvalidConfiguration",message:"useAccelerateEndpoint config is not supported with access point ARN"});if("s3-outposts"===e._parsedArn.service&&e.service.config.useDualstack)throw i.util.error(new Error,{code:"InvalidConfiguration",message:"useDualstack config is not supported with outposts access point ARN"})},loadUseArnRegionConfig:function(e){var t="AWS_S3_USE_ARN_REGION",a="s3_use_arn_region",s=!0,o=e.service._originalConfig||{};if(void 0!==e.service.config.s3UseArnRegion)return e.service.config.s3UseArnRegion;if(void 0!==o.s3UseArnRegion)s=!0===o.s3UseArnRegion;else if(i.util.isNode())if(r.env[t]){var n=r.env[t].trim().toLowerCase();if(["false","true"].indexOf(n)<0)throw i.util.error(new Error,{code:"InvalidConfiguration",message:t+" only accepts true or false. Got "+r.env[t],retryable:!1});s="true"===n}else{var u={},p={};try{u=i.util.getProfilesFromSharedConfig(i.util.iniLoader),p=u[r.env.AWS_PROFILE||i.util.defaultProfile]}catch(e){}if(p[a]){if(["false","true"].indexOf(p[a].trim().toLowerCase())<0)throw i.util.error(new Error,{code:"InvalidConfiguration",message:a+" only accepts true or false. Got "+p[a],retryable:!1});s="true"===p[a].trim().toLowerCase()}}return e.service.config.s3UseArnRegion=s,s},validatePopulateUriFromArn:function(e){
|
|
88
|
-
if(e.service._originalConfig&&e.service._originalConfig.endpoint)throw i.util.error(new Error,{code:"InvalidConfiguration",message:"Custom endpoint is not compatible with access point ARN"});if(e.service.config.s3ForcePathStyle)throw i.util.error(new Error,{code:"InvalidConfiguration",message:"Cannot construct path-style endpoint with access point"})},dnsCompatibleBucketName:function(e){var t=e,r=new RegExp(/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/),i=new RegExp(/(\d+\.){3}\d+/),a=new RegExp(/\.\./);return!(!t.match(r)||t.match(i)||t.match(a))}};t.exports=s}).call(this)}).call(this,e("_process"))},{"../core":342,"../region_config":385,_process:431}],406:[function(e,t,r){var i=e("../core");i.util.update(i.SQS.prototype,{setupRequestListeners:function(e){e.addListener("build",this.buildEndpoint),e.service.config.computeChecksums&&("sendMessage"===e.operation?e.addListener("extractData",this.verifySendMessageChecksum):"sendMessageBatch"===e.operation?e.addListener("extractData",this.verifySendMessageBatchChecksum):"receiveMessage"===e.operation&&e.addListener("extractData",this.verifyReceiveMessageChecksum))},verifySendMessageChecksum:function(e){if(e.data){var t=e.data.MD5OfMessageBody,r=this.params.MessageBody,i=this.service.calculateChecksum(r);if(i!==t){var a='Got "'+e.data.MD5OfMessageBody+'", expecting "'+i+'".';this.service.throwInvalidChecksumError(e,[e.data.MessageId],a)}}},verifySendMessageBatchChecksum:function(e){if(e.data){var t=this.service,r={},a=[],s=[];i.util.arrayEach(e.data.Successful,function(e){r[e.Id]=e}),i.util.arrayEach(this.params.Entries,function(e){if(r[e.Id]){var i=r[e.Id].MD5OfMessageBody,o=e.MessageBody;t.isChecksumValid(i,o)||(a.push(e.Id),s.push(r[e.Id].MessageId))}}),a.length>0&&t.throwInvalidChecksumError(e,s,"Invalid messages: "+a.join(", "))}},verifyReceiveMessageChecksum:function(e){if(e.data){var t=this.service,r=[];i.util.arrayEach(e.data.Messages,function(e){var i=e.MD5OfBody,a=e.Body;t.isChecksumValid(i,a)||r.push(e.MessageId)}),r.length>0&&t.throwInvalidChecksumError(e,r,"Invalid messages: "+r.join(", "))}},throwInvalidChecksumError:function(e,t,r){e.error=i.util.error(new Error,{retryable:!0,code:"InvalidChecksum",messageIds:t,message:e.request.operation+" returned an invalid MD5 response. "+r})},isChecksumValid:function(e,t){return this.calculateChecksum(t)===e},calculateChecksum:function(e){return i.util.crypto.md5(e,"hex")},buildEndpoint:function(e){var t=e.httpRequest.params.QueueUrl;if(t){e.httpRequest.endpoint=new i.Endpoint(t);var r=e.httpRequest.endpoint.host.match(/^sqs\.(.+?)\./);r&&(e.httpRequest.region=r[1])}}})},{"../core":342}],407:[function(e,t,r){var i=e("../core"),a=e("../config_regional_endpoint");i.util.update(i.STS.prototype,{credentialsFrom:function(e,t){return e?(t||(t=new i.TemporaryCredentials),t.expired=!1,t.accessKeyId=e.Credentials.AccessKeyId,t.secretAccessKey=e.Credentials.SecretAccessKey,t.sessionToken=e.Credentials.SessionToken,t.expireTime=e.Credentials.Expiration,t):null},assumeRoleWithWebIdentity:function(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithWebIdentity",e,t)},assumeRoleWithSAML:function(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithSAML",e,t)},setupRequestListeners:function(e){e.addListener("validate",this.optInRegionalEndpoint,!0)},optInRegionalEndpoint:function(e){var t=e.service,r=t.config;if(r.stsRegionalEndpoints=a(t._originalConfig,{env:"AWS_STS_REGIONAL_ENDPOINTS",sharedConfig:"sts_regional_endpoints",clientConfig:"stsRegionalEndpoints"}),"regional"===r.stsRegionalEndpoints&&t.isGlobalEndpoint){if(!r.region)throw i.util.error(new Error,{code:"ConfigError",message:"Missing region in config"});var s=r.endpoint.indexOf(".amazonaws.com"),o=r.endpoint.substring(0,s)+"."+r.region+r.endpoint.substring(s);e.httpRequest.updateEndpoint(o),e.httpRequest.region=r.region}}})},{"../config_regional_endpoint":341,"../core":342}],408:[function(e,t,r){function i(e){var t=e.httpRequest.headers[n],r=e.service.getSignerClass(e);if(delete e.httpRequest.headers["User-Agent"],delete e.httpRequest.headers["X-Amz-User-Agent"],r===s.Signers.V4){if(t>604800){throw s.util.error(new Error,{code:"InvalidExpiryTime",message:"Presigning does not support expiry time greater than a week with SigV4 signing.",retryable:!1})}e.httpRequest.headers[n]=t}else{if(r!==s.Signers.S3)throw s.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:!1});var i=e.service?e.service.getSkewCorrectedDate():s.util.date.getDate();e.httpRequest.headers[n]=parseInt(s.util.date.unixTimestamp(i)+t,10).toString()}}function a(e){var t=e.httpRequest.endpoint,r=s.util.urlParse(e.httpRequest.path),i={};r.search&&(i=s.util.queryStringParse(r.search.substr(1)));var a=e.httpRequest.headers.Authorization.split(" ");if("AWS"===a[0])a=a[1].split(":"),i.Signature=a.pop(),i.AWSAccessKeyId=a.join(":"),s.util.each(e.httpRequest.headers,function(e,t){e===n&&(e="Expires"),0===e.indexOf("x-amz-meta-")&&(delete i[e],e=e.toLowerCase()),i[e]=t}),delete e.httpRequest.headers[n],delete i.Authorization,delete i.Host;else if("AWS4-HMAC-SHA256"===a[0]){a.shift();var o=a.join(" "),u=o.match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];i["X-Amz-Signature"]=u,delete i.Expires}t.pathname=r.pathname,t.search=s.util.queryParamsToString(i)}var s=e("../core"),o=s.util.inherit,n="presigned-expires";s.Signers.Presign=o({sign:function(e,t,r){if(e.httpRequest.headers[n]=t||3600,e.on("build",i),e.on("sign",a),e.removeListener("afterBuild",s.EventListeners.Core.SET_CONTENT_LENGTH),e.removeListener("afterBuild",s.EventListeners.Core.COMPUTE_SHA256),e.emit("beforePresign",[e]),!r){if(e.build(),e.response.error)throw e.response.error;return s.util.urlFormat(e.httpRequest.endpoint)}e.build(function(){this.response.error?r(this.response.error):r(null,s.util.urlFormat(e.httpRequest.endpoint))})}}),t.exports=s.Signers.Presign},{"../core":342}],409:[function(e,t,r){var i=e("../core"),a=i.util.inherit;i.Signers.RequestSigner=a({constructor:function(e){this.request=e},setServiceClientId:function(e){this.serviceClientId=e},getServiceClientId:function(){return this.serviceClientId}}),i.Signers.RequestSigner.getVersion=function(e){switch(e){case"v2":return i.Signers.V2;case"v3":return i.Signers.V3;case"s3v4":case"v4":return i.Signers.V4;case"s3":return i.Signers.S3;case"v3https":return i.Signers.V3Https}throw new Error("Unknown signing version "+e)},e("./v2"),e("./v3"),e("./v3https"),e("./v4"),e("./s3"),e("./presign")},{"../core":342,"./presign":408,"./s3":410,"./v2":411,"./v3":412,"./v3https":413,"./v4":414}],410:[function(e,t,r){var i=e("../core"),a=i.util.inherit;i.Signers.S3=a(i.Signers.RequestSigner,{subResources:{acl:1,accelerate:1,analytics:1,cors:1,lifecycle:1,delete:1,inventory:1,location:1,logging:1,metrics:1,notification:1,partNumber:1,policy:1,requestPayment:1,replication:1,restore:1,tagging:1,torrent:1,uploadId:1,uploads:1,versionId:1,versioning:1,versions:1,website:1},responseHeaders:{"response-content-type":1,"response-content-language":1,"response-expires":1,"response-cache-control":1,"response-content-disposition":1,"response-content-encoding":1},addAuthorization:function(e,t){this.request.headers["presigned-expires"]||(this.request.headers["X-Amz-Date"]=i.util.date.rfc822(t)),e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken);var r=this.sign(e.secretAccessKey,this.stringToSign()),a="AWS "+e.accessKeyId+":"+r;this.request.headers.Authorization=a},stringToSign:function(){var e=this.request,t=[];t.push(e.method),t.push(e.headers["Content-MD5"]||""),t.push(e.headers["Content-Type"]||""),t.push(e.headers["presigned-expires"]||"");var r=this.canonicalizedAmzHeaders();return r&&t.push(r),t.push(this.canonicalizedResource()),t.join("\n")},canonicalizedAmzHeaders:function(){var e=[];i.util.each(this.request.headers,function(t){t.match(/^x-amz-/i)&&e.push(t)}),e.sort(function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:1});var t=[];return i.util.arrayEach.call(this,e,function(e){t.push(e.toLowerCase()+":"+String(this.request.headers[e]))}),t.join("\n")},canonicalizedResource:function(){var e=this.request,t=e.path.split("?"),r=t[0],a=t[1],s="";if(e.virtualHostedBucket&&(s+="/"+e.virtualHostedBucket),s+=r,a){var o=[];i.util.arrayEach.call(this,a.split("&"),function(e){var t=e.split("=")[0],r=e.split("=")[1];if(this.subResources[t]||this.responseHeaders[t]){var i={name:t};void 0!==r&&(this.subResources[t]?i.value=r:i.value=decodeURIComponent(r)),o.push(i)}}),o.sort(function(e,t){return e.name<t.name?-1:1}),o.length&&(a=[],i.util.arrayEach(o,function(e){void 0===e.value?a.push(e.name):a.push(e.name+"="+e.value)}),s+="?"+a.join("&"))}return s},sign:function(e,t){return i.util.crypto.hmac(e,t,"base64","sha1")}}),t.exports=i.Signers.S3},{"../core":342}],411:[function(e,t,r){var i=e("../core"),a=i.util.inherit;i.Signers.V2=a(i.Signers.RequestSigner,{addAuthorization:function(e,t){t||(t=i.util.date.getDate());var r=this.request;r.params.Timestamp=i.util.date.iso8601(t),r.params.SignatureVersion="2",r.params.SignatureMethod="HmacSHA256",r.params.AWSAccessKeyId=e.accessKeyId,e.sessionToken&&(r.params.SecurityToken=e.sessionToken),delete r.params.Signature,r.params.Signature=this.signature(e),r.body=i.util.queryParamsToString(r.params),r.headers["Content-Length"]=r.body.length},signature:function(e){return i.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var e=[];return e.push(this.request.method),e.push(this.request.endpoint.host.toLowerCase()),e.push(this.request.pathname()),e.push(i.util.queryParamsToString(this.request.params)),e.join("\n")}}),t.exports=i.Signers.V2},{"../core":342}],412:[function(e,t,r){var i=e("../core"),a=i.util.inherit;i.Signers.V3=a(i.Signers.RequestSigner,{addAuthorization:function(e,t){var r=i.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=r,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(e,r)},authorization:function(e){return"AWS3 AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,SignedHeaders="+this.signedHeaders()+",Signature="+this.signature(e)},signedHeaders:function(){var e=[];return i.util.arrayEach(this.headersToSign(),function(t){e.push(t.toLowerCase())}),e.sort().join(";")},canonicalHeaders:function(){var e=this.request.headers,t=[];return i.util.arrayEach(this.headersToSign(),function(r){t.push(r.toLowerCase().trim()+":"+String(e[r]).trim())}),t.sort().join("\n")+"\n"},headersToSign:function(){var e=[];return i.util.each(this.request.headers,function(t){("Host"===t||"Content-Encoding"===t||t.match(/^X-Amz/i))&&e.push(t)}),e},signature:function(e){return i.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var e=[];return e.push(this.request.method),e.push("/"),e.push(""),e.push(this.canonicalHeaders()),e.push(this.request.body),i.util.crypto.sha256(e.join("\n"))}}),t.exports=i.Signers.V3},{"../core":342}],413:[function(e,t,r){var i=e("../core"),a=i.util.inherit;e("./v3"),i.Signers.V3Https=a(i.Signers.V3,{authorization:function(e){return"AWS3-HTTPS AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,Signature="+this.signature(e)},stringToSign:function(){return this.request.headers["X-Amz-Date"]}}),t.exports=i.Signers.V3Https},{"../core":342,"./v3":412}],414:[function(e,t,r){var i=e("../core"),a=e("./v4_credentials"),s=i.util.inherit;i.Signers.V4=s(i.Signers.RequestSigner,{constructor:function(e,t,r){i.Signers.RequestSigner.call(this,e),this.serviceName=t,r=r||{},this.signatureCache="boolean"!=typeof r.signatureCache||r.signatureCache,this.operation=r.operation,this.signatureVersion=r.signatureVersion},algorithm:"AWS4-HMAC-SHA256",addAuthorization:function(e,t){var r=i.util.date.iso8601(t).replace(/[:\-]|\.\d{3}/g,"");this.isPresigned()?this.updateForPresigned(e,r):this.addHeaders(e,r),this.request.headers.Authorization=this.authorization(e,r)},addHeaders:function(e,t){this.request.headers["X-Amz-Date"]=t,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken)},updateForPresigned:function(e,t){var r=this.credentialString(t),a={"X-Amz-Date":t,"X-Amz-Algorithm":this.algorithm,"X-Amz-Credential":e.accessKeyId+"/"+r,"X-Amz-Expires":this.request.headers["presigned-expires"],"X-Amz-SignedHeaders":this.signedHeaders()};e.sessionToken&&(a["X-Amz-Security-Token"]=e.sessionToken),this.request.headers["Content-Type"]&&(a["Content-Type"]=this.request.headers["Content-Type"]),this.request.headers["Content-MD5"]&&(a["Content-MD5"]=this.request.headers["Content-MD5"]),this.request.headers["Cache-Control"]&&(a["Cache-Control"]=this.request.headers["Cache-Control"]),i.util.each.call(this,this.request.headers,function(e,t){if("presigned-expires"!==e&&this.isSignableHeader(e)){var r=e.toLowerCase();0===r.indexOf("x-amz-meta-")?a[r]=t:0===r.indexOf("x-amz-")&&(a[e]=t)}});var s=this.request.path.indexOf("?")>=0?"&":"?";this.request.path+=s+i.util.queryParamsToString(a)},authorization:function(e,t){var r=[],i=this.credentialString(t);return r.push(this.algorithm+" Credential="+e.accessKeyId+"/"+i),r.push("SignedHeaders="+this.signedHeaders()),r.push("Signature="+this.signature(e,t)),r.join(", ")},signature:function(e,t){var r=a.getSigningKey(e,t.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return i.util.crypto.hmac(r,this.stringToSign(t),"hex")},stringToSign:function(e){var t=[];return t.push("AWS4-HMAC-SHA256"),t.push(e),t.push(this.credentialString(e)),t.push(this.hexEncodedHash(this.canonicalString())),t.join("\n")},canonicalString:function(){var e=[],t=this.request.pathname();return"s3"!==this.serviceName&&"s3v4"!==this.signatureVersion&&(t=i.util.uriEscapePath(t)),e.push(this.request.method),e.push(t),e.push(this.request.search()),e.push(this.canonicalHeaders()+"\n"),e.push(this.signedHeaders()),e.push(this.hexEncodedBodyHash()),e.join("\n")},canonicalHeaders:function(){var e=[];i.util.each.call(this,this.request.headers,function(t,r){e.push([t,r])}),e.sort(function(e,t){return e[0].toLowerCase()<t[0].toLowerCase()?-1:1});var t=[];return i.util.arrayEach.call(this,e,function(e){var r=e[0].toLowerCase();if(this.isSignableHeader(r)){var a=e[1];if(void 0===a||null===a||"function"!=typeof a.toString)throw i.util.error(new Error("Header "+r+" contains invalid value"),{code:"InvalidHeader"});t.push(r+":"+this.canonicalHeaderValues(a.toString()))}}),t.join("\n")},canonicalHeaderValues:function(e){return e.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")},signedHeaders:function(){var e=[];return i.util.each.call(this,this.request.headers,function(t){t=t.toLowerCase(),this.isSignableHeader(t)&&e.push(t)}),e.sort().join(";")},credentialString:function(e){return a.createScope(e.substr(0,8),this.request.region,this.serviceName)},hexEncodedHash:function(e){return i.util.crypto.sha256(e,"hex")},hexEncodedBodyHash:function(){var e=this.request;return this.isPresigned()&&["s3","s3-object-lambda"].indexOf(this.serviceName)>-1&&!e.body?"UNSIGNED-PAYLOAD":e.headers["X-Amz-Content-Sha256"]?e.headers["X-Amz-Content-Sha256"]:this.hexEncodedHash(this.request.body||"")},unsignableHeaders:["authorization","content-type","content-length","user-agent","presigned-expires","expect","x-amzn-trace-id"],isSignableHeader:function(e){return 0===e.toLowerCase().indexOf("x-amz-")||this.unsignableHeaders.indexOf(e)<0},isPresigned:function(){return!!this.request.headers["presigned-expires"]}}),t.exports=i.Signers.V4},{"../core":342,"./v4_credentials":415}],415:[function(e,t,r){var i=e("../core"),a={},s=[];t.exports={createScope:function(e,t,r){return[e.substr(0,8),t,r,"aws4_request"].join("/")},getSigningKey:function(e,t,r,o,n){var u=i.util.crypto.hmac(e.secretAccessKey,e.accessKeyId,"base64"),p=[u,t,r,o].join("_");if((n=!1!==n)&&p in a)return a[p];var m=i.util.crypto.hmac("AWS4"+e.secretAccessKey,t,"buffer"),c=i.util.crypto.hmac(m,r,"buffer"),l=i.util.crypto.hmac(c,o,"buffer"),d=i.util.crypto.hmac(l,"aws4_request","buffer");return n&&(a[p]=d,s.push(p),s.length>50&&delete a[s.shift()]),d},emptyCache:function(){a={},s=[]}}},{"../core":342}],416:[function(e,t,r){function i(e,t){this.currentState=t||null,this.states=e||{}}i.prototype.runTo=function(e,t,r,i){"function"==typeof e&&(i=r,r=t,t=e,e=null);var a=this,s=a.states[a.currentState];s.fn.call(r||a,i,function(i){if(i){if(!s.fail)return t?t.call(r,i):null;a.currentState=s.fail}else{if(!s.accept)return t?t.call(r):null;a.currentState=s.accept}if(a.currentState===e)return t?t.call(r,i):null;a.runTo(e,t,r,i)})},i.prototype.addState=function(e,t,r,i){return"function"==typeof t?(i=t,t=null,r=null):"function"==typeof r&&(i=r,r=null),this.currentState||(this.currentState=e),this.states[e]={accept:t,fail:r,fn:i},this},t.exports=i},{}],417:[function(e,t,r){(function(r,i){(function(){var a,s={environment:"nodejs",engine:function(){if(s.isBrowser()&&"undefined"!=typeof navigator)return navigator.userAgent;var e=r.platform+"/"+r.version;return r.env.AWS_EXECUTION_ENV&&(e+=" exec-env/"+r.env.AWS_EXECUTION_ENV),e},userAgent:function(){var t=s.environment,r="aws-sdk-"+t+"/"+e("./core").VERSION;return"nodejs"===t&&(r+=" "+s.engine()),r},uriEscape:function(e){var t=encodeURIComponent(e);return t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape),t=t.replace(/[*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})},uriEscapePath:function(e){var t=[];return s.arrayEach(e.split("/"),function(e){t.push(s.uriEscape(e))}),t.join("/")},urlParse:function(e){return s.url.parse(e)},urlFormat:function(e){return s.url.format(e)},queryStringParse:function(e){return s.querystring.parse(e)},queryParamsToString:function(e){var t=[],r=s.uriEscape,i=Object.keys(e).sort();return s.arrayEach(i,function(i){var a=e[i],o=r(i),n=o+"=";if(Array.isArray(a)){var u=[];s.arrayEach(a,function(e){u.push(r(e))}),n=o+"="+u.sort().join("&"+o+"=")}else void 0!==a&&null!==a&&(n=o+"="+r(a));t.push(n)}),t.join("&")},readFileSync:function(t){return s.isBrowser()?null:e("fs").readFileSync(t,"utf-8")},base64:{encode:function(e){if("number"==typeof e)throw s.error(new Error("Cannot base64 encode number "+e));return null===e||void 0===e?e:s.buffer.toBuffer(e).toString("base64")},decode:function(e){if("number"==typeof e)throw s.error(new Error("Cannot base64 decode number "+e));return null===e||void 0===e?e:s.buffer.toBuffer(e,"base64")}},buffer:{toBuffer:function(e,t){return"function"==typeof s.Buffer.from&&s.Buffer.from!==Uint8Array.from?s.Buffer.from(e,t):new s.Buffer(e,t)},alloc:function(e,t,r){if("number"!=typeof e)throw new Error("size passed to alloc must be a number.");if("function"==typeof s.Buffer.alloc)return s.Buffer.alloc(e,t,r);var i=new s.Buffer(e);return void 0!==t&&"function"==typeof i.fill&&i.fill(t,void 0,void 0,r),i},toStream:function(e){s.Buffer.isBuffer(e)||(e=s.buffer.toBuffer(e));var t=new s.stream.Readable,r=0;return t._read=function(i){if(r>=e.length)return t.push(null);var a=r+i;a>e.length&&(a=e.length),t.push(e.slice(r,a)),r=a},t},concat:function(e){var t,r=0,i=0,a=null;for(t=0;t<e.length;t++)r+=e[t].length;for(a=s.buffer.alloc(r),t=0;t<e.length;t++)e[t].copy(a,i),i+=e[t].length;return a}},string:{byteLength:function(t){if(null===t||void 0===t)return 0;if("string"==typeof t&&(t=s.buffer.toBuffer(t)),"number"==typeof t.byteLength)return t.byteLength;if("number"==typeof t.length)return t.length;if("number"==typeof t.size)return t.size;if("string"==typeof t.path)return e("fs").lstatSync(t.path).size;throw s.error(new Error("Cannot determine length of "+t),{object:t})},upperFirst:function(e){return e[0].toUpperCase()+e.substr(1)},lowerFirst:function(e){return e[0].toLowerCase()+e.substr(1)}},ini:{parse:function(e){var t,r={};return s.arrayEach(e.split(/\r?\n/),function(e){e=e.split(/(^|\s)[;#]/)[0];var i=e.match(/^\s*\[([^\[\]]+)\]\s*$/);if(i){if("__proto__"===(t=i[1])||"__proto__"===t.split(/\s/)[1])throw s.error(new Error("Cannot load profile name '"+t+"' from shared ini file."))}else if(t){var a=e.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/);a&&(r[t]=r[t]||{},r[t][a[1]]=a[2])}}),r}},fn:{noop:function(){},callback:function(e){if(e)throw e},makeAsync:function(e,t){return t&&t<=e.length?e:function(){var t=Array.prototype.slice.call(arguments,0);t.pop()(e.apply(null,t))}}},date:{getDate:function(){return a||(a=e("./core")),a.config.systemClockOffset?new Date((new Date).getTime()+a.config.systemClockOffset):new Date},iso8601:function(e){return void 0===e&&(e=s.date.getDate()),e.toISOString().replace(/\.\d{3}Z$/,"Z")},rfc822:function(e){return void 0===e&&(e=s.date.getDate()),e.toUTCString()},unixTimestamp:function(e){return void 0===e&&(e=s.date.getDate()),e.getTime()/1e3},from:function(e){return"number"==typeof e?new Date(1e3*e):new Date(e)},format:function(e,t){return t||(t="iso8601"),s.date[t](s.date.from(e))},parseTimestamp:function(e){if("number"==typeof e)return new Date(1e3*e);if(e.match(/^\d+$/))return new Date(1e3*e);if(e.match(/^\d{4}/))return new Date(e);if(e.match(/^\w{3},/))return new Date(e);throw s.error(new Error("unhandled timestamp format: "+e),{code:"TimestampParserError"})}},crypto:{crc32Table:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],crc32:function(e){var t=s.crypto.crc32Table,r=-1;"string"==typeof e&&(e=s.buffer.toBuffer(e));for(var i=0;i<e.length;i++){r=r>>>8^t[255&(r^e.readUInt8(i))]}return(-1^r)>>>0},hmac:function(e,t,r,i){return r||(r="binary"),"buffer"===r&&(r=void 0),i||(i="sha256"),"string"==typeof t&&(t=s.buffer.toBuffer(t)),s.crypto.lib.createHmac(i,e).update(t).digest(r)},md5:function(e,t,r){return s.crypto.hash("md5",e,t,r)},sha256:function(e,t,r){return s.crypto.hash("sha256",e,t,r)},hash:function(e,t,r,i){var a=s.crypto.createHash(e);r||(r="binary"),"buffer"===r&&(r=void 0),"string"==typeof t&&(t=s.buffer.toBuffer(t));var o=s.arraySliceFn(t),n=s.Buffer.isBuffer(t);if(s.isBrowser()&&"undefined"!=typeof ArrayBuffer&&t&&t.buffer instanceof ArrayBuffer&&(n=!0),i&&"object"==typeof t&&"function"==typeof t.on&&!n)t.on("data",function(e){a.update(e)}),t.on("error",function(e){i(e)}),t.on("end",function(){i(null,a.digest(r))});else{if(!i||!o||n||"undefined"==typeof FileReader){s.isBrowser()&&"object"==typeof t&&!n&&(t=new s.Buffer(new Uint8Array(t)));var u=a.update(t).digest(r);return i&&i(null,u),u}var p=0,m=new FileReader;m.onerror=function(){i(new Error("Failed to read data."))},m.onload=function(){var e=new s.Buffer(new Uint8Array(m.result));a.update(e),p+=e.length,m._continueReading()},m._continueReading=function(){if(p>=t.size)return void i(null,a.digest(r));var e=p+524288;e>t.size&&(e=t.size),m.readAsArrayBuffer(o.call(t,p,e))},m._continueReading()}},toHex:function(e){for(var t=[],r=0;r<e.length;r++)t.push(("0"+e.charCodeAt(r).toString(16)).substr(-2,2));return t.join("")},createHash:function(e){return s.crypto.lib.createHash(e)}},abort:{},each:function(e,t){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=t.call(this,r,e[r]);if(i===s.abort)break}},arrayEach:function(e,t){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=t.call(this,e[r],parseInt(r,10));if(i===s.abort)break}},update:function(e,t){return s.each(t,function(t,r){e[t]=r}),e},merge:function(e,t){return s.update(s.copy(e),t)},copy:function(e){if(null===e||void 0===e)return e;var t={};for(var r in e)t[r]=e[r];return t},isEmpty:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},arraySliceFn:function(e){var t=e.slice||e.webkitSlice||e.mozSlice;return"function"==typeof t?t:null},isType:function(e,t){return"function"==typeof t&&(t=s.typeName(t)),Object.prototype.toString.call(e)==="[object "+t+"]"},typeName:function(e){if(Object.prototype.hasOwnProperty.call(e,"name"))return e.name;var t=e.toString(),r=t.match(/^\s*function (.+)\(/);return r?r[1]:t},error:function(e,t){var r=null;return"string"==typeof e.message&&""!==e.message&&("string"==typeof t||t&&t.message)&&(r=s.copy(e),r.message=e.message),e.message=e.message||null,"string"==typeof t?e.message=t:"object"==typeof t&&null!==t&&(s.update(e,t),t.message&&(e.message=t.message),(t.code||t.name)&&(e.code=t.code||t.name),t.stack&&(e.stack=t.stack)),"function"==typeof Object.defineProperty&&(Object.defineProperty(e,"name",{writable:!0,enumerable:!1}),Object.defineProperty(e,"message",{enumerable:!0})),e.name=String(t&&t.name||e.name||e.code||"Error"),e.time=new Date,r&&(e.originalError=r),e},inherit:function(e,t){var r=null;if(void 0===t)t=e,e=Object,r={};else{var i=function(){};i.prototype=e.prototype,r=new i}return t.constructor===Object&&(t.constructor=function(){if(e!==Object)return e.apply(this,arguments)}),t.constructor.prototype=r,s.update(t.constructor.prototype,t),t.constructor.__super__=e,t.constructor},mixin:function(){for(var e=arguments[0],t=1;t<arguments.length;t++)for(var r in arguments[t].prototype){var i=arguments[t].prototype[r];"constructor"!==r&&(e.prototype[r]=i)}return e},hideProperties:function(e,t){"function"==typeof Object.defineProperty&&s.arrayEach(t,function(t){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0})})},property:function(e,t,r,i,a){var s={configurable:!0,enumerable:void 0===i||i};"function"!=typeof r||a?(s.value=r,s.writable=!0):s.get=r,Object.defineProperty(e,t,s)},memoizedProperty:function(e,t,r,i){var a=null;s.property(e,t,function(){return null===a&&(a=r()),a},i)},hoistPayloadMember:function(e){var t=e.request,r=t.operation,i=t.service.api.operations[r],a=i.output;if(a.payload&&!i.hasEventOutput){var o=a.members[a.payload],n=e.data[a.payload];"structure"===o.type&&s.each(n,function(t,r){s.property(e.data,t,r,!1)})}},computeSha256:function(t,r){if(s.isNode()){var i=s.stream.Stream,a=e("fs");if("function"==typeof i&&t instanceof i){if("string"!=typeof t.path)return r(new Error("Non-file stream objects are not supported with SigV4"));var o={};"number"==typeof t.start&&(o.start=t.start),"number"==typeof t.end&&(o.end=t.end),t=a.createReadStream(t.path,o)}}s.crypto.sha256(t,"hex",function(e,t){e?r(e):r(null,t)})},isClockSkewed:function(e){if(e)return s.property(a.config,"isClockSkewed",Math.abs((new Date).getTime()-e)>=3e5,!1),a.config.isClockSkewed},applyClockOffset:function(e){e&&(a.config.systemClockOffset=e-(new Date).getTime())},extractRequestId:function(e){var t=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];!t&&e.data&&e.data.ResponseMetadata&&(t=e.data.ResponseMetadata.RequestId),t&&(e.requestId=t),e.error&&(e.error.requestId=t)},addPromises:function(e,t){var r=!1;void 0===t&&a&&a.config&&(t=a.config.getPromisesDependency()),void 0===t&&"undefined"!=typeof Promise&&(t=Promise),"function"!=typeof t&&(r=!0),Array.isArray(e)||(e=[e]);for(var i=0;i<e.length;i++){var s=e[i];r?s.deletePromisesFromClass&&s.deletePromisesFromClass():s.addPromisesToClass&&s.addPromisesToClass(t)}},promisifyMethod:function(e,t){return function(){var r=this,i=Array.prototype.slice.call(arguments);return new t(function(t,a){i.push(function(e,r){e?a(e):t(r)}),r[e].apply(r,i)})}},isDualstackAvailable:function(t){if(!t)return!1;var r=e("../apis/metadata.json");return"string"!=typeof t&&(t=t.serviceIdentifier),!("string"!=typeof t||!r.hasOwnProperty(t))&&!!r[t].dualstackAvailable},calculateRetryDelay:function(e,t,r){t||(t={});var i=t.customBackoff||null;if("function"==typeof i)return i(e,r);var a="number"==typeof t.base?t.base:100;return Math.random()*(Math.pow(2,e)*a)},handleRequestWithRetries:function(e,t,r){t||(t={});var i=a.HttpClient.getInstance(),o=t.httpOptions||{},n=0,u=function(e){var i=t.maxRetries||0;if(e&&"TimeoutError"===e.code&&(e.retryable=!0),e&&e.retryable&&n<i){var a=s.calculateRetryDelay(n,t.retryDelayOptions,e);if(a>=0)return n++,void setTimeout(p,a+(e.retryAfter||0))}r(e)},p=function(){var t="";i.handleRequest(e,o,function(e){e.on("data",function(e){t+=e.toString()}),e.on("end",function(){var i=e.statusCode;if(i<300)r(null,t);else{var a=1e3*parseInt(e.headers["retry-after"],10)||0,o=s.error(new Error,{statusCode:i,retryable:i>=500||429===i});a&&o.retryable&&(o.retryAfter=a),u(o)}})},u)};a.util.defer(p)},uuid:{v4:function(){return e("uuid").v4()}},convertPayloadToString:function(e){var t=e.request,r=t.operation,i=t.service.api.operations[r].output||{};i.payload&&e.data[i.payload]&&(e.data[i.payload]=e.data[i.payload].toString())},defer:function(e){"object"==typeof r&&"function"==typeof r.nextTick?r.nextTick(e):"function"==typeof i?i(e):setTimeout(e,0)},getRequestPayloadShape:function(e){var t=e.service.api.operations;if(t){var r=(t||{})[e.operation];if(r&&r.input&&r.input.payload)return r.input.members[r.input.payload]}},getProfilesFromSharedConfig:function(e,t){function i(e,t){for(var r=0,i=Object.keys(t);r<i.length;r++)e[i[r]]=t[i[r]];return e}var a={},o={};if(r.env[s.configOptInEnv])var o=e.loadFrom({isConfig:!0,filename:r.env[s.sharedConfigFileEnv]});var n={};try{var n=e.loadFrom({filename:t||r.env[s.configOptInEnv]&&r.env[s.sharedCredentialsFileEnv]})}catch(e){if(!r.env[s.configOptInEnv])throw e}for(var u=0,p=Object.keys(o);u<p.length;u++)a[p[u]]=i(a[p[u]]||{},o[p[u]]);for(var u=0,p=Object.keys(n);u<p.length;u++)a[p[u]]=i(a[p[u]]||{},n[p[u]]);return a},ARN:{validate:function(e){return e&&0===e.indexOf("arn:")&&e.split(":").length>=6},parse:function(e){var t=e.split(":");return{partition:t[1],service:t[2],region:t[3],
|
|
89
|
-
accountId:t[4],resource:t.slice(5).join(":")}},build:function(e){if(void 0===e.service||void 0===e.region||void 0===e.accountId||void 0===e.resource)throw s.error(new Error("Input ARN object is invalid"));return"arn:"+(e.partition||"aws")+":"+e.service+":"+e.region+":"+e.accountId+":"+e.resource}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};t.exports=s}).call(this)}).call(this,e("_process"),e("timers").setImmediate)},{"../apis/metadata.json":163,"./core":342,_process:431,fs:425,timers:439,uuid:444}],418:[function(e,t,r){function i(){}function a(e,t){for(var r=e.getElementsByTagName(t),i=0,a=r.length;i<a;i++)if(r[i].parentNode===e)return r[i]}function s(e,t){switch(t||(t={}),t.type){case"structure":return o(e,t);case"map":return n(e,t);case"list":return u(e,t);case void 0:case null:return m(e);default:return p(e,t)}}function o(e,t){var r={};return null===e?r:(c.each(t.members,function(i,o){if(o.isXmlAttribute){if(Object.prototype.hasOwnProperty.call(e.attributes,o.name)){var n=e.attributes[o.name].value;r[i]=s({textContent:n},o)}}else{var u=o.flattened?e:a(e,o.name);u?r[i]=s(u,o):o.flattened||"list"!==o.type||t.api.xmlNoDefaultLists||(r[i]=o.defaultValue)}}),r)}function n(e,t){for(var r={},i=t.key.name||"key",o=t.value.name||"value",n=t.flattened?t.name:"entry",u=e.firstElementChild;u;){if(u.nodeName===n){var p=a(u,i).textContent,m=a(u,o);r[p]=s(m,t.value)}u=u.nextElementSibling}return r}function u(e,t){for(var r=[],i=t.flattened?t.name:t.member.name||"member",a=e.firstElementChild;a;)a.nodeName===i&&r.push(s(a,t.member)),a=a.nextElementSibling;return r}function p(e,t){if(e.getAttribute){var r=e.getAttribute("encoding");"base64"===r&&(t=new l.create({type:r}))}var i=e.textContent;return""===i&&(i=null),"function"==typeof t.toType?t.toType(i):i}function m(e){if(void 0===e||null===e)return"";if(!e.firstElementChild)return null===e.parentNode.parentNode?{}:0===e.childNodes.length?"":e.textContent;for(var t={type:"structure",members:{}},r=e.firstElementChild;r;){var i=r.nodeName;Object.prototype.hasOwnProperty.call(t.members,i)?t.members[i].type="list":t.members[i]={name:i},r=r.nextElementSibling}return o(e,t)}var c=e("../util"),l=e("../model/shape");i.prototype.parse=function(e,t){if(""===e.replace(/^\s+/,""))return{};var r,i;try{if(window.DOMParser){try{r=(new DOMParser).parseFromString(e,"text/xml")}catch(e){throw c.error(new Error("Parse error in document"),{originalError:e,code:"XMLParserError",retryable:!0})}if(null===r.documentElement)throw c.error(new Error("Cannot parse empty document."),{code:"XMLParserError",retryable:!0});var o=r.getElementsByTagName("parsererror")[0];if(o&&(o.parentNode===r||"body"===o.parentNode.nodeName||o.parentNode.parentNode===r||"body"===o.parentNode.parentNode.nodeName)){var n=o.getElementsByTagName("div")[0]||o;throw c.error(new Error(n.textContent||"Parser error in document"),{code:"XMLParserError",retryable:!0})}}else{if(!window.ActiveXObject)throw new Error("Cannot load XML parser");if(r=new window.ActiveXObject("Microsoft.XMLDOM"),r.async=!1,!r.loadXML(e))throw c.error(new Error("Parse error in document"),{code:"XMLParserError",retryable:!0})}}catch(e){i=e}if(r&&r.documentElement&&!i){var u=s(r.documentElement,t),p=a(r.documentElement,"ResponseMetadata");return p&&(u.ResponseMetadata=s(p,{})),u}if(i)throw c.error(i||new Error,{code:"XMLParserError",retryable:!0});return{}},t.exports=i},{"../model/shape":373,"../util":417}],419:[function(e,t,r){function i(){}function a(e,t,r){switch(r.type){case"structure":return s(e,t,r);case"map":return o(e,t,r);case"list":return n(e,t,r);default:return u(e,t,r)}}function s(e,t,r){m.arrayEach(r.memberNames,function(i){var s=r.members[i];if("body"===s.location){var o=t[i],n=s.name;if(void 0!==o&&null!==o)if(s.isXmlAttribute)e.addAttribute(n,o);else if(s.flattened)a(e,o,s);else{var u=new c(n);e.addChildNode(u),p(u,s),a(u,o,s)}}})}function o(e,t,r){var i=r.key.name||"key",s=r.value.name||"value";m.each(t,function(t,o){var n=new c(r.flattened?r.name:"entry");e.addChildNode(n);var u=new c(i),p=new c(s);n.addChildNode(u),n.addChildNode(p),a(u,t,r.key),a(p,o,r.value)})}function n(e,t,r){r.flattened?m.arrayEach(t,function(t){var i=r.member.name||r.name,s=new c(i);e.addChildNode(s),a(s,t,r.member)}):m.arrayEach(t,function(t){var i=r.member.name||"member",s=new c(i);e.addChildNode(s),a(s,t,r.member)})}function u(e,t,r){e.addChildNode(new l(r.toWireFormat(t)))}function p(e,t,r){var i,a="xmlns";t.xmlNamespaceUri?(i=t.xmlNamespaceUri,t.xmlNamespacePrefix&&(a+=":"+t.xmlNamespacePrefix)):r&&t.api.xmlNamespaceUri&&(i=t.api.xmlNamespaceUri),i&&e.addAttribute(a,i)}var m=e("../util"),c=e("./xml-node").XmlNode,l=e("./xml-text").XmlText;i.prototype.toXML=function(e,t,r,i){var s=new c(r);return p(s,t,!0),a(s,e,t),s.children.length>0||i?s.toString():""},t.exports=i},{"../util":417,"./xml-node":422,"./xml-text":423}],420:[function(e,t,r){function i(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}t.exports={escapeAttribute:i}},{}],421:[function(e,t,r){function i(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
").replace(/\n/g,"
").replace(/\u0085/g,"…").replace(/\u2028/,"
")}t.exports={escapeElement:i}},{}],422:[function(e,t,r){function i(e,t){void 0===t&&(t=[]),this.name=e,this.children=t,this.attributes={}}var a=e("./escape-attribute").escapeAttribute;i.prototype.addAttribute=function(e,t){return this.attributes[e]=t,this},i.prototype.addChildNode=function(e){return this.children.push(e),this},i.prototype.removeAttribute=function(e){return delete this.attributes[e],this},i.prototype.toString=function(){for(var e=Boolean(this.children.length),t="<"+this.name,r=this.attributes,i=0,s=Object.keys(r);i<s.length;i++){var o=s[i],n=r[o];void 0!==n&&null!==n&&(t+=" "+o+'="'+a(""+n)+'"')}return t+=e?">"+this.children.map(function(e){return e.toString()}).join("")+"</"+this.name+">":"/>"},t.exports={XmlNode:i}},{"./escape-attribute":420}],423:[function(e,t,r){function i(e){this.value=e}var a=e("./escape-element").escapeElement;i.prototype.toString=function(){return a(""+this.value)},t.exports={XmlText:i}},{"./escape-element":421}],424:[function(e,t,r){"use strict";function i(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function a(e){var t=i(e),r=t[0],a=t[1];return 3*(r+a)/4-a}function s(e,t,r){return 3*(t+r)/4-r}function o(e){var t,r,a=i(e),o=a[0],n=a[1],u=new l(s(e,o,n)),p=0,m=n>0?o-4:o;for(r=0;r<m;r+=4)t=c[e.charCodeAt(r)]<<18|c[e.charCodeAt(r+1)]<<12|c[e.charCodeAt(r+2)]<<6|c[e.charCodeAt(r+3)],u[p++]=t>>16&255,u[p++]=t>>8&255,u[p++]=255&t;return 2===n&&(t=c[e.charCodeAt(r)]<<2|c[e.charCodeAt(r+1)]>>4,u[p++]=255&t),1===n&&(t=c[e.charCodeAt(r)]<<10|c[e.charCodeAt(r+1)]<<4|c[e.charCodeAt(r+2)]>>2,u[p++]=t>>8&255,u[p++]=255&t),u}function n(e){return m[e>>18&63]+m[e>>12&63]+m[e>>6&63]+m[63&e]}function u(e,t,r){for(var i,a=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n(i));return a.join("")}function p(e){for(var t,r=e.length,i=r%3,a=[],s=0,o=r-i;s<o;s+=16383)a.push(u(e,s,s+16383>o?o:s+16383));return 1===i?(t=e[r-1],a.push(m[t>>2]+m[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],a.push(m[t>>10]+m[t>>4&63]+m[t<<2&63]+"=")),a.join("")}r.byteLength=a,r.toByteArray=o,r.fromByteArray=p;for(var m=[],c=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=0,b=d.length;y<b;++y)m[y]=d[y],c[d.charCodeAt(y)]=y;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},{}],425:[function(e,t,r){},{}],426:[function(e,t,r){(function(t,i){(function(){"use strict";function i(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(i()<t)throw new RangeError("Invalid typed array length");return s.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=s.prototype):(null===e&&(e=new s(t)),e.length=t),e}function s(e,t,r){if(!(s.TYPED_ARRAY_SUPPORT||this instanceof s))return new s(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return p(this,e)}return o(this,e,t,r)}function o(e,t,r,i){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?l(e,t,r,i):"string"==typeof t?m(e,t,r):d(e,t)}function n(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function u(e,t,r,i){return n(t),t<=0?a(e,t):void 0!==r?"string"==typeof i?a(e,t).fill(r,i):a(e,t).fill(r):a(e,t)}function p(e,t){if(n(t),e=a(e,t<0?0:0|y(t)),!s.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function m(e,t,r){if("string"==typeof r&&""!==r||(r="utf8"),!s.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var i=0|S(t,r);e=a(e,i);var o=e.write(t,r);return o!==i&&(e=e.slice(0,o)),e}function c(e,t){var r=t.length<0?0:0|y(t.length);e=a(e,r);for(var i=0;i<r;i+=1)e[i]=255&t[i];return e}function l(e,t,r,i){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(i||0))throw new RangeError("'length' is out of bounds");return t=void 0===r&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,r):new Uint8Array(t,r,i),s.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=s.prototype):e=c(e,t),e}function d(e,t){if(s.isBuffer(t)){var r=0|y(t.length);return e=a(e,r),0===e.length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||J(t.length)?a(e,0):c(e,t);if("Buffer"===t.type&&Y(t.data))return c(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function y(e){if(e>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),s.alloc(+e)}function S(e,t){if(s.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return H(e).length;default:if(i)return K(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return E(this,t,r);case"utf8":case"utf-8":return D(this,t,r);case"ascii":return q(this,t,r);case"latin1":case"binary":return x(this,t,r);case"base64":return v(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function h(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function N(e,t,r,i,a){if(0===e.length)return-1;if("string"==typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(a)return-1;r=e.length-1}else if(r<0){if(!a)return-1;r=0}if("string"==typeof t&&(t=s.from(t,i)),s.isBuffer(t))return 0===t.length?-1:I(e,t,r,i,a);if("number"==typeof t)return t&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):I(e,[t],r,i,a);throw new TypeError("val must be string, number or Buffer")}function I(e,t,r,i,a){function s(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}var o=1,n=e.length,u=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;o=2,n/=2,u/=2,r/=2}var p;if(a){var m=-1;for(p=r;p<n;p++)if(s(e,p)===s(t,-1===m?0:p-m)){if(-1===m&&(m=p),p-m+1===u)return m*o}else-1!==m&&(p-=p-m),m=-1}else for(r+u>n&&(r=n-u),p=r;p>=0;p--){for(var c=!0,l=0;l<u;l++)if(s(e,p+l)!==s(t,l)){c=!1;break}if(c)return p}return-1}function f(e,t,r,i){r=Number(r)||0;var a=e.length-r;i?(i=Number(i))>a&&(i=a):i=a;var s=t.length;if(s%2!=0)throw new TypeError("Invalid hex string");i>s/2&&(i=s/2);for(var o=0;o<i;++o){var n=parseInt(t.substr(2*o,2),16);if(isNaN(n))return o;e[r+o]=n}return o}function T(e,t,r,i){return Q(K(t,e.length-r),e,r,i)}function C(e,t,r,i){return Q(j(t),e,r,i)}function k(e,t,r,i){return C(e,t,r,i)}function A(e,t,r,i){return Q(H(t),e,r,i)}function R(e,t,r,i){return Q(W(t,e.length-r),e,r,i)}function v(e,t,r){return 0===t&&r===e.length?Z.fromByteArray(e):Z.fromByteArray(e.slice(t,r))}function D(e,t,r){r=Math.min(e.length,r);for(var i=[],a=t;a<r;){var s=e[a],o=null,n=s>239?4:s>223?3:s>191?2:1;if(a+n<=r){var u,p,m,c;switch(n){case 1:s<128&&(o=s);break;case 2:u=e[a+1],128==(192&u)&&(c=(31&s)<<6|63&u)>127&&(o=c);break;case 3:u=e[a+1],p=e[a+2],128==(192&u)&&128==(192&p)&&(c=(15&s)<<12|(63&u)<<6|63&p)>2047&&(c<55296||c>57343)&&(o=c);break;case 4:u=e[a+1],p=e[a+2],m=e[a+3],128==(192&u)&&128==(192&p)&&128==(192&m)&&(c=(15&s)<<18|(63&u)<<12|(63&p)<<6|63&m)>65535&&c<1114112&&(o=c)}}null===o?(o=65533,n=1):o>65535&&(o-=65536,i.push(o>>>10&1023|55296),o=56320|1023&o),i.push(o),a+=n}return P(i)}function P(e){var t=e.length;if(t<=$)return String.fromCharCode.apply(String,e);for(var r="",i=0;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=$));return r}function q(e,t,r){var i="";r=Math.min(e.length,r);for(var a=t;a<r;++a)i+=String.fromCharCode(127&e[a]);return i}function x(e,t,r){var i="";r=Math.min(e.length,r);for(var a=t;a<r;++a)i+=String.fromCharCode(e[a]);return i}function E(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);for(var a="",s=t;s<r;++s)a+=z(e[s]);return a}function M(e,t,r){for(var i=e.slice(t,r),a="",s=0;s<i.length;s+=2)a+=String.fromCharCode(i[s]+256*i[s+1]);return a}function L(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function G(e,t,r,i,a,o){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<o)throw new RangeError('"value" argument is out of bounds');if(r+i>e.length)throw new RangeError("Index out of range")}function B(e,t,r,i){t<0&&(t=65535+t+1);for(var a=0,s=Math.min(e.length-r,2);a<s;++a)e[r+a]=(t&255<<8*(i?a:1-a))>>>8*(i?a:1-a)}function w(e,t,r,i){t<0&&(t=4294967295+t+1);for(var a=0,s=Math.min(e.length-r,4);a<s;++a)e[r+a]=t>>>8*(i?a:3-a)&255}function U(e,t,r,i,a,s){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function _(e,t,r,i,a){return a||U(e,t,r,4,3.4028234663852886e38,-3.4028234663852886e38),X.write(e,t,r,i,23,4),r+4}function F(e,t,r,i,a){return a||U(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(e,t,r,i,52,8),r+8}function O(e){if(e=V(e).replace(ee,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function V(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function z(e){return e<16?"0"+e.toString(16):e.toString(16)}function K(e,t){t=t||1/0;for(var r,i=e.length,a=null,s=[],o=0;o<i;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!a){if(r>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(o+1===i){(t-=3)>-1&&s.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),a=r;continue}r=65536+(a-55296<<10|r-56320)}else a&&(t-=3)>-1&&s.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function j(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function W(e,t){for(var r,i,a,s=[],o=0;o<e.length&&!((t-=2)<0);++o)r=e.charCodeAt(o),i=r>>8,a=r%256,s.push(a),s.push(i);return s}function H(e){return Z.toByteArray(O(e))}function Q(e,t,r,i){for(var a=0;a<i&&!(a+r>=t.length||a>=e.length);++a)t[a+r]=e[a];return a}function J(e){return e!==e}var Z=e("base64-js"),X=e("ieee754"),Y=e("isarray");r.Buffer=s,r.SlowBuffer=b,r.INSPECT_MAX_BYTES=50,s.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),r.kMaxLength=i(),s.poolSize=8192,s._augment=function(e){return e.__proto__=s.prototype,e},s.from=function(e,t,r){return o(null,e,t,r)},s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0})),s.alloc=function(e,t,r){return u(null,e,t,r)},s.allocUnsafe=function(e){return p(null,e)},s.allocUnsafeSlow=function(e){return p(null,e)},s.isBuffer=function(e){return!(null==e||!e._isBuffer)},s.compare=function(e,t){if(!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,i=t.length,a=0,o=Math.min(r,i);a<o;++a)if(e[a]!==t[a]){r=e[a],i=t[a];break}return r<i?-1:i<r?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Y(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var i=s.allocUnsafe(t),a=0;for(r=0;r<e.length;++r){var o=e[r];if(!s.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,a),a+=o.length}return i},s.byteLength=S,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)h(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)h(this,t,t+3),h(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)h(this,t,t+7),h(this,t+1,t+6),h(this,t+2,t+5),h(this,t+3,t+4);return this},s.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?D(this,0,e):g.apply(this,arguments)},s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},s.prototype.compare=function(e,t,r,i,a){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===a&&(a=this.length),t<0||r>e.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&t>=r)return 0;if(i>=a)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,i>>>=0,a>>>=0,this===e)return 0;for(var o=a-i,n=r-t,u=Math.min(o,n),p=this.slice(i,a),m=e.slice(t,r),c=0;c<u;++c)if(p[c]!==m[c]){o=p[c],n=m[c];break}return o<n?-1:n<o?1:0},s.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return N(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return N(this,e,t,r,!1)},s.prototype.write=function(e,t,r,i){if(void 0===t)i="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===i&&(i="utf8")):(i=r,r=void 0)}var a=this.length-t;if((void 0===r||r>a)&&(r=a),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var s=!1;;)switch(i){case"hex":return f(this,e,t,r);case"utf8":case"utf-8":return T(this,e,t,r);case"ascii":return C(this,e,t,r);case"latin1":case"binary":return k(this,e,t,r);case"base64":return A(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,t,r);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var i;if(s.TYPED_ARRAY_SUPPORT)i=this.subarray(e,t),i.__proto__=s.prototype;else{var a=t-e;i=new s(a,void 0);for(var o=0;o<a;++o)i[o]=this[o+e]}return i},s.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||L(e,t,this.length);for(var i=this[e],a=1,s=0;++s<t&&(a*=256);)i+=this[e+s]*a;return i},s.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||L(e,t,this.length);for(var i=this[e+--t],a=1;t>0&&(a*=256);)i+=this[e+--t]*a;return i},s.prototype.readUInt8=function(e,t){return t||L(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return t||L(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return t||L(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return t||L(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||L(e,t,this.length);for(var i=this[e],a=1,s=0;++s<t&&(a*=256);)i+=this[e+s]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*t)),i},s.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||L(e,t,this.length);for(var i=t,a=1,s=this[e+--i];i>0&&(a*=256);)s+=this[e+--i]*a;return a*=128,s>=a&&(s-=Math.pow(2,8*t)),s},s.prototype.readInt8=function(e,t){return t||L(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){t||L(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){t||L(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return t||L(e,4,this.length),X.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return t||L(e,4,this.length),X.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return t||L(e,8,this.length),X.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return t||L(e,8,this.length),X.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,r,i){if(e=+e,t|=0,r|=0,!i){G(this,e,t,r,Math.pow(2,8*r)-1,0)}var a=1,s=0;for(this[t]=255&e;++s<r&&(a*=256);)this[t+s]=e/a&255;return t+r},s.prototype.writeUIntBE=function(e,t,r,i){if(e=+e,t|=0,r|=0,!i){G(this,e,t,r,Math.pow(2,8*r)-1,0)}var a=r-1,s=1;for(this[t+a]=255&e;--a>=0&&(s*=256);)this[t+a]=e/s&255;return t+r},s.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,1,255,0),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):w(this,e,t,!0),t+4},s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):w(this,e,t,!1),t+4},s.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t|=0,!i){var a=Math.pow(2,8*r-1);G(this,e,t,r,a-1,-a)}var s=0,o=1,n=0;for(this[t]=255&e;++s<r&&(o*=256);)e<0&&0===n&&0!==this[t+s-1]&&(n=1),this[t+s]=(e/o>>0)-n&255;return t+r},s.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t|=0,!i){var a=Math.pow(2,8*r-1);G(this,e,t,r,a-1,-a)}var s=r-1,o=1,n=0;for(this[t+s]=255&e;--s>=0&&(o*=256);)e<0&&0===n&&0!==this[t+s+1]&&(n=1),this[t+s]=(e/o>>0)-n&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,1,127,-128),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):w(this,e,t,!0),t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):w(this,e,t,!1),t+4},s.prototype.writeFloatLE=function(e,t,r){return _(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return _(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return F(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return F(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,i){if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var a,o=i-r;if(this===e&&r<t&&t<i)for(a=o-1;a>=0;--a)e[a+t]=this[a+r];else if(o<1e3||!s.TYPED_ARRAY_SUPPORT)for(a=0;a<o;++a)e[a+t]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+o),t);return o},s.prototype.fill=function(e,t,r,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),1===e.length){var a=e.charCodeAt(0);a<256&&(e=a)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0);var o;if("number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var n=s.isBuffer(e)?e:K(new s(e,i).toString()),u=n.length;for(o=0;o<r-t;++o)this[o+t]=n[o%u]}return this};var ee=/[^+\/0-9A-Za-z-_]/g}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"base64-js":424,buffer:426,ieee754:428,isarray:429}],427:[function(e,t,r){function i(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function a(e){return"function"==typeof e}function s(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function n(e){return void 0===e}t.exports=i,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._maxListeners=void 0,i.defaultMaxListeners=10,i.prototype.setMaxListeners=function(e){if(!s(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},i.prototype.emit=function(e){var t,r,i,s,u,p;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var m=new Error('Uncaught, unspecified "error" event. ('+t+")");throw m.context=t,m}if(r=this._events[e],n(r))return!1;if(a(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),r.apply(this,s)}else if(o(r))for(s=Array.prototype.slice.call(arguments,1),p=r.slice(),i=p.length,u=0;u<i;u++)p[u].apply(this,s);return!0},i.prototype.addListener=function(e,t){var r;if(!a(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,a(t.listener)?t.listener:t),this._events[e]?o(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,o(this._events[e])&&!this._events[e].warned&&(r=n(this._maxListeners)?i.defaultMaxListeners:this._maxListeners)&&r>0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},i.prototype.on=i.prototype.addListener,i.prototype.once=function(e,t){function r(){this.removeListener(e,r),i||(i=!0,t.apply(this,arguments))}if(!a(t))throw TypeError("listener must be a function");var i=!1;return r.listener=t,this.on(e,r),this},i.prototype.removeListener=function(e,t){var r,i,s,n;if(!a(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],s=r.length,i=-1,r===t||a(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(r)){for(n=s;n-- >0;)if(r[n]===t||r[n].listener&&r[n].listener===t){i=n;break}if(i<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},i.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],a(r))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},i.prototype.listeners=function(e){return this._events&&this._events[e]?a(this._events[e])?[this._events[e]]:this._events[e].slice():[]},i.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(a(t))return 1;if(t)return t.length}return 0},i.listenerCount=function(e,t){return e.listenerCount(t)}},{}],428:[function(e,t,r){r.read=function(e,t,r,i,a){var s,o,n=8*a-i-1,u=(1<<n)-1,p=u>>1,m=-7,c=r?a-1:0,l=r?-1:1,d=e[t+c];for(c+=l,s=d&(1<<-m)-1,d>>=-m,m+=n;m>0;s=256*s+e[t+c],c+=l,m-=8);for(o=s&(1<<-m)-1,s>>=-m,m+=i;m>0;o=256*o+e[t+c],c+=l,m-=8);if(0===s)s=1-p;else{if(s===u)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,i),s-=p}return(d?-1:1)*o*Math.pow(2,s-i)},r.write=function(e,t,r,i,a,s){
|
|
90
|
-
var o,n,u,p=8*s-a-1,m=(1<<p)-1,c=m>>1,l=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:s-1,y=i?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(n=isNaN(t)?1:0,o=m):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),t+=o+c>=1?l/u:l*Math.pow(2,1-c),t*u>=2&&(o++,u/=2),o+c>=m?(n=0,o=m):o+c>=1?(n=(t*u-1)*Math.pow(2,a),o+=c):(n=t*Math.pow(2,c-1)*Math.pow(2,a),o=0));a>=8;e[r+d]=255&n,d+=y,n/=256,a-=8);for(o=o<<a|n,p+=a;p>0;e[r+d]=255&o,d+=y,o/=256,p-=8);e[r+d-y]|=128*b}},{}],429:[function(e,t,r){var i={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==i.call(e)}},{}],430:[function(e,t,r){!function(e){"use strict";function t(e){return null!==e&&"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e,a){if(e===a)return!0;if(Object.prototype.toString.call(e)!==Object.prototype.toString.call(a))return!1;if(!0===t(e)){if(e.length!==a.length)return!1;for(var s=0;s<e.length;s++)if(!1===i(e[s],a[s]))return!1;return!0}if(!0===r(e)){var o={};for(var n in e)if(hasOwnProperty.call(e,n)){if(!1===i(e[n],a[n]))return!1;o[n]=!0}for(var u in a)if(hasOwnProperty.call(a,u)&&!0!==o[u])return!1;return!0}return!1}function a(e){if(""===e||!1===e||null===e)return!0;if(t(e)&&0===e.length)return!0;if(r(e)){for(var i in e)if(e.hasOwnProperty(i))return!1;return!0}return!1}function s(e){for(var t=Object.keys(e),r=[],i=0;i<t.length;i++)r.push(e[t[i]]);return r}function o(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||"_"===e}function n(e){return e>="0"&&e<="9"||"-"===e}function u(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"_"===e}function p(){}function m(){}function c(e){this.runtime=e}function l(e){this._interpreter=e,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[g]}]},avg:{_func:this._functionAvg,_signature:[{types:[C]}]},ceil:{_func:this._functionCeil,_signature:[{types:[g]}]},contains:{_func:this._functionContains,_signature:[{types:[N,I]},{types:[h]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[N]},{types:[N]}]},floor:{_func:this._functionFloor,_signature:[{types:[g]}]},length:{_func:this._functionLength,_signature:[{types:[N,I,f]}]},map:{_func:this._functionMap,_signature:[{types:[T]},{types:[I]}]},max:{_func:this._functionMax,_signature:[{types:[C,k]}]},merge:{_func:this._functionMerge,_signature:[{types:[f],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[I]},{types:[T]}]},sum:{_func:this._functionSum,_signature:[{types:[C]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[N]},{types:[N]}]},min:{_func:this._functionMin,_signature:[{types:[C,k]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[I]},{types:[T]}]},type:{_func:this._functionType,_signature:[{types:[h]}]},keys:{_func:this._functionKeys,_signature:[{types:[f]}]},values:{_func:this._functionValues,_signature:[{types:[f]}]},sort:{_func:this._functionSort,_signature:[{types:[k,C]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[I]},{types:[T]}]},join:{_func:this._functionJoin,_signature:[{types:[N]},{types:[k]}]},reverse:{_func:this._functionReverse,_signature:[{types:[N,I]}]},to_array:{_func:this._functionToArray,_signature:[{types:[h]}]},to_string:{_func:this._functionToString,_signature:[{types:[h]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[h]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[h],variadic:!0}]}}}function d(e){return(new m).parse(e)}function y(e){return(new p).tokenize(e)}function b(e,t){var r=new m,i=new l,a=new c(i);i._interpreter=a;var s=r.parse(t);return a.search(s,e)}var S;S="function"==typeof String.prototype.trimLeft?function(e){return e.trimLeft()}:function(e){return e.match(/^\s*(.*)/)[1]};var g=0,h=1,N=2,I=3,f=4,T=6,C=8,k=9,A={".":"Dot","*":"Star",",":"Comma",":":"Colon","{":"Lbrace","}":"Rbrace","]":"Rbracket","(":"Lparen",")":"Rparen","@":"Current"},R={"<":!0,">":!0,"=":!0,"!":!0},v={" ":!0,"\t":!0,"\n":!0};p.prototype={tokenize:function(e){var t=[];this._current=0;for(var r,i,a;this._current<e.length;)if(o(e[this._current]))r=this._current,i=this._consumeUnquotedIdentifier(e),t.push({type:"UnquotedIdentifier",value:i,start:r});else if(void 0!==A[e[this._current]])t.push({type:A[e[this._current]],value:e[this._current],start:this._current}),this._current++;else if(n(e[this._current]))a=this._consumeNumber(e),t.push(a);else if("["===e[this._current])a=this._consumeLBracket(e),t.push(a);else if('"'===e[this._current])r=this._current,i=this._consumeQuotedIdentifier(e),t.push({type:"QuotedIdentifier",value:i,start:r});else if("'"===e[this._current])r=this._current,i=this._consumeRawStringLiteral(e),t.push({type:"Literal",value:i,start:r});else if("`"===e[this._current]){r=this._current;var s=this._consumeLiteral(e);t.push({type:"Literal",value:s,start:r})}else if(void 0!==R[e[this._current]])t.push(this._consumeOperator(e));else if(void 0!==v[e[this._current]])this._current++;else if("&"===e[this._current])r=this._current,this._current++,"&"===e[this._current]?(this._current++,t.push({type:"And",value:"&&",start:r})):t.push({type:"Expref",value:"&",start:r});else{if("|"!==e[this._current]){var u=new Error("Unknown character:"+e[this._current]);throw u.name="LexerError",u}r=this._current,this._current++,"|"===e[this._current]?(this._current++,t.push({type:"Or",value:"||",start:r})):t.push({type:"Pipe",value:"|",start:r})}return t},_consumeUnquotedIdentifier:function(e){var t=this._current;for(this._current++;this._current<e.length&&u(e[this._current]);)this._current++;return e.slice(t,this._current)},_consumeQuotedIdentifier:function(e){var t=this._current;this._current++;for(var r=e.length;'"'!==e[this._current]&&this._current<r;){var i=this._current;"\\"!==e[i]||"\\"!==e[i+1]&&'"'!==e[i+1]?i++:i+=2,this._current=i}return this._current++,JSON.parse(e.slice(t,this._current))},_consumeRawStringLiteral:function(e){var t=this._current;this._current++;for(var r=e.length;"'"!==e[this._current]&&this._current<r;){var i=this._current;"\\"!==e[i]||"\\"!==e[i+1]&&"'"!==e[i+1]?i++:i+=2,this._current=i}return this._current++,e.slice(t+1,this._current-1).replace("\\'","'")},_consumeNumber:function(e){var t=this._current;this._current++;for(var r=e.length;n(e[this._current])&&this._current<r;)this._current++;return{type:"Number",value:parseInt(e.slice(t,this._current)),start:t}},_consumeLBracket:function(e){var t=this._current;return this._current++,"?"===e[this._current]?(this._current++,{type:"Filter",value:"[?",start:t}):"]"===e[this._current]?(this._current++,{type:"Flatten",value:"[]",start:t}):{type:"Lbracket",value:"[",start:t}},_consumeOperator:function(e){var t=this._current,r=e[t];return this._current++,"!"===r?"="===e[this._current]?(this._current++,{type:"NE",value:"!=",start:t}):{type:"Not",value:"!",start:t}:"<"===r?"="===e[this._current]?(this._current++,{type:"LTE",value:"<=",start:t}):{type:"LT",value:"<",start:t}:">"===r?"="===e[this._current]?(this._current++,{type:"GTE",value:">=",start:t}):{type:"GT",value:">",start:t}:"="===r&&"="===e[this._current]?(this._current++,{type:"EQ",value:"==",start:t}):void 0},_consumeLiteral:function(e){this._current++;for(var t,r=this._current,i=e.length;"`"!==e[this._current]&&this._current<i;){var a=this._current;"\\"!==e[a]||"\\"!==e[a+1]&&"`"!==e[a+1]?a++:a+=2,this._current=a}var s=S(e.slice(r,this._current));return s=s.replace("\\`","`"),t=this._looksLikeJSON(s)?JSON.parse(s):JSON.parse('"'+s+'"'),this._current++,t},_looksLikeJSON:function(e){var t='[{"',r=["true","false","null"],i="-0123456789";if(""===e)return!1;if(t.indexOf(e[0])>=0)return!0;if(r.indexOf(e)>=0)return!0;if(!(i.indexOf(e[0])>=0))return!1;try{return JSON.parse(e),!0}catch(e){return!1}}};var D={};D.EOF=0,D.UnquotedIdentifier=0,D.QuotedIdentifier=0,D.Rbracket=0,D.Rparen=0,D.Comma=0,D.Rbrace=0,D.Number=0,D.Current=0,D.Expref=0,D.Pipe=1,D.Or=2,D.And=3,D.EQ=5,D.GT=5,D.LT=5,D.GTE=5,D.LTE=5,D.NE=5,D.Flatten=9,D.Star=20,D.Filter=21,D.Dot=40,D.Not=45,D.Lbrace=50,D.Lbracket=55,D.Lparen=60,m.prototype={parse:function(e){this._loadTokens(e),this.index=0;var t=this.expression(0);if("EOF"!==this._lookahead(0)){var r=this._lookaheadToken(0),i=new Error("Unexpected token type: "+r.type+", value: "+r.value);throw i.name="ParserError",i}return t},_loadTokens:function(e){var t=new p,r=t.tokenize(e);r.push({type:"EOF",value:"",start:e.length}),this.tokens=r},expression:function(e){var t=this._lookaheadToken(0);this._advance();for(var r=this.nud(t),i=this._lookahead(0);e<D[i];)this._advance(),r=this.led(i,r),i=this._lookahead(0);return r},_lookahead:function(e){return this.tokens[this.index+e].type},_lookaheadToken:function(e){return this.tokens[this.index+e]},_advance:function(){this.index++},nud:function(e){var t,r,i;switch(e.type){case"Literal":return{type:"Literal",value:e.value};case"UnquotedIdentifier":return{type:"Field",name:e.value};case"QuotedIdentifier":var a={type:"Field",name:e.value};if("Lparen"===this._lookahead(0))throw new Error("Quoted identifier not allowed for function names.");return a;case"Not":return r=this.expression(D.Not),{type:"NotExpression",children:[r]};case"Star":return t={type:"Identity"},r=null,r="Rbracket"===this._lookahead(0)?{type:"Identity"}:this._parseProjectionRHS(D.Star),{type:"ValueProjection",children:[t,r]};case"Filter":return this.led(e.type,{type:"Identity"});case"Lbrace":return this._parseMultiselectHash();case"Flatten":return t={type:"Flatten",children:[{type:"Identity"}]},r=this._parseProjectionRHS(D.Flatten),{type:"Projection",children:[t,r]};case"Lbracket":return"Number"===this._lookahead(0)||"Colon"===this._lookahead(0)?(r=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},r)):"Star"===this._lookahead(0)&&"Rbracket"===this._lookahead(1)?(this._advance(),this._advance(),r=this._parseProjectionRHS(D.Star),{type:"Projection",children:[{type:"Identity"},r]}):this._parseMultiselectList();case"Current":return{type:"Current"};case"Expref":return i=this.expression(D.Expref),{type:"ExpressionReference",children:[i]};case"Lparen":for(var s=[];"Rparen"!==this._lookahead(0);)"Current"===this._lookahead(0)?(i={type:"Current"},this._advance()):i=this.expression(0),s.push(i);return this._match("Rparen"),s[0];default:this._errorToken(e)}},led:function(e,t){var r;switch(e){case"Dot":var i=D.Dot;return"Star"!==this._lookahead(0)?(r=this._parseDotRHS(i),{type:"Subexpression",children:[t,r]}):(this._advance(),r=this._parseProjectionRHS(i),{type:"ValueProjection",children:[t,r]});case"Pipe":return r=this.expression(D.Pipe),{type:"Pipe",children:[t,r]};case"Or":return r=this.expression(D.Or),{type:"OrExpression",children:[t,r]};case"And":return r=this.expression(D.And),{type:"AndExpression",children:[t,r]};case"Lparen":for(var a,s=t.name,o=[];"Rparen"!==this._lookahead(0);)"Current"===this._lookahead(0)?(a={type:"Current"},this._advance()):a=this.expression(0),"Comma"===this._lookahead(0)&&this._match("Comma"),o.push(a);return this._match("Rparen"),{type:"Function",name:s,children:o};case"Filter":var n=this.expression(0);return this._match("Rbracket"),r="Flatten"===this._lookahead(0)?{type:"Identity"}:this._parseProjectionRHS(D.Filter),{type:"FilterProjection",children:[t,r,n]};case"Flatten":return{type:"Projection",children:[{type:"Flatten",children:[t]},this._parseProjectionRHS(D.Flatten)]};case"EQ":case"NE":case"GT":case"GTE":case"LT":case"LTE":return this._parseComparator(t,e);case"Lbracket":var u=this._lookaheadToken(0);return"Number"===u.type||"Colon"===u.type?(r=this._parseIndexExpression(),this._projectIfSlice(t,r)):(this._match("Star"),this._match("Rbracket"),r=this._parseProjectionRHS(D.Star),{type:"Projection",children:[t,r]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(e){if(this._lookahead(0)!==e){var t=this._lookaheadToken(0),r=new Error("Expected "+e+", got: "+t.type);throw r.name="ParserError",r}this._advance()},_errorToken:function(e){var t=new Error("Invalid token ("+e.type+'): "'+e.value+'"');throw t.name="ParserError",t},_parseIndexExpression:function(){if("Colon"===this._lookahead(0)||"Colon"===this._lookahead(1))return this._parseSliceExpression();var e={type:"Index",value:this._lookaheadToken(0).value};return this._advance(),this._match("Rbracket"),e},_projectIfSlice:function(e,t){var r={type:"IndexExpression",children:[e,t]};return"Slice"===t.type?{type:"Projection",children:[r,this._parseProjectionRHS(D.Star)]}:r},_parseSliceExpression:function(){for(var e=[null,null,null],t=0,r=this._lookahead(0);"Rbracket"!==r&&t<3;){if("Colon"===r)t++,this._advance();else{if("Number"!==r){var i=this._lookahead(0),a=new Error("Syntax error, unexpected token: "+i.value+"("+i.type+")");throw a.name="Parsererror",a}e[t]=this._lookaheadToken(0).value,this._advance()}r=this._lookahead(0)}return this._match("Rbracket"),{type:"Slice",children:e}},_parseComparator:function(e,t){return{type:"Comparator",name:t,children:[e,this.expression(D[t])]}},_parseDotRHS:function(e){var t=this._lookahead(0);return["UnquotedIdentifier","QuotedIdentifier","Star"].indexOf(t)>=0?this.expression(e):"Lbracket"===t?(this._match("Lbracket"),this._parseMultiselectList()):"Lbrace"===t?(this._match("Lbrace"),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(e){var t;if(D[this._lookahead(0)]<10)t={type:"Identity"};else if("Lbracket"===this._lookahead(0))t=this.expression(e);else if("Filter"===this._lookahead(0))t=this.expression(e);else{if("Dot"!==this._lookahead(0)){var r=this._lookaheadToken(0),i=new Error("Sytanx error, unexpected token: "+r.value+"("+r.type+")");throw i.name="ParserError",i}this._match("Dot"),t=this._parseDotRHS(e)}return t},_parseMultiselectList:function(){for(var e=[];"Rbracket"!==this._lookahead(0);){var t=this.expression(0);if(e.push(t),"Comma"===this._lookahead(0)&&(this._match("Comma"),"Rbracket"===this._lookahead(0)))throw new Error("Unexpected token Rbracket")}return this._match("Rbracket"),{type:"MultiSelectList",children:e}},_parseMultiselectHash:function(){for(var e,t,r,i,a=[],s=["UnquotedIdentifier","QuotedIdentifier"];;){if(e=this._lookaheadToken(0),s.indexOf(e.type)<0)throw new Error("Expecting an identifier token, got: "+e.type);if(t=e.value,this._advance(),this._match("Colon"),r=this.expression(0),i={type:"KeyValuePair",name:t,value:r},a.push(i),"Comma"===this._lookahead(0))this._match("Comma");else if("Rbrace"===this._lookahead(0)){this._match("Rbrace");break}}return{type:"MultiSelectHash",children:a}}},c.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,o){var n,u,p,m,c,l,d,y,b;switch(e.type){case"Field":return null===o?null:r(o)?(l=o[e.name],void 0===l?null:l):null;case"Subexpression":for(p=this.visit(e.children[0],o),b=1;b<e.children.length;b++)if(null===(p=this.visit(e.children[1],p)))return null;return p;case"IndexExpression":return d=this.visit(e.children[0],o),this.visit(e.children[1],d);case"Index":if(!t(o))return null;var S=e.value;return S<0&&(S=o.length+S),p=o[S],void 0===p&&(p=null),p;case"Slice":if(!t(o))return null;var g=e.children.slice(0),h=this.computeSliceParams(o.length,g),N=h[0],I=h[1],f=h[2];if(p=[],f>0)for(b=N;b<I;b+=f)p.push(o[b]);else for(b=N;b>I;b+=f)p.push(o[b]);return p;case"Projection":var T=this.visit(e.children[0],o);if(!t(T))return null;for(y=[],b=0;b<T.length;b++)null!==(u=this.visit(e.children[1],T[b]))&&y.push(u);return y;case"ValueProjection":if(T=this.visit(e.children[0],o),!r(T))return null;y=[];var C=s(T);for(b=0;b<C.length;b++)null!==(u=this.visit(e.children[1],C[b]))&&y.push(u);return y;case"FilterProjection":if(T=this.visit(e.children[0],o),!t(T))return null;var k=[],A=[];for(b=0;b<T.length;b++)n=this.visit(e.children[2],T[b]),a(n)||k.push(T[b]);for(var R=0;R<k.length;R++)null!==(u=this.visit(e.children[1],k[R]))&&A.push(u);return A;case"Comparator":switch(m=this.visit(e.children[0],o),c=this.visit(e.children[1],o),e.name){case"EQ":p=i(m,c);break;case"NE":p=!i(m,c);break;case"GT":p=m>c;break;case"GTE":p=m>=c;break;case"LT":p=m<c;break;case"LTE":p=m<=c;break;default:throw new Error("Unknown comparator: "+e.name)}return p;case"Flatten":var v=this.visit(e.children[0],o);if(!t(v))return null;var D=[];for(b=0;b<v.length;b++)u=v[b],t(u)?D.push.apply(D,u):D.push(u);return D;case"Identity":return o;case"MultiSelectList":if(null===o)return null;for(y=[],b=0;b<e.children.length;b++)y.push(this.visit(e.children[b],o));return y;case"MultiSelectHash":if(null===o)return null;y={};var P;for(b=0;b<e.children.length;b++)P=e.children[b],y[P.name]=this.visit(P.value,o);return y;case"OrExpression":return n=this.visit(e.children[0],o),a(n)&&(n=this.visit(e.children[1],o)),n;case"AndExpression":return m=this.visit(e.children[0],o),!0===a(m)?m:this.visit(e.children[1],o);case"NotExpression":return m=this.visit(e.children[0],o),a(m);case"Literal":return e.value;case"Pipe":return d=this.visit(e.children[0],o),this.visit(e.children[1],d);case"Current":return o;case"Function":var q=[];for(b=0;b<e.children.length;b++)q.push(this.visit(e.children[b],o));return this.runtime.callFunction(e.name,q);case"ExpressionReference":var x=e.children[0];return x.jmespathType="Expref",x;default:throw new Error("Unknown node type: "+e.type)}},computeSliceParams:function(e,t){var r=t[0],i=t[1],a=t[2],s=[null,null,null];if(null===a)a=1;else if(0===a){var o=new Error("Invalid slice, step cannot be 0");throw o.name="RuntimeError",o}var n=a<0;return r=null===r?n?e-1:0:this.capSliceRange(e,r,a),i=null===i?n?-1:e:this.capSliceRange(e,i,a),s[0]=r,s[1]=i,s[2]=a,s},capSliceRange:function(e,t,r){return t<0?(t+=e)<0&&(t=r<0?-1:0):t>=e&&(t=r<0?e-1:e),t}},l.prototype={callFunction:function(e,t){var r=this.functionTable[e];if(void 0===r)throw new Error("Unknown function: "+e+"()");return this._validateArgs(e,t,r._signature),r._func.call(this,t)},_validateArgs:function(e,t,r){var i;if(r[r.length-1].variadic){if(t.length<r.length)throw i=1===r.length?" argument":" arguments",new Error("ArgumentError: "+e+"() takes at least"+r.length+i+" but received "+t.length)}else if(t.length!==r.length)throw i=1===r.length?" argument":" arguments",new Error("ArgumentError: "+e+"() takes "+r.length+i+" but received "+t.length);for(var a,s,o,n=0;n<r.length;n++){o=!1,a=r[n].types,s=this._getTypeName(t[n]);for(var u=0;u<a.length;u++)if(this._typeMatches(s,a[u],t[n])){o=!0;break}if(!o)throw new Error("TypeError: "+e+"() expected argument "+(n+1)+" to be type "+a+" but received type "+s+" instead.")}},_typeMatches:function(e,t,r){if(t===h)return!0;if(t!==k&&t!==C&&t!==I)return e===t;if(t===I)return e===I;if(e===I){var i;t===C?i=g:t===k&&(i=N);for(var a=0;a<r.length;a++)if(!this._typeMatches(this._getTypeName(r[a]),i,r[a]))return!1;return!0}},_getTypeName:function(e){switch(Object.prototype.toString.call(e)){case"[object String]":return N;case"[object Number]":return g;case"[object Array]":return I;case"[object Boolean]":return 5;case"[object Null]":return 7;case"[object Object]":return"Expref"===e.jmespathType?T:f}},_functionStartsWith:function(e){return 0===e[0].lastIndexOf(e[1])},_functionEndsWith:function(e){var t=e[0],r=e[1];return-1!==t.indexOf(r,t.length-r.length)},_functionReverse:function(e){if(this._getTypeName(e[0])===N){for(var t=e[0],r="",i=t.length-1;i>=0;i--)r+=t[i];return r}var a=e[0].slice(0);return a.reverse(),a},_functionAbs:function(e){return Math.abs(e[0])},_functionCeil:function(e){return Math.ceil(e[0])},_functionAvg:function(e){for(var t=0,r=e[0],i=0;i<r.length;i++)t+=r[i];return t/r.length},_functionContains:function(e){return e[0].indexOf(e[1])>=0},_functionFloor:function(e){return Math.floor(e[0])},_functionLength:function(e){return r(e[0])?Object.keys(e[0]).length:e[0].length},_functionMap:function(e){for(var t=[],r=this._interpreter,i=e[0],a=e[1],s=0;s<a.length;s++)t.push(r.visit(i,a[s]));return t},_functionMerge:function(e){for(var t={},r=0;r<e.length;r++){var i=e[r];for(var a in i)t[a]=i[a]}return t},_functionMax:function(e){if(e[0].length>0){if(this._getTypeName(e[0][0])===g)return Math.max.apply(Math,e[0]);for(var t=e[0],r=t[0],i=1;i<t.length;i++)r.localeCompare(t[i])<0&&(r=t[i]);return r}return null},_functionMin:function(e){if(e[0].length>0){if(this._getTypeName(e[0][0])===g)return Math.min.apply(Math,e[0]);for(var t=e[0],r=t[0],i=1;i<t.length;i++)t[i].localeCompare(r)<0&&(r=t[i]);return r}return null},_functionSum:function(e){for(var t=0,r=e[0],i=0;i<r.length;i++)t+=r[i];return t},_functionType:function(e){switch(this._getTypeName(e[0])){case g:return"number";case N:return"string";case I:return"array";case f:return"object";case 5:return"boolean";case T:return"expref";case 7:return"null"}},_functionKeys:function(e){return Object.keys(e[0])},_functionValues:function(e){for(var t=e[0],r=Object.keys(t),i=[],a=0;a<r.length;a++)i.push(t[r[a]]);return i},_functionJoin:function(e){var t=e[0];return e[1].join(t)},_functionToArray:function(e){return this._getTypeName(e[0])===I?e[0]:[e[0]]},_functionToString:function(e){return this._getTypeName(e[0])===N?e[0]:JSON.stringify(e[0])},_functionToNumber:function(e){var t,r=this._getTypeName(e[0]);return r===g?e[0]:r!==N||(t=+e[0],isNaN(t))?null:t},_functionNotNull:function(e){for(var t=0;t<e.length;t++)if(7!==this._getTypeName(e[t]))return e[t];return null},_functionSort:function(e){var t=e[0].slice(0);return t.sort(),t},_functionSortBy:function(e){var t=e[0].slice(0);if(0===t.length)return t;var r=this._interpreter,i=e[1],a=this._getTypeName(r.visit(i,t[0]));if([g,N].indexOf(a)<0)throw new Error("TypeError");for(var s=this,o=[],n=0;n<t.length;n++)o.push([n,t[n]]);o.sort(function(e,t){var o=r.visit(i,e[1]),n=r.visit(i,t[1]);if(s._getTypeName(o)!==a)throw new Error("TypeError: expected "+a+", received "+s._getTypeName(o));if(s._getTypeName(n)!==a)throw new Error("TypeError: expected "+a+", received "+s._getTypeName(n));return o>n?1:o<n?-1:e[0]-t[0]});for(var u=0;u<o.length;u++)t[u]=o[u][1];return t},_functionMaxBy:function(e){for(var t,r,i=e[1],a=e[0],s=this.createKeyFunction(i,[g,N]),o=-1/0,n=0;n<a.length;n++)(r=s(a[n]))>o&&(o=r,t=a[n]);return t},_functionMinBy:function(e){for(var t,r,i=e[1],a=e[0],s=this.createKeyFunction(i,[g,N]),o=1/0,n=0;n<a.length;n++)(r=s(a[n]))<o&&(o=r,t=a[n]);return t},createKeyFunction:function(e,t){var r=this,i=this._interpreter;return function(a){var s=i.visit(e,a);if(t.indexOf(r._getTypeName(s))<0){var o="TypeError: expected one of "+t+", received "+r._getTypeName(s);throw new Error(o)}return s}}},e.tokenize=y,e.compile=d,e.search=b,e.strictDeepEqual=i}(void 0===r?this.jmespath={}:r)},{}],431:[function(e,t,r){function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(c===setTimeout)return setTimeout(e,0);if((c===i||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function o(e){if(l===clearTimeout)return clearTimeout(e);if((l===a||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(e);try{return l(e)}catch(t){try{return l.call(null,e)}catch(t){return l.call(this,e)}}}function n(){S&&y&&(S=!1,y.length?b=y.concat(b):g=-1,b.length&&u())}function u(){if(!S){var e=s(n);S=!0;for(var t=b.length;t;){for(y=b,b=[];++g<t;)y&&y[g].run();g=-1,t=b.length}y=null,S=!1,o(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}var c,l,d=t.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:i}catch(e){c=i}try{l="function"==typeof clearTimeout?clearTimeout:a}catch(e){l=a}}();var y,b=[],S=!1,g=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];b.push(new p(e,t)),1!==b.length||S||s(u)},p.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=m,d.addListener=m,d.once=m,d.off=m,d.removeListener=m,d.removeAllListeners=m,d.emit=m,d.prependListener=m,d.prependOnceListener=m,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},{}],432:[function(e,t,r){(function(e){(function(){!function(i){function a(e){throw RangeError(M[e])}function s(e,t){for(var r=e.length,i=[];r--;)i[r]=t(e[r]);return i}function o(e,t){var r=e.split("@"),i="";return r.length>1&&(i=r[0]+"@",e=r[1]),e=e.replace(E,"."),i+s(e.split("."),t).join(".")}function n(e){for(var t,r,i=[],a=0,s=e.length;a<s;)t=e.charCodeAt(a++),t>=55296&&t<=56319&&a<s?(r=e.charCodeAt(a++),56320==(64512&r)?i.push(((1023&t)<<10)+(1023&r)+65536):(i.push(t),a--)):i.push(t);return i}function u(e){return s(e,function(e){var t="";return e>65535&&(e-=65536,t+=B(e>>>10&1023|55296),e=56320|1023&e),t+=B(e)}).join("")}function p(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:T}function m(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function c(e,t,r){var i=0;for(e=r?G(e/R):e>>1,e+=G(e/t);e>L*k>>1;i+=T)e=G(e/L);return G(i+(L+1)*e/(e+A))}function l(e){var t,r,i,s,o,n,m,l,d,y,b=[],S=e.length,g=0,h=D,N=v;for(r=e.lastIndexOf(P),r<0&&(r=0),i=0;i<r;++i)e.charCodeAt(i)>=128&&a("not-basic"),b.push(e.charCodeAt(i));for(s=r>0?r+1:0;s<S;){for(o=g,n=1,m=T;s>=S&&a("invalid-input"),l=p(e.charCodeAt(s++)),(l>=T||l>G((f-g)/n))&&a("overflow"),g+=l*n,d=m<=N?C:m>=N+k?k:m-N,!(l<d);m+=T)y=T-d,n>G(f/y)&&a("overflow"),n*=y;t=b.length+1,N=c(g-o,t,0==o),G(g/t)>f-h&&a("overflow"),h+=G(g/t),g%=t,b.splice(g++,0,h)}return u(b)}function d(e){var t,r,i,s,o,u,p,l,d,y,b,S,g,h,N,I=[];for(e=n(e),S=e.length,t=D,r=0,o=v,u=0;u<S;++u)(b=e[u])<128&&I.push(B(b));for(i=s=I.length,s&&I.push(P);i<S;){for(p=f,u=0;u<S;++u)(b=e[u])>=t&&b<p&&(p=b);for(g=i+1,p-t>G((f-r)/g)&&a("overflow"),r+=(p-t)*g,t=p,u=0;u<S;++u)if(b=e[u],b<t&&++r>f&&a("overflow"),b==t){for(l=r,d=T;y=d<=o?C:d>=o+k?k:d-o,!(l<y);d+=T)N=l-y,h=T-y,I.push(B(m(y+N%h,0))),l=G(N/h);I.push(B(m(l,0))),o=c(r,g,i==s),r=0,++i}++r,++t}return I.join("")}function y(e){return o(e,function(e){return q.test(e)?l(e.slice(4).toLowerCase()):e})}function b(e){return o(e,function(e){return x.test(e)?"xn--"+d(e):e})}var S="object"==typeof r&&r&&!r.nodeType&&r,g="object"==typeof t&&t&&!t.nodeType&&t,h="object"==typeof e&&e;h.global!==h&&h.window!==h&&h.self!==h||(i=h);var N,I,f=2147483647,T=36,C=1,k=26,A=38,R=700,v=72,D=128,P="-",q=/^xn--/,x=/[^\x20-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,M={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},L=T-C,G=Math.floor,B=String.fromCharCode;if(N={version:"1.3.2",ucs2:{decode:n,encode:u},decode:l,encode:d,toASCII:b,toUnicode:y},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return N});else if(S&&g)if(t.exports==S)g.exports=N;else for(I in N)N.hasOwnProperty(I)&&(S[I]=N[I]);else i.punycode=N}(this)}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],433:[function(e,t,r){"use strict";function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,r,s){t=t||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var n=/\+/g;e=e.split(t);var u=1e3;s&&"number"==typeof s.maxKeys&&(u=s.maxKeys);var p=e.length;u>0&&p>u&&(p=u);for(var m=0;m<p;++m){var c,l,d,y,b=e[m].replace(n,"%20"),S=b.indexOf(r);S>=0?(c=b.substr(0,S),l=b.substr(S+1)):(c=b,l=""),d=decodeURIComponent(c),y=decodeURIComponent(l),i(o,d)?a(o[d])?o[d].push(y):o[d]=[o[d],y]:o[d]=y}return o};var a=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],434:[function(e,t,r){"use strict";function i(e,t){if(e.map)return e.map(t);for(var r=[],i=0;i<e.length;i++)r.push(t(e[i],i));return r}var a=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(e,t,r,n){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?i(o(e),function(o){var n=encodeURIComponent(a(o))+r;return s(e[o])?i(e[o],function(e){return n+encodeURIComponent(a(e))}).join(t):n+encodeURIComponent(a(e[o]))}).join(t):n?encodeURIComponent(a(n))+r+encodeURIComponent(a(e)):""};var s=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},o=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}},{}],435:[function(e,t,r){"use strict";r.decode=r.parse=e("./decode"),r.encode=r.stringify=e("./encode")},{"./decode":433,"./encode":434}],436:[function(e,t,r){"use strict";function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,r,a){t=t||"&",r=r||"=";var s={};if("string"!=typeof e||0===e.length)return s;var o=/\+/g;e=e.split(t);var n=1e3;a&&"number"==typeof a.maxKeys&&(n=a.maxKeys);var u=e.length;n>0&&u>n&&(u=n);for(var p=0;p<u;++p){var m,c,l,d,y=e[p].replace(o,"%20"),b=y.indexOf(r);b>=0?(m=y.substr(0,b),c=y.substr(b+1)):(m=y,c=""),l=decodeURIComponent(m),d=decodeURIComponent(c),i(s,l)?Array.isArray(s[l])?s[l].push(d):s[l]=[s[l],d]:s[l]=d}return s}},{}],437:[function(e,t,r){"use strict";var i=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(e,t,r,a){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map(function(a){var s=encodeURIComponent(i(a))+r;return Array.isArray(e[a])?e[a].map(function(e){return s+encodeURIComponent(i(e))}).join(t):s+encodeURIComponent(i(e[a]))}).join(t):a?encodeURIComponent(i(a))+r+encodeURIComponent(i(e)):""}},{}],438:[function(e,t,r){arguments[4][435][0].apply(r,arguments)},{"./decode":436,"./encode":437,dup:435}],439:[function(e,t,r){(function(t,i){(function(){function a(e,t){this._id=e,this._clearFn=t}var s=e("process/browser.js").nextTick,o=Function.prototype.apply,n=Array.prototype.slice,u={},p=0;r.setTimeout=function(){return new a(o.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new a(o.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(e){e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},r.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},r._unrefActive=r.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r.setImmediate="function"==typeof t?t:function(e){var t=p++,i=!(arguments.length<2)&&n.call(arguments,1);return u[t]=!0,s(function(){u[t]&&(i?e.apply(null,i):e.call(null),r.clearImmediate(t))}),t},r.clearImmediate="function"==typeof i?i:function(e){delete u[e]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":431,timers:439}],440:[function(e,t,r){function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function a(e,t,r){if(e&&p(e)&&e instanceof i)return e;var a=new i;return a.parse(e,t,r),a}function s(e){return u(e)&&(e=a(e)),e instanceof i?e.format():i.prototype.format.call(e)}function o(e,t){return a(e,!1,!0).resolve(t)}function n(e,t){return e?a(e,!1,!0).resolveObject(t):t}function u(e){return"string"==typeof e}function p(e){return"object"==typeof e&&null!==e}function m(e){return null===e}function c(e){return null==e}var l=e("punycode");r.parse=a,r.resolve=o,r.resolveObject=n,r.format=s,r.Url=i
|
|
91
|
-
;var d=/^([a-z0-9.+-]+:)/i,y=/:[0-9]*$/,b=["<",">",'"',"`"," ","\r","\n","\t"],S=["{","}","|","\\","^","`"].concat(b),g=["'"].concat(S),h=["%","/","?",";","#"].concat(g),N=["/","?","#"],I=/^[a-z0-9A-Z_-]{0,63}$/,f=/^([a-z0-9A-Z_-]{0,63})(.*)$/,T={javascript:!0,"javascript:":!0},C={javascript:!0,"javascript:":!0},k={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},A=e("querystring");i.prototype.parse=function(e,t,r){if(!u(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e;i=i.trim();var a=d.exec(i);if(a){a=a[0];var s=a.toLowerCase();this.protocol=s,i=i.substr(a.length)}if(r||a||i.match(/^\/\/[^@\/]+@[^@\/]+/)){var o="//"===i.substr(0,2);!o||a&&C[a]||(i=i.substr(2),this.slashes=!0)}if(!C[a]&&(o||a&&!k[a])){for(var n=-1,p=0;p<N.length;p++){var m=i.indexOf(N[p]);-1!==m&&(-1===n||m<n)&&(n=m)}var c,y;y=-1===n?i.lastIndexOf("@"):i.lastIndexOf("@",n),-1!==y&&(c=i.slice(0,y),i=i.slice(y+1),this.auth=decodeURIComponent(c)),n=-1;for(var p=0;p<h.length;p++){var m=i.indexOf(h[p]);-1!==m&&(-1===n||m<n)&&(n=m)}-1===n&&(n=i.length),this.host=i.slice(0,n),i=i.slice(n),this.parseHost(),this.hostname=this.hostname||"";var b="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!b)for(var S=this.hostname.split(/\./),p=0,R=S.length;p<R;p++){var v=S[p];if(v&&!v.match(I)){for(var D="",P=0,q=v.length;P<q;P++)v.charCodeAt(P)>127?D+="x":D+=v[P];if(!D.match(I)){var x=S.slice(0,p),E=S.slice(p+1),M=v.match(f);M&&(x.push(M[1]),E.unshift(M[2])),E.length&&(i="/"+E.join(".")+i),this.hostname=x.join(".");break}}}if(this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),!b){for(var L=this.hostname.split("."),G=[],p=0;p<L.length;++p){var B=L[p];G.push(B.match(/[^A-Za-z0-9_-]/)?"xn--"+l.encode(B):B)}this.hostname=G.join(".")}var w=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+w,this.href+=this.host,b&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==i[0]&&(i="/"+i))}if(!T[s])for(var p=0,R=g.length;p<R;p++){var _=g[p],F=encodeURIComponent(_);F===_&&(F=escape(_)),i=i.split(_).join(F)}var O=i.indexOf("#");-1!==O&&(this.hash=i.substr(O),i=i.slice(0,O));var V=i.indexOf("?");if(-1!==V?(this.search=i.substr(V),this.query=i.substr(V+1),t&&(this.query=A.parse(this.query)),i=i.slice(0,V)):t&&(this.search="",this.query={}),i&&(this.pathname=i),k[s]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var w=this.pathname||"",B=this.search||"";this.path=w+B}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",i=this.hash||"",a=!1,s="";this.host?a=e+this.host:this.hostname&&(a=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(a+=":"+this.port)),this.query&&p(this.query)&&Object.keys(this.query).length&&(s=A.stringify(this.query));var o=this.search||s&&"?"+s||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||k[t])&&!1!==a?(a="//"+(a||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):a||(a=""),i&&"#"!==i.charAt(0)&&(i="#"+i),o&&"?"!==o.charAt(0)&&(o="?"+o),r=r.replace(/[?#]/g,function(e){return encodeURIComponent(e)}),o=o.replace("#","%23"),t+a+r+o+i},i.prototype.resolve=function(e){return this.resolveObject(a(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(u(e)){var t=new i;t.parse(e,!1,!0),e=t}var r=new i;if(Object.keys(this).forEach(function(e){r[e]=this[e]},this),r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol)return Object.keys(e).forEach(function(t){"protocol"!==t&&(r[t]=e[t])}),k[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r;if(e.protocol&&e.protocol!==r.protocol){if(!k[e.protocol])return Object.keys(e).forEach(function(t){r[t]=e[t]}),r.href=r.format(),r;if(r.protocol=e.protocol,e.host||C[e.protocol])r.pathname=e.pathname;else{for(var a=(e.pathname||"").split("/");a.length&&!(e.host=a.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==a[0]&&a.unshift(""),a.length<2&&a.unshift(""),r.pathname=a.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var s=r.pathname||"",o=r.search||"";r.path=s+o}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var n=r.pathname&&"/"===r.pathname.charAt(0),p=e.host||e.pathname&&"/"===e.pathname.charAt(0),l=p||n||r.host&&e.pathname,d=l,y=r.pathname&&r.pathname.split("/")||[],a=e.pathname&&e.pathname.split("/")||[],b=r.protocol&&!k[r.protocol];if(b&&(r.hostname="",r.port=null,r.host&&(""===y[0]?y[0]=r.host:y.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===a[0]?a[0]=e.host:a.unshift(e.host)),e.host=null),l=l&&(""===a[0]||""===y[0])),p)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,y=a;else if(a.length)y||(y=[]),y.pop(),y=y.concat(a),r.search=e.search,r.query=e.query;else if(!c(e.search)){if(b){r.hostname=r.host=y.shift();var S=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");S&&(r.auth=S.shift(),r.host=r.hostname=S.shift())}return r.search=e.search,r.query=e.query,m(r.pathname)&&m(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!y.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var g=y.slice(-1)[0],h=(r.host||e.host)&&("."===g||".."===g)||""===g,N=0,I=y.length;I>=0;I--)g=y[I],"."==g?y.splice(I,1):".."===g?(y.splice(I,1),N++):N&&(y.splice(I,1),N--);if(!l&&!d)for(;N--;N)y.unshift("..");!l||""===y[0]||y[0]&&"/"===y[0].charAt(0)||y.unshift(""),h&&"/"!==y.join("/").substr(-1)&&y.push("");var f=""===y[0]||y[0]&&"/"===y[0].charAt(0);if(b){r.hostname=r.host=f?"":y.length?y.shift():"";var S=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");S&&(r.auth=S.shift(),r.host=r.hostname=S.shift())}return l=l||r.host&&y.length,l&&!f&&y.unshift(""),y.length?r.pathname=y.join("/"):(r.pathname=null,r.path=null),m(r.pathname)&&m(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var e=this.host,t=y.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{punycode:432,querystring:435}],441:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],442:[function(e,t,r){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],443:[function(e,t,r){(function(t,i){(function(){function a(e,t){var i={seen:[],stylize:o};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),b(t)?i.showHidden=t:t&&r._extend(i,t),f(i.showHidden)&&(i.showHidden=!1),f(i.depth)&&(i.depth=2),f(i.colors)&&(i.colors=!1),f(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=s),u(i,e,i.depth)}function s(e,t){var r=a.styles[t];return r?"["+a.colors[r][0]+"m"+e+"["+a.colors[r][1]+"m":e}function o(e,t){return e}function n(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function u(e,t,i){if(e.customInspect&&t&&R(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var a=t.inspect(i,e);return N(a)||(a=u(e,a,i)),a}var s=p(e,t);if(s)return s;var o=Object.keys(t),b=n(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),A(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return m(t);if(0===o.length){if(R(t)){var S=t.name?": "+t.name:"";return e.stylize("[Function"+S+"]","special")}if(T(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(k(t))return e.stylize(Date.prototype.toString.call(t),"date");if(A(t))return m(t)}var g="",h=!1,I=["{","}"];if(y(t)&&(h=!0,I=["[","]"]),R(t)){g=" [Function"+(t.name?": "+t.name:"")+"]"}if(T(t)&&(g=" "+RegExp.prototype.toString.call(t)),k(t)&&(g=" "+Date.prototype.toUTCString.call(t)),A(t)&&(g=" "+m(t)),0===o.length&&(!h||0==t.length))return I[0]+g+I[1];if(i<0)return T(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var f;return f=h?c(e,t,i,b,o):o.map(function(r){return l(e,t,i,b,r,h)}),e.seen.pop(),d(f,g,I)}function p(e,t){if(f(t))return e.stylize("undefined","undefined");if(N(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return h(t)?e.stylize(""+t,"number"):b(t)?e.stylize(""+t,"boolean"):S(t)?e.stylize("null","null"):void 0}function m(e){return"["+Error.prototype.toString.call(e)+"]"}function c(e,t,r,i,a){for(var s=[],o=0,n=t.length;o<n;++o)x(t,String(o))?s.push(l(e,t,r,i,String(o),!0)):s.push("");return a.forEach(function(a){a.match(/^\d+$/)||s.push(l(e,t,r,i,a,!0))}),s}function l(e,t,r,i,a,s){var o,n,p;if(p=Object.getOwnPropertyDescriptor(t,a)||{value:t[a]},p.get?n=p.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):p.set&&(n=e.stylize("[Setter]","special")),x(i,a)||(o="["+a+"]"),n||(e.seen.indexOf(p.value)<0?(n=S(r)?u(e,p.value,null):u(e,p.value,r-1),n.indexOf("\n")>-1&&(n=s?n.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+n.split("\n").map(function(e){return" "+e}).join("\n"))):n=e.stylize("[Circular]","special")),f(o)){if(s&&a.match(/^\d+$/))return n;o=JSON.stringify(""+a),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+n}function d(e,t,r){var i=0;return e.reduce(function(e,t){return i++,t.indexOf("\n")>=0&&i++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function y(e){return Array.isArray(e)}function b(e){return"boolean"==typeof e}function S(e){return null===e}function g(e){return null==e}function h(e){return"number"==typeof e}function N(e){return"string"==typeof e}function I(e){return"symbol"==typeof e}function f(e){return void 0===e}function T(e){return C(e)&&"[object RegExp]"===D(e)}function C(e){return"object"==typeof e&&null!==e}function k(e){return C(e)&&"[object Date]"===D(e)}function A(e){return C(e)&&("[object Error]"===D(e)||e instanceof Error)}function R(e){return"function"==typeof e}function v(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function D(e){return Object.prototype.toString.call(e)}function P(e){return e<10?"0"+e.toString(10):e.toString(10)}function q(){var e=new Date,t=[P(e.getHours()),P(e.getMinutes()),P(e.getSeconds())].join(":");return[e.getDate(),G[e.getMonth()],t].join(" ")}function x(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var E=/%[sdj%]/g;r.format=function(e){if(!N(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(a(arguments[r]));return t.join(" ")}for(var r=1,i=arguments,s=i.length,o=String(e).replace(E,function(e){if("%%"===e)return"%";if(r>=s)return e;switch(e){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(e){return"[Circular]"}default:return e}}),n=i[r];r<s;n=i[++r])S(n)||!C(n)?o+=" "+n:o+=" "+a(n);return o},r.deprecate=function(e,a){function s(){if(!o){if(t.throwDeprecation)throw new Error(a);t.traceDeprecation?console.trace(a):console.error(a),o=!0}return e.apply(this,arguments)}if(f(i.process))return function(){return r.deprecate(e,a).apply(this,arguments)};if(!0===t.noDeprecation)return e;var o=!1;return s};var M,L={};r.debuglog=function(e){if(f(M)&&(M=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!L[e])if(new RegExp("\\b"+e+"\\b","i").test(M)){var i=t.pid;L[e]=function(){var t=r.format.apply(r,arguments);console.error("%s %d: %s",e,i,t)}}else L[e]=function(){};return L[e]},r.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=y,r.isBoolean=b,r.isNull=S,r.isNullOrUndefined=g,r.isNumber=h,r.isString=N,r.isSymbol=I,r.isUndefined=f,r.isRegExp=T,r.isObject=C,r.isDate=k,r.isError=A,r.isFunction=R,r.isPrimitive=v,r.isBuffer=e("./support/isBuffer");var G=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];r.log=function(){console.log("%s - %s",q(),r.format.apply(r,arguments))},r.inherits=e("inherits"),r._extend=function(e,t){if(!t||!C(t))return e;for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":442,_process:431,inherits:441}],444:[function(e,t,r){var i=e("./v1"),a=e("./v4"),s=a;s.v1=i,s.v4=a,t.exports=s},{"./v1":447,"./v4":448}],445:[function(e,t,r){function i(e,t){var r=t||0,i=a;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}for(var a=[],s=0;s<256;++s)a[s]=(s+256).toString(16).substr(1);t.exports=i},{}],446:[function(e,t,r){var i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(i){var a=new Uint8Array(16);t.exports=function(){return i(a),a}}else{var s=new Array(16);t.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),s[t]=e>>>((3&t)<<3)&255;return s}}},{}],447:[function(e,t,r){function i(e,t,r){var i=t&&r||0,m=t||[];e=e||{};var c=e.node||a,l=void 0!==e.clockseq?e.clockseq:s;if(null==c||null==l){var d=o();null==c&&(c=a=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==l&&(l=s=16383&(d[6]<<8|d[7]))}var y=void 0!==e.msecs?e.msecs:(new Date).getTime(),b=void 0!==e.nsecs?e.nsecs:p+1,S=y-u+(b-p)/1e4;if(S<0&&void 0===e.clockseq&&(l=l+1&16383),(S<0||y>u)&&void 0===e.nsecs&&(b=0),b>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=y,p=b,s=l,y+=122192928e5;var g=(1e4*(268435455&y)+b)%4294967296;m[i++]=g>>>24&255,m[i++]=g>>>16&255,m[i++]=g>>>8&255,m[i++]=255&g;var h=y/4294967296*1e4&268435455;m[i++]=h>>>8&255,m[i++]=255&h,m[i++]=h>>>24&15|16,m[i++]=h>>>16&255,m[i++]=l>>>8|128,m[i++]=255&l;for(var N=0;N<6;++N)m[i+N]=c[N];return t||n(m)}var a,s,o=e("./lib/rng"),n=e("./lib/bytesToUuid"),u=0,p=0;t.exports=i},{"./lib/bytesToUuid":445,"./lib/rng":446}],448:[function(e,t,r){function i(e,t,r){var i=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null),e=e||{};var o=e.random||(e.rng||a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var n=0;n<16;++n)t[i+n]=o[n];return t||s(o)}var a=e("./lib/rng"),s=e("./lib/bytesToUuid");t.exports=i},{"./lib/bytesToUuid":445,"./lib/rng":446}],449:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=e("./utils/LRU"),a=1e3,s=function(){function e(e){void 0===e&&(e=a),this.maxSize=e,this.cache=new i.LRUCache(e)}return Object.defineProperty(e.prototype,"size",{get:function(){return this.cache.length},enumerable:!0,configurable:!0}),e.prototype.put=function(t,r){var i="string"!=typeof t?e.getKeyString(t):t,a=this.populateValue(r);this.cache.put(i,a)},e.prototype.get=function(t){var r="string"!=typeof t?e.getKeyString(t):t,i=Date.now(),a=this.cache.get(r);if(a){for(var s=a.length-1;s>=0;s--){a[s].Expire<i&&a.splice(s,1)}if(0===a.length)return void this.cache.remove(r)}return a},e.getKeyString=function(e){for(var t=[],r=Object.keys(e).sort(),i=0;i<r.length;i++){var a=r[i];void 0!==e[a]&&t.push(e[a])}return t.join(" ")},e.prototype.populateValue=function(e){var t=Date.now();return e.map(function(e){return{Address:e.Address||"",Expire:t+60*(e.CachePeriodInMinutes||1)*1e3}})},e.prototype.empty=function(){this.cache.empty()},e.prototype.remove=function(t){var r="string"!=typeof t?e.getKeyString(t):t;this.cache.remove(r)},e}();r.EndpointCache=s},{"./utils/LRU":450}],450:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=function(){function e(e,t){this.key=e,this.value=t}return e}(),a=function(){function e(e){if(this.nodeMap={},this.size=0,"number"!=typeof e||e<1)throw new Error("Cache size can only be positive number");this.sizeLimit=e}return Object.defineProperty(e.prototype,"length",{get:function(){return this.size},enumerable:!0,configurable:!0}),e.prototype.prependToList=function(e){this.headerNode?(this.headerNode.prev=e,e.next=this.headerNode):this.tailNode=e,this.headerNode=e,this.size++},e.prototype.removeFromTail=function(){if(this.tailNode){var e=this.tailNode,t=e.prev;return t&&(t.next=void 0),e.prev=void 0,this.tailNode=t,this.size--,e}},e.prototype.detachFromList=function(e){this.headerNode===e&&(this.headerNode=e.next),this.tailNode===e&&(this.tailNode=e.prev),e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.next=void 0,e.prev=void 0,this.size--},e.prototype.get=function(e){if(this.nodeMap[e]){var t=this.nodeMap[e];return this.detachFromList(t),this.prependToList(t),t.value}},e.prototype.remove=function(e){if(this.nodeMap[e]){var t=this.nodeMap[e];this.detachFromList(t),delete this.nodeMap[e]}},e.prototype.put=function(e,t){if(this.nodeMap[e])this.remove(e);else if(this.size===this.sizeLimit){var r=this.removeFromTail(),a=r.key;delete this.nodeMap[a]}var s=new i(e,t);this.nodeMap[e]=s,this.prependToList(s)},e.prototype.empty=function(){for(var e=Object.keys(this.nodeMap),t=0;t<e.length;t++){var r=e[t],i=this.nodeMap[r];this.detachFromList(i),delete this.nodeMap[r]}},e}();r.LRUCache=a},{}],451:[function(e,t,r){e("./browser_loader");var i=e("./core");"undefined"!=typeof window&&(window.AWS=i),void 0!==t&&(t.exports=i),"undefined"!=typeof self&&(self.AWS=i),e("../clients/browser_default")},{"../clients/browser_default":245,"./browser_loader":338,"./core":342}]},{},[451]);
|
|
85
|
+
this.port?this.port=parseInt(this.port,10):this.port="https:"===this.protocol?443:80}}),i.HttpRequest=a({constructor:function(e,t){e=new i.Endpoint(e),this.method="POST",this.path=e.path||"/",this.headers={},this.body="",this.endpoint=e,this.region=t,this._userAgent="",this.setUserAgent()},setUserAgent:function(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=i.util.userAgent()},getUserAgentHeaderName:function(){return(i.util.isBrowser()?"X-Amz-":"")+"User-Agent"},appendToUserAgent:function(e){"string"==typeof e&&e&&(this._userAgent+=" "+e),this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function(){return this._userAgent},pathname:function(){return this.path.split("?",1)[0]},search:function(){var e=this.path.split("?",2)[1];return e?(e=i.util.queryStringParse(e),i.util.queryParamsToString(e)):""},updateEndpoint:function(e){var t=new i.Endpoint(e);this.endpoint=t,this.path=t.path||"/",this.headers.Host&&(this.headers.Host=t.host)}}),i.HttpResponse=a({constructor:function(){this.statusCode=void 0,this.headers={},this.body=void 0,this.streaming=!1,this.stream=null},createUnbufferedStream:function(){return this.streaming=!0,this.stream}}),i.HttpClient=a({}),i.HttpClient.getInstance=function(){return void 0===this.singleton&&(this.singleton=new this),this.singleton}},{"./core":342}],365:[function(e,t,r){var i=e("../core"),a=e("events").EventEmitter;e("../http"),i.XHRClient=i.util.inherit({handleRequest:function(e,t,r,s){var o=this,n=e.endpoint,u=new a,p=n.protocol+"//"+n.hostname;80!==n.port&&443!==n.port&&(p+=":"+n.port),p+=e.path;var m=new XMLHttpRequest,c=!1;e.stream=m,m.addEventListener("readystatechange",function(){try{if(0===m.status)return}catch(e){return}this.readyState>=this.HEADERS_RECEIVED&&!c&&(u.statusCode=m.status,u.headers=o.parseHeaders(m.getAllResponseHeaders()),u.emit("headers",u.statusCode,u.headers,m.statusText),c=!0),this.readyState===this.DONE&&o.finishRequest(m,u)},!1),m.upload.addEventListener("progress",function(e){u.emit("sendProgress",e)}),m.addEventListener("progress",function(e){u.emit("receiveProgress",e)},!1),m.addEventListener("timeout",function(){s(i.util.error(new Error("Timeout"),{code:"TimeoutError"}))},!1),m.addEventListener("error",function(){s(i.util.error(new Error("Network Failure"),{code:"NetworkingError"}))},!1),m.addEventListener("abort",function(){s(i.util.error(new Error("Request aborted"),{code:"RequestAbortedError"}))},!1),r(u),m.open(e.method,p,!1!==t.xhrAsync),i.util.each(e.headers,function(e,t){"Content-Length"!==e&&"User-Agent"!==e&&"Host"!==e&&m.setRequestHeader(e,t)}),t.timeout&&!1!==t.xhrAsync&&(m.timeout=t.timeout),t.xhrWithCredentials&&(m.withCredentials=!0);try{m.responseType="arraybuffer"}catch(e){}try{e.body?m.send(e.body):m.send()}catch(t){if(!e.body||"object"!=typeof e.body.buffer)throw t;m.send(e.body.buffer)}return u},parseHeaders:function(e){var t={};return i.util.arrayEach(e.split(/\r?\n/),function(e){var r=e.split(":",1)[0],i=e.substring(r.length+2);r.length>0&&(t[r.toLowerCase()]=i)}),t},finishRequest:function(e,t){var r;if("arraybuffer"===e.responseType&&e.response){var a=e.response;r=new i.util.Buffer(a.byteLength);for(var s=new Uint8Array(a),o=0;o<r.length;++o)r[o]=s[o]}try{r||"string"!=typeof e.responseText||(r=new i.util.Buffer(e.responseText))}catch(e){}r&&t.emit("data",r),t.emit("end")}}),i.HttpClient.prototype=i.XHRClient.prototype,i.HttpClient.streamsApiVersion=1},{"../core":342,"../http":364,events:427}],366:[function(e,t,r){function i(){}function a(e,t){if(t&&void 0!==e&&null!==e)switch(t.type){case"structure":return s(e,t);case"map":return n(e,t);case"list":return o(e,t);default:return u(e,t)}}function s(e,t){if(t.isDocument)return e;var r={};return p.each(e,function(e,i){var s=t.members[e];if(s){if("body"!==s.location)return;var o=s.isLocationName?s.name:e,n=a(i,s);void 0!==n&&(r[o]=n)}}),r}function o(e,t){var r=[];return p.arrayEach(e,function(e){var i=a(e,t.member);void 0!==i&&r.push(i)}),r}function n(e,t){var r={};return p.each(e,function(e,i){var s=a(i,t.value);void 0!==s&&(r[e]=s)}),r}function u(e,t){return t.toWireFormat(e)}var p=e("../util");i.prototype.build=function(e,t){return JSON.stringify(a(e,t))},t.exports=i},{"../util":417}],367:[function(e,t,r){function i(){}function a(e,t){if(t&&void 0!==e)switch(t.type){case"structure":return s(e,t);case"map":return n(e,t);case"list":return o(e,t);default:return u(e,t)}}function s(e,t){if(null!=e){if(t.isDocument)return e;var r={},i=t.members;return p.each(i,function(t,i){var s=i.isLocationName?i.name:t;if(Object.prototype.hasOwnProperty.call(e,s)){var o=e[s],n=a(o,i);void 0!==n&&(r[t]=n)}}),r}}function o(e,t){if(null!=e){var r=[];return p.arrayEach(e,function(e){var i=a(e,t.member);void 0===i?r.push(null):r.push(i)}),r}}function n(e,t){if(null!=e){var r={};return p.each(e,function(e,i){var s=a(i,t.value);r[e]=void 0===s?null:s}),r}}function u(e,t){return t.toType(e)}var p=e("../util");i.prototype.parse=function(e,t){return a(JSON.parse(e),t)},t.exports=i},{"../util":417}],368:[function(e,t,r){function i(e,t){function r(e,t){!0===t.endpointoperation&&c(i,"endpointOperation",m.string.lowerFirst(e)),t.endpointdiscovery&&!i.hasRequiredEndpointDiscovery&&c(i,"hasRequiredEndpointDiscovery",!0===t.endpointdiscovery.required)}var i=this;e=e||{},t=t||{},t.api=this,e.metadata=e.metadata||{};var d=t.serviceIdentifier;delete t.serviceIdentifier,c(this,"isApi",!0,!1),c(this,"apiVersion",e.metadata.apiVersion),c(this,"endpointPrefix",e.metadata.endpointPrefix),c(this,"signingName",e.metadata.signingName),c(this,"globalEndpoint",e.metadata.globalEndpoint),c(this,"signatureVersion",e.metadata.signatureVersion),c(this,"jsonVersion",e.metadata.jsonVersion),c(this,"targetPrefix",e.metadata.targetPrefix),c(this,"protocol",e.metadata.protocol),c(this,"timestampFormat",e.metadata.timestampFormat),c(this,"xmlNamespaceUri",e.metadata.xmlNamespace),c(this,"abbreviation",e.metadata.serviceAbbreviation),c(this,"fullName",e.metadata.serviceFullName),c(this,"serviceId",e.metadata.serviceId),d&&p[d]&&c(this,"xmlNoDefaultLists",p[d].xmlNoDefaultLists,!1),l(this,"className",function(){var t=e.metadata.serviceAbbreviation||e.metadata.serviceFullName;return t?(t=t.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,""),"ElasticLoadBalancing"===t&&(t="ELB"),t):null}),c(this,"operations",new a(e.operations,t,function(e,r){return new s(e,r,t)},m.string.lowerFirst,r)),c(this,"shapes",new a(e.shapes,t,function(e,r){return o.create(r,t)})),c(this,"paginators",new a(e.paginators,t,function(e,r){return new n(e,r,t)})),c(this,"waiters",new a(e.waiters,t,function(e,r){return new u(e,r,t)},m.string.lowerFirst)),t.documentation&&(c(this,"documentation",e.documentation),c(this,"documentationUrl",e.documentationUrl))}var a=e("./collection"),s=e("./operation"),o=e("./shape"),n=e("./paginator"),u=e("./resource_waiter"),p=e("../../apis/metadata.json"),m=e("../util"),c=m.property,l=m.memoizedProperty;t.exports=i},{"../../apis/metadata.json":163,"../util":417,"./collection":369,"./operation":370,"./paginator":371,"./resource_waiter":372,"./shape":373}],369:[function(e,t,r){function i(e,t,r,i){s(this,i(e),function(){return r(e,t)})}function a(e,t,r,a,s){a=a||String;var o=this;for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i.call(o,n,e[n],r,a),s&&s(n,e[n]))}var s=e("../util").memoizedProperty;t.exports=a},{"../util":417}],370:[function(e,t,r){function i(e,t,r){var i=this;r=r||{},n(this,"name",t.name||e),n(this,"api",r.api,!1),t.http=t.http||{},n(this,"endpoint",t.endpoint),n(this,"httpMethod",t.http.method||"POST"),n(this,"httpPath",t.http.requestUri||"/"),n(this,"authtype",t.authtype||""),n(this,"endpointDiscoveryRequired",t.endpointdiscovery?t.endpointdiscovery.required?"REQUIRED":"OPTIONAL":"NULL"),n(this,"httpChecksumRequired",t.httpChecksumRequired,!1),u(this,"input",function(){return t.input?s.create(t.input,r):new s.create({type:"structure"},r)}),u(this,"output",function(){return t.output?s.create(t.output,r):new s.create({type:"structure"},r)}),u(this,"errors",function(){var e=[];if(!t.errors)return null;for(var i=0;i<t.errors.length;i++)e.push(s.create(t.errors[i],r));return e}),u(this,"paginator",function(){return r.api.paginators[e]}),r.documentation&&(n(this,"documentation",t.documentation),n(this,"documentationUrl",t.documentationUrl)),u(this,"idempotentMembers",function(){var e=[],t=i.input,r=t.members;if(!t.members)return e;for(var a in r)r.hasOwnProperty(a)&&!0===r[a].isIdempotent&&e.push(a);return e}),u(this,"hasEventOutput",function(){return a(i.output)})}function a(e){var t=e.members,r=e.payload;if(!e.members)return!1;if(r){return t[r].isEventStream}for(var i in t)if(!t.hasOwnProperty(i)&&!0===t[i].isEventStream)return!0;return!1}var s=e("./shape"),o=e("../util"),n=o.property,u=o.memoizedProperty;t.exports=i},{"../util":417,"./shape":373}],371:[function(e,t,r){function i(e,t){a(this,"inputToken",t.input_token),a(this,"limitKey",t.limit_key),a(this,"moreResults",t.more_results),a(this,"outputToken",t.output_token),a(this,"resultKey",t.result_key)}var a=e("../util").property;t.exports=i},{"../util":417}],372:[function(e,t,r){function i(e,t,r){r=r||{},s(this,"name",e),s(this,"api",r.api,!1),t.operation&&s(this,"operation",a.string.lowerFirst(t.operation));var i=this;["type","description","delay","maxAttempts","acceptors"].forEach(function(e){var r=t[e];r&&s(i,e,r)})}var a=e("../util"),s=a.property;t.exports=i},{"../util":417}],373:[function(e,t,r){function i(e,t,r){null!==r&&void 0!==r&&h.property.apply(this,arguments)}function a(e,t){e.constructor.prototype[t]||h.memoizedProperty.apply(this,arguments)}function s(e,t,r){t=t||{},i(this,"shape",e.shape),i(this,"api",t.api,!1),i(this,"type",e.type),i(this,"enum",e.enum),i(this,"min",e.min),i(this,"max",e.max),i(this,"pattern",e.pattern),i(this,"location",e.location||this.location||"body"),i(this,"name",this.name||e.xmlName||e.queryName||e.locationName||r),i(this,"isStreaming",e.streaming||this.isStreaming||!1),i(this,"requiresLength",e.requiresLength,!1),i(this,"isComposite",e.isComposite||!1),i(this,"isShape",!0,!1),i(this,"isQueryName",Boolean(e.queryName),!1),i(this,"isLocationName",Boolean(e.locationName),!1),i(this,"isIdempotent",!0===e.idempotencyToken),i(this,"isJsonValue",!0===e.jsonvalue),i(this,"isSensitive",!0===e.sensitive||e.prototype&&!0===e.prototype.sensitive),i(this,"isEventStream",Boolean(e.eventstream),!1),i(this,"isEvent",Boolean(e.event),!1),i(this,"isEventPayload",Boolean(e.eventpayload),!1),i(this,"isEventHeader",Boolean(e.eventheader),!1),i(this,"isTimestampFormatSet",Boolean(e.timestampFormat)||e.prototype&&!0===e.prototype.isTimestampFormatSet,!1),i(this,"endpointDiscoveryId",Boolean(e.endpointdiscoveryid),!1),i(this,"hostLabel",Boolean(e.hostLabel),!1),t.documentation&&(i(this,"documentation",e.documentation),i(this,"documentationUrl",e.documentationUrl)),e.xmlAttribute&&i(this,"isXmlAttribute",e.xmlAttribute||!1),i(this,"defaultValue",null),this.toWireFormat=function(e){return null===e||void 0===e?"":e},this.toType=function(e){return e}}function o(e){s.apply(this,arguments),i(this,"isComposite",!0),e.flattened&&i(this,"flattened",e.flattened||!1)}function n(e,t){var r=this,n=null,u=!this.isShape;o.apply(this,arguments),u&&(i(this,"defaultValue",function(){return{}}),i(this,"members",{}),i(this,"memberNames",[]),i(this,"required",[]),i(this,"isRequired",function(){return!1}),i(this,"isDocument",Boolean(e.document))),e.members&&(i(this,"members",new g(e.members,t,function(e,r){return s.create(r,t,e)})),a(this,"memberNames",function(){return e.xmlOrder||Object.keys(e.members)}),e.event&&(a(this,"eventPayloadMemberName",function(){for(var e=r.members,t=r.memberNames,i=0,a=t.length;i<a;i++)if(e[t[i]].isEventPayload)return t[i]}),a(this,"eventHeaderMemberNames",function(){for(var e=r.members,t=r.memberNames,i=[],a=0,s=t.length;a<s;a++)e[t[a]].isEventHeader&&i.push(t[a]);return i}))),e.required&&(i(this,"required",e.required),i(this,"isRequired",function(t){if(!n){n={};for(var r=0;r<e.required.length;r++)n[e.required[r]]=!0}return n[t]},!1,!0)),i(this,"resultWrapper",e.resultWrapper||null),e.payload&&i(this,"payload",e.payload),"string"==typeof e.xmlNamespace?i(this,"xmlNamespaceUri",e.xmlNamespace):"object"==typeof e.xmlNamespace&&(i(this,"xmlNamespacePrefix",e.xmlNamespace.prefix),i(this,"xmlNamespaceUri",e.xmlNamespace.uri))}function u(e,t){var r=this,n=!this.isShape;if(o.apply(this,arguments),n&&i(this,"defaultValue",function(){return[]}),e.member&&a(this,"member",function(){return s.create(e.member,t)}),this.flattened){var u=this.name;a(this,"name",function(){return r.member.name||u})}}function p(e,t){var r=!this.isShape;o.apply(this,arguments),r&&(i(this,"defaultValue",function(){return{}}),i(this,"key",s.create({type:"string"},t)),i(this,"value",s.create({type:"string"},t))),e.key&&a(this,"key",function(){return s.create(e.key,t)}),e.value&&a(this,"value",function(){return s.create(e.value,t)})}function m(e){var t=this;if(s.apply(this,arguments),e.timestampFormat)i(this,"timestampFormat",e.timestampFormat);else if(t.isTimestampFormatSet&&this.timestampFormat)i(this,"timestampFormat",this.timestampFormat);else if("header"===this.location)i(this,"timestampFormat","rfc822");else if("querystring"===this.location)i(this,"timestampFormat","iso8601");else if(this.api)switch(this.api.protocol){case"json":case"rest-json":i(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":i(this,"timestampFormat","iso8601")}this.toType=function(e){return null===e||void 0===e?null:"function"==typeof e.toUTCString?e:"string"==typeof e||"number"==typeof e?h.date.parseTimestamp(e):null},this.toWireFormat=function(e){return h.date.format(e,t.timestampFormat)}}function c(){s.apply(this,arguments);var e=["rest-xml","query","ec2"];this.toType=function(t){return t=this.api&&e.indexOf(this.api.protocol)>-1?t||"":t,this.isJsonValue?JSON.parse(t):t&&"function"==typeof t.toString?t.toString():t},this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function l(){s.apply(this,arguments),this.toType=function(e){return null===e||void 0===e?null:parseFloat(e)},this.toWireFormat=this.toType}function d(){s.apply(this,arguments),this.toType=function(e){return null===e||void 0===e?null:parseInt(e,10)},this.toWireFormat=this.toType}function y(){s.apply(this,arguments),this.toType=function(e){var t=h.base64.decode(e);if(this.isSensitive&&h.isNode()&&"function"==typeof h.Buffer.alloc){var r=h.Buffer.alloc(t.length,t);t.fill(0),t=r}return t},this.toWireFormat=h.base64.encode}function b(){y.apply(this,arguments)}function S(){s.apply(this,arguments),this.toType=function(e){return"boolean"==typeof e?e:null===e||void 0===e?null:"true"===e}}var g=e("./collection"),h=e("../util");s.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},s.types={structure:n,list:u,map:p,boolean:S,timestamp:m,float:l,integer:d,string:c,base64:b,binary:y},s.resolve=function(e,t){if(e.shape){var r=t.api.shapes[e.shape];if(!r)throw new Error("Cannot find shape reference: "+e.shape);return r}return null},s.create=function(e,t,r){if(e.isShape)return e;var i=s.resolve(e,t);if(i){var a=Object.keys(e);t.documentation||(a=a.filter(function(e){return!e.match(/documentation/)}));var o=function(){i.constructor.call(this,e,t,r)};return o.prototype=i,new o}e.type||(e.members?e.type="structure":e.member?e.type="list":e.key?e.type="map":e.type="string");var n=e.type;if(s.normalizedTypes[e.type]&&(e.type=s.normalizedTypes[e.type]),s.types[e.type])return new s.types[e.type](e,t,r);throw new Error("Unrecognized shape type: "+n)},s.shapes={StructureShape:n,ListShape:u,MapShape:p,StringShape:c,BooleanShape:S,Base64Shape:b},t.exports=s},{"../util":417,"./collection":369}],374:[function(e,t,r){var i=e("./core");i.ParamValidator=i.util.inherit({constructor:function(e){!0!==e&&void 0!==e||(e={min:!0}),this.validation=e},validate:function(e,t,r){if(this.errors=[],this.validateMember(e,t||{},r||"params"),this.errors.length>1){var a=this.errors.join("\n* ");throw a="There were "+this.errors.length+" validation errors:\n* "+a,i.util.error(new Error(a),{code:"MultipleValidationErrors",errors:this.errors})}if(1===this.errors.length)throw this.errors[0];return!0},fail:function(e,t){this.errors.push(i.util.error(new Error(t),{code:e}))},validateStructure:function(e,t,r){this.validateType(t,r,["object"],"structure");for(var i,a=0;e.required&&a<e.required.length;a++){i=e.required[a];var s=t[i];void 0!==s&&null!==s||this.fail("MissingRequiredParameter","Missing required key '"+i+"' in "+r)}for(i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var o=t[i],n=e.members[i];if(void 0!==n){var u=[r,i].join(".");this.validateMember(n,o,u)}else void 0!==o&&null!==o&&this.fail("UnexpectedParameter","Unexpected key '"+i+"' found in "+r)}return!0},validateMember:function(e,t,r){switch(e.type){case"structure":return this.validateStructure(e,t,r);case"list":return this.validateList(e,t,r);case"map":return this.validateMap(e,t,r);default:return this.validateScalar(e,t,r)}},validateList:function(e,t,r){if(this.validateType(t,r,[Array])){this.validateRange(e,t.length,r,"list member count");for(var i=0;i<t.length;i++)this.validateMember(e.member,t[i],r+"["+i+"]")}},validateMap:function(e,t,r){if(this.validateType(t,r,["object"],"map")){var i=0;for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(this.validateMember(e.key,a,r+"[key='"+a+"']"),this.validateMember(e.value,t[a],r+"['"+a+"']"),i++);this.validateRange(e,i,r,"map member count")}},validateScalar:function(e,t,r){switch(e.type){case null:case void 0:case"string":return this.validateString(e,t,r);case"base64":case"binary":return this.validatePayload(t,r);case"integer":case"float":return this.validateNumber(e,t,r);case"boolean":return this.validateType(t,r,["boolean"]);case"timestamp":return this.validateType(t,r,[Date,/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$/,"number"],"Date object, ISO-8601 string, or a UNIX timestamp");default:return this.fail("UnkownType","Unhandled type "+e.type+" for "+r)}},validateString:function(e,t,r){var i=["string"];e.isJsonValue&&(i=i.concat(["number","object","boolean"])),null!==t&&this.validateType(t,r,i)&&(this.validateEnum(e,t,r),this.validateRange(e,t.length,r,"string length"),this.validatePattern(e,t,r),this.validateUri(e,t,r))},validateUri:function(e,t,r){"uri"===e.location&&0===t.length&&this.fail("UriParameterError",'Expected uri parameter to have length >= 1, but found "'+t+'" for '+r)},validatePattern:function(e,t,r){this.validation.pattern&&void 0!==e.pattern&&(new RegExp(e.pattern).test(t)||this.fail("PatternMatchError",'Provided value "'+t+'" does not match regex pattern /'+e.pattern+"/ for "+r))},validateRange:function(e,t,r,i){this.validation.min&&void 0!==e.min&&t<e.min&&this.fail("MinRangeError","Expected "+i+" >= "+e.min+", but found "+t+" for "+r),this.validation.max&&void 0!==e.max&&t>e.max&&this.fail("MaxRangeError","Expected "+i+" <= "+e.max+", but found "+t+" for "+r)},validateEnum:function(e,t,r){this.validation.enum&&void 0!==e.enum&&-1===e.enum.indexOf(t)&&this.fail("EnumError","Found string value of "+t+", but expected "+e.enum.join("|")+" for "+r)},validateType:function(e,t,r,a){if(null===e||void 0===e)return!1;for(var s=!1,o=0;o<r.length;o++){if("string"==typeof r[o]){if(typeof e===r[o])return!0}else if(r[o]instanceof RegExp){if((e||"").toString().match(r[o]))return!0}else{if(e instanceof r[o])return!0;if(i.util.isType(e,r[o]))return!0;a||s||(r=r.slice()),r[o]=i.util.typeName(r[o])}s=!0}var n=a;n||(n=r.join(", ").replace(/,([^,]+)$/,", or$1"));var u=n.match(/^[aeiou]/i)?"n":"";return this.fail("InvalidParameterType","Expected "+t+" to be a"+u+" "+n),!1},validateNumber:function(e,t,r){if(null!==t&&void 0!==t){if("string"==typeof t){var i=parseFloat(t);i.toString()===t&&(t=i)}this.validateType(t,r,["number"])&&this.validateRange(e,t,r,"numeric value")}},validatePayload:function(e,t){if(null!==e&&void 0!==e&&"string"!=typeof e&&(!e||"number"!=typeof e.byteLength)){if(i.util.isNode()){var r=i.util.stream.Stream;if(i.util.Buffer.isBuffer(e)||e instanceof r)return}else if(void 0!==typeof Blob&&e instanceof Blob)return;var a=["Buffer","Stream","File","Blob","ArrayBuffer","DataView"];if(e)for(var s=0;s<a.length;s++){if(i.util.isType(e,a[s]))return;if(i.util.typeName(e.constructor)===a[s])return}this.fail("InvalidParameterType","Expected "+t+" to be a string, Buffer, Stream, Blob, or typed array object")}}})},{"./core":342}],375:[function(e,t,r){var i=e("../core"),a=i.Protocol.Rest;i.Polly.Presigner=i.util.inherit({constructor:function(e){e=e||{},this.options=e,this.service=e.service,this.bindServiceObject(e),this._operations={}},bindServiceObject:function(e){if(e=e||{},this.service){var t=i.util.copy(this.service.config);this.service=new this.service.constructor.__super__(t),this.service.config.params=i.util.merge(this.service.config.params||{},e.params)}else this.service=new i.Polly(e)},modifyInputMembers:function(e){var t=i.util.copy(e);return t.members=i.util.copy(e.members),i.util.each(e.members,function(e,r){t.members[e]=i.util.copy(r),r.location&&"body"!==r.location||(t.members[e].location="querystring",t.members[e].locationName=e)}),t},convertPostToGet:function(e){e.httpRequest.method="GET";var t=e.service.api.operations[e.operation],r=this._operations[e.operation];r||(this._operations[e.operation]=r=this.modifyInputMembers(t.input));var i=a.generateURI(e.httpRequest.endpoint.path,t.httpPath,r,e.params);e.httpRequest.path=i,e.httpRequest.body="",delete e.httpRequest.headers["Content-Length"],delete e.httpRequest.headers["Content-Type"]},getSynthesizeSpeechUrl:function(e,t,r){var i=this,a=this.service.makeRequest("synthesizeSpeech",e);return a.removeAllListeners("build"),a.on("build",function(e){i.convertPostToGet(e)}),a.presign(t,r)}})},{"../core":342}],376:[function(e,t,r){function i(e){if(!e.service.config.hostPrefixEnabled)return e;var t=e.service.api.operations[e.operation];if(a(e))return e;if(t.endpoint&&t.endpoint.hostPrefix){var r=t.endpoint.hostPrefix,i=s(r,e.params,t.input);o(e.httpRequest.endpoint,i),n(e.httpRequest.endpoint.hostname)}return e}function a(e){var t=e.service.api,r=t.operations[e.operation],i=t.endpointOperation&&t.endpointOperation===u.string.lowerFirst(r.name);return"NULL"!==r.endpointDiscoveryRequired||!0===i}function s(e,t,r){return u.each(r.members,function(r,i){if(!0===i.hostLabel){if("string"!=typeof t[r]||""===t[r])throw u.error(new Error,{message:"Parameter "+r+" should be a non-empty string.",code:"InvalidParameter"});var a=new RegExp("\\{"+r+"\\}","g");e=e.replace(a,t[r])}}),e}function o(e,t){e.host&&(e.host=t+e.host),e.hostname&&(e.hostname=t+e.hostname)}function n(e){var t=e.split("."),r=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/;u.arrayEach(t,function(e){if(!e.length||e.length<1||e.length>63)throw u.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."});if(!r.test(e))throw p.util.error(new Error,{code:"ValidationError",message:e+" is not hostname compatible."})})}var u=e("../util"),p=e("../core");t.exports={populateHostPrefix:i}},{"../core":342,"../util":417}],377:[function(e,t,r){function i(e){var t=e.httpRequest,r=e.service.api,i=r.targetPrefix+"."+r.operations[e.operation].name,a=r.jsonVersion||"1.0",s=r.operations[e.operation].input,o=new n;1===a&&(a="1.0"),t.body=o.build(e.params||{},s),t.headers["Content-Type"]="application/x-amz-json-"+a,t.headers["X-Amz-Target"]=i,p(e)}function a(e){var t={},r=e.httpResponse;if(t.code=r.headers["x-amzn-errortype"]||"UnknownError","string"==typeof t.code&&(t.code=t.code.split(":")[0]),r.body.length>0)try{var i=JSON.parse(r.body.toString()),a=i.__type||i.code||i.Code;a&&(t.code=a.split("#").pop()),"RequestEntityTooLarge"===t.code?t.message="Request body must be less than 1 MB":t.message=i.message||i.Message||null}catch(i){t.statusCode=r.statusCode,t.message=r.statusMessage}else t.statusCode=r.statusCode,t.message=r.statusCode.toString();e.error=o.error(new Error,t)}function s(e){var t=e.httpResponse.body.toString()||"{}";if(!1===e.request.service.config.convertResponseTypes)e.data=JSON.parse(t);else{var r=e.request.service.api.operations[e.request.operation],i=r.output||{},a=new u;e.data=a.parse(t,i)}}var o=e("../util"),n=e("../json/builder"),u=e("../json/parser"),p=e("./helpers").populateHostPrefix;t.exports={buildRequest:i,extractError:a,extractData:s}},{"../json/builder":366,"../json/parser":367,"../util":417,"./helpers":376}],378:[function(e,t,r){function i(e){var t=e.service.api.operations[e.operation],r=e.httpRequest;r.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",r.params={Version:e.service.api.apiVersion,Action:t.name},(new u).serialize(e.params,t.input,function(e,t){r.params[e]=t}),r.body=n.queryParamsToString(r.params),m(e)}function a(e){var t,r=e.httpResponse.body.toString();if(r.match("<UnknownOperationException"))t={Code:"UnknownOperation",Message:"Unknown operation "+e.request.operation};else try{t=(new o.XML.Parser).parse(r)}catch(r){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}t.requestId&&!e.requestId&&(e.requestId=t.requestId),t.Errors&&(t=t.Errors),t.Error&&(t=t.Error),t.Code?e.error=n.error(new Error,{code:t.Code,message:t.Message}):e.error=n.error(new Error,{code:e.httpResponse.statusCode,message:null})}function s(e){var t=e.request,r=t.service.api.operations[t.operation],i=r.output||{},a=i;if(a.resultWrapper){var s=p.create({type:"structure"});s.members[a.resultWrapper]=i,s.memberNames=[a.resultWrapper],n.property(i,"name",i.resultWrapper),i=s}var u=new o.XML.Parser;if(i&&i.members&&!i.members._XAMZRequestId){var m=p.create({type:"string"},{api:{protocol:"query"}},"requestId");i.members._XAMZRequestId=m}var c=u.parse(e.httpResponse.body.toString(),i);e.requestId=c._XAMZRequestId||c.requestId,c._XAMZRequestId&&delete c._XAMZRequestId,a.resultWrapper&&c[a.resultWrapper]&&(n.update(c,c[a.resultWrapper]),delete c[a.resultWrapper]),e.data=c}var o=e("../core"),n=e("../util"),u=e("../query/query_param_serializer"),p=e("../model/shape"),m=e("./helpers").populateHostPrefix;t.exports={buildRequest:i,extractError:a,extractData:s}},{"../core":342,"../model/shape":373,"../query/query_param_serializer":382,"../util":417,"./helpers":376}],379:[function(e,t,r){function i(e){e.httpRequest.method=e.service.api.operations[e.operation].httpMethod}function a(e,t,r,i){var a=[e,t].join("/");a=a.replace(/\/+/g,"/");var s={},o=!1;if(m.each(r.members,function(e,t){var r=i[e];if(null!==r&&void 0!==r)if("uri"===t.location){var n=new RegExp("\\{"+t.name+"(\\+)?\\}");a=a.replace(n,function(e,t){return(t?m.uriEscapePath:m.uriEscape)(String(r))})}else"querystring"===t.location&&(o=!0,"list"===t.type?s[t.name]=r.map(function(e){return m.uriEscape(t.member.toWireFormat(e).toString())}):"map"===t.type?m.each(r,function(e,t){Array.isArray(t)?s[e]=t.map(function(e){return m.uriEscape(String(e))}):s[e]=m.uriEscape(String(t))}):s[t.name]=m.uriEscape(t.toWireFormat(r).toString()))}),o){a+=a.indexOf("?")>=0?"&":"?";var n=[];m.arrayEach(Object.keys(s).sort(),function(e){Array.isArray(s[e])||(s[e]=[s[e]]);for(var t=0;t<s[e].length;t++)n.push(m.uriEscape(String(e))+"="+s[e][t])}),a+=n.join("&")}return a}function s(e){var t=e.service.api.operations[e.operation],r=t.input,i=a(e.httpRequest.endpoint.path,t.httpPath,r,e.params);e.httpRequest.path=i}function o(e){var t=e.service.api.operations[e.operation];m.each(t.input.members,function(t,r){var i=e.params[t];null!==i&&void 0!==i&&("headers"===r.location&&"map"===r.type?m.each(i,function(t,i){e.httpRequest.headers[r.name+t]=i}):"header"===r.location&&(i=r.toWireFormat(i).toString(),r.isJsonValue&&(i=m.base64.encode(i)),e.httpRequest.headers[r.name]=i))})}function n(e){i(e),s(e),o(e),c(e)}function u(){}function p(e){var t=e.request,r={},i=e.httpResponse,a=t.service.api.operations[t.operation],s=a.output,o={};m.each(i.headers,function(e,t){o[e.toLowerCase()]=t}),m.each(s.members,function(e,t){var a=(t.name||e).toLowerCase();if("headers"===t.location&&"map"===t.type){r[e]={};var s=t.isLocationName?t.name:"",n=new RegExp("^"+s+"(.+)","i");m.each(i.headers,function(t,i){var a=t.match(n);null!==a&&(r[e][a[1]]=i)})}else if("header"===t.location){if(void 0!==o[a]){var u=t.isJsonValue?m.base64.decode(o[a]):o[a];r[e]=t.toType(u)}}else"statusCode"===t.location&&(r[e]=parseInt(i.statusCode,10))}),e.data=r}var m=e("../util"),c=e("./helpers").populateHostPrefix;t.exports={buildRequest:n,extractError:u,extractData:p,generateURI:a}},{"../util":417,"./helpers":376}],380:[function(e,t,r){function i(e){var t=new c,r=e.service.api.operations[e.operation].input;if(r.payload){var i={},s=r.members[r.payload];i=e.params[r.payload],"structure"===s.type?(e.httpRequest.body=t.build(i||{},s),a(e)):void 0!==i&&(e.httpRequest.body=i,("binary"===s.type||s.isStreaming)&&a(e,!0))}else e.httpRequest.body=t.build(e.params,r),a(e)}function a(e,t){if(!e.httpRequest.headers["Content-Type"]){var r=t?"binary/octet-stream":"application/json";e.httpRequest.headers["Content-Type"]=r}}function s(e){p.buildRequest(e),["GET","HEAD","DELETE"].indexOf(e.httpRequest.method)<0&&i(e)}function o(e){m.extractError(e)}function n(e){p.extractData(e);var t,r=e.request,i=r.service.api.operations[r.operation],a=r.service.api.operations[r.operation].output||{};i.hasEventOutput;if(a.payload){var s=a.members[a.payload],o=e.httpResponse.body;if(s.isEventStream)t=new l,e.data[payload]=u.createEventStream(2===AWS.HttpClient.streamsApiVersion?e.httpResponse.stream:o,t,s);else if("structure"===s.type||"list"===s.type){var t=new l;e.data[a.payload]=t.parse(o,s)}else"binary"===s.type||s.isStreaming?e.data[a.payload]=o:e.data[a.payload]=s.toType(o)}else{var n=e.data;m.extractData(e),e.data=u.merge(n,e.data)}}var u=e("../util"),p=e("./rest"),m=e("./json"),c=e("../json/builder"),l=e("../json/parser");t.exports={buildRequest:s,extractError:o,extractData:n}},{"../json/builder":366,"../json/parser":367,"../util":417,"./json":377,"./rest":379}],381:[function(e,t,r){function i(e){var t=e.service.api.operations[e.operation].input,r=new n.XML.Builder,i=e.params,a=t.payload;if(a){var s=t.members[a];if(void 0===(i=i[a]))return;if("structure"===s.type){var o=s.name;e.httpRequest.body=r.toXML(i,s,o,!0)}else e.httpRequest.body=i}else e.httpRequest.body=r.toXML(i,t,t.name||t.shape||u.string.upperFirst(e.operation)+"Request")}function a(e){p.buildRequest(e),["GET","HEAD"].indexOf(e.httpRequest.method)<0&&i(e)}function s(e){p.extractError(e);var t;try{t=(new n.XML.Parser).parse(e.httpResponse.body.toString())}catch(r){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}t.Errors&&(t=t.Errors),t.Error&&(t=t.Error),t.Code?e.error=u.error(new Error,{code:t.Code,message:t.Message}):e.error=u.error(new Error,{code:e.httpResponse.statusCode,message:null})}function o(e){p.extractData(e);var t,r=e.request,i=e.httpResponse.body,a=r.service.api.operations[r.operation],s=a.output,o=(a.hasEventOutput,s.payload);if(o){var m=s.members[o];m.isEventStream?(t=new n.XML.Parser,e.data[o]=u.createEventStream(2===n.HttpClient.streamsApiVersion?e.httpResponse.stream:e.httpResponse.body,t,m)):"structure"===m.type?(t=new n.XML.Parser,e.data[o]=t.parse(i.toString(),m)):"binary"===m.type||m.isStreaming?e.data[o]=i:e.data[o]=m.toType(i)}else if(i.length>0){t=new n.XML.Parser;var c=t.parse(i.toString(),s);u.update(e.data,c)}}var n=e("../core"),u=e("../util"),p=e("./rest");t.exports={buildRequest:a,extractError:s,extractData:o}},{"../core":342,"../util":417,"./rest":379}],382:[function(e,t,r){function i(){}function a(e){return e.isQueryName||"ec2"!==e.api.protocol?e.name:e.name[0].toUpperCase()+e.name.substr(1)}function s(e,t,r,i){p.each(r.members,function(r,s){var o=t[r];if(null!==o&&void 0!==o){var n=a(s);n=e?e+"."+n:n,u(n,o,s,i)}})}function o(e,t,r,i){var a=1;p.each(t,function(t,s){
|
|
86
|
+
var o=r.flattened?".":".entry.",n=o+a+++".",p=n+(r.key.name||"key"),m=n+(r.value.name||"value");u(e+p,t,r.key,i),u(e+m,s,r.value,i)})}function n(e,t,r,i){var s=r.member||{};if(0===t.length)return void i.call(this,e,null);p.arrayEach(t,function(t,o){var n="."+(o+1);if("ec2"===r.api.protocol)n+="";else if(r.flattened){if(s.name){var p=e.split(".");p.pop(),p.push(a(s)),e=p.join(".")}}else n="."+(s.name?s.name:"member")+n;u(e+n,t,s,i)})}function u(e,t,r,i){null!==t&&void 0!==t&&("structure"===r.type?s(e,t,r,i):"list"===r.type?n(e,t,r,i):"map"===r.type?o(e,t,r,i):i(e,r.toWireFormat(t).toString()))}var p=e("../util");i.prototype.serialize=function(e,t,r){s("",e,t,r)},t.exports=i},{"../util":417}],383:[function(e,t,r){var i=e("../core"),a=null,s={signatureVersion:"v4",signingName:"rds-db",operations:{}},o={region:"string",hostname:"string",port:"number",username:"string"};i.RDS.Signer=i.util.inherit({constructor:function(e){this.options=e||{}},convertUrlToAuthToken:function(e){if(0===e.indexOf("https://"))return e.substring("https://".length)},getAuthToken:function(e,t){"function"==typeof e&&void 0===t&&(t=e,e={});var r=this,o="function"==typeof t;e=i.util.merge(this.options,e);var n=this.validateAuthTokenOptions(e);if(!0!==n){if(o)return t(n,null);throw n}var u={region:e.region,endpoint:new i.Endpoint(e.hostname+":"+e.port),paramValidation:!1,signatureVersion:"v4"};e.credentials&&(u.credentials=e.credentials),a=new i.Service(u),a.api=s;var p=a.makeRequest();if(this.modifyRequestForAuthToken(p,e),!o){var m=p.presign(900);return this.convertUrlToAuthToken(m)}p.presign(900,function(e,i){i&&(i=r.convertUrlToAuthToken(i)),t(e,i)})},modifyRequestForAuthToken:function(e,t){e.on("build",e.buildAsGet),e.httpRequest.body=i.util.queryParamsToString({Action:"connect",DBUser:t.username})},validateAuthTokenOptions:function(e){var t="";e=e||{};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&typeof e[r]!==o[r]&&(t+="option '"+r+"' should have been type '"+o[r]+"', was '"+typeof e[r]+"'.\n");return!t.length||i.util.error(new Error,{code:"InvalidParameter",message:t})}})},{"../core":342}],384:[function(e,t,r){t.exports={now:function(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now():Date.now()}}},{}],385:[function(e,t,r){function i(e){if(!e)return null;if(u(e))return p(e)?"fips-cn-*":"fips-*";var t=e.split("-");return t.length<3?null:t.slice(0,t.length-2).join("-")+"-*"}function a(e){var t=e.config.region,r=i(t),a=e.api.endpointPrefix;return[[t,a],[r,a],[t,"*"],[r,"*"],["*",a],["*","*"]].map(function(e){return e[0]&&e[1]?e.join("/"):null})}function s(e,t){c.each(t,function(t,r){"globalEndpoint"!==t&&(void 0!==e.config[t]&&null!==e.config[t]||(e.config[t]=r))})}function o(e){for(var t=a(e),r=0;r<t.length;r++){var i=t[r];if(i&&Object.prototype.hasOwnProperty.call(l.rules,i)){var o=l.rules[i];return"string"==typeof o&&(o=l.patterns[o]),e.config.useDualstack&&c.isDualstackAvailable(e)&&(o=c.copy(o),o.endpoint=o.endpoint.replace(/{service}\.({region}\.)?/,"{service}.dualstack.{region}.")),u(e.config.region)&&(o=c.copy(o),e.signingRegion=m(e.config.region)),e.isGlobalEndpoint=!!o.globalEndpoint,o.signingRegion&&(e.signingRegion=o.signingRegion),o.signatureVersion||(o.signatureVersion="v4"),void s(e,o)}}}function n(e){for(var t={"^(us|eu|ap|sa|ca|me)\\-\\w+\\-\\d+$":"amazonaws.com","^cn\\-\\w+\\-\\d+$":"amazonaws.com.cn","^us\\-gov\\-\\w+\\-\\d+$":"amazonaws.com","^us\\-iso\\-\\w+\\-\\d+$":"c2s.ic.gov","^us\\-isob\\-\\w+\\-\\d+$":"sc2s.sgov.gov"},r=Object.keys(t),i=0;i<r.length;i++){var a=RegExp(r[i]),s=t[r[i]];if(a.test(e))return s}return"amazonaws.com"}function u(e){return e&&(e.startsWith("fips-")||e.endsWith("-fips"))}function p(e){return e&&e.startsWith("fips-cn-")||e.startsWith("cn-")&&e.endsWith("-fips")}function m(e){return u(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":"fips-aws-us-gov-global"===e?"us-gov-west-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e}var c=e("./util"),l=e("./region_config_data.json");t.exports={configureEndpoint:o,getEndpointSuffix:n,getRealRegion:m}},{"./region_config_data.json":386,"./util":417}],386:[function(e,t,r){t.exports={rules:{"*/*":{endpoint:"{service}.{region}.amazonaws.com"},"fips-*/*":{endpoint:"{service}-fips.{region}.amazonaws.com"},"fips-cn-*/*":{endpoint:"{service}-fips.{region}.amazonaws.com.cn"},"cn-*/*":{endpoint:"{service}.{region}.amazonaws.com.cn"},"us-iso-*/*":{endpoint:"{service}.{region}.c2s.ic.gov"},"us-isob-*/*":{endpoint:"{service}.{region}.sc2s.sgov.gov"},"*/budgets":"globalSSL","*/cloudfront":"globalSSL","*/sts":"globalSSL","*/importexport":{endpoint:"{service}.amazonaws.com",signatureVersion:"v2",globalEndpoint:!0},"*/route53":"globalSSL","cn-*/route53":{endpoint:"{service}.amazonaws.com.cn",globalEndpoint:!0,signingRegion:"cn-northwest-1"},"us-gov-*/route53":"globalGovCloud","*/waf":"globalSSL","*/iam":"globalSSL","cn-*/iam":{endpoint:"{service}.cn-north-1.amazonaws.com.cn",globalEndpoint:!0,signingRegion:"cn-north-1"},"us-gov-*/iam":"globalGovCloud","us-gov-*/sts":{endpoint:"{service}.{region}.amazonaws.com"},"us-gov-west-1/s3":"s3signature","us-west-1/s3":"s3signature","us-west-2/s3":"s3signature","eu-west-1/s3":"s3signature","ap-southeast-1/s3":"s3signature","ap-southeast-2/s3":"s3signature","ap-northeast-1/s3":"s3signature","sa-east-1/s3":"s3signature","us-east-1/s3":{endpoint:"{service}.amazonaws.com",signatureVersion:"s3"},"us-east-1/sdb":{endpoint:"{service}.amazonaws.com",signatureVersion:"v2"},"*/sdb":{endpoint:"{service}.{region}.amazonaws.com",signatureVersion:"v2"},"fips-*/api.ecr":{endpoint:"ecr-fips.{region}.amazonaws.com"},"fips-*/api.sagemaker":{endpoint:"api-fips.sagemaker.{region}.amazonaws.com"},"fips-*/batch":{endpoint:"fips.batch.{region}.amazonaws.com"},"fips-*/streams.dynamodb":{endpoint:"dynamodb-fips.{region}.amazonaws.com"},"fips-*/route53":{endpoint:"route53-fips.amazonaws.com"},"fips-*/transcribe":{endpoint:"fips.transcribe.{region}.amazonaws.com"},"fips-*/waf":{endpoint:"waf-fips.amazonaws.com"},"fips-us-gov-east-1/acm-pca":{endpoint:"acm-pca.{region}.amazonaws.com"},"fips-us-gov-west-1/acm-pca":{endpoint:"acm-pca.{region}.amazonaws.com"},"fips-us-gov-east-1/batch":{endpoint:"batch.{region}.amazonaws.com"},"fips-us-gov-west-1/batch":{endpoint:"batch.{region}.amazonaws.com"},"us-gov-east-1-fips/dynamodb":{endpoint:"dynamodb.{region}.amazonaws.com"},"us-gov-west-1-fips/dynamodb":{endpoint:"dynamodb.{region}.amazonaws.com"},"fips-us-gov-east-1/elasticloadbalancing":{endpoint:"elasticloadbalancing.{region}.amazonaws.com"},"fips-us-gov-west-1/elasticloadbalancing":{endpoint:"elasticloadbalancing.{region}.amazonaws.com"},"us-gov-east-1-fips/guardduty":{endpoint:"guardduty.{region}.amazonaws.com"},"us-gov-west-1-fips/guardduty":{endpoint:"guardduty.{region}.amazonaws.com"},"fips-us-gov-east-1/monitoring":{endpoint:"monitoring.{region}.amazonaws.com"},"fips-us-gov-west-1/monitoring":{endpoint:"monitoring.{region}.amazonaws.com"},"fips-aws-us-gov-global/organizations":{endpoint:"organizations.{region}.amazonaws.com"},"fips-us-gov-east-1/resource-groups":{endpoint:"resource-groups.{region}.amazonaws.com"},"fips-us-gov-west-1/resource-groups":{endpoint:"resource-groups.{region}.amazonaws.com"},"fips-aws-us-gov-global/route53":{endpoint:"route53.us-gov.amazonaws.com"},"fips-us-gov-east-1/servicecatalog-appregistry":{endpoint:"servicecatalog-appregistry.{region}.amazonaws.com"},"fips-us-gov-west-1/servicecatalog-appregistry":{endpoint:"servicecatalog-appregistry.{region}.amazonaws.com"},"fips-us-gov-west-1/states":{endpoint:"states.{region}.amazonaws.com"},"us-gov-east-1-fips/streams.dynamodb":{endpoint:"dynamodb.{region}.amazonaws.com"},"us-gov-west-1-fips/streams.dynamodb":{endpoint:"dynamodb.{region}.amazonaws.com"}},patterns:{globalSSL:{endpoint:"https://{service}.amazonaws.com",globalEndpoint:!0,signingRegion:"us-east-1"},globalGovCloud:{endpoint:"{service}.us-gov.amazonaws.com",globalEndpoint:!0,signingRegion:"us-gov-west-1"},s3signature:{endpoint:"{service}.{region}.amazonaws.com",signatureVersion:"s3"}}}},{}],387:[function(e,t,r){(function(t){(function(){function r(e){return Object.prototype.hasOwnProperty.call(u,e._asm.currentState)}var i=e("./core"),a=e("./state_machine"),s=i.util.inherit,o=i.util.domain,n=e("jmespath"),u={success:1,error:1,complete:1},p=new a;p.setupStates=function(){var e=function(e,t){var i=this;i._haltHandlersOnError=!1,i.emit(i._asm.currentState,function(e){if(e)if(r(i)){if(!(o&&i.domain instanceof o.Domain))throw e;e.domainEmitter=i,e.domain=i.domain,e.domainThrown=!1,i.domain.emit("error",e)}else i.response.error=e,t(e);else t(i.response.error)})};this.addState("validate","build","error",e),this.addState("build","afterBuild","restart",e),this.addState("afterBuild","sign","restart",e),this.addState("sign","send","retry",e),this.addState("retry","afterRetry","afterRetry",e),this.addState("afterRetry","sign","error",e),this.addState("send","validateResponse","retry",e),this.addState("validateResponse","extractData","extractError",e),this.addState("extractError","extractData","retry",e),this.addState("extractData","success","retry",e),this.addState("restart","build","error",e),this.addState("success","complete","complete",e),this.addState("error","complete","complete",e),this.addState("complete",null,null,e)},p.setupStates(),i.Request=s({constructor:function(e,t,r){var s=e.endpoint,n=e.config.region,u=e.config.customUserAgent;e.signingRegion?n=e.signingRegion:e.isGlobalEndpoint&&(n="us-east-1"),this.domain=o&&o.active,this.service=e,this.operation=t,this.params=r||{},this.httpRequest=new i.HttpRequest(s,n),this.httpRequest.appendToUserAgent(u),this.startTime=e.getSkewCorrectedDate(),this.response=new i.Response(this),this._asm=new a(p.states,"validate"),this._haltHandlersOnError=!1,i.SequentialExecutor.call(this),this.emit=this.emitEvent},send:function(e){return e&&(this.httpRequest.appendToUserAgent("callback"),this.on("complete",function(t){e.call(t,t.error,t.data)})),this.runTo(),this.response},build:function(e){return this.runTo("send",e)},runTo:function(e,t){return this._asm.runTo(e,t,this),this},abort:function(){return this.removeAllListeners("validateResponse"),this.removeAllListeners("extractError"),this.on("validateResponse",function(e){e.error=i.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:!1})}),this.httpRequest.stream&&!this.httpRequest.stream.didCallback&&(this.httpRequest.stream.abort(),this.httpRequest._abortCallback?this.httpRequest._abortCallback():this.removeAllListeners("send")),this},eachPage:function(e){function t(r){e.call(r,r.error,r.data,function(a){!1!==a&&(r.hasNextPage()?r.nextPage().on("complete",t).send():e.call(r,null,null,i.util.fn.noop))})}e=i.util.fn.makeAsync(e,3),this.on("complete",t).send()},eachItem:function(e){function t(t,a){if(t)return e(t,null);if(null===a)return e(null,null);var s=r.service.paginationConfig(r.operation),o=s.resultKey;Array.isArray(o)&&(o=o[0]);var u=n.search(a,o),p=!0;return i.util.arrayEach(u,function(t){if(!1===(p=e(null,t)))return i.util.abort}),p}var r=this;this.eachPage(t)},isPageable:function(){return!!this.service.paginationConfig(this.operation)},createReadStream:function(){var e=i.util.stream,r=this,a=null;return 2===i.HttpClient.streamsApiVersion?(a=new e.PassThrough,t.nextTick(function(){r.send()})):(a=new e.Stream,a.readable=!0,a.sent=!1,a.on("newListener",function(e){a.sent||"data"!==e||(a.sent=!0,t.nextTick(function(){r.send()}))})),this.on("error",function(e){a.emit("error",e)}),this.on("httpHeaders",function(t,s,o){if(t<300){r.removeListener("httpData",i.EventListeners.Core.HTTP_DATA),r.removeListener("httpError",i.EventListeners.Core.HTTP_ERROR),r.on("httpError",function(e){o.error=e,o.error.retryable=!1});var n,u=!1;if("HEAD"!==r.httpRequest.method&&(n=parseInt(s["content-length"],10)),void 0!==n&&!isNaN(n)&&n>=0){u=!0;var p=0}var m=function(){u&&p!==n?a.emit("error",i.util.error(new Error("Stream content length mismatch. Received "+p+" of "+n+" bytes."),{code:"StreamContentLengthMismatch"})):2===i.HttpClient.streamsApiVersion?a.end():a.emit("end")},c=o.httpResponse.createUnbufferedStream();if(2===i.HttpClient.streamsApiVersion)if(u){var l=new e.PassThrough;l._write=function(t){return t&&t.length&&(p+=t.length),e.PassThrough.prototype._write.apply(this,arguments)},l.on("end",m),a.on("error",function(e){u=!1,c.unpipe(l),l.emit("end"),l.end()}),c.pipe(l).pipe(a,{end:!1})}else c.pipe(a);else u&&c.on("data",function(e){e&&e.length&&(p+=e.length)}),c.on("data",function(e){a.emit("data",e)}),c.on("end",m);c.on("error",function(e){u=!1,a.emit("error",e)})}}),a},emitEvent:function(e,t,r){"function"==typeof t&&(r=t,t=null),r||(r=function(){}),t||(t=this.eventParameters(e,this.response)),i.SequentialExecutor.prototype.emit.call(this,e,t,function(e){e&&(this.response.error=e),r.call(this,e)})},eventParameters:function(e){switch(e){case"restart":case"validate":case"sign":case"build":case"afterValidate":case"afterBuild":return[this];case"error":return[this.response.error,this.response];default:return[this.response]}},presign:function(e,t){return t||"function"!=typeof e||(t=e,e=null),(new i.Signers.Presign).sign(this.toGet(),e,t)},isPresigned:function(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function(){return this._unAuthenticated=!0,this.removeListener("validate",i.EventListeners.Core.VALIDATE_CREDENTIALS),this.removeListener("sign",i.EventListeners.Core.SIGN),this},toGet:function(){return"query"!==this.service.api.protocol&&"ec2"!==this.service.api.protocol||(this.removeListener("build",this.buildAsGet),this.addListener("build",this.buildAsGet)),this},buildAsGet:function(e){e.httpRequest.method="GET",e.httpRequest.path=e.service.endpoint.path+"?"+e.httpRequest.body,e.httpRequest.body="",delete e.httpRequest.headers["Content-Length"],delete e.httpRequest.headers["Content-Type"]},haltHandlersOnError:function(){this._haltHandlersOnError=!0}}),i.Request.addPromisesToClass=function(e){this.prototype.promise=function(){var t=this;return this.httpRequest.appendToUserAgent("promise"),new e(function(e,r){t.on("complete",function(t){t.error?r(t.error):e(Object.defineProperty(t.data||{},"$response",{value:t}))}),t.runTo()})}},i.Request.deletePromisesFromClass=function(){delete this.prototype.promise},i.util.addPromises(i.Request),i.util.mixin(i.Request,i.SequentialExecutor)}).call(this)}).call(this,e("_process"))},{"./core":342,"./state_machine":416,_process:431,jmespath:430}],388:[function(e,t,r){function i(e){var t=e.request._waiter,r=t.config.acceptors,i=!1,a="retry";r.forEach(function(r){if(!i){var s=t.matchers[r.matcher];s&&s(e,r.expected,r.argument)&&(i=!0,a=r.state)}}),!i&&e.error&&(a="failure"),"success"===a?t.setSuccess(e):t.setError(e,"retry"===a)}var a=e("./core"),s=a.util.inherit,o=e("jmespath");a.ResourceWaiter=s({constructor:function(e,t){this.service=e,this.state=t,this.loadWaiterConfig(this.state)},service:null,state:null,config:null,matchers:{path:function(e,t,r){try{var i=o.search(e.data,r)}catch(e){return!1}return o.strictDeepEqual(i,t)},pathAll:function(e,t,r){try{var i=o.search(e.data,r)}catch(e){return!1}Array.isArray(i)||(i=[i]);var a=i.length;if(!a)return!1;for(var s=0;s<a;s++)if(!o.strictDeepEqual(i[s],t))return!1;return!0},pathAny:function(e,t,r){try{var i=o.search(e.data,r)}catch(e){return!1}Array.isArray(i)||(i=[i]);for(var a=i.length,s=0;s<a;s++)if(o.strictDeepEqual(i[s],t))return!0;return!1},status:function(e,t){var r=e.httpResponse.statusCode;return"number"==typeof r&&r===t},error:function(e,t){return"string"==typeof t&&e.error?t===e.error.code:t===!!e.error}},listeners:(new a.SequentialExecutor).addNamedListeners(function(e){e("RETRY_CHECK","retry",function(e){var t=e.request._waiter;e.error&&"ResourceNotReady"===e.error.code&&(e.error.retryDelay=1e3*(t.config.delay||0))}),e("CHECK_OUTPUT","extractData",i),e("CHECK_ERROR","extractError",i)}),wait:function(e,t){"function"==typeof e&&(t=e,e=void 0),e&&e.$waiter&&(e=a.util.copy(e),"number"==typeof e.$waiter.delay&&(this.config.delay=e.$waiter.delay),"number"==typeof e.$waiter.maxAttempts&&(this.config.maxAttempts=e.$waiter.maxAttempts),delete e.$waiter);var r=this.service.makeRequest(this.config.operation,e);return r._waiter=this,r.response.maxRetries=this.config.maxAttempts,r.addListeners(this.listeners),t&&r.send(t),r},setSuccess:function(e){e.error=null,e.data=e.data||{},e.request.removeAllListeners("extractData")},setError:function(e,t){e.data=null,e.error=a.util.error(e.error||new Error,{code:"ResourceNotReady",message:"Resource is not in the state "+this.state,retryable:t})},loadWaiterConfig:function(e){if(!this.service.api.waiters[e])throw new a.util.error(new Error,{code:"StateNotFoundError",message:"State "+e+" not found."});this.config=a.util.copy(this.service.api.waiters[e])}})},{"./core":342,jmespath:430}],389:[function(e,t,r){var i=e("./core"),a=i.util.inherit,s=e("jmespath");i.Response=a({constructor:function(e){this.request=e,this.data=null,this.error=null,this.retryCount=0,this.redirectCount=0,this.httpResponse=new i.HttpResponse,e&&(this.maxRetries=e.service.numRetries(),this.maxRedirects=e.service.config.maxRedirects)},nextPage:function(e){var t,r=this.request.service,a=this.request.operation;try{t=r.paginationConfig(a,!0)}catch(e){this.error=e}if(!this.hasNextPage()){if(e)e(this.error,null);else if(this.error)throw this.error;return null}var s=i.util.copy(this.request.params);if(this.nextPageTokens){var o=t.inputToken;"string"==typeof o&&(o=[o]);for(var n=0;n<o.length;n++)s[o[n]]=this.nextPageTokens[n];return r.makeRequest(this.request.operation,s,e)}return e?e(null,null):null},hasNextPage:function(){return this.cacheNextPageTokens(),!!this.nextPageTokens||void 0===this.nextPageTokens&&void 0},cacheNextPageTokens:function(){if(Object.prototype.hasOwnProperty.call(this,"nextPageTokens"))return this.nextPageTokens;this.nextPageTokens=void 0;var e=this.request.service.paginationConfig(this.request.operation);if(!e)return this.nextPageTokens;if(this.nextPageTokens=null,e.moreResults&&!s.search(this.data,e.moreResults))return this.nextPageTokens;var t=e.outputToken;return"string"==typeof t&&(t=[t]),i.util.arrayEach.call(this,t,function(e){var t=s.search(this.data,e);t&&(this.nextPageTokens=this.nextPageTokens||[],this.nextPageTokens.push(t))}),this.nextPageTokens}})},{"./core":342,jmespath:430}],390:[function(e,t,r){var i=e("../core"),a=i.util.string.byteLength,s=i.util.Buffer;i.S3.ManagedUpload=i.util.inherit({constructor:function(e){var t=this;i.SequentialExecutor.call(t),t.body=null,t.sliceFn=null,t.callback=null,t.parts={},t.completeInfo=[],t.fillQueue=function(){t.callback(new Error("Unsupported body payload "+typeof t.body))},t.configure(e)},configure:function(e){if(e=e||{},this.partSize=this.minPartSize,e.queueSize&&(this.queueSize=e.queueSize),e.partSize&&(this.partSize=e.partSize),e.leavePartsOnError&&(this.leavePartsOnError=!0),e.tags){if(!Array.isArray(e.tags))throw new Error("Tags must be specified as an array; "+typeof e.tags+" provided.");this.tags=e.tags}if(this.partSize<this.minPartSize)throw new Error("partSize must be greater than "+this.minPartSize);this.service=e.service,this.bindServiceObject(e.params),this.validateBody(),this.adjustTotalBytes()},leavePartsOnError:!1,queueSize:4,partSize:null,minPartSize:5242880,maxTotalParts:1e4,send:function(e){var t=this;t.failed=!1,t.callback=e||function(e){if(e)throw e};var r=!0;if(t.sliceFn)t.fillQueue=t.fillBuffer;else if(i.util.isNode()){var a=i.util.stream.Stream;t.body instanceof a&&(r=!1,t.fillQueue=t.fillStream,t.partBuffers=[],t.body.on("error",function(e){t.cleanup(e)}).on("readable",function(){t.fillQueue()}).on("end",function(){t.isDoneChunking=!0,t.numParts=t.totalPartNumbers,t.fillQueue.call(t),t.isDoneChunking&&t.totalPartNumbers>=1&&t.doneParts===t.numParts&&t.finishMultiPart()}))}r&&t.fillQueue.call(t)},abort:function(){var e=this;!0===e.isDoneChunking&&1===e.totalPartNumbers&&e.singlePart?e.singlePart.abort():e.cleanup(i.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:!1}))},validateBody:function(){var e=this;if(e.body=e.service.config.params.Body,"string"==typeof e.body)e.body=i.util.buffer.toBuffer(e.body);else if(!e.body)throw new Error("params.Body is required");e.sliceFn=i.util.arraySliceFn(e.body)},bindServiceObject:function(e){e=e||{};var t=this;if(t.service){var r=t.service,a=i.util.copy(r.config);a.signatureVersion=r.getSignatureVersion(),t.service=new r.constructor.__super__(a),t.service.config.params=i.util.merge(t.service.config.params||{},e),Object.defineProperty(t.service,"_originalConfig",{get:function(){return r._originalConfig},enumerable:!1,configurable:!0})}else t.service=new i.S3({params:e})},adjustTotalBytes:function(){var e=this;try{e.totalBytes=a(e.body)}catch(e){}if(e.totalBytes){var t=Math.ceil(e.totalBytes/e.maxTotalParts);t>e.partSize&&(e.partSize=t)}else e.totalBytes=void 0},isDoneChunking:!1,partPos:0,totalChunkedBytes:0,totalUploadedBytes:0,totalBytes:void 0,numParts:0,totalPartNumbers:0,activeParts:0,doneParts:0,parts:null,completeInfo:null,failed:!1,multipartReq:null,partBuffers:null,partBufferLength:0,fillBuffer:function(){var e=this,t=a(e.body);if(0===t)return e.isDoneChunking=!0,e.numParts=1,void e.nextChunk(e.body);for(;e.activeParts<e.queueSize&&e.partPos<t;){var r=Math.min(e.partPos+e.partSize,t),i=e.sliceFn.call(e.body,e.partPos,r);e.partPos+=e.partSize,(a(i)<e.partSize||e.partPos===t)&&(e.isDoneChunking=!0,e.numParts=e.totalPartNumbers+1),e.nextChunk(i)}},fillStream:function(){var e=this;if(!(e.activeParts>=e.queueSize)){var t=e.body.read(e.partSize-e.partBufferLength)||e.body.read();if(t&&(e.partBuffers.push(t),e.partBufferLength+=t.length,e.totalChunkedBytes+=t.length),e.partBufferLength>=e.partSize){var r=1===e.partBuffers.length?e.partBuffers[0]:s.concat(e.partBuffers);if(e.partBuffers=[],e.partBufferLength=0,r.length>e.partSize){var i=r.slice(e.partSize);e.partBuffers.push(i),e.partBufferLength+=i.length,r=r.slice(0,e.partSize)}e.nextChunk(r)}e.isDoneChunking&&!e.isDoneSending&&(r=1===e.partBuffers.length?e.partBuffers[0]:s.concat(e.partBuffers),e.partBuffers=[],e.partBufferLength=0,e.totalBytes=e.totalChunkedBytes,e.isDoneSending=!0,(0===e.numParts||r.length>0)&&(e.numParts++,e.nextChunk(r))),e.body.read(0)}},nextChunk:function(e){var t=this;if(t.failed)return null;var r=++t.totalPartNumbers;if(t.isDoneChunking&&1===r){var a={Body:e};this.tags&&(a.Tagging=this.getTaggingHeader());var s=t.service.putObject(a);return s._managedUpload=t,s.on("httpUploadProgress",t.progress).send(t.finishSinglePart),t.singlePart=s,null}if(t.service.config.params.ContentMD5){var o=i.util.error(new Error("The Content-MD5 you specified is invalid for multi-part uploads."),{code:"InvalidDigest",retryable:!1});return t.cleanup(o),null}if(t.completeInfo[r]&&null!==t.completeInfo[r].ETag)return null;t.activeParts++,t.service.config.params.UploadId?t.uploadPart(e,r):t.multipartReq?t.queueChunks(e,r):(t.multipartReq=t.service.createMultipartUpload(),t.multipartReq.on("success",function(e){t.service.config.params.UploadId=e.data.UploadId,t.multipartReq=null}),t.queueChunks(e,r),t.multipartReq.on("error",function(e){t.cleanup(e)}),t.multipartReq.send())},getTaggingHeader:function(){for(var e=[],t=0;t<this.tags.length;t++)e.push(i.util.uriEscape(this.tags[t].Key)+"="+i.util.uriEscape(this.tags[t].Value));return e.join("&")},uploadPart:function(e,t){var r=this,a={Body:e,ContentLength:i.util.string.byteLength(e),PartNumber:t},s={ETag:null,PartNumber:t};r.completeInfo[t]=s;var o=r.service.uploadPart(a);r.parts[t]=o,o._lastUploadedBytes=0,o._managedUpload=r,o.on("httpUploadProgress",r.progress),o.send(function(e,o){if(delete r.parts[a.PartNumber],r.activeParts--,!(e||o&&o.ETag)){var n="No access to ETag property on response.";i.util.isBrowser()&&(n+=" Check CORS configuration to expose ETag header."),e=i.util.error(new Error(n),{code:"ETagMissing",retryable:!1})}return e?r.cleanup(e):r.completeInfo[t]&&null!==r.completeInfo[t].ETag?null:(s.ETag=o.ETag,r.doneParts++,void(r.isDoneChunking&&r.doneParts===r.numParts?r.finishMultiPart():r.fillQueue.call(r)))})},queueChunks:function(e,t){var r=this;r.multipartReq.on("success",function(){r.uploadPart(e,t)})},cleanup:function(e){var t=this;t.failed||("function"==typeof t.body.removeAllListeners&&"function"==typeof t.body.resume&&(t.body.removeAllListeners("readable"),t.body.removeAllListeners("end"),t.body.resume()),t.multipartReq&&(t.multipartReq.removeAllListeners("success"),t.multipartReq.removeAllListeners("error"),t.multipartReq.removeAllListeners("complete"),delete t.multipartReq),t.service.config.params.UploadId&&!t.leavePartsOnError?t.service.abortMultipartUpload().send():t.leavePartsOnError&&(t.isDoneChunking=!1),i.util.each(t.parts,function(e,t){t.removeAllListeners("complete"),t.abort()}),t.activeParts=0,t.partPos=0,t.numParts=0,t.totalPartNumbers=0,t.parts={},t.failed=!0,t.callback(e))},finishMultiPart:function(){var e=this,t={MultipartUpload:{Parts:e.completeInfo.slice(1)}};e.service.completeMultipartUpload(t,function(t,r){if(t)return e.cleanup(t);if(r&&"string"==typeof r.Location&&(r.Location=r.Location.replace(/%2F/g,"/")),Array.isArray(e.tags)){for(var i=0;i<e.tags.length;i++)e.tags[i].Value=String(e.tags[i].Value);e.service.putObjectTagging({Tagging:{TagSet:e.tags}},function(t,i){t?e.callback(t):e.callback(t,r)})}else e.callback(t,r)})},finishSinglePart:function(e,t){var r=this.request._managedUpload,i=this.request.httpRequest,a=i.endpoint;if(e)return r.callback(e);t.Location=[a.protocol,"//",a.host,i.path].join(""),t.key=this.request.params.Key,t.Key=this.request.params.Key,t.Bucket=this.request.params.Bucket,r.callback(e,t)},progress:function(e){var t=this._managedUpload;"putObject"===this.operation?(e.part=1,e.key=this.params.Key):(t.totalUploadedBytes+=e.loaded-this._lastUploadedBytes,this._lastUploadedBytes=e.loaded,e={loaded:t.totalUploadedBytes,total:t.totalBytes,part:this.params.PartNumber,key:this.params.Key}),t.emit("httpUploadProgress",[e])}}),i.util.mixin(i.S3.ManagedUpload,i.SequentialExecutor),i.S3.ManagedUpload.addPromisesToClass=function(e){this.prototype.promise=i.util.promisifyMethod("send",e)},i.S3.ManagedUpload.deletePromisesFromClass=function(){delete this.prototype.promise},i.util.addPromises(i.S3.ManagedUpload),t.exports=i.S3.ManagedUpload},{"../core":342}],391:[function(e,t,r){var i=e("./core");i.SequentialExecutor=i.util.inherit({constructor:function(){this._events={}},listeners:function(e){return this._events[e]?this._events[e].slice(0):[]},on:function(e,t,r){return this._events[e]?r?this._events[e].unshift(t):this._events[e].push(t):this._events[e]=[t],this},onAsync:function(e,t,r){return t._isAsync=!0,this.on(e,t,r)},removeListener:function(e,t){var r=this._events[e];if(r){for(var i=r.length,a=-1,s=0;s<i;++s)r[s]===t&&(a=s);a>-1&&r.splice(a,1)}return this},removeAllListeners:function(e){return e?delete this._events[e]:this._events={},this},emit:function(e,t,r){r||(r=function(){});var i=this.listeners(e),a=i.length;return this.callListeners(i,t,r),a>0},callListeners:function(e,t,r,a){function s(a){if(a&&(n=i.util.error(n||new Error,a),o._haltHandlersOnError))return r.call(o,n);o.callListeners(e,t,r,n)}for(var o=this,n=a||null;e.length>0;){var u=e.shift();if(u._isAsync)return void u.apply(o,t.concat([s]));try{u.apply(o,t)}catch(e){n=i.util.error(n||new Error,e)}if(n&&o._haltHandlersOnError)return void r.call(o,n)}r.call(o,n)},addListeners:function(e){var t=this;return e._events&&(e=e._events),i.util.each(e,function(e,r){"function"==typeof r&&(r=[r]),i.util.arrayEach(r,function(r){t.on(e,r)})}),t},addNamedListener:function(e,t,r,i){return this[e]=r,this.addListener(t,r,i),this},addNamedAsyncListener:function(e,t,r,i){return r._isAsync=!0,this.addNamedListener(e,t,r,i)},addNamedListeners:function(e){var t=this;return e(function(){t.addNamedListener.apply(t,arguments)},function(){t.addNamedAsyncListener.apply(t,arguments)}),this}}),i.SequentialExecutor.prototype.addListener=i.SequentialExecutor.prototype.on,t.exports=i.SequentialExecutor},{"./core":342}],392:[function(e,t,r){(function(r){(function(){var i=e("./core"),a=e("./model/api"),s=e("./region_config"),o=i.util.inherit,n=0;i.Service=o({constructor:function(e){if(!this.loadServiceClass)throw i.util.error(new Error,"Service must be constructed with `new' operator");var t=this.loadServiceClass(e||{});if(t){var r=i.util.copy(e),a=new t(e);return Object.defineProperty(a,"_originalConfig",{get:function(){return r},enumerable:!1,configurable:!0}),a._clientId=++n,a}this.initialize(e)},initialize:function(e){var t=i.config[this.serviceIdentifier];if(this.config=new i.Config(i.config),t&&this.config.update(t,!0),e&&this.config.update(e,!0),this.validateService(),this.config.endpoint||s.configureEndpoint(this),this.config.endpoint=this.endpointFromTemplate(this.config.endpoint),this.setEndpoint(this.config.endpoint),i.SequentialExecutor.call(this),i.Service.addDefaultMonitoringListeners(this),(this.config.clientSideMonitoring||i.Service._clientSideMonitoring)&&this.publisher){var a=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",function(e){r.nextTick(function(){a.eventHandler(e)})}),this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",function(e){r.nextTick(function(){a.eventHandler(e)})})}},validateService:function(){},loadServiceClass:function(e){var t=e;if(i.util.isEmpty(this.api)){if(t.apiConfig)return i.Service.defineServiceApi(this.constructor,t.apiConfig);if(this.constructor.services){t=new i.Config(i.config),t.update(e,!0);var r=t.apiVersions[this.constructor.serviceIdentifier];return r=r||t.apiVersion,this.getLatestServiceClass(r)}return null}return null},getLatestServiceClass:function(e){return e=this.getLatestServiceVersion(e),null===this.constructor.services[e]&&i.Service.defineServiceApi(this.constructor,e),this.constructor.services[e]},getLatestServiceVersion:function(e){if(!this.constructor.services||0===this.constructor.services.length)throw new Error("No services defined on "+this.constructor.serviceIdentifier);if(e?i.util.isType(e,Date)&&(e=i.util.date.iso8601(e).split("T")[0]):e="latest",Object.hasOwnProperty(this.constructor.services,e))return e;for(var t=Object.keys(this.constructor.services).sort(),r=null,a=t.length-1;a>=0;a--)if("*"!==t[a][t[a].length-1]&&(r=t[a]),t[a].substr(0,10)<=e)return r;throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+e+"'")},api:{},defaultRetryCount:3,customizeRequests:function(e){if(e){if("function"!=typeof e)throw new Error("Invalid callback type '"+typeof e+"' provided in customizeRequests");this.customRequestHandler=e}else this.customRequestHandler=null},makeRequest:function(e,t,r){if("function"==typeof t&&(r=t,t=null),t=t||{},this.config.params){var a=this.api.operations[e];a&&(t=i.util.copy(t),i.util.each(this.config.params,function(e,r){a.input.members[e]&&(void 0!==t[e]&&null!==t[e]||(t[e]=r))}))}var s=new i.Request(this,e,t);return this.addAllRequestListeners(s),this.attachMonitoringEmitter(s),r&&s.send(r),s},makeUnauthenticatedRequest:function(e,t,r){"function"==typeof t&&(r=t,t={});var i=this.makeRequest(e,t).toUnauthenticated();return r?i.send(r):i},waitFor:function(e,t,r){return new i.ResourceWaiter(this,e).wait(t,r)},addAllRequestListeners:function(e){for(var t=[i.events,i.EventListeners.Core,this.serviceInterface(),i.EventListeners.CorePost],r=0;r<t.length;r++)t[r]&&e.addListeners(t[r]);this.config.paramValidation||e.removeListener("validate",i.EventListeners.Core.VALIDATE_PARAMETERS),this.config.logger&&e.addListeners(i.EventListeners.Logger),this.setupRequestListeners(e),"function"==typeof this.constructor.prototype.customRequestHandler&&this.constructor.prototype.customRequestHandler(e),
|
|
87
|
+
Object.prototype.hasOwnProperty.call(this,"customRequestHandler")&&"function"==typeof this.customRequestHandler&&this.customRequestHandler(e)},apiCallEvent:function(e){var t=e.service.api.operations[e.operation],r={Type:"ApiCall",Api:t?t.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Region:e.httpRequest.region,MaxRetriesExceeded:0,UserAgent:e.httpRequest.getUserAgent()},i=e.response;if(i.httpResponse.statusCode&&(r.FinalHttpStatusCode=i.httpResponse.statusCode),i.error){var a=i.error;i.httpResponse.statusCode>299?(a.code&&(r.FinalAwsException=a.code),a.message&&(r.FinalAwsExceptionMessage=a.message)):((a.code||a.name)&&(r.FinalSdkException=a.code||a.name),a.message&&(r.FinalSdkExceptionMessage=a.message))}return r},apiAttemptEvent:function(e){var t=e.service.api.operations[e.operation],r={Type:"ApiCallAttempt",Api:t?t.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Fqdn:e.httpRequest.endpoint.hostname,UserAgent:e.httpRequest.getUserAgent()},i=e.response;return i.httpResponse.statusCode&&(r.HttpStatusCode=i.httpResponse.statusCode),!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId&&(r.AccessKey=e.service.config.credentials.accessKeyId),i.httpResponse.headers?(e.httpRequest.headers["x-amz-security-token"]&&(r.SessionToken=e.httpRequest.headers["x-amz-security-token"]),i.httpResponse.headers["x-amzn-requestid"]&&(r.XAmznRequestId=i.httpResponse.headers["x-amzn-requestid"]),i.httpResponse.headers["x-amz-request-id"]&&(r.XAmzRequestId=i.httpResponse.headers["x-amz-request-id"]),i.httpResponse.headers["x-amz-id-2"]&&(r.XAmzId2=i.httpResponse.headers["x-amz-id-2"]),r):r},attemptFailEvent:function(e){var t=this.apiAttemptEvent(e),r=e.response,i=r.error;return r.httpResponse.statusCode>299?(i.code&&(t.AwsException=i.code),i.message&&(t.AwsExceptionMessage=i.message)):((i.code||i.name)&&(t.SdkException=i.code||i.name),i.message&&(t.SdkExceptionMessage=i.message)),t},attachMonitoringEmitter:function(e){var t,r,a,s,o,n,u=0,p=this;e.on("validate",function(){s=i.util.realClock.now(),n=Date.now()},!0),e.on("sign",function(){r=i.util.realClock.now(),t=Date.now(),o=e.httpRequest.region,u++},!0),e.on("validateResponse",function(){a=Math.round(i.util.realClock.now()-r)}),e.addNamedListener("API_CALL_ATTEMPT","success",function(){var r=p.apiAttemptEvent(e);r.Timestamp=t,r.AttemptLatency=a>=0?a:0,r.Region=o,p.emit("apiCallAttempt",[r])}),e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",function(){var s=p.attemptFailEvent(e);s.Timestamp=t,a=a||Math.round(i.util.realClock.now()-r),s.AttemptLatency=a>=0?a:0,s.Region=o,p.emit("apiCallAttempt",[s])}),e.addNamedListener("API_CALL","complete",function(){var t=p.apiCallEvent(e);if(t.AttemptCount=u,!(t.AttemptCount<=0)){t.Timestamp=n;var r=Math.round(i.util.realClock.now()-s);t.Latency=r>=0?r:0;var a=e.response;a.error&&a.error.retryable&&"number"==typeof a.retryCount&&"number"==typeof a.maxRetries&&a.retryCount>=a.maxRetries&&(t.MaxRetriesExceeded=1),p.emit("apiCall",[t])}})},setupRequestListeners:function(e){},getSigningName:function(){return this.api.signingName||this.api.endpointPrefix},getSignerClass:function(e){var t,r=null,a="";if(e){r=(e.service.api.operations||{})[e.operation]||null,a=r?r.authtype:""}return t=this.config.signatureVersion?this.config.signatureVersion:"v4"===a||"v4-unsigned-body"===a?"v4":this.api.signatureVersion,i.Signers.RequestSigner.getVersion(t)},serviceInterface:function(){switch(this.api.protocol){case"ec2":case"query":return i.EventListeners.Query;case"json":return i.EventListeners.Json;case"rest-json":return i.EventListeners.RestJson;case"rest-xml":return i.EventListeners.RestXml}if(this.api.protocol)throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")},successfulResponse:function(e){return e.httpResponse.statusCode<300},numRetries:function(){return void 0!==this.config.maxRetries?this.config.maxRetries:this.defaultRetryCount},retryDelays:function(e,t){return i.util.calculateRetryDelay(e,this.config.retryDelayOptions,t)},retryableError:function(e){return!!this.timeoutError(e)||(!!this.networkingError(e)||(!!this.expiredCredentialsError(e)||(!!this.throttledError(e)||e.statusCode>=500)))},networkingError:function(e){return"NetworkingError"===e.code},timeoutError:function(e){return"TimeoutError"===e.code},expiredCredentialsError:function(e){return"ExpiredTokenException"===e.code},clockSkewError:function(e){switch(e.code){case"RequestTimeTooSkewed":case"RequestExpired":case"InvalidSignatureException":case"SignatureDoesNotMatch":case"AuthFailure":case"RequestInTheFuture":return!0;default:return!1}},getSkewCorrectedDate:function(){return new Date(Date.now()+this.config.systemClockOffset)},applyClockOffset:function(e){e&&(this.config.systemClockOffset=e-Date.now())},isClockSkewed:function(e){if(e)return Math.abs(this.getSkewCorrectedDate().getTime()-e)>=3e5},throttledError:function(e){if(429===e.statusCode)return!0;switch(e.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":case"RequestThrottledException":case"TooManyRequestsException":case"TransactionInProgressException":case"EC2ThrottledException":return!0;default:return!1}},endpointFromTemplate:function(e){if("string"!=typeof e)return e;var t=e;return t=t.replace(/\{service\}/g,this.api.endpointPrefix),t=t.replace(/\{region\}/g,s.getRealRegion(this.config.region)),t=t.replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http")},setEndpoint:function(e){this.endpoint=new i.Endpoint(e,this.config)},paginationConfig:function(e,t){var r=this.api.operations[e].paginator;if(!r){if(t){var a=new Error;throw i.util.error(a,"No pagination configuration for "+e)}return null}return r}}),i.util.update(i.Service,{defineMethods:function(e){i.util.each(e.prototype.api.operations,function(t){if(!e.prototype[t]){"none"===e.prototype.api.operations[t].authtype?e.prototype[t]=function(e,r){return this.makeUnauthenticatedRequest(t,e,r)}:e.prototype[t]=function(e,r){return this.makeRequest(t,e,r)}}})},defineService:function(e,t,r){i.Service._serviceMap[e]=!0,Array.isArray(t)||(r=t,t=[]);var a=o(i.Service,r||{});if("string"==typeof e){i.Service.addVersions(a,t);var s=a.serviceIdentifier||e;a.serviceIdentifier=s}else a.prototype.api=e,i.Service.defineMethods(a);if(i.SequentialExecutor.call(this.prototype),!this.prototype.publisher&&i.util.clientSideMonitoring){var n=i.util.clientSideMonitoring.Publisher,u=i.util.clientSideMonitoring.configProvider,p=u();this.prototype.publisher=new n(p),p.enabled&&(i.Service._clientSideMonitoring=!0)}return i.SequentialExecutor.call(a.prototype),i.Service.addDefaultMonitoringListeners(a.prototype),a},addVersions:function(e,t){Array.isArray(t)||(t=[t]),e.services=e.services||{};for(var r=0;r<t.length;r++)void 0===e.services[t[r]]&&(e.services[t[r]]=null);e.apiVersions=Object.keys(e.services).sort()},defineServiceApi:function(e,t,r){function s(t){t.isApi?n.prototype.api=t:n.prototype.api=new a(t,{serviceIdentifier:e.serviceIdentifier})}var n=o(e,{serviceIdentifier:e.serviceIdentifier});if("string"==typeof t){if(r)s(r);else try{s(i.apiLoader(e.serviceIdentifier,t))}catch(r){throw i.util.error(r,{message:"Could not find API configuration "+e.serviceIdentifier+"-"+t})}Object.prototype.hasOwnProperty.call(e.services,t)||(e.apiVersions=e.apiVersions.concat(t).sort()),e.services[t]=n}else s(t);return i.Service.defineMethods(n),n},hasService:function(e){return Object.prototype.hasOwnProperty.call(i.Service._serviceMap,e)},addDefaultMonitoringListeners:function(e){e.addNamedListener("MONITOR_EVENTS_BUBBLE","apiCallAttempt",function(t){var r=Object.getPrototypeOf(e);r._events&&r.emit("apiCallAttempt",[t])}),e.addNamedListener("CALL_EVENTS_BUBBLE","apiCall",function(t){var r=Object.getPrototypeOf(e);r._events&&r.emit("apiCall",[t])})},_serviceMap:{}}),i.util.mixin(i.Service,i.SequentialExecutor),t.exports=i.Service}).call(this)}).call(this,e("_process"))},{"./core":342,"./model/api":368,"./region_config":385,_process:431}],393:[function(e,t,r){var i=e("../core");i.util.update(i.APIGateway.prototype,{setAcceptHeader:function(e){var t=e.httpRequest;t.headers.Accept||(t.headers.Accept="application/json")},setupRequestListeners:function(e){if(e.addListener("build",this.setAcceptHeader),"getExport"===e.operation){"swagger"===(e.params||{}).exportType&&e.addListener("extractData",i.util.convertPayloadToString)}}})},{"../core":342}],394:[function(e,t,r){var i=e("../core");e("../cloudfront/signer"),i.util.update(i.CloudFront.prototype,{setupRequestListeners:function(e){e.addListener("extractData",i.util.hoistPayloadMember)}})},{"../cloudfront/signer":339,"../core":342}],395:[function(e,t,r){var i=e("../core");e("../dynamodb/document_client"),i.util.update(i.DynamoDB.prototype,{setupRequestListeners:function(e){e.service.config.dynamoDbCrc32&&(e.removeListener("extractData",i.EventListeners.Json.EXTRACT_DATA),e.addListener("extractData",this.checkCrc32),e.addListener("extractData",i.EventListeners.Json.EXTRACT_DATA))},checkCrc32:function(e){if(!e.httpResponse.streaming&&!e.request.service.crc32IsValid(e))throw e.data=null,e.error=i.util.error(new Error,{code:"CRC32CheckFailed",message:"CRC32 integrity check failed",retryable:!0}),e.request.haltHandlersOnError(),e.error},crc32IsValid:function(e){var t=e.httpResponse.headers["x-amz-crc32"];return!t||parseInt(t,10)===i.util.crypto.crc32(e.httpResponse.body)},defaultRetryCount:10,retryDelays:function(e,t){var r=i.util.copy(this.config.retryDelayOptions);return"number"!=typeof r.base&&(r.base=50),i.util.calculateRetryDelay(e,r,t)}})},{"../core":342,"../dynamodb/document_client":352}],396:[function(e,t,r){var i=e("../core");i.util.update(i.EC2.prototype,{setupRequestListeners:function(e){e.removeListener("extractError",i.EventListeners.Query.EXTRACT_ERROR),e.addListener("extractError",this.extractError),"copySnapshot"===e.operation&&e.onAsync("validate",this.buildCopySnapshotPresignedUrl)},buildCopySnapshotPresignedUrl:function(e,t){if(e.params.PresignedUrl||e._subRequest)return t();e.params=i.util.copy(e.params),e.params.DestinationRegion=e.service.config.region;var r=i.util.copy(e.service.config);delete r.endpoint,r.region=e.params.SourceRegion;var a=new e.service.constructor(r),s=a[e.operation](e.params);s._subRequest=!0,s.presign(function(r,i){r?t(r):(e.params.PresignedUrl=i,t())})},extractError:function(e){var t=e.httpResponse,r=(new i.XML.Parser).parse(t.body.toString()||"");r.Errors?e.error=i.util.error(new Error,{code:r.Errors.Error.Code,message:r.Errors.Error.Message}):e.error=i.util.error(new Error,{code:t.statusCode,message:null}),e.error.requestId=r.RequestID||null}})},{"../core":342}],397:[function(e,t,r){var i=e("../core"),a=["deleteThingShadow","getThingShadow","updateThingShadow"];i.util.update(i.IotData.prototype,{validateService:function(){if(!this.config.endpoint||this.config.endpoint.indexOf("{")>=0){throw i.util.error(new Error,{name:"InvalidEndpoint",message:"AWS.IotData requires an explicit `endpoint' configuration option."})}},setupRequestListeners:function(e){e.addListener("validateResponse",this.validateResponseBody),a.indexOf(e.operation)>-1&&e.addListener("extractData",i.util.convertPayloadToString)},validateResponseBody:function(e){var t=e.httpResponse.body.toString()||"{}",r=t.trim();r&&"{"===r.charAt(0)||(e.httpResponse.body="")}})},{"../core":342}],398:[function(e,t,r){var i=e("../core");i.util.update(i.Lambda.prototype,{setupRequestListeners:function(e){"invoke"===e.operation&&e.addListener("extractData",i.util.convertPayloadToString)}})},{"../core":342}],399:[function(e,t,r){var i=e("../core");i.util.update(i.MachineLearning.prototype,{setupRequestListeners:function(e){"predict"===e.operation&&e.addListener("build",this.buildEndpoint)},buildEndpoint:function(e){var t=e.params.PredictEndpoint;t&&(e.httpRequest.endpoint=new i.Endpoint(t))}})},{"../core":342}],400:[function(e,t,r){e("../polly/presigner")},{"../polly/presigner":375}],401:[function(e,t,r){var i=e("../core"),a=e("./rdsutil");e("../rds/signer");var s=["copyDBSnapshot","createDBInstanceReadReplica","createDBCluster","copyDBClusterSnapshot","startDBInstanceAutomatedBackupsReplication"];i.util.update(i.RDS.prototype,{setupRequestListeners:function(e){a.setupRequestListeners(this,e,s)}})},{"../core":342,"../rds/signer":383,"./rdsutil":402}],402:[function(e,t,r){var i=e("../core"),a={setupRequestListeners:function(e,t,r){if(-1!==r.indexOf(t.operation)&&t.params.SourceRegion)if(t.params=i.util.copy(t.params),t.params.PreSignedUrl||t.params.SourceRegion===e.config.region)delete t.params.SourceRegion;else{var s=!!e.config.paramValidation;s&&t.removeListener("validate",i.EventListeners.Core.VALIDATE_PARAMETERS),t.onAsync("validate",a.buildCrossRegionPresignedUrl),s&&t.addListener("validate",i.EventListeners.Core.VALIDATE_PARAMETERS)}},buildCrossRegionPresignedUrl:function(e,t){var r=i.util.copy(e.service.config);r.region=e.params.SourceRegion,delete e.params.SourceRegion,delete r.endpoint,delete r.params,r.signatureVersion="v4";var a=e.service.config.region,s=new e.service.constructor(r),o=s[e.operation](i.util.copy(e.params));o.on("build",function(e){var t=e.httpRequest;t.params.DestinationRegion=a,t.body=i.util.queryParamsToString(t.params)}),o.presign(function(r,i){r?t(r):(e.params.PreSignedUrl=i,t())})}};t.exports=a},{"../core":342}],403:[function(e,t,r){var i=e("../core");i.util.update(i.Route53.prototype,{setupRequestListeners:function(e){e.on("build",this.sanitizeUrl)},sanitizeUrl:function(e){var t=e.httpRequest.path;e.httpRequest.path=t.replace(/\/%2F\w+%2F/,"/")},retryableError:function(e){return"PriorRequestNotComplete"===e.code&&400===e.statusCode||i.Service.prototype.retryableError.call(this,e)}})},{"../core":342}],404:[function(e,t,r){var i=e("../core"),a=e("../signers/v4_credentials"),s=e("../config_regional_endpoint"),o=e("./s3util"),n=e("../region_config");e("../s3/managed_upload");var u={completeMultipartUpload:!0,copyObject:!0,uploadPartCopy:!0},p=["AuthorizationHeaderMalformed","BadRequest","PermanentRedirect",301];i.util.update(i.S3.prototype,{getSignatureVersion:function(e){var t=this.api.signatureVersion,r=this._originalConfig?this._originalConfig.signatureVersion:null,i=this.config.signatureVersion,a=!!e&&e.isPresigned();return r?r="v2"===r?"s3":r:(!0!==a?t="v4":i&&(t=i),t)},getSigningName:function(e){if(e&&"writeGetObjectResponse"===e.operation)return"s3-object-lambda";var t=i.Service.prototype.getSigningName;return e&&e._parsedArn&&e._parsedArn.service?e._parsedArn.service:t.call(this)},getSignerClass:function(e){var t=this.getSignatureVersion(e);return i.Signers.RequestSigner.getVersion(t)},validateService:function(){var e,t=[];if(this.config.region||(this.config.region="us-east-1"),!this.config.endpoint&&this.config.s3BucketEndpoint&&t.push("An endpoint must be provided when configuring `s3BucketEndpoint` to true."),1===t.length?e=t[0]:t.length>1&&(e="Multiple configuration errors:\n"+t.join("\n")),e)throw i.util.error(new Error,{name:"InvalidEndpoint",message:e})},shouldDisableBodySigning:function(e){var t=this.getSignerClass();return!0===this.config.s3DisableBodySigning&&t===i.Signers.V4&&"https:"===e.httpRequest.endpoint.protocol},setupRequestListeners:function(e){if(e.addListener("validate",this.validateScheme),e.addListener("validate",this.validateBucketName,!0),e.addListener("validate",this.optInUsEast1RegionalEndpoint,!0),e.removeListener("validate",i.EventListeners.Core.VALIDATE_REGION),e.addListener("build",this.addContentType),e.addListener("build",this.computeContentMd5),e.addListener("build",this.computeSseCustomerKeyMd5),e.addListener("build",this.populateURI),e.addListener("afterBuild",this.addExpect100Continue),e.addListener("extractError",this.extractError),e.addListener("extractData",i.util.hoistPayloadMember),e.addListener("extractData",this.extractData),e.addListener("extractData",this.extractErrorFrom200Response),e.addListener("beforePresign",this.prepareSignedUrl),this.shouldDisableBodySigning(e)&&(e.removeListener("afterBuild",i.EventListeners.Core.COMPUTE_SHA256),e.addListener("afterBuild",this.disableBodySigning)),"createBucket"!==e.operation&&o.isArnInParam(e,"Bucket"))return e._parsedArn=i.util.ARN.parse(e.params.Bucket),e.removeListener("validate",this.validateBucketName),e.removeListener("build",this.populateURI),"s3"===e._parsedArn.service?(e.addListener("validate",o.validateS3AccessPointArn),e.addListener("validate",this.validateArnResourceType)):"s3-outposts"===e._parsedArn.service&&(e.addListener("validate",o.validateOutpostsAccessPointArn),e.addListener("validate",o.validateOutpostsArn)),e.addListener("validate",o.validateArnRegion),e.addListener("validate",o.validateArnAccount),e.addListener("validate",o.validateArnService),e.addListener("build",this.populateUriFromAccessPointArn),void e.addListener("build",o.validatePopulateUriFromArn);e.addListener("validate",this.validateBucketEndpoint),e.addListener("validate",this.correctBucketRegionFromCache),e.onAsync("extractError",this.requestBucketRegion),i.util.isBrowser()&&e.onAsync("retry",this.reqRegionForNetworkingError)},validateScheme:function(e){var t=e.params,r=e.httpRequest.endpoint.protocol;if((t.SSECustomerKey||t.CopySourceSSECustomerKey)&&"https:"!==r)throw i.util.error(new Error,{code:"ConfigError",message:"Cannot send SSE keys over HTTP. Set 'sslEnabled'to 'true' in your configuration"})},validateBucketEndpoint:function(e){if(!e.params.Bucket&&e.service.config.s3BucketEndpoint){throw i.util.error(new Error,{code:"ConfigError",message:"Cannot send requests to root API with `s3BucketEndpoint` set."})}},validateArnResourceType:function(e){var t=e._parsedArn.resource;if(0!==t.indexOf("accesspoint:")&&0!==t.indexOf("accesspoint/"))throw i.util.error(new Error,{code:"InvalidARN",message:"ARN resource should begin with 'accesspoint/'"})},validateBucketName:function(e){var t=e.service,r=t.getSignatureVersion(e),a=e.params&&e.params.Bucket,s=e.params&&e.params.Key,o=a&&a.indexOf("/");if(a&&o>=0)if("string"==typeof s&&o>0){e.params=i.util.copy(e.params);var n=a.substr(o+1)||"";e.params.Key=n+"/"+s,e.params.Bucket=a.substr(0,o)}else if("v4"===r){var u="Bucket names cannot contain forward slashes. Bucket: "+a;throw i.util.error(new Error,{code:"InvalidBucket",message:u})}},isValidAccelerateOperation:function(e){return-1===["createBucket","deleteBucket","listBuckets"].indexOf(e)},optInUsEast1RegionalEndpoint:function(e){var t=e.service,r=t.config;if(r.s3UsEast1RegionalEndpoint=s(t._originalConfig,{env:"AWS_S3_US_EAST_1_REGIONAL_ENDPOINT",sharedConfig:"s3_us_east_1_regional_endpoint",clientConfig:"s3UsEast1RegionalEndpoint"}),!(t._originalConfig||{}).endpoint&&"us-east-1"===e.httpRequest.region&&"regional"===r.s3UsEast1RegionalEndpoint&&e.httpRequest.endpoint.hostname.indexOf("s3.amazonaws.com")>=0){var i=r.endpoint.indexOf(".amazonaws.com");regionalEndpoint=r.endpoint.substring(0,i)+".us-east-1"+r.endpoint.substring(i),e.httpRequest.updateEndpoint(regionalEndpoint)}},populateURI:function(e){var t=e.httpRequest,r=e.params.Bucket,i=e.service,a=t.endpoint;if(r&&!i.pathStyleBucketName(r)){i.config.useAccelerateEndpoint&&i.isValidAccelerateOperation(e.operation)?i.config.useDualstack?a.hostname=r+".s3-accelerate.dualstack.amazonaws.com":a.hostname=r+".s3-accelerate.amazonaws.com":i.config.s3BucketEndpoint||(a.hostname=r+"."+a.hostname);var s=a.port;a.host=80!==s&&443!==s?a.hostname+":"+a.port:a.hostname,t.virtualHostedBucket=r,i.removeVirtualHostedBucketFromPath(e)}},removeVirtualHostedBucketFromPath:function(e){var t=e.httpRequest,r=t.virtualHostedBucket;if(r&&t.path){if(e.params&&e.params.Key){var a="/"+i.util.uriEscapePath(e.params.Key);if(0===t.path.indexOf(a)&&(t.path.length===a.length||"?"===t.path[a.length]))return}t.path=t.path.replace(new RegExp("/"+r),""),"/"!==t.path[0]&&(t.path="/"+t.path)}},populateUriFromAccessPointArn:function(e){var t=e._parsedArn,r="s3-outposts"===t.service,a="s3-object-lambda"===t.service,s=r?"."+t.outpostId:"",o=r?"s3-outposts":"s3-accesspoint",u=!r&&e.service.config.useDualstack?".dualstack":"",p=e.httpRequest.endpoint,m=n.getEndpointSuffix(t.region),c=e.service.config.s3UseArnRegion;if(p.hostname=[t.accessPoint+"-"+t.accountId+s,o+u,c?t.region:e.service.config.region,m].join("."),a){var o="s3-object-lambda",l=t.resource.split("/")[1];p.hostname=[l+"-"+t.accountId,o,c?t.region:e.service.config.region,m].join(".")}p.host=p.hostname;var d=i.util.uriEscape(e.params.Bucket),y=e.httpRequest.path;e.httpRequest.path=y.replace(new RegExp("/"+d),""),"/"!==e.httpRequest.path[0]&&(e.httpRequest.path="/"+e.httpRequest.path),e.httpRequest.region=t.region},addExpect100Continue:function(e){var t=e.httpRequest.headers["Content-Length"];i.util.isNode()&&(t>=1048576||e.params.Body instanceof i.util.stream.Stream)&&(e.httpRequest.headers.Expect="100-continue")},addContentType:function(e){var t=e.httpRequest;if("GET"===t.method||"HEAD"===t.method)return void delete t.headers["Content-Type"];t.headers["Content-Type"]||(t.headers["Content-Type"]="application/octet-stream");var r=t.headers["Content-Type"];if(i.util.isBrowser())if("string"!=typeof t.body||r.match(/;\s*charset=/)){var a=function(e,t,r){return t+r.toUpperCase()};t.headers["Content-Type"]=r.replace(/(;\s*charset=)(.+)$/,a)}else{t.headers["Content-Type"]+="; charset=UTF-8"}},willComputeChecksums:function(e){var t=e.service.api.operations[e.operation].input.members,r=e.httpRequest.body,a=t.ContentMD5&&!e.params.ContentMD5&&r&&(i.util.Buffer.isBuffer(e.httpRequest.body)||"string"==typeof e.httpRequest.body);return!(!a||!e.service.shouldDisableBodySigning(e)||e.isPresigned())||!(!a||"s3"!==this.getSignatureVersion(e)||!e.isPresigned())},computeContentMd5:function(e){if(e.service.willComputeChecksums(e)){var t=i.util.crypto.md5(e.httpRequest.body,"base64");e.httpRequest.headers["Content-MD5"]=t}},computeSseCustomerKeyMd5:function(e){var t={SSECustomerKey:"x-amz-server-side-encryption-customer-key-MD5",CopySourceSSECustomerKey:"x-amz-copy-source-server-side-encryption-customer-key-MD5"};i.util.each(t,function(t,r){if(e.params[t]){var a=i.util.crypto.md5(e.params[t],"base64");e.httpRequest.headers[r]=a}})},pathStyleBucketName:function(e){return!!this.config.s3ForcePathStyle||!this.config.s3BucketEndpoint&&(!o.dnsCompatibleBucketName(e)||!(!this.config.sslEnabled||!e.match(/\./)))},extractErrorFrom200Response:function(e){if(u[e.request.operation]){var t=e.httpResponse;if(t.body&&t.body.toString().match("<Error>")){e.data=null;throw(this.service?this.service:this).extractError(e),e.error}if(!t.body||!t.body.toString().match(/<[\w_]/))throw e.data=null,i.util.error(new Error,{code:"InternalError",message:"S3 aborted request"})}},retryableError:function(e,t){return!(!u[t.operation]||200!==e.statusCode)||(!t._requestRegionForBucket||!t.service.bucketRegionCache[t._requestRegionForBucket])&&(!(!e||"RequestTimeout"!==e.code)||(e&&-1!=p.indexOf(e.code)&&e.region&&e.region!=t.httpRequest.region?(t.httpRequest.region=e.region,301===e.statusCode&&t.service.updateReqBucketRegion(t),!0):i.Service.prototype.retryableError.call(this,e,t)))},updateReqBucketRegion:function(e,t){var r=e.httpRequest;if("string"==typeof t&&t.length&&(r.region=t),r.endpoint.host.match(/s3(?!-accelerate).*\.amazonaws\.com$/)){var a=e.service,s=a.config,o=s.s3BucketEndpoint;o&&delete s.s3BucketEndpoint;var n=i.util.copy(s);delete n.endpoint,n.region=r.region,r.endpoint=new i.S3(n).endpoint,a.populateURI(e),s.s3BucketEndpoint=o,r.headers.Host=r.endpoint.host,"validate"===e._asm.currentState&&(e.removeListener("build",a.populateURI),e.addListener("build",a.removeVirtualHostedBucketFromPath))}},extractData:function(e){var t=e.request;if("getBucketLocation"===t.operation){var r=e.httpResponse.body.toString().match(/>(.+)<\/Location/);delete e.data._,e.data.LocationConstraint=r?r[1]:""}var i=t.params.Bucket||null;if("deleteBucket"!==t.operation||"string"!=typeof i||e.error){var a=e.httpResponse.headers||{},s=a["x-amz-bucket-region"]||null;if(!s&&"createBucket"===t.operation&&!e.error){var o=t.params.CreateBucketConfiguration;s=o?"EU"===o.LocationConstraint?"eu-west-1":o.LocationConstraint:"us-east-1"}s&&i&&s!==t.service.bucketRegionCache[i]&&(t.service.bucketRegionCache[i]=s)}else t.service.clearBucketRegionCache(i);t.service.extractRequestIds(e)},extractError:function(e){var t={304:"NotModified",403:"Forbidden",400:"BadRequest",404:"NotFound"},r=e.request,a=e.httpResponse.statusCode,s=e.httpResponse.body||"",o=e.httpResponse.headers||{},n=o["x-amz-bucket-region"]||null,u=r.params.Bucket||null,p=r.service.bucketRegionCache;n&&u&&n!==p[u]&&(p[u]=n);var m;if(t[a]&&0===s.length)u&&!n&&(m=p[u]||null)!==r.httpRequest.region&&(n=m),e.error=i.util.error(new Error,{code:t[a],message:null,region:n});else{var c=(new i.XML.Parser).parse(s.toString());c.Region&&!n?(n=c.Region,u&&n!==p[u]&&(p[u]=n)):!u||n||c.Region||(m=p[u]||null)!==r.httpRequest.region&&(n=m),e.error=i.util.error(new Error,{code:c.Code||a,message:c.Message||null,region:n})}r.service.extractRequestIds(e)},requestBucketRegion:function(e,t){var r=e.error,a=e.request,s=a.params.Bucket||null;if(!r||!s||r.region||"listObjects"===a.operation||i.util.isNode()&&"headBucket"===a.operation||400===r.statusCode&&"headObject"!==a.operation||-1===p.indexOf(r.code))return t();var o=i.util.isNode()?"headBucket":"listObjects",n={Bucket:s};"listObjects"===o&&(n.MaxKeys=0);var u=a.service[o](n);u._requestRegionForBucket=s,u.send(function(){var e=a.service.bucketRegionCache[s]||null;r.region=e,t()})},reqRegionForNetworkingError:function(e,t){if(!i.util.isBrowser())return t();var r=e.error,a=e.request,s=a.params.Bucket;if(!r||"NetworkingError"!==r.code||!s||"us-east-1"===a.httpRequest.region)return t();var n=a.service,u=n.bucketRegionCache,p=u[s]||null;if(p&&p!==a.httpRequest.region)n.updateReqBucketRegion(a,p),t();else if(o.dnsCompatibleBucketName(s))if(a.httpRequest.virtualHostedBucket){var m=n.listObjects({Bucket:s,MaxKeys:0});n.updateReqBucketRegion(m,"us-east-1"),m._requestRegionForBucket=s,m.send(function(){var e=n.bucketRegionCache[s]||null;e&&e!==a.httpRequest.region&&n.updateReqBucketRegion(a,e),t()})}else t();else n.updateReqBucketRegion(a,"us-east-1"),"us-east-1"!==u[s]&&(u[s]="us-east-1"),t()},bucketRegionCache:{},clearBucketRegionCache:function(e){var t=this.bucketRegionCache;e?"string"==typeof e&&(e=[e]):e=Object.keys(t);for(var r=0;r<e.length;r++)delete t[e[r]];return t},correctBucketRegionFromCache:function(e){var t=e.params.Bucket||null;if(t){var r=e.service,i=e.httpRequest.region,a=r.bucketRegionCache[t];a&&a!==i&&r.updateReqBucketRegion(e,a)}},extractRequestIds:function(e){var t=e.httpResponse.headers?e.httpResponse.headers["x-amz-id-2"]:null,r=e.httpResponse.headers?e.httpResponse.headers["x-amz-cf-id"]:null;e.extendedRequestId=t,e.cfId=r,e.error&&(e.error.requestId=e.requestId||null,e.error.extendedRequestId=t,e.error.cfId=r)},getSignedUrl:function(e,t,r){t=i.util.copy(t||{});var a=t.Expires||900;if("number"!=typeof a)throw i.util.error(new Error,{code:"InvalidParameterException",message:"The expiration must be a number, received "+typeof a});delete t.Expires;var s=this.makeRequest(e,t);if(!r)return s.presign(a,r);i.util.defer(function(){s.presign(a,r)})},createPresignedPost:function(e,t){function r(){return{url:i.util.urlFormat(u),fields:o.preparePostFields(n.credentials,n.region,s,e.Fields,e.Conditions,e.Expires)}}"function"==typeof e&&void 0===t&&(t=e,e=null),e=i.util.copy(e||{});var a=this.config.params||{},s=e.Bucket||a.Bucket,o=this,n=this.config,u=i.util.copy(this.endpoint);if(n.s3BucketEndpoint||(u.pathname="/"+s),!t)return r();n.getCredentials(function(e){if(e)t(e);else try{t(null,r())}catch(e){t(e)}})},preparePostFields:function(e,t,r,s,o,n){var u=this.getSkewCorrectedDate();if(!e||!t||!r)throw new Error("Unable to create a POST object policy without a bucket, region, and credentials");s=i.util.copy(s||{}),o=(o||[]).slice(0),n=n||3600;var p=i.util.date.iso8601(u).replace(/[:\-]|\.\d{3}/g,""),m=p.substr(0,8),c=a.createScope(m,t,"s3"),l=e.accessKeyId+"/"+c;s.bucket=r,s["X-Amz-Algorithm"]="AWS4-HMAC-SHA256",s["X-Amz-Credential"]=l,s["X-Amz-Date"]=p,e.sessionToken&&(s["X-Amz-Security-Token"]=e.sessionToken);for(var d in s)if(s.hasOwnProperty(d)){var y={};y[d]=s[d],o.push(y)}return s.Policy=this.preparePostPolicy(new Date(u.valueOf()+1e3*n),o),s["X-Amz-Signature"]=i.util.crypto.hmac(a.getSigningKey(e,m,t,"s3",!0),s.Policy,"hex"),s},preparePostPolicy:function(e,t){return i.util.base64.encode(JSON.stringify({expiration:i.util.date.iso8601(e),conditions:t}))},prepareSignedUrl:function(e){e.addListener("validate",e.service.noPresignedContentLength),e.removeListener("build",e.service.addContentType),e.params.Body?e.addListener("afterBuild",i.EventListeners.Core.COMPUTE_SHA256):e.removeListener("build",e.service.computeContentMd5)},disableBodySigning:function(e){var t=e.httpRequest.headers;Object.prototype.hasOwnProperty.call(t,"presigned-expires")||(t["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD")},noPresignedContentLength:function(e){if(void 0!==e.params.ContentLength)throw i.util.error(new Error,{code:"UnexpectedParameter",message:"ContentLength is not supported in pre-signed URLs."})},createBucket:function(e,t){"function"!=typeof e&&e||(t=t||e,e={});var r=this.endpoint.hostname,a=i.util.copy(e);return r===this.api.globalEndpoint||e.CreateBucketConfiguration||(a.CreateBucketConfiguration={LocationConstraint:this.config.region}),this.makeRequest("createBucket",a,t)},writeGetObjectResponse:function(e,t){var r=this.makeRequest("writeGetObjectResponse",i.util.copy(e),t),a=this.endpoint.hostname;return a=-1!==a.indexOf(this.config.region)?a.replace("s3.","s3-object-lambda."):a.replace("s3.","s3-object-lambda."+this.config.region+"."),r.httpRequest.endpoint=new i.Endpoint(a,this.config),r},upload:function(e,t,r){"function"==typeof t&&void 0===r&&(r=t,t=null),t=t||{},t=i.util.merge(t||{},{service:this,params:e});var a=new i.S3.ManagedUpload(t);return"function"==typeof r&&a.send(r),a}}),i.S3.addPromisesToClass=function(e){this.prototype.getSignedUrlPromise=i.util.promisifyMethod("getSignedUrl",e)},i.S3.deletePromisesFromClass=function(){delete this.prototype.getSignedUrlPromise},i.util.addPromises(i.S3)},{"../config_regional_endpoint":341,"../core":342,"../region_config":385,"../s3/managed_upload":390,"../signers/v4_credentials":415,"./s3util":405}],405:[function(e,t,r){(function(r){(function(){var i=e("../core"),a=e("../region_config"),s={isArnInParam:function(e,t){var r=(e.service.api.operations[e.operation]||{}).input||{},a=r.members||{};return!(!e.params[t]||!a[t])&&i.util.ARN.validate(e.params[t])},validateArnService:function(e){var t=e._parsedArn;if("s3"!==t.service&&"s3-outposts"!==t.service&&"s3-object-lambda"!==t.service)throw i.util.error(new Error,{code:"InvalidARN",message:"expect 's3' or 's3-outposts' or 's3-object-lambda' in ARN service component"})},validateArnAccount:function(e){if(!/[0-9]{12}/.exec(e._parsedArn.accountId))throw i.util.error(new Error,{code:"InvalidARN",message:'ARN accountID does not match regex "[0-9]{12}"'})},validateS3AccessPointArn:function(e){var t=e._parsedArn,r=t.resource["accesspoint".length];if(2!==t.resource.split(r).length)throw i.util.error(new Error,{code:"InvalidARN",message:"Access Point ARN should have one resource accesspoint/{accesspointName}"});var a=t.resource.split(r)[1],o=a+"-"+t.accountId;if(!s.dnsCompatibleBucketName(o)||o.match(/\./))throw i.util.error(new Error,{code:"InvalidARN",message:"Access point resource in ARN is not DNS compatible. Got "+a});e._parsedArn.accessPoint=a},validateOutpostsArn:function(e){var t=e._parsedArn;if(0!==t.resource.indexOf("outpost:")&&0!==t.resource.indexOf("outpost/"))throw i.util.error(new Error,{code:"InvalidARN",message:"ARN resource should begin with 'outpost/'"});var r=t.resource["outpost".length],a=t.resource.split(r)[1]
|
|
88
|
+
;if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(a))throw i.util.error(new Error,{code:"InvalidARN",message:"Outpost resource in ARN is not DNS compatible. Got "+a});e._parsedArn.outpostId=a},validateOutpostsAccessPointArn:function(e){var t=e._parsedArn,r=t.resource["outpost".length];if(4!==t.resource.split(r).length)throw i.util.error(new Error,{code:"InvalidARN",message:"Outposts ARN should have two resources outpost/{outpostId}/accesspoint/{accesspointName}"});var a=t.resource.split(r)[3],o=a+"-"+t.accountId;if(!s.dnsCompatibleBucketName(o)||o.match(/\./))throw i.util.error(new Error,{code:"InvalidARN",message:"Access point resource in ARN is not DNS compatible. Got "+a});e._parsedArn.accessPoint=a},validateArnRegion:function(e){var t=s.loadUseArnRegionConfig(e),r=e._parsedArn.region,o=e.service.config.region;if(!r)throw i.util.error(new Error,{code:"InvalidARN",message:"ARN region is empty"});if(o.indexOf("fips")>=0||r.indexOf("fips")>=0)throw i.util.error(new Error,{code:"InvalidConfiguration",message:"ARN endpoint is not compatible with FIPS region"});if(!t&&r!==o)throw i.util.error(new Error,{code:"InvalidConfiguration",message:"Configured region conflicts with access point region"});if(t&&a.getEndpointSuffix(r)!==a.getEndpointSuffix(o))throw i.util.error(new Error,{code:"InvalidConfiguration",message:"Configured region and access point region not in same partition"});if(e.service.config.useAccelerateEndpoint)throw i.util.error(new Error,{code:"InvalidConfiguration",message:"useAccelerateEndpoint config is not supported with access point ARN"});if("s3-outposts"===e._parsedArn.service&&e.service.config.useDualstack)throw i.util.error(new Error,{code:"InvalidConfiguration",message:"useDualstack config is not supported with outposts access point ARN"})},loadUseArnRegionConfig:function(e){var t="AWS_S3_USE_ARN_REGION",a="s3_use_arn_region",s=!0,o=e.service._originalConfig||{};if(void 0!==e.service.config.s3UseArnRegion)return e.service.config.s3UseArnRegion;if(void 0!==o.s3UseArnRegion)s=!0===o.s3UseArnRegion;else if(i.util.isNode())if(r.env[t]){var n=r.env[t].trim().toLowerCase();if(["false","true"].indexOf(n)<0)throw i.util.error(new Error,{code:"InvalidConfiguration",message:t+" only accepts true or false. Got "+r.env[t],retryable:!1});s="true"===n}else{var u={},p={};try{u=i.util.getProfilesFromSharedConfig(i.util.iniLoader),p=u[r.env.AWS_PROFILE||i.util.defaultProfile]}catch(e){}if(p[a]){if(["false","true"].indexOf(p[a].trim().toLowerCase())<0)throw i.util.error(new Error,{code:"InvalidConfiguration",message:a+" only accepts true or false. Got "+p[a],retryable:!1});s="true"===p[a].trim().toLowerCase()}}return e.service.config.s3UseArnRegion=s,s},validatePopulateUriFromArn:function(e){if(e.service._originalConfig&&e.service._originalConfig.endpoint)throw i.util.error(new Error,{code:"InvalidConfiguration",message:"Custom endpoint is not compatible with access point ARN"});if(e.service.config.s3ForcePathStyle)throw i.util.error(new Error,{code:"InvalidConfiguration",message:"Cannot construct path-style endpoint with access point"})},dnsCompatibleBucketName:function(e){var t=e,r=new RegExp(/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/),i=new RegExp(/(\d+\.){3}\d+/),a=new RegExp(/\.\./);return!(!t.match(r)||t.match(i)||t.match(a))}};t.exports=s}).call(this)}).call(this,e("_process"))},{"../core":342,"../region_config":385,_process:431}],406:[function(e,t,r){var i=e("../core");i.util.update(i.SQS.prototype,{setupRequestListeners:function(e){e.addListener("build",this.buildEndpoint),e.service.config.computeChecksums&&("sendMessage"===e.operation?e.addListener("extractData",this.verifySendMessageChecksum):"sendMessageBatch"===e.operation?e.addListener("extractData",this.verifySendMessageBatchChecksum):"receiveMessage"===e.operation&&e.addListener("extractData",this.verifyReceiveMessageChecksum))},verifySendMessageChecksum:function(e){if(e.data){var t=e.data.MD5OfMessageBody,r=this.params.MessageBody,i=this.service.calculateChecksum(r);if(i!==t){var a='Got "'+e.data.MD5OfMessageBody+'", expecting "'+i+'".';this.service.throwInvalidChecksumError(e,[e.data.MessageId],a)}}},verifySendMessageBatchChecksum:function(e){if(e.data){var t=this.service,r={},a=[],s=[];i.util.arrayEach(e.data.Successful,function(e){r[e.Id]=e}),i.util.arrayEach(this.params.Entries,function(e){if(r[e.Id]){var i=r[e.Id].MD5OfMessageBody,o=e.MessageBody;t.isChecksumValid(i,o)||(a.push(e.Id),s.push(r[e.Id].MessageId))}}),a.length>0&&t.throwInvalidChecksumError(e,s,"Invalid messages: "+a.join(", "))}},verifyReceiveMessageChecksum:function(e){if(e.data){var t=this.service,r=[];i.util.arrayEach(e.data.Messages,function(e){var i=e.MD5OfBody,a=e.Body;t.isChecksumValid(i,a)||r.push(e.MessageId)}),r.length>0&&t.throwInvalidChecksumError(e,r,"Invalid messages: "+r.join(", "))}},throwInvalidChecksumError:function(e,t,r){e.error=i.util.error(new Error,{retryable:!0,code:"InvalidChecksum",messageIds:t,message:e.request.operation+" returned an invalid MD5 response. "+r})},isChecksumValid:function(e,t){return this.calculateChecksum(t)===e},calculateChecksum:function(e){return i.util.crypto.md5(e,"hex")},buildEndpoint:function(e){var t=e.httpRequest.params.QueueUrl;if(t){e.httpRequest.endpoint=new i.Endpoint(t);var r=e.httpRequest.endpoint.host.match(/^sqs\.(.+?)\./);r&&(e.httpRequest.region=r[1])}}})},{"../core":342}],407:[function(e,t,r){var i=e("../core"),a=e("../config_regional_endpoint");i.util.update(i.STS.prototype,{credentialsFrom:function(e,t){return e?(t||(t=new i.TemporaryCredentials),t.expired=!1,t.accessKeyId=e.Credentials.AccessKeyId,t.secretAccessKey=e.Credentials.SecretAccessKey,t.sessionToken=e.Credentials.SessionToken,t.expireTime=e.Credentials.Expiration,t):null},assumeRoleWithWebIdentity:function(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithWebIdentity",e,t)},assumeRoleWithSAML:function(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithSAML",e,t)},setupRequestListeners:function(e){e.addListener("validate",this.optInRegionalEndpoint,!0)},optInRegionalEndpoint:function(e){var t=e.service,r=t.config;if(r.stsRegionalEndpoints=a(t._originalConfig,{env:"AWS_STS_REGIONAL_ENDPOINTS",sharedConfig:"sts_regional_endpoints",clientConfig:"stsRegionalEndpoints"}),"regional"===r.stsRegionalEndpoints&&t.isGlobalEndpoint){if(!r.region)throw i.util.error(new Error,{code:"ConfigError",message:"Missing region in config"});var s=r.endpoint.indexOf(".amazonaws.com"),o=r.endpoint.substring(0,s)+"."+r.region+r.endpoint.substring(s);e.httpRequest.updateEndpoint(o),e.httpRequest.region=r.region}}})},{"../config_regional_endpoint":341,"../core":342}],408:[function(e,t,r){function i(e){var t=e.httpRequest.headers[n],r=e.service.getSignerClass(e);if(delete e.httpRequest.headers["User-Agent"],delete e.httpRequest.headers["X-Amz-User-Agent"],r===s.Signers.V4){if(t>604800){throw s.util.error(new Error,{code:"InvalidExpiryTime",message:"Presigning does not support expiry time greater than a week with SigV4 signing.",retryable:!1})}e.httpRequest.headers[n]=t}else{if(r!==s.Signers.S3)throw s.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:!1});var i=e.service?e.service.getSkewCorrectedDate():s.util.date.getDate();e.httpRequest.headers[n]=parseInt(s.util.date.unixTimestamp(i)+t,10).toString()}}function a(e){var t=e.httpRequest.endpoint,r=s.util.urlParse(e.httpRequest.path),i={};r.search&&(i=s.util.queryStringParse(r.search.substr(1)));var a=e.httpRequest.headers.Authorization.split(" ");if("AWS"===a[0])a=a[1].split(":"),i.Signature=a.pop(),i.AWSAccessKeyId=a.join(":"),s.util.each(e.httpRequest.headers,function(e,t){e===n&&(e="Expires"),0===e.indexOf("x-amz-meta-")&&(delete i[e],e=e.toLowerCase()),i[e]=t}),delete e.httpRequest.headers[n],delete i.Authorization,delete i.Host;else if("AWS4-HMAC-SHA256"===a[0]){a.shift();var o=a.join(" "),u=o.match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];i["X-Amz-Signature"]=u,delete i.Expires}t.pathname=r.pathname,t.search=s.util.queryParamsToString(i)}var s=e("../core"),o=s.util.inherit,n="presigned-expires";s.Signers.Presign=o({sign:function(e,t,r){if(e.httpRequest.headers[n]=t||3600,e.on("build",i),e.on("sign",a),e.removeListener("afterBuild",s.EventListeners.Core.SET_CONTENT_LENGTH),e.removeListener("afterBuild",s.EventListeners.Core.COMPUTE_SHA256),e.emit("beforePresign",[e]),!r){if(e.build(),e.response.error)throw e.response.error;return s.util.urlFormat(e.httpRequest.endpoint)}e.build(function(){this.response.error?r(this.response.error):r(null,s.util.urlFormat(e.httpRequest.endpoint))})}}),t.exports=s.Signers.Presign},{"../core":342}],409:[function(e,t,r){var i=e("../core"),a=i.util.inherit;i.Signers.RequestSigner=a({constructor:function(e){this.request=e},setServiceClientId:function(e){this.serviceClientId=e},getServiceClientId:function(){return this.serviceClientId}}),i.Signers.RequestSigner.getVersion=function(e){switch(e){case"v2":return i.Signers.V2;case"v3":return i.Signers.V3;case"s3v4":case"v4":return i.Signers.V4;case"s3":return i.Signers.S3;case"v3https":return i.Signers.V3Https}throw new Error("Unknown signing version "+e)},e("./v2"),e("./v3"),e("./v3https"),e("./v4"),e("./s3"),e("./presign")},{"../core":342,"./presign":408,"./s3":410,"./v2":411,"./v3":412,"./v3https":413,"./v4":414}],410:[function(e,t,r){var i=e("../core"),a=i.util.inherit;i.Signers.S3=a(i.Signers.RequestSigner,{subResources:{acl:1,accelerate:1,analytics:1,cors:1,lifecycle:1,delete:1,inventory:1,location:1,logging:1,metrics:1,notification:1,partNumber:1,policy:1,requestPayment:1,replication:1,restore:1,tagging:1,torrent:1,uploadId:1,uploads:1,versionId:1,versioning:1,versions:1,website:1},responseHeaders:{"response-content-type":1,"response-content-language":1,"response-expires":1,"response-cache-control":1,"response-content-disposition":1,"response-content-encoding":1},addAuthorization:function(e,t){this.request.headers["presigned-expires"]||(this.request.headers["X-Amz-Date"]=i.util.date.rfc822(t)),e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken);var r=this.sign(e.secretAccessKey,this.stringToSign()),a="AWS "+e.accessKeyId+":"+r;this.request.headers.Authorization=a},stringToSign:function(){var e=this.request,t=[];t.push(e.method),t.push(e.headers["Content-MD5"]||""),t.push(e.headers["Content-Type"]||""),t.push(e.headers["presigned-expires"]||"");var r=this.canonicalizedAmzHeaders();return r&&t.push(r),t.push(this.canonicalizedResource()),t.join("\n")},canonicalizedAmzHeaders:function(){var e=[];i.util.each(this.request.headers,function(t){t.match(/^x-amz-/i)&&e.push(t)}),e.sort(function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:1});var t=[];return i.util.arrayEach.call(this,e,function(e){t.push(e.toLowerCase()+":"+String(this.request.headers[e]))}),t.join("\n")},canonicalizedResource:function(){var e=this.request,t=e.path.split("?"),r=t[0],a=t[1],s="";if(e.virtualHostedBucket&&(s+="/"+e.virtualHostedBucket),s+=r,a){var o=[];i.util.arrayEach.call(this,a.split("&"),function(e){var t=e.split("=")[0],r=e.split("=")[1];if(this.subResources[t]||this.responseHeaders[t]){var i={name:t};void 0!==r&&(this.subResources[t]?i.value=r:i.value=decodeURIComponent(r)),o.push(i)}}),o.sort(function(e,t){return e.name<t.name?-1:1}),o.length&&(a=[],i.util.arrayEach(o,function(e){void 0===e.value?a.push(e.name):a.push(e.name+"="+e.value)}),s+="?"+a.join("&"))}return s},sign:function(e,t){return i.util.crypto.hmac(e,t,"base64","sha1")}}),t.exports=i.Signers.S3},{"../core":342}],411:[function(e,t,r){var i=e("../core"),a=i.util.inherit;i.Signers.V2=a(i.Signers.RequestSigner,{addAuthorization:function(e,t){t||(t=i.util.date.getDate());var r=this.request;r.params.Timestamp=i.util.date.iso8601(t),r.params.SignatureVersion="2",r.params.SignatureMethod="HmacSHA256",r.params.AWSAccessKeyId=e.accessKeyId,e.sessionToken&&(r.params.SecurityToken=e.sessionToken),delete r.params.Signature,r.params.Signature=this.signature(e),r.body=i.util.queryParamsToString(r.params),r.headers["Content-Length"]=r.body.length},signature:function(e){return i.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var e=[];return e.push(this.request.method),e.push(this.request.endpoint.host.toLowerCase()),e.push(this.request.pathname()),e.push(i.util.queryParamsToString(this.request.params)),e.join("\n")}}),t.exports=i.Signers.V2},{"../core":342}],412:[function(e,t,r){var i=e("../core"),a=i.util.inherit;i.Signers.V3=a(i.Signers.RequestSigner,{addAuthorization:function(e,t){var r=i.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=r,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(e,r)},authorization:function(e){return"AWS3 AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,SignedHeaders="+this.signedHeaders()+",Signature="+this.signature(e)},signedHeaders:function(){var e=[];return i.util.arrayEach(this.headersToSign(),function(t){e.push(t.toLowerCase())}),e.sort().join(";")},canonicalHeaders:function(){var e=this.request.headers,t=[];return i.util.arrayEach(this.headersToSign(),function(r){t.push(r.toLowerCase().trim()+":"+String(e[r]).trim())}),t.sort().join("\n")+"\n"},headersToSign:function(){var e=[];return i.util.each(this.request.headers,function(t){("Host"===t||"Content-Encoding"===t||t.match(/^X-Amz/i))&&e.push(t)}),e},signature:function(e){return i.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var e=[];return e.push(this.request.method),e.push("/"),e.push(""),e.push(this.canonicalHeaders()),e.push(this.request.body),i.util.crypto.sha256(e.join("\n"))}}),t.exports=i.Signers.V3},{"../core":342}],413:[function(e,t,r){var i=e("../core"),a=i.util.inherit;e("./v3"),i.Signers.V3Https=a(i.Signers.V3,{authorization:function(e){return"AWS3-HTTPS AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,Signature="+this.signature(e)},stringToSign:function(){return this.request.headers["X-Amz-Date"]}}),t.exports=i.Signers.V3Https},{"../core":342,"./v3":412}],414:[function(e,t,r){var i=e("../core"),a=e("./v4_credentials"),s=i.util.inherit;i.Signers.V4=s(i.Signers.RequestSigner,{constructor:function(e,t,r){i.Signers.RequestSigner.call(this,e),this.serviceName=t,r=r||{},this.signatureCache="boolean"!=typeof r.signatureCache||r.signatureCache,this.operation=r.operation,this.signatureVersion=r.signatureVersion},algorithm:"AWS4-HMAC-SHA256",addAuthorization:function(e,t){var r=i.util.date.iso8601(t).replace(/[:\-]|\.\d{3}/g,"");this.isPresigned()?this.updateForPresigned(e,r):this.addHeaders(e,r),this.request.headers.Authorization=this.authorization(e,r)},addHeaders:function(e,t){this.request.headers["X-Amz-Date"]=t,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken)},updateForPresigned:function(e,t){var r=this.credentialString(t),a={"X-Amz-Date":t,"X-Amz-Algorithm":this.algorithm,"X-Amz-Credential":e.accessKeyId+"/"+r,"X-Amz-Expires":this.request.headers["presigned-expires"],"X-Amz-SignedHeaders":this.signedHeaders()};e.sessionToken&&(a["X-Amz-Security-Token"]=e.sessionToken),this.request.headers["Content-Type"]&&(a["Content-Type"]=this.request.headers["Content-Type"]),this.request.headers["Content-MD5"]&&(a["Content-MD5"]=this.request.headers["Content-MD5"]),this.request.headers["Cache-Control"]&&(a["Cache-Control"]=this.request.headers["Cache-Control"]),i.util.each.call(this,this.request.headers,function(e,t){if("presigned-expires"!==e&&this.isSignableHeader(e)){var r=e.toLowerCase();0===r.indexOf("x-amz-meta-")?a[r]=t:0===r.indexOf("x-amz-")&&(a[e]=t)}});var s=this.request.path.indexOf("?")>=0?"&":"?";this.request.path+=s+i.util.queryParamsToString(a)},authorization:function(e,t){var r=[],i=this.credentialString(t);return r.push(this.algorithm+" Credential="+e.accessKeyId+"/"+i),r.push("SignedHeaders="+this.signedHeaders()),r.push("Signature="+this.signature(e,t)),r.join(", ")},signature:function(e,t){var r=a.getSigningKey(e,t.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return i.util.crypto.hmac(r,this.stringToSign(t),"hex")},stringToSign:function(e){var t=[];return t.push("AWS4-HMAC-SHA256"),t.push(e),t.push(this.credentialString(e)),t.push(this.hexEncodedHash(this.canonicalString())),t.join("\n")},canonicalString:function(){var e=[],t=this.request.pathname();return"s3"!==this.serviceName&&"s3v4"!==this.signatureVersion&&(t=i.util.uriEscapePath(t)),e.push(this.request.method),e.push(t),e.push(this.request.search()),e.push(this.canonicalHeaders()+"\n"),e.push(this.signedHeaders()),e.push(this.hexEncodedBodyHash()),e.join("\n")},canonicalHeaders:function(){var e=[];i.util.each.call(this,this.request.headers,function(t,r){e.push([t,r])}),e.sort(function(e,t){return e[0].toLowerCase()<t[0].toLowerCase()?-1:1});var t=[];return i.util.arrayEach.call(this,e,function(e){var r=e[0].toLowerCase();if(this.isSignableHeader(r)){var a=e[1];if(void 0===a||null===a||"function"!=typeof a.toString)throw i.util.error(new Error("Header "+r+" contains invalid value"),{code:"InvalidHeader"});t.push(r+":"+this.canonicalHeaderValues(a.toString()))}}),t.join("\n")},canonicalHeaderValues:function(e){return e.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")},signedHeaders:function(){var e=[];return i.util.each.call(this,this.request.headers,function(t){t=t.toLowerCase(),this.isSignableHeader(t)&&e.push(t)}),e.sort().join(";")},credentialString:function(e){return a.createScope(e.substr(0,8),this.request.region,this.serviceName)},hexEncodedHash:function(e){return i.util.crypto.sha256(e,"hex")},hexEncodedBodyHash:function(){var e=this.request;return this.isPresigned()&&["s3","s3-object-lambda"].indexOf(this.serviceName)>-1&&!e.body?"UNSIGNED-PAYLOAD":e.headers["X-Amz-Content-Sha256"]?e.headers["X-Amz-Content-Sha256"]:this.hexEncodedHash(this.request.body||"")},unsignableHeaders:["authorization","content-type","content-length","user-agent","presigned-expires","expect","x-amzn-trace-id"],isSignableHeader:function(e){return 0===e.toLowerCase().indexOf("x-amz-")||this.unsignableHeaders.indexOf(e)<0},isPresigned:function(){return!!this.request.headers["presigned-expires"]}}),t.exports=i.Signers.V4},{"../core":342,"./v4_credentials":415}],415:[function(e,t,r){var i=e("../core"),a={},s=[];t.exports={createScope:function(e,t,r){return[e.substr(0,8),t,r,"aws4_request"].join("/")},getSigningKey:function(e,t,r,o,n){var u=i.util.crypto.hmac(e.secretAccessKey,e.accessKeyId,"base64"),p=[u,t,r,o].join("_");if((n=!1!==n)&&p in a)return a[p];var m=i.util.crypto.hmac("AWS4"+e.secretAccessKey,t,"buffer"),c=i.util.crypto.hmac(m,r,"buffer"),l=i.util.crypto.hmac(c,o,"buffer"),d=i.util.crypto.hmac(l,"aws4_request","buffer");return n&&(a[p]=d,s.push(p),s.length>50&&delete a[s.shift()]),d},emptyCache:function(){a={},s=[]}}},{"../core":342}],416:[function(e,t,r){function i(e,t){this.currentState=t||null,this.states=e||{}}i.prototype.runTo=function(e,t,r,i){"function"==typeof e&&(i=r,r=t,t=e,e=null);var a=this,s=a.states[a.currentState];s.fn.call(r||a,i,function(i){if(i){if(!s.fail)return t?t.call(r,i):null;a.currentState=s.fail}else{if(!s.accept)return t?t.call(r):null;a.currentState=s.accept}if(a.currentState===e)return t?t.call(r,i):null;a.runTo(e,t,r,i)})},i.prototype.addState=function(e,t,r,i){return"function"==typeof t?(i=t,t=null,r=null):"function"==typeof r&&(i=r,r=null),this.currentState||(this.currentState=e),this.states[e]={accept:t,fail:r,fn:i},this},t.exports=i},{}],417:[function(e,t,r){(function(r,i){(function(){var a,s={environment:"nodejs",engine:function(){if(s.isBrowser()&&"undefined"!=typeof navigator)return navigator.userAgent;var e=r.platform+"/"+r.version;return r.env.AWS_EXECUTION_ENV&&(e+=" exec-env/"+r.env.AWS_EXECUTION_ENV),e},userAgent:function(){var t=s.environment,r="aws-sdk-"+t+"/"+e("./core").VERSION;return"nodejs"===t&&(r+=" "+s.engine()),r},uriEscape:function(e){var t=encodeURIComponent(e);return t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape),t=t.replace(/[*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})},uriEscapePath:function(e){var t=[];return s.arrayEach(e.split("/"),function(e){t.push(s.uriEscape(e))}),t.join("/")},urlParse:function(e){return s.url.parse(e)},urlFormat:function(e){return s.url.format(e)},queryStringParse:function(e){return s.querystring.parse(e)},queryParamsToString:function(e){var t=[],r=s.uriEscape,i=Object.keys(e).sort();return s.arrayEach(i,function(i){var a=e[i],o=r(i),n=o+"=";if(Array.isArray(a)){var u=[];s.arrayEach(a,function(e){u.push(r(e))}),n=o+"="+u.sort().join("&"+o+"=")}else void 0!==a&&null!==a&&(n=o+"="+r(a));t.push(n)}),t.join("&")},readFileSync:function(t){return s.isBrowser()?null:e("fs").readFileSync(t,"utf-8")},base64:{encode:function(e){if("number"==typeof e)throw s.error(new Error("Cannot base64 encode number "+e));return null===e||void 0===e?e:s.buffer.toBuffer(e).toString("base64")},decode:function(e){if("number"==typeof e)throw s.error(new Error("Cannot base64 decode number "+e));return null===e||void 0===e?e:s.buffer.toBuffer(e,"base64")}},buffer:{toBuffer:function(e,t){return"function"==typeof s.Buffer.from&&s.Buffer.from!==Uint8Array.from?s.Buffer.from(e,t):new s.Buffer(e,t)},alloc:function(e,t,r){if("number"!=typeof e)throw new Error("size passed to alloc must be a number.");if("function"==typeof s.Buffer.alloc)return s.Buffer.alloc(e,t,r);var i=new s.Buffer(e);return void 0!==t&&"function"==typeof i.fill&&i.fill(t,void 0,void 0,r),i},toStream:function(e){s.Buffer.isBuffer(e)||(e=s.buffer.toBuffer(e));var t=new s.stream.Readable,r=0;return t._read=function(i){if(r>=e.length)return t.push(null);var a=r+i;a>e.length&&(a=e.length),t.push(e.slice(r,a)),r=a},t},concat:function(e){var t,r=0,i=0,a=null;for(t=0;t<e.length;t++)r+=e[t].length;for(a=s.buffer.alloc(r),t=0;t<e.length;t++)e[t].copy(a,i),i+=e[t].length;return a}},string:{byteLength:function(t){if(null===t||void 0===t)return 0;if("string"==typeof t&&(t=s.buffer.toBuffer(t)),"number"==typeof t.byteLength)return t.byteLength;if("number"==typeof t.length)return t.length;if("number"==typeof t.size)return t.size;if("string"==typeof t.path)return e("fs").lstatSync(t.path).size;throw s.error(new Error("Cannot determine length of "+t),{object:t})},upperFirst:function(e){return e[0].toUpperCase()+e.substr(1)},lowerFirst:function(e){return e[0].toLowerCase()+e.substr(1)}},ini:{parse:function(e){var t,r={};return s.arrayEach(e.split(/\r?\n/),function(e){e=e.split(/(^|\s)[;#]/)[0];var i=e.match(/^\s*\[([^\[\]]+)\]\s*$/);if(i){if("__proto__"===(t=i[1])||"__proto__"===t.split(/\s/)[1])throw s.error(new Error("Cannot load profile name '"+t+"' from shared ini file."))}else if(t){var a=e.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/);a&&(r[t]=r[t]||{},r[t][a[1]]=a[2])}}),r}},fn:{noop:function(){},callback:function(e){if(e)throw e},makeAsync:function(e,t){return t&&t<=e.length?e:function(){var t=Array.prototype.slice.call(arguments,0);t.pop()(e.apply(null,t))}}},date:{getDate:function(){return a||(a=e("./core")),a.config.systemClockOffset?new Date((new Date).getTime()+a.config.systemClockOffset):new Date},iso8601:function(e){return void 0===e&&(e=s.date.getDate()),e.toISOString().replace(/\.\d{3}Z$/,"Z")},rfc822:function(e){return void 0===e&&(e=s.date.getDate()),e.toUTCString()},unixTimestamp:function(e){return void 0===e&&(e=s.date.getDate()),e.getTime()/1e3},from:function(e){return"number"==typeof e?new Date(1e3*e):new Date(e)},format:function(e,t){return t||(t="iso8601"),s.date[t](s.date.from(e))},parseTimestamp:function(e){if("number"==typeof e)return new Date(1e3*e);if(e.match(/^\d+$/))return new Date(1e3*e);if(e.match(/^\d{4}/))return new Date(e);if(e.match(/^\w{3},/))return new Date(e);throw s.error(new Error("unhandled timestamp format: "+e),{code:"TimestampParserError"})}},crypto:{crc32Table:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],crc32:function(e){var t=s.crypto.crc32Table,r=-1;"string"==typeof e&&(e=s.buffer.toBuffer(e));for(var i=0;i<e.length;i++){r=r>>>8^t[255&(r^e.readUInt8(i))]}return(-1^r)>>>0},hmac:function(e,t,r,i){return r||(r="binary"),"buffer"===r&&(r=void 0),i||(i="sha256"),"string"==typeof t&&(t=s.buffer.toBuffer(t)),s.crypto.lib.createHmac(i,e).update(t).digest(r)},md5:function(e,t,r){return s.crypto.hash("md5",e,t,r)},sha256:function(e,t,r){return s.crypto.hash("sha256",e,t,r)},hash:function(e,t,r,i){var a=s.crypto.createHash(e);r||(r="binary"),"buffer"===r&&(r=void 0),"string"==typeof t&&(t=s.buffer.toBuffer(t));var o=s.arraySliceFn(t),n=s.Buffer.isBuffer(t);if(s.isBrowser()&&"undefined"!=typeof ArrayBuffer&&t&&t.buffer instanceof ArrayBuffer&&(n=!0),i&&"object"==typeof t&&"function"==typeof t.on&&!n)t.on("data",function(e){a.update(e)}),t.on("error",function(e){i(e)}),t.on("end",function(){i(null,a.digest(r))});else{if(!i||!o||n||"undefined"==typeof FileReader){s.isBrowser()&&"object"==typeof t&&!n&&(t=new s.Buffer(new Uint8Array(t)));var u=a.update(t).digest(r);return i&&i(null,u),u}var p=0,m=new FileReader;m.onerror=function(){i(new Error("Failed to read data."))},m.onload=function(){var e=new s.Buffer(new Uint8Array(m.result));a.update(e),p+=e.length,m._continueReading()},m._continueReading=function(){if(p>=t.size)return void i(null,a.digest(r));var e=p+524288;e>t.size&&(e=t.size),m.readAsArrayBuffer(o.call(t,p,e))},m._continueReading()}},toHex:function(e){for(var t=[],r=0;r<e.length;r++)t.push(("0"+e.charCodeAt(r).toString(16)).substr(-2,2));return t.join("")},createHash:function(e){return s.crypto.lib.createHash(e)}},abort:{},each:function(e,t){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=t.call(this,r,e[r]);if(i===s.abort)break}},arrayEach:function(e,t){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=t.call(this,e[r],parseInt(r,10));if(i===s.abort)break}},update:function(e,t){return s.each(t,function(t,r){e[t]=r}),e},merge:function(e,t){return s.update(s.copy(e),t)},copy:function(e){if(null===e||void 0===e)return e;var t={};for(var r in e)t[r]=e[r];return t},isEmpty:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},arraySliceFn:function(e){var t=e.slice||e.webkitSlice||e.mozSlice;return"function"==typeof t?t:null},isType:function(e,t){return"function"==typeof t&&(t=s.typeName(t)),Object.prototype.toString.call(e)==="[object "+t+"]"},typeName:function(e){if(Object.prototype.hasOwnProperty.call(e,"name"))return e.name;var t=e.toString(),r=t.match(/^\s*function (.+)\(/);return r?r[1]:t},error:function(e,t){var r=null;return"string"==typeof e.message&&""!==e.message&&("string"==typeof t||t&&t.message)&&(r=s.copy(e),r.message=e.message),e.message=e.message||null,"string"==typeof t?e.message=t:"object"==typeof t&&null!==t&&(s.update(e,t),t.message&&(e.message=t.message),(t.code||t.name)&&(e.code=t.code||t.name),t.stack&&(e.stack=t.stack)),"function"==typeof Object.defineProperty&&(Object.defineProperty(e,"name",{writable:!0,enumerable:!1}),Object.defineProperty(e,"message",{enumerable:!0})),e.name=String(t&&t.name||e.name||e.code||"Error"),e.time=new Date,r&&(e.originalError=r),e},inherit:function(e,t){var r=null;if(void 0===t)t=e,e=Object,r={};else{var i=function(){};i.prototype=e.prototype,r=new i}return t.constructor===Object&&(t.constructor=function(){if(e!==Object)return e.apply(this,arguments)}),t.constructor.prototype=r,s.update(t.constructor.prototype,t),t.constructor.__super__=e,t.constructor},mixin:function(){for(var e=arguments[0],t=1;t<arguments.length;t++)for(var r in arguments[t].prototype){var i=arguments[t].prototype[r];"constructor"!==r&&(e.prototype[r]=i)}return e},hideProperties:function(e,t){"function"==typeof Object.defineProperty&&s.arrayEach(t,function(t){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0})})},property:function(e,t,r,i,a){var s={configurable:!0,enumerable:void 0===i||i};"function"!=typeof r||a?(s.value=r,s.writable=!0):s.get=r,Object.defineProperty(e,t,s)},memoizedProperty:function(e,t,r,i){var a=null;s.property(e,t,function(){return null===a&&(a=r()),a},i)},hoistPayloadMember:function(e){var t=e.request,r=t.operation,i=t.service.api.operations[r],a=i.output;if(a.payload&&!i.hasEventOutput){var o=a.members[a.payload],n=e.data[a.payload];"structure"===o.type&&s.each(n,function(t,r){s.property(e.data,t,r,!1)})}},computeSha256:function(t,r){if(s.isNode()){var i=s.stream.Stream,a=e("fs");if("function"==typeof i&&t instanceof i){if("string"!=typeof t.path)return r(new Error("Non-file stream objects are not supported with SigV4"));var o={};"number"==typeof t.start&&(o.start=t.start),"number"==typeof t.end&&(o.end=t.end),t=a.createReadStream(t.path,o)}}s.crypto.sha256(t,"hex",function(e,t){e?r(e):r(null,t)})},isClockSkewed:function(e){if(e)return s.property(a.config,"isClockSkewed",Math.abs((new Date).getTime()-e)>=3e5,!1),a.config.isClockSkewed},applyClockOffset:function(e){e&&(a.config.systemClockOffset=e-(new Date).getTime())},extractRequestId:function(e){var t=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];!t&&e.data&&e.data.ResponseMetadata&&(t=e.data.ResponseMetadata.RequestId),t&&(e.requestId=t),e.error&&(e.error.requestId=t)},addPromises:function(e,t){var r=!1
|
|
89
|
+
;void 0===t&&a&&a.config&&(t=a.config.getPromisesDependency()),void 0===t&&"undefined"!=typeof Promise&&(t=Promise),"function"!=typeof t&&(r=!0),Array.isArray(e)||(e=[e]);for(var i=0;i<e.length;i++){var s=e[i];r?s.deletePromisesFromClass&&s.deletePromisesFromClass():s.addPromisesToClass&&s.addPromisesToClass(t)}},promisifyMethod:function(e,t){return function(){var r=this,i=Array.prototype.slice.call(arguments);return new t(function(t,a){i.push(function(e,r){e?a(e):t(r)}),r[e].apply(r,i)})}},isDualstackAvailable:function(t){if(!t)return!1;var r=e("../apis/metadata.json");return"string"!=typeof t&&(t=t.serviceIdentifier),!("string"!=typeof t||!r.hasOwnProperty(t))&&!!r[t].dualstackAvailable},calculateRetryDelay:function(e,t,r){t||(t={});var i=t.customBackoff||null;if("function"==typeof i)return i(e,r);var a="number"==typeof t.base?t.base:100;return Math.random()*(Math.pow(2,e)*a)},handleRequestWithRetries:function(e,t,r){t||(t={});var i=a.HttpClient.getInstance(),o=t.httpOptions||{},n=0,u=function(e){var i=t.maxRetries||0;if(e&&"TimeoutError"===e.code&&(e.retryable=!0),e&&e.retryable&&n<i){var a=s.calculateRetryDelay(n,t.retryDelayOptions,e);if(a>=0)return n++,void setTimeout(p,a+(e.retryAfter||0))}r(e)},p=function(){var t="";i.handleRequest(e,o,function(e){e.on("data",function(e){t+=e.toString()}),e.on("end",function(){var i=e.statusCode;if(i<300)r(null,t);else{var a=1e3*parseInt(e.headers["retry-after"],10)||0,o=s.error(new Error,{statusCode:i,retryable:i>=500||429===i});a&&o.retryable&&(o.retryAfter=a),u(o)}})},u)};a.util.defer(p)},uuid:{v4:function(){return e("uuid").v4()}},convertPayloadToString:function(e){var t=e.request,r=t.operation,i=t.service.api.operations[r].output||{};i.payload&&e.data[i.payload]&&(e.data[i.payload]=e.data[i.payload].toString())},defer:function(e){"object"==typeof r&&"function"==typeof r.nextTick?r.nextTick(e):"function"==typeof i?i(e):setTimeout(e,0)},getRequestPayloadShape:function(e){var t=e.service.api.operations;if(t){var r=(t||{})[e.operation];if(r&&r.input&&r.input.payload)return r.input.members[r.input.payload]}},getProfilesFromSharedConfig:function(e,t){function i(e,t){for(var r=0,i=Object.keys(t);r<i.length;r++)e[i[r]]=t[i[r]];return e}var a={},o={};if(r.env[s.configOptInEnv])var o=e.loadFrom({isConfig:!0,filename:r.env[s.sharedConfigFileEnv]});var n={};try{var n=e.loadFrom({filename:t||r.env[s.configOptInEnv]&&r.env[s.sharedCredentialsFileEnv]})}catch(e){if(!r.env[s.configOptInEnv])throw e}for(var u=0,p=Object.keys(o);u<p.length;u++)a[p[u]]=i(a[p[u]]||{},o[p[u]]);for(var u=0,p=Object.keys(n);u<p.length;u++)a[p[u]]=i(a[p[u]]||{},n[p[u]]);return a},ARN:{validate:function(e){return e&&0===e.indexOf("arn:")&&e.split(":").length>=6},parse:function(e){var t=e.split(":");return{partition:t[1],service:t[2],region:t[3],accountId:t[4],resource:t.slice(5).join(":")}},build:function(e){if(void 0===e.service||void 0===e.region||void 0===e.accountId||void 0===e.resource)throw s.error(new Error("Input ARN object is invalid"));return"arn:"+(e.partition||"aws")+":"+e.service+":"+e.region+":"+e.accountId+":"+e.resource}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};t.exports=s}).call(this)}).call(this,e("_process"),e("timers").setImmediate)},{"../apis/metadata.json":163,"./core":342,_process:431,fs:425,timers:439,uuid:444}],418:[function(e,t,r){function i(){}function a(e,t){for(var r=e.getElementsByTagName(t),i=0,a=r.length;i<a;i++)if(r[i].parentNode===e)return r[i]}function s(e,t){switch(t||(t={}),t.type){case"structure":return o(e,t);case"map":return n(e,t);case"list":return u(e,t);case void 0:case null:return m(e);default:return p(e,t)}}function o(e,t){var r={};return null===e?r:(c.each(t.members,function(i,o){if(o.isXmlAttribute){if(Object.prototype.hasOwnProperty.call(e.attributes,o.name)){var n=e.attributes[o.name].value;r[i]=s({textContent:n},o)}}else{var u=o.flattened?e:a(e,o.name);u?r[i]=s(u,o):o.flattened||"list"!==o.type||t.api.xmlNoDefaultLists||(r[i]=o.defaultValue)}}),r)}function n(e,t){for(var r={},i=t.key.name||"key",o=t.value.name||"value",n=t.flattened?t.name:"entry",u=e.firstElementChild;u;){if(u.nodeName===n){var p=a(u,i).textContent,m=a(u,o);r[p]=s(m,t.value)}u=u.nextElementSibling}return r}function u(e,t){for(var r=[],i=t.flattened?t.name:t.member.name||"member",a=e.firstElementChild;a;)a.nodeName===i&&r.push(s(a,t.member)),a=a.nextElementSibling;return r}function p(e,t){if(e.getAttribute){var r=e.getAttribute("encoding");"base64"===r&&(t=new l.create({type:r}))}var i=e.textContent;return""===i&&(i=null),"function"==typeof t.toType?t.toType(i):i}function m(e){if(void 0===e||null===e)return"";if(!e.firstElementChild)return null===e.parentNode.parentNode?{}:0===e.childNodes.length?"":e.textContent;for(var t={type:"structure",members:{}},r=e.firstElementChild;r;){var i=r.nodeName;Object.prototype.hasOwnProperty.call(t.members,i)?t.members[i].type="list":t.members[i]={name:i},r=r.nextElementSibling}return o(e,t)}var c=e("../util"),l=e("../model/shape");i.prototype.parse=function(e,t){if(""===e.replace(/^\s+/,""))return{};var r,i;try{if(window.DOMParser){try{r=(new DOMParser).parseFromString(e,"text/xml")}catch(e){throw c.error(new Error("Parse error in document"),{originalError:e,code:"XMLParserError",retryable:!0})}if(null===r.documentElement)throw c.error(new Error("Cannot parse empty document."),{code:"XMLParserError",retryable:!0});var o=r.getElementsByTagName("parsererror")[0];if(o&&(o.parentNode===r||"body"===o.parentNode.nodeName||o.parentNode.parentNode===r||"body"===o.parentNode.parentNode.nodeName)){var n=o.getElementsByTagName("div")[0]||o;throw c.error(new Error(n.textContent||"Parser error in document"),{code:"XMLParserError",retryable:!0})}}else{if(!window.ActiveXObject)throw new Error("Cannot load XML parser");if(r=new window.ActiveXObject("Microsoft.XMLDOM"),r.async=!1,!r.loadXML(e))throw c.error(new Error("Parse error in document"),{code:"XMLParserError",retryable:!0})}}catch(e){i=e}if(r&&r.documentElement&&!i){var u=s(r.documentElement,t),p=a(r.documentElement,"ResponseMetadata");return p&&(u.ResponseMetadata=s(p,{})),u}if(i)throw c.error(i||new Error,{code:"XMLParserError",retryable:!0});return{}},t.exports=i},{"../model/shape":373,"../util":417}],419:[function(e,t,r){function i(){}function a(e,t,r){switch(r.type){case"structure":return s(e,t,r);case"map":return o(e,t,r);case"list":return n(e,t,r);default:return u(e,t,r)}}function s(e,t,r){m.arrayEach(r.memberNames,function(i){var s=r.members[i];if("body"===s.location){var o=t[i],n=s.name;if(void 0!==o&&null!==o)if(s.isXmlAttribute)e.addAttribute(n,o);else if(s.flattened)a(e,o,s);else{var u=new c(n);e.addChildNode(u),p(u,s),a(u,o,s)}}})}function o(e,t,r){var i=r.key.name||"key",s=r.value.name||"value";m.each(t,function(t,o){var n=new c(r.flattened?r.name:"entry");e.addChildNode(n);var u=new c(i),p=new c(s);n.addChildNode(u),n.addChildNode(p),a(u,t,r.key),a(p,o,r.value)})}function n(e,t,r){r.flattened?m.arrayEach(t,function(t){var i=r.member.name||r.name,s=new c(i);e.addChildNode(s),a(s,t,r.member)}):m.arrayEach(t,function(t){var i=r.member.name||"member",s=new c(i);e.addChildNode(s),a(s,t,r.member)})}function u(e,t,r){e.addChildNode(new l(r.toWireFormat(t)))}function p(e,t,r){var i,a="xmlns";t.xmlNamespaceUri?(i=t.xmlNamespaceUri,t.xmlNamespacePrefix&&(a+=":"+t.xmlNamespacePrefix)):r&&t.api.xmlNamespaceUri&&(i=t.api.xmlNamespaceUri),i&&e.addAttribute(a,i)}var m=e("../util"),c=e("./xml-node").XmlNode,l=e("./xml-text").XmlText;i.prototype.toXML=function(e,t,r,i){var s=new c(r);return p(s,t,!0),a(s,e,t),s.children.length>0||i?s.toString():""},t.exports=i},{"../util":417,"./xml-node":422,"./xml-text":423}],420:[function(e,t,r){function i(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}t.exports={escapeAttribute:i}},{}],421:[function(e,t,r){function i(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
").replace(/\n/g,"
").replace(/\u0085/g,"…").replace(/\u2028/,"
")}t.exports={escapeElement:i}},{}],422:[function(e,t,r){function i(e,t){void 0===t&&(t=[]),this.name=e,this.children=t,this.attributes={}}var a=e("./escape-attribute").escapeAttribute;i.prototype.addAttribute=function(e,t){return this.attributes[e]=t,this},i.prototype.addChildNode=function(e){return this.children.push(e),this},i.prototype.removeAttribute=function(e){return delete this.attributes[e],this},i.prototype.toString=function(){for(var e=Boolean(this.children.length),t="<"+this.name,r=this.attributes,i=0,s=Object.keys(r);i<s.length;i++){var o=s[i],n=r[o];void 0!==n&&null!==n&&(t+=" "+o+'="'+a(""+n)+'"')}return t+=e?">"+this.children.map(function(e){return e.toString()}).join("")+"</"+this.name+">":"/>"},t.exports={XmlNode:i}},{"./escape-attribute":420}],423:[function(e,t,r){function i(e){this.value=e}var a=e("./escape-element").escapeElement;i.prototype.toString=function(){return a(""+this.value)},t.exports={XmlText:i}},{"./escape-element":421}],424:[function(e,t,r){"use strict";function i(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function a(e){var t=i(e),r=t[0],a=t[1];return 3*(r+a)/4-a}function s(e,t,r){return 3*(t+r)/4-r}function o(e){var t,r,a=i(e),o=a[0],n=a[1],u=new l(s(e,o,n)),p=0,m=n>0?o-4:o;for(r=0;r<m;r+=4)t=c[e.charCodeAt(r)]<<18|c[e.charCodeAt(r+1)]<<12|c[e.charCodeAt(r+2)]<<6|c[e.charCodeAt(r+3)],u[p++]=t>>16&255,u[p++]=t>>8&255,u[p++]=255&t;return 2===n&&(t=c[e.charCodeAt(r)]<<2|c[e.charCodeAt(r+1)]>>4,u[p++]=255&t),1===n&&(t=c[e.charCodeAt(r)]<<10|c[e.charCodeAt(r+1)]<<4|c[e.charCodeAt(r+2)]>>2,u[p++]=t>>8&255,u[p++]=255&t),u}function n(e){return m[e>>18&63]+m[e>>12&63]+m[e>>6&63]+m[63&e]}function u(e,t,r){for(var i,a=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n(i));return a.join("")}function p(e){for(var t,r=e.length,i=r%3,a=[],s=0,o=r-i;s<o;s+=16383)a.push(u(e,s,s+16383>o?o:s+16383));return 1===i?(t=e[r-1],a.push(m[t>>2]+m[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],a.push(m[t>>10]+m[t>>4&63]+m[t<<2&63]+"=")),a.join("")}r.byteLength=a,r.toByteArray=o,r.fromByteArray=p;for(var m=[],c=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=0,b=d.length;y<b;++y)m[y]=d[y],c[d.charCodeAt(y)]=y;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},{}],425:[function(e,t,r){},{}],426:[function(e,t,r){(function(t,i){(function(){"use strict";function i(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(i()<t)throw new RangeError("Invalid typed array length");return s.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=s.prototype):(null===e&&(e=new s(t)),e.length=t),e}function s(e,t,r){if(!(s.TYPED_ARRAY_SUPPORT||this instanceof s))return new s(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return p(this,e)}return o(this,e,t,r)}function o(e,t,r,i){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?l(e,t,r,i):"string"==typeof t?m(e,t,r):d(e,t)}function n(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function u(e,t,r,i){return n(t),t<=0?a(e,t):void 0!==r?"string"==typeof i?a(e,t).fill(r,i):a(e,t).fill(r):a(e,t)}function p(e,t){if(n(t),e=a(e,t<0?0:0|y(t)),!s.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function m(e,t,r){if("string"==typeof r&&""!==r||(r="utf8"),!s.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var i=0|S(t,r);e=a(e,i);var o=e.write(t,r);return o!==i&&(e=e.slice(0,o)),e}function c(e,t){var r=t.length<0?0:0|y(t.length);e=a(e,r);for(var i=0;i<r;i+=1)e[i]=255&t[i];return e}function l(e,t,r,i){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(i||0))throw new RangeError("'length' is out of bounds");return t=void 0===r&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,r):new Uint8Array(t,r,i),s.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=s.prototype):e=c(e,t),e}function d(e,t){if(s.isBuffer(t)){var r=0|y(t.length);return e=a(e,r),0===e.length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||J(t.length)?a(e,0):c(e,t);if("Buffer"===t.type&&Y(t.data))return c(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function y(e){if(e>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),s.alloc(+e)}function S(e,t){if(s.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return H(e).length;default:if(i)return K(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return E(this,t,r);case"utf8":case"utf-8":return D(this,t,r);case"ascii":return q(this,t,r);case"latin1":case"binary":return x(this,t,r);case"base64":return v(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function h(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function N(e,t,r,i,a){if(0===e.length)return-1;if("string"==typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(a)return-1;r=e.length-1}else if(r<0){if(!a)return-1;r=0}if("string"==typeof t&&(t=s.from(t,i)),s.isBuffer(t))return 0===t.length?-1:I(e,t,r,i,a);if("number"==typeof t)return t&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):I(e,[t],r,i,a);throw new TypeError("val must be string, number or Buffer")}function I(e,t,r,i,a){function s(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}var o=1,n=e.length,u=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;o=2,n/=2,u/=2,r/=2}var p;if(a){var m=-1;for(p=r;p<n;p++)if(s(e,p)===s(t,-1===m?0:p-m)){if(-1===m&&(m=p),p-m+1===u)return m*o}else-1!==m&&(p-=p-m),m=-1}else for(r+u>n&&(r=n-u),p=r;p>=0;p--){for(var c=!0,l=0;l<u;l++)if(s(e,p+l)!==s(t,l)){c=!1;break}if(c)return p}return-1}function f(e,t,r,i){r=Number(r)||0;var a=e.length-r;i?(i=Number(i))>a&&(i=a):i=a;var s=t.length;if(s%2!=0)throw new TypeError("Invalid hex string");i>s/2&&(i=s/2);for(var o=0;o<i;++o){var n=parseInt(t.substr(2*o,2),16);if(isNaN(n))return o;e[r+o]=n}return o}function T(e,t,r,i){return Q(K(t,e.length-r),e,r,i)}function C(e,t,r,i){return Q(j(t),e,r,i)}function k(e,t,r,i){return C(e,t,r,i)}function A(e,t,r,i){return Q(H(t),e,r,i)}function R(e,t,r,i){return Q(W(t,e.length-r),e,r,i)}function v(e,t,r){return 0===t&&r===e.length?Z.fromByteArray(e):Z.fromByteArray(e.slice(t,r))}function D(e,t,r){r=Math.min(e.length,r);for(var i=[],a=t;a<r;){var s=e[a],o=null,n=s>239?4:s>223?3:s>191?2:1;if(a+n<=r){var u,p,m,c;switch(n){case 1:s<128&&(o=s);break;case 2:u=e[a+1],128==(192&u)&&(c=(31&s)<<6|63&u)>127&&(o=c);break;case 3:u=e[a+1],p=e[a+2],128==(192&u)&&128==(192&p)&&(c=(15&s)<<12|(63&u)<<6|63&p)>2047&&(c<55296||c>57343)&&(o=c);break;case 4:u=e[a+1],p=e[a+2],m=e[a+3],128==(192&u)&&128==(192&p)&&128==(192&m)&&(c=(15&s)<<18|(63&u)<<12|(63&p)<<6|63&m)>65535&&c<1114112&&(o=c)}}null===o?(o=65533,n=1):o>65535&&(o-=65536,i.push(o>>>10&1023|55296),o=56320|1023&o),i.push(o),a+=n}return P(i)}function P(e){var t=e.length;if(t<=$)return String.fromCharCode.apply(String,e);for(var r="",i=0;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=$));return r}function q(e,t,r){var i="";r=Math.min(e.length,r);for(var a=t;a<r;++a)i+=String.fromCharCode(127&e[a]);return i}function x(e,t,r){var i="";r=Math.min(e.length,r);for(var a=t;a<r;++a)i+=String.fromCharCode(e[a]);return i}function E(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);for(var a="",s=t;s<r;++s)a+=z(e[s]);return a}function M(e,t,r){for(var i=e.slice(t,r),a="",s=0;s<i.length;s+=2)a+=String.fromCharCode(i[s]+256*i[s+1]);return a}function L(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function G(e,t,r,i,a,o){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<o)throw new RangeError('"value" argument is out of bounds');if(r+i>e.length)throw new RangeError("Index out of range")}function B(e,t,r,i){t<0&&(t=65535+t+1);for(var a=0,s=Math.min(e.length-r,2);a<s;++a)e[r+a]=(t&255<<8*(i?a:1-a))>>>8*(i?a:1-a)}function w(e,t,r,i){t<0&&(t=4294967295+t+1);for(var a=0,s=Math.min(e.length-r,4);a<s;++a)e[r+a]=t>>>8*(i?a:3-a)&255}function U(e,t,r,i,a,s){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function _(e,t,r,i,a){return a||U(e,t,r,4,3.4028234663852886e38,-3.4028234663852886e38),X.write(e,t,r,i,23,4),r+4}function F(e,t,r,i,a){return a||U(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(e,t,r,i,52,8),r+8}function O(e){if(e=V(e).replace(ee,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function V(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function z(e){return e<16?"0"+e.toString(16):e.toString(16)}function K(e,t){t=t||1/0;for(var r,i=e.length,a=null,s=[],o=0;o<i;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!a){if(r>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(o+1===i){(t-=3)>-1&&s.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),a=r;continue}r=65536+(a-55296<<10|r-56320)}else a&&(t-=3)>-1&&s.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function j(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function W(e,t){for(var r,i,a,s=[],o=0;o<e.length&&!((t-=2)<0);++o)r=e.charCodeAt(o),i=r>>8,a=r%256,s.push(a),s.push(i);return s}function H(e){return Z.toByteArray(O(e))}function Q(e,t,r,i){for(var a=0;a<i&&!(a+r>=t.length||a>=e.length);++a)t[a+r]=e[a];return a}function J(e){return e!==e}var Z=e("base64-js"),X=e("ieee754"),Y=e("isarray");r.Buffer=s,r.SlowBuffer=b,r.INSPECT_MAX_BYTES=50,s.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),r.kMaxLength=i(),s.poolSize=8192,s._augment=function(e){return e.__proto__=s.prototype,e},s.from=function(e,t,r){return o(null,e,t,r)},s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0})),s.alloc=function(e,t,r){return u(null,e,t,r)},s.allocUnsafe=function(e){return p(null,e)},s.allocUnsafeSlow=function(e){return p(null,e)},s.isBuffer=function(e){return!(null==e||!e._isBuffer)},s.compare=function(e,t){if(!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,i=t.length,a=0,o=Math.min(r,i);a<o;++a)if(e[a]!==t[a]){r=e[a],i=t[a];break}return r<i?-1:i<r?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Y(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var i=s.allocUnsafe(t),a=0;for(r=0;r<e.length;++r){var o=e[r];if(!s.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,a),a+=o.length}return i},s.byteLength=S,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)h(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)h(this,t,t+3),h(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)h(this,t,t+7),h(this,t+1,t+6),h(this,t+2,t+5),h(this,t+3,t+4);return this},s.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?D(this,0,e):g.apply(this,arguments)},s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},s.prototype.compare=function(e,t,r,i,a){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===a&&(a=this.length),t<0||r>e.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&t>=r)return 0;if(i>=a)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,i>>>=0,a>>>=0,this===e)return 0;for(var o=a-i,n=r-t,u=Math.min(o,n),p=this.slice(i,a),m=e.slice(t,r),c=0;c<u;++c)if(p[c]!==m[c]){o=p[c],n=m[c];break}return o<n?-1:n<o?1:0},s.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return N(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return N(this,e,t,r,!1)},s.prototype.write=function(e,t,r,i){if(void 0===t)i="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===i&&(i="utf8")):(i=r,r=void 0)}var a=this.length-t;if((void 0===r||r>a)&&(r=a),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var s=!1;;)switch(i){case"hex":return f(this,e,t,r);case"utf8":case"utf-8":return T(this,e,t,r);case"ascii":return C(this,e,t,r);case"latin1":case"binary":return k(this,e,t,r);case"base64":return A(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,t,r);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var i;if(s.TYPED_ARRAY_SUPPORT)i=this.subarray(e,t),i.__proto__=s.prototype;else{var a=t-e;i=new s(a,void 0);for(var o=0;o<a;++o)i[o]=this[o+e]}return i},s.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||L(e,t,this.length);for(var i=this[e],a=1,s=0;++s<t&&(a*=256);)i+=this[e+s]*a;return i},s.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||L(e,t,this.length);for(var i=this[e+--t],a=1;t>0&&(a*=256);)i+=this[e+--t]*a;return i},s.prototype.readUInt8=function(e,t){return t||L(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return t||L(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return t||L(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return t||L(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||L(e,t,this.length);for(var i=this[e],a=1,s=0;++s<t&&(a*=256);)i+=this[e+s]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*t)),i},s.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||L(e,t,this.length);for(var i=t,a=1,s=this[e+--i];i>0&&(a*=256);)s+=this[e+--i]*a;return a*=128,s>=a&&(s-=Math.pow(2,8*t)),s},s.prototype.readInt8=function(e,t){return t||L(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){t||L(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){t||L(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return t||L(e,4,this.length),X.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return t||L(e,4,this.length),X.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return t||L(e,8,this.length),X.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return t||L(e,8,this.length),X.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,r,i){if(e=+e,t|=0,r|=0,!i){G(this,e,t,r,Math.pow(2,8*r)-1,0)}var a=1,s=0;for(this[t]=255&e;++s<r&&(a*=256);)this[t+s]=e/a&255;return t+r},s.prototype.writeUIntBE=function(e,t,r,i){if(e=+e,t|=0,r|=0,!i){G(this,e,t,r,Math.pow(2,8*r)-1,0)}var a=r-1,s=1;for(this[t+a]=255&e;--a>=0&&(s*=256);)this[t+a]=e/s&255;return t+r},s.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,1,255,0),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):w(this,e,t,!0),t+4},s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):w(this,e,t,!1),t+4},s.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t|=0,!i){var a=Math.pow(2,8*r-1);G(this,e,t,r,a-1,-a)}var s=0,o=1,n=0;for(this[t]=255&e;++s<r&&(o*=256);)e<0&&0===n&&0!==this[t+s-1]&&(n=1),this[t+s]=(e/o>>0)-n&255;return t+r},s.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t|=0,!i){var a=Math.pow(2,8*r-1);G(this,e,t,r,a-1,-a)}var s=r-1,o=1,n=0;for(this[t+s]=255&e;--s>=0&&(o*=256);)e<0&&0===n&&0!==this[t+s+1]&&(n=1),this[t+s]=(e/o>>0)-n&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,1,127,-128),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):w(this,e,t,!0),t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||G(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):w(this,e,t,!1),t+4},s.prototype.writeFloatLE=function(e,t,r){return _(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return _(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return F(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return F(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,i){if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var a,o=i-r;if(this===e&&r<t&&t<i)for(a=o-1;a>=0;--a)e[a+t]=this[a+r];else if(o<1e3||!s.TYPED_ARRAY_SUPPORT)for(a=0;a<o;++a)e[a+t]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+o),t);return o},s.prototype.fill=function(e,t,r,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),1===e.length){var a=e.charCodeAt(0);a<256&&(e=a)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0);var o;if("number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var n=s.isBuffer(e)?e:K(new s(e,i).toString()),u=n.length;for(o=0;o<r-t;++o)this[o+t]=n[o%u]}return this};var ee=/[^+\/0-9A-Za-z-_]/g}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"base64-js":424,buffer:426,ieee754:428,isarray:429}],427:[function(e,t,r){function i(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function a(e){return"function"==typeof e}function s(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function n(e){return void 0===e}t.exports=i,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._maxListeners=void 0,i.defaultMaxListeners=10,i.prototype.setMaxListeners=function(e){if(!s(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},i.prototype.emit=function(e){var t,r,i,s,u,p;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var m=new Error('Uncaught, unspecified "error" event. ('+t+")");throw m.context=t,m}if(r=this._events[e],n(r))return!1;if(a(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),r.apply(this,s)}else if(o(r))for(s=Array.prototype.slice.call(arguments,1),p=r.slice(),i=p.length,u=0;u<i;u++)p[u].apply(this,s);return!0},i.prototype.addListener=function(e,t){var r
|
|
90
|
+
;if(!a(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,a(t.listener)?t.listener:t),this._events[e]?o(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,o(this._events[e])&&!this._events[e].warned&&(r=n(this._maxListeners)?i.defaultMaxListeners:this._maxListeners)&&r>0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},i.prototype.on=i.prototype.addListener,i.prototype.once=function(e,t){function r(){this.removeListener(e,r),i||(i=!0,t.apply(this,arguments))}if(!a(t))throw TypeError("listener must be a function");var i=!1;return r.listener=t,this.on(e,r),this},i.prototype.removeListener=function(e,t){var r,i,s,n;if(!a(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],s=r.length,i=-1,r===t||a(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(r)){for(n=s;n-- >0;)if(r[n]===t||r[n].listener&&r[n].listener===t){i=n;break}if(i<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},i.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],a(r))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},i.prototype.listeners=function(e){return this._events&&this._events[e]?a(this._events[e])?[this._events[e]]:this._events[e].slice():[]},i.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(a(t))return 1;if(t)return t.length}return 0},i.listenerCount=function(e,t){return e.listenerCount(t)}},{}],428:[function(e,t,r){r.read=function(e,t,r,i,a){var s,o,n=8*a-i-1,u=(1<<n)-1,p=u>>1,m=-7,c=r?a-1:0,l=r?-1:1,d=e[t+c];for(c+=l,s=d&(1<<-m)-1,d>>=-m,m+=n;m>0;s=256*s+e[t+c],c+=l,m-=8);for(o=s&(1<<-m)-1,s>>=-m,m+=i;m>0;o=256*o+e[t+c],c+=l,m-=8);if(0===s)s=1-p;else{if(s===u)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,i),s-=p}return(d?-1:1)*o*Math.pow(2,s-i)},r.write=function(e,t,r,i,a,s){var o,n,u,p=8*s-a-1,m=(1<<p)-1,c=m>>1,l=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:s-1,y=i?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(n=isNaN(t)?1:0,o=m):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),t+=o+c>=1?l/u:l*Math.pow(2,1-c),t*u>=2&&(o++,u/=2),o+c>=m?(n=0,o=m):o+c>=1?(n=(t*u-1)*Math.pow(2,a),o+=c):(n=t*Math.pow(2,c-1)*Math.pow(2,a),o=0));a>=8;e[r+d]=255&n,d+=y,n/=256,a-=8);for(o=o<<a|n,p+=a;p>0;e[r+d]=255&o,d+=y,o/=256,p-=8);e[r+d-y]|=128*b}},{}],429:[function(e,t,r){var i={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==i.call(e)}},{}],430:[function(e,t,r){!function(e){"use strict";function t(e){return null!==e&&"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e,a){if(e===a)return!0;if(Object.prototype.toString.call(e)!==Object.prototype.toString.call(a))return!1;if(!0===t(e)){if(e.length!==a.length)return!1;for(var s=0;s<e.length;s++)if(!1===i(e[s],a[s]))return!1;return!0}if(!0===r(e)){var o={};for(var n in e)if(hasOwnProperty.call(e,n)){if(!1===i(e[n],a[n]))return!1;o[n]=!0}for(var u in a)if(hasOwnProperty.call(a,u)&&!0!==o[u])return!1;return!0}return!1}function a(e){if(""===e||!1===e||null===e)return!0;if(t(e)&&0===e.length)return!0;if(r(e)){for(var i in e)if(e.hasOwnProperty(i))return!1;return!0}return!1}function s(e){for(var t=Object.keys(e),r=[],i=0;i<t.length;i++)r.push(e[t[i]]);return r}function o(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||"_"===e}function n(e){return e>="0"&&e<="9"||"-"===e}function u(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"_"===e}function p(){}function m(){}function c(e){this.runtime=e}function l(e){this._interpreter=e,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[g]}]},avg:{_func:this._functionAvg,_signature:[{types:[C]}]},ceil:{_func:this._functionCeil,_signature:[{types:[g]}]},contains:{_func:this._functionContains,_signature:[{types:[N,I]},{types:[h]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[N]},{types:[N]}]},floor:{_func:this._functionFloor,_signature:[{types:[g]}]},length:{_func:this._functionLength,_signature:[{types:[N,I,f]}]},map:{_func:this._functionMap,_signature:[{types:[T]},{types:[I]}]},max:{_func:this._functionMax,_signature:[{types:[C,k]}]},merge:{_func:this._functionMerge,_signature:[{types:[f],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[I]},{types:[T]}]},sum:{_func:this._functionSum,_signature:[{types:[C]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[N]},{types:[N]}]},min:{_func:this._functionMin,_signature:[{types:[C,k]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[I]},{types:[T]}]},type:{_func:this._functionType,_signature:[{types:[h]}]},keys:{_func:this._functionKeys,_signature:[{types:[f]}]},values:{_func:this._functionValues,_signature:[{types:[f]}]},sort:{_func:this._functionSort,_signature:[{types:[k,C]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[I]},{types:[T]}]},join:{_func:this._functionJoin,_signature:[{types:[N]},{types:[k]}]},reverse:{_func:this._functionReverse,_signature:[{types:[N,I]}]},to_array:{_func:this._functionToArray,_signature:[{types:[h]}]},to_string:{_func:this._functionToString,_signature:[{types:[h]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[h]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[h],variadic:!0}]}}}function d(e){return(new m).parse(e)}function y(e){return(new p).tokenize(e)}function b(e,t){var r=new m,i=new l,a=new c(i);i._interpreter=a;var s=r.parse(t);return a.search(s,e)}var S;S="function"==typeof String.prototype.trimLeft?function(e){return e.trimLeft()}:function(e){return e.match(/^\s*(.*)/)[1]};var g=0,h=1,N=2,I=3,f=4,T=6,C=8,k=9,A={".":"Dot","*":"Star",",":"Comma",":":"Colon","{":"Lbrace","}":"Rbrace","]":"Rbracket","(":"Lparen",")":"Rparen","@":"Current"},R={"<":!0,">":!0,"=":!0,"!":!0},v={" ":!0,"\t":!0,"\n":!0};p.prototype={tokenize:function(e){var t=[];this._current=0;for(var r,i,a;this._current<e.length;)if(o(e[this._current]))r=this._current,i=this._consumeUnquotedIdentifier(e),t.push({type:"UnquotedIdentifier",value:i,start:r});else if(void 0!==A[e[this._current]])t.push({type:A[e[this._current]],value:e[this._current],start:this._current}),this._current++;else if(n(e[this._current]))a=this._consumeNumber(e),t.push(a);else if("["===e[this._current])a=this._consumeLBracket(e),t.push(a);else if('"'===e[this._current])r=this._current,i=this._consumeQuotedIdentifier(e),t.push({type:"QuotedIdentifier",value:i,start:r});else if("'"===e[this._current])r=this._current,i=this._consumeRawStringLiteral(e),t.push({type:"Literal",value:i,start:r});else if("`"===e[this._current]){r=this._current;var s=this._consumeLiteral(e);t.push({type:"Literal",value:s,start:r})}else if(void 0!==R[e[this._current]])t.push(this._consumeOperator(e));else if(void 0!==v[e[this._current]])this._current++;else if("&"===e[this._current])r=this._current,this._current++,"&"===e[this._current]?(this._current++,t.push({type:"And",value:"&&",start:r})):t.push({type:"Expref",value:"&",start:r});else{if("|"!==e[this._current]){var u=new Error("Unknown character:"+e[this._current]);throw u.name="LexerError",u}r=this._current,this._current++,"|"===e[this._current]?(this._current++,t.push({type:"Or",value:"||",start:r})):t.push({type:"Pipe",value:"|",start:r})}return t},_consumeUnquotedIdentifier:function(e){var t=this._current;for(this._current++;this._current<e.length&&u(e[this._current]);)this._current++;return e.slice(t,this._current)},_consumeQuotedIdentifier:function(e){var t=this._current;this._current++;for(var r=e.length;'"'!==e[this._current]&&this._current<r;){var i=this._current;"\\"!==e[i]||"\\"!==e[i+1]&&'"'!==e[i+1]?i++:i+=2,this._current=i}return this._current++,JSON.parse(e.slice(t,this._current))},_consumeRawStringLiteral:function(e){var t=this._current;this._current++;for(var r=e.length;"'"!==e[this._current]&&this._current<r;){var i=this._current;"\\"!==e[i]||"\\"!==e[i+1]&&"'"!==e[i+1]?i++:i+=2,this._current=i}return this._current++,e.slice(t+1,this._current-1).replace("\\'","'")},_consumeNumber:function(e){var t=this._current;this._current++;for(var r=e.length;n(e[this._current])&&this._current<r;)this._current++;return{type:"Number",value:parseInt(e.slice(t,this._current)),start:t}},_consumeLBracket:function(e){var t=this._current;return this._current++,"?"===e[this._current]?(this._current++,{type:"Filter",value:"[?",start:t}):"]"===e[this._current]?(this._current++,{type:"Flatten",value:"[]",start:t}):{type:"Lbracket",value:"[",start:t}},_consumeOperator:function(e){var t=this._current,r=e[t];return this._current++,"!"===r?"="===e[this._current]?(this._current++,{type:"NE",value:"!=",start:t}):{type:"Not",value:"!",start:t}:"<"===r?"="===e[this._current]?(this._current++,{type:"LTE",value:"<=",start:t}):{type:"LT",value:"<",start:t}:">"===r?"="===e[this._current]?(this._current++,{type:"GTE",value:">=",start:t}):{type:"GT",value:">",start:t}:"="===r&&"="===e[this._current]?(this._current++,{type:"EQ",value:"==",start:t}):void 0},_consumeLiteral:function(e){this._current++;for(var t,r=this._current,i=e.length;"`"!==e[this._current]&&this._current<i;){var a=this._current;"\\"!==e[a]||"\\"!==e[a+1]&&"`"!==e[a+1]?a++:a+=2,this._current=a}var s=S(e.slice(r,this._current));return s=s.replace("\\`","`"),t=this._looksLikeJSON(s)?JSON.parse(s):JSON.parse('"'+s+'"'),this._current++,t},_looksLikeJSON:function(e){var t='[{"',r=["true","false","null"],i="-0123456789";if(""===e)return!1;if(t.indexOf(e[0])>=0)return!0;if(r.indexOf(e)>=0)return!0;if(!(i.indexOf(e[0])>=0))return!1;try{return JSON.parse(e),!0}catch(e){return!1}}};var D={};D.EOF=0,D.UnquotedIdentifier=0,D.QuotedIdentifier=0,D.Rbracket=0,D.Rparen=0,D.Comma=0,D.Rbrace=0,D.Number=0,D.Current=0,D.Expref=0,D.Pipe=1,D.Or=2,D.And=3,D.EQ=5,D.GT=5,D.LT=5,D.GTE=5,D.LTE=5,D.NE=5,D.Flatten=9,D.Star=20,D.Filter=21,D.Dot=40,D.Not=45,D.Lbrace=50,D.Lbracket=55,D.Lparen=60,m.prototype={parse:function(e){this._loadTokens(e),this.index=0;var t=this.expression(0);if("EOF"!==this._lookahead(0)){var r=this._lookaheadToken(0),i=new Error("Unexpected token type: "+r.type+", value: "+r.value);throw i.name="ParserError",i}return t},_loadTokens:function(e){var t=new p,r=t.tokenize(e);r.push({type:"EOF",value:"",start:e.length}),this.tokens=r},expression:function(e){var t=this._lookaheadToken(0);this._advance();for(var r=this.nud(t),i=this._lookahead(0);e<D[i];)this._advance(),r=this.led(i,r),i=this._lookahead(0);return r},_lookahead:function(e){return this.tokens[this.index+e].type},_lookaheadToken:function(e){return this.tokens[this.index+e]},_advance:function(){this.index++},nud:function(e){var t,r,i;switch(e.type){case"Literal":return{type:"Literal",value:e.value};case"UnquotedIdentifier":return{type:"Field",name:e.value};case"QuotedIdentifier":var a={type:"Field",name:e.value};if("Lparen"===this._lookahead(0))throw new Error("Quoted identifier not allowed for function names.");return a;case"Not":return r=this.expression(D.Not),{type:"NotExpression",children:[r]};case"Star":return t={type:"Identity"},r=null,r="Rbracket"===this._lookahead(0)?{type:"Identity"}:this._parseProjectionRHS(D.Star),{type:"ValueProjection",children:[t,r]};case"Filter":return this.led(e.type,{type:"Identity"});case"Lbrace":return this._parseMultiselectHash();case"Flatten":return t={type:"Flatten",children:[{type:"Identity"}]},r=this._parseProjectionRHS(D.Flatten),{type:"Projection",children:[t,r]};case"Lbracket":return"Number"===this._lookahead(0)||"Colon"===this._lookahead(0)?(r=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},r)):"Star"===this._lookahead(0)&&"Rbracket"===this._lookahead(1)?(this._advance(),this._advance(),r=this._parseProjectionRHS(D.Star),{type:"Projection",children:[{type:"Identity"},r]}):this._parseMultiselectList();case"Current":return{type:"Current"};case"Expref":return i=this.expression(D.Expref),{type:"ExpressionReference",children:[i]};case"Lparen":for(var s=[];"Rparen"!==this._lookahead(0);)"Current"===this._lookahead(0)?(i={type:"Current"},this._advance()):i=this.expression(0),s.push(i);return this._match("Rparen"),s[0];default:this._errorToken(e)}},led:function(e,t){var r;switch(e){case"Dot":var i=D.Dot;return"Star"!==this._lookahead(0)?(r=this._parseDotRHS(i),{type:"Subexpression",children:[t,r]}):(this._advance(),r=this._parseProjectionRHS(i),{type:"ValueProjection",children:[t,r]});case"Pipe":return r=this.expression(D.Pipe),{type:"Pipe",children:[t,r]};case"Or":return r=this.expression(D.Or),{type:"OrExpression",children:[t,r]};case"And":return r=this.expression(D.And),{type:"AndExpression",children:[t,r]};case"Lparen":for(var a,s=t.name,o=[];"Rparen"!==this._lookahead(0);)"Current"===this._lookahead(0)?(a={type:"Current"},this._advance()):a=this.expression(0),"Comma"===this._lookahead(0)&&this._match("Comma"),o.push(a);return this._match("Rparen"),{type:"Function",name:s,children:o};case"Filter":var n=this.expression(0);return this._match("Rbracket"),r="Flatten"===this._lookahead(0)?{type:"Identity"}:this._parseProjectionRHS(D.Filter),{type:"FilterProjection",children:[t,r,n]};case"Flatten":return{type:"Projection",children:[{type:"Flatten",children:[t]},this._parseProjectionRHS(D.Flatten)]};case"EQ":case"NE":case"GT":case"GTE":case"LT":case"LTE":return this._parseComparator(t,e);case"Lbracket":var u=this._lookaheadToken(0);return"Number"===u.type||"Colon"===u.type?(r=this._parseIndexExpression(),this._projectIfSlice(t,r)):(this._match("Star"),this._match("Rbracket"),r=this._parseProjectionRHS(D.Star),{type:"Projection",children:[t,r]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(e){if(this._lookahead(0)!==e){var t=this._lookaheadToken(0),r=new Error("Expected "+e+", got: "+t.type);throw r.name="ParserError",r}this._advance()},_errorToken:function(e){var t=new Error("Invalid token ("+e.type+'): "'+e.value+'"');throw t.name="ParserError",t},_parseIndexExpression:function(){if("Colon"===this._lookahead(0)||"Colon"===this._lookahead(1))return this._parseSliceExpression();var e={type:"Index",value:this._lookaheadToken(0).value};return this._advance(),this._match("Rbracket"),e},_projectIfSlice:function(e,t){var r={type:"IndexExpression",children:[e,t]};return"Slice"===t.type?{type:"Projection",children:[r,this._parseProjectionRHS(D.Star)]}:r},_parseSliceExpression:function(){for(var e=[null,null,null],t=0,r=this._lookahead(0);"Rbracket"!==r&&t<3;){if("Colon"===r)t++,this._advance();else{if("Number"!==r){var i=this._lookahead(0),a=new Error("Syntax error, unexpected token: "+i.value+"("+i.type+")");throw a.name="Parsererror",a}e[t]=this._lookaheadToken(0).value,this._advance()}r=this._lookahead(0)}return this._match("Rbracket"),{type:"Slice",children:e}},_parseComparator:function(e,t){return{type:"Comparator",name:t,children:[e,this.expression(D[t])]}},_parseDotRHS:function(e){var t=this._lookahead(0);return["UnquotedIdentifier","QuotedIdentifier","Star"].indexOf(t)>=0?this.expression(e):"Lbracket"===t?(this._match("Lbracket"),this._parseMultiselectList()):"Lbrace"===t?(this._match("Lbrace"),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(e){var t;if(D[this._lookahead(0)]<10)t={type:"Identity"};else if("Lbracket"===this._lookahead(0))t=this.expression(e);else if("Filter"===this._lookahead(0))t=this.expression(e);else{if("Dot"!==this._lookahead(0)){var r=this._lookaheadToken(0),i=new Error("Sytanx error, unexpected token: "+r.value+"("+r.type+")");throw i.name="ParserError",i}this._match("Dot"),t=this._parseDotRHS(e)}return t},_parseMultiselectList:function(){for(var e=[];"Rbracket"!==this._lookahead(0);){var t=this.expression(0);if(e.push(t),"Comma"===this._lookahead(0)&&(this._match("Comma"),"Rbracket"===this._lookahead(0)))throw new Error("Unexpected token Rbracket")}return this._match("Rbracket"),{type:"MultiSelectList",children:e}},_parseMultiselectHash:function(){for(var e,t,r,i,a=[],s=["UnquotedIdentifier","QuotedIdentifier"];;){if(e=this._lookaheadToken(0),s.indexOf(e.type)<0)throw new Error("Expecting an identifier token, got: "+e.type);if(t=e.value,this._advance(),this._match("Colon"),r=this.expression(0),i={type:"KeyValuePair",name:t,value:r},a.push(i),"Comma"===this._lookahead(0))this._match("Comma");else if("Rbrace"===this._lookahead(0)){this._match("Rbrace");break}}return{type:"MultiSelectHash",children:a}}},c.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,o){var n,u,p,m,c,l,d,y,b;switch(e.type){case"Field":return null===o?null:r(o)?(l=o[e.name],void 0===l?null:l):null;case"Subexpression":for(p=this.visit(e.children[0],o),b=1;b<e.children.length;b++)if(null===(p=this.visit(e.children[1],p)))return null;return p;case"IndexExpression":return d=this.visit(e.children[0],o),this.visit(e.children[1],d);case"Index":if(!t(o))return null;var S=e.value;return S<0&&(S=o.length+S),p=o[S],void 0===p&&(p=null),p;case"Slice":if(!t(o))return null;var g=e.children.slice(0),h=this.computeSliceParams(o.length,g),N=h[0],I=h[1],f=h[2];if(p=[],f>0)for(b=N;b<I;b+=f)p.push(o[b]);else for(b=N;b>I;b+=f)p.push(o[b]);return p;case"Projection":var T=this.visit(e.children[0],o);if(!t(T))return null;for(y=[],b=0;b<T.length;b++)null!==(u=this.visit(e.children[1],T[b]))&&y.push(u);return y;case"ValueProjection":if(T=this.visit(e.children[0],o),!r(T))return null;y=[];var C=s(T);for(b=0;b<C.length;b++)null!==(u=this.visit(e.children[1],C[b]))&&y.push(u);return y;case"FilterProjection":if(T=this.visit(e.children[0],o),!t(T))return null;var k=[],A=[];for(b=0;b<T.length;b++)n=this.visit(e.children[2],T[b]),a(n)||k.push(T[b]);for(var R=0;R<k.length;R++)null!==(u=this.visit(e.children[1],k[R]))&&A.push(u);return A;case"Comparator":switch(m=this.visit(e.children[0],o),c=this.visit(e.children[1],o),e.name){case"EQ":p=i(m,c);break;case"NE":p=!i(m,c);break;case"GT":p=m>c;break;case"GTE":p=m>=c;break;case"LT":p=m<c;break;case"LTE":p=m<=c;break;default:throw new Error("Unknown comparator: "+e.name)}return p;case"Flatten":var v=this.visit(e.children[0],o);if(!t(v))return null;var D=[];for(b=0;b<v.length;b++)u=v[b],t(u)?D.push.apply(D,u):D.push(u);return D;case"Identity":return o;case"MultiSelectList":if(null===o)return null;for(y=[],b=0;b<e.children.length;b++)y.push(this.visit(e.children[b],o));return y;case"MultiSelectHash":if(null===o)return null;y={};var P;for(b=0;b<e.children.length;b++)P=e.children[b],y[P.name]=this.visit(P.value,o);return y;case"OrExpression":return n=this.visit(e.children[0],o),a(n)&&(n=this.visit(e.children[1],o)),n;case"AndExpression":return m=this.visit(e.children[0],o),!0===a(m)?m:this.visit(e.children[1],o);case"NotExpression":return m=this.visit(e.children[0],o),a(m);case"Literal":return e.value;case"Pipe":return d=this.visit(e.children[0],o),this.visit(e.children[1],d);case"Current":return o;case"Function":var q=[];for(b=0;b<e.children.length;b++)q.push(this.visit(e.children[b],o));return this.runtime.callFunction(e.name,q);case"ExpressionReference":var x=e.children[0];return x.jmespathType="Expref",x;default:throw new Error("Unknown node type: "+e.type)}},computeSliceParams:function(e,t){var r=t[0],i=t[1],a=t[2],s=[null,null,null];if(null===a)a=1;else if(0===a){var o=new Error("Invalid slice, step cannot be 0");throw o.name="RuntimeError",o}var n=a<0;return r=null===r?n?e-1:0:this.capSliceRange(e,r,a),i=null===i?n?-1:e:this.capSliceRange(e,i,a),s[0]=r,s[1]=i,s[2]=a,s},capSliceRange:function(e,t,r){return t<0?(t+=e)<0&&(t=r<0?-1:0):t>=e&&(t=r<0?e-1:e),t}},l.prototype={callFunction:function(e,t){var r=this.functionTable[e];if(void 0===r)throw new Error("Unknown function: "+e+"()");return this._validateArgs(e,t,r._signature),r._func.call(this,t)},_validateArgs:function(e,t,r){var i;if(r[r.length-1].variadic){if(t.length<r.length)throw i=1===r.length?" argument":" arguments",new Error("ArgumentError: "+e+"() takes at least"+r.length+i+" but received "+t.length)}else if(t.length!==r.length)throw i=1===r.length?" argument":" arguments",new Error("ArgumentError: "+e+"() takes "+r.length+i+" but received "+t.length);for(var a,s,o,n=0;n<r.length;n++){o=!1,a=r[n].types,s=this._getTypeName(t[n]);for(var u=0;u<a.length;u++)if(this._typeMatches(s,a[u],t[n])){o=!0;break}if(!o)throw new Error("TypeError: "+e+"() expected argument "+(n+1)+" to be type "+a+" but received type "+s+" instead.")}},_typeMatches:function(e,t,r){if(t===h)return!0;if(t!==k&&t!==C&&t!==I)return e===t;if(t===I)return e===I;if(e===I){var i;t===C?i=g:t===k&&(i=N);for(var a=0;a<r.length;a++)if(!this._typeMatches(this._getTypeName(r[a]),i,r[a]))return!1;return!0}},_getTypeName:function(e){switch(Object.prototype.toString.call(e)){case"[object String]":return N;case"[object Number]":return g;case"[object Array]":return I;case"[object Boolean]":return 5;case"[object Null]":return 7;case"[object Object]":return"Expref"===e.jmespathType?T:f}},_functionStartsWith:function(e){return 0===e[0].lastIndexOf(e[1])},_functionEndsWith:function(e){var t=e[0],r=e[1];return-1!==t.indexOf(r,t.length-r.length)},_functionReverse:function(e){if(this._getTypeName(e[0])===N){for(var t=e[0],r="",i=t.length-1;i>=0;i--)r+=t[i];return r}var a=e[0].slice(0);return a.reverse(),a},_functionAbs:function(e){return Math.abs(e[0])},_functionCeil:function(e){return Math.ceil(e[0])},_functionAvg:function(e){for(var t=0,r=e[0],i=0;i<r.length;i++)t+=r[i];return t/r.length},_functionContains:function(e){return e[0].indexOf(e[1])>=0},_functionFloor:function(e){return Math.floor(e[0])},_functionLength:function(e){return r(e[0])?Object.keys(e[0]).length:e[0].length},_functionMap:function(e){for(var t=[],r=this._interpreter,i=e[0],a=e[1],s=0;s<a.length;s++)t.push(r.visit(i,a[s]));return t},_functionMerge:function(e){for(var t={},r=0;r<e.length;r++){var i=e[r];for(var a in i)t[a]=i[a]}return t},_functionMax:function(e){if(e[0].length>0){if(this._getTypeName(e[0][0])===g)return Math.max.apply(Math,e[0]);for(var t=e[0],r=t[0],i=1;i<t.length;i++)r.localeCompare(t[i])<0&&(r=t[i]);return r}return null},_functionMin:function(e){if(e[0].length>0){if(this._getTypeName(e[0][0])===g)return Math.min.apply(Math,e[0]);for(var t=e[0],r=t[0],i=1;i<t.length;i++)t[i].localeCompare(r)<0&&(r=t[i]);return r}return null},_functionSum:function(e){for(var t=0,r=e[0],i=0;i<r.length;i++)t+=r[i];return t},_functionType:function(e){switch(this._getTypeName(e[0])){case g:return"number";case N:return"string";case I:return"array";case f:return"object";case 5:return"boolean";case T:return"expref";case 7:return"null"}},_functionKeys:function(e){return Object.keys(e[0])},_functionValues:function(e){for(var t=e[0],r=Object.keys(t),i=[],a=0;a<r.length;a++)i.push(t[r[a]]);return i},_functionJoin:function(e){var t=e[0];return e[1].join(t)},_functionToArray:function(e){return this._getTypeName(e[0])===I?e[0]:[e[0]]},_functionToString:function(e){return this._getTypeName(e[0])===N?e[0]:JSON.stringify(e[0])},_functionToNumber:function(e){var t,r=this._getTypeName(e[0]);return r===g?e[0]:r!==N||(t=+e[0],isNaN(t))?null:t},_functionNotNull:function(e){for(var t=0;t<e.length;t++)if(7!==this._getTypeName(e[t]))return e[t];return null},_functionSort:function(e){var t=e[0].slice(0);return t.sort(),t},_functionSortBy:function(e){var t=e[0].slice(0);if(0===t.length)return t;var r=this._interpreter,i=e[1],a=this._getTypeName(r.visit(i,t[0]));if([g,N].indexOf(a)<0)throw new Error("TypeError");for(var s=this,o=[],n=0;n<t.length;n++)o.push([n,t[n]]);o.sort(function(e,t){var o=r.visit(i,e[1]),n=r.visit(i,t[1]);if(s._getTypeName(o)!==a)throw new Error("TypeError: expected "+a+", received "+s._getTypeName(o));if(s._getTypeName(n)!==a)throw new Error("TypeError: expected "+a+", received "+s._getTypeName(n));return o>n?1:o<n?-1:e[0]-t[0]});for(var u=0;u<o.length;u++)t[u]=o[u][1];return t},_functionMaxBy:function(e){for(var t,r,i=e[1],a=e[0],s=this.createKeyFunction(i,[g,N]),o=-1/0,n=0;n<a.length;n++)(r=s(a[n]))>o&&(o=r,t=a[n]);return t},_functionMinBy:function(e){for(var t,r,i=e[1],a=e[0],s=this.createKeyFunction(i,[g,N]),o=1/0,n=0;n<a.length;n++)(r=s(a[n]))<o&&(o=r,t=a[n]);return t},createKeyFunction:function(e,t){var r=this,i=this._interpreter;return function(a){var s=i.visit(e,a);if(t.indexOf(r._getTypeName(s))<0){var o="TypeError: expected one of "+t+", received "+r._getTypeName(s);throw new Error(o)}return s}}},e.tokenize=y,e.compile=d,e.search=b,e.strictDeepEqual=i}(void 0===r?this.jmespath={}:r)},{}],431:[function(e,t,r){function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(c===setTimeout)return setTimeout(e,0);if((c===i||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function o(e){if(l===clearTimeout)return clearTimeout(e);if((l===a||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(e);try{return l(e)}catch(t){try{return l.call(null,e)}catch(t){return l.call(this,e)}}}function n(){S&&y&&(S=!1,y.length?b=y.concat(b):g=-1,b.length&&u())}function u(){if(!S){var e=s(n);S=!0;for(var t=b.length;t;){for(y=b,b=[];++g<t;)y&&y[g].run();g=-1,t=b.length}y=null,S=!1,o(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}var c,l,d=t.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:i}catch(e){c=i}try{l="function"==typeof clearTimeout?clearTimeout:a}catch(e){l=a}}();var y,b=[],S=!1,g=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];b.push(new p(e,t)),1!==b.length||S||s(u)},p.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=m,d.addListener=m,d.once=m,d.off=m,d.removeListener=m,d.removeAllListeners=m,d.emit=m,d.prependListener=m,d.prependOnceListener=m,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},{}],432:[function(e,t,r){(function(e){(function(){!function(i){function a(e){throw RangeError(M[e])}function s(e,t){for(var r=e.length,i=[];r--;)i[r]=t(e[r]);return i}function o(e,t){var r=e.split("@"),i="";return r.length>1&&(i=r[0]+"@",e=r[1]),e=e.replace(E,"."),i+s(e.split("."),t).join(".")}function n(e){for(var t,r,i=[],a=0,s=e.length;a<s;)t=e.charCodeAt(a++),t>=55296&&t<=56319&&a<s?(r=e.charCodeAt(a++),56320==(64512&r)?i.push(((1023&t)<<10)+(1023&r)+65536):(i.push(t),a--)):i.push(t);return i}function u(e){return s(e,function(e){var t="";return e>65535&&(e-=65536,t+=B(e>>>10&1023|55296),e=56320|1023&e),t+=B(e)}).join("")}function p(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:T}function m(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function c(e,t,r){var i=0;for(e=r?G(e/R):e>>1,e+=G(e/t);e>L*k>>1;i+=T)e=G(e/L);return G(i+(L+1)*e/(e+A))}function l(e){var t,r,i,s,o,n,m,l,d,y,b=[],S=e.length,g=0,h=D,N=v;for(r=e.lastIndexOf(P),r<0&&(r=0),i=0;i<r;++i)e.charCodeAt(i)>=128&&a("not-basic"),b.push(e.charCodeAt(i));for(s=r>0?r+1:0;s<S;){for(o=g,n=1,m=T;s>=S&&a("invalid-input"),l=p(e.charCodeAt(s++)),(l>=T||l>G((f-g)/n))&&a("overflow"),g+=l*n,d=m<=N?C:m>=N+k?k:m-N,!(l<d);m+=T)y=T-d,n>G(f/y)&&a("overflow"),n*=y;t=b.length+1,N=c(g-o,t,0==o),G(g/t)>f-h&&a("overflow"),h+=G(g/t),g%=t,b.splice(g++,0,h)}return u(b)}function d(e){var t,r,i,s,o,u,p,l,d,y,b,S,g,h,N,I=[];for(e=n(e),S=e.length,t=D,r=0,o=v,u=0;u<S;++u)(b=e[u])<128&&I.push(B(b));for(i=s=I.length,s&&I.push(P);i<S;){for(p=f,u=0;u<S;++u)(b=e[u])>=t&&b<p&&(p=b);for(g=i+1,p-t>G((f-r)/g)&&a("overflow"),r+=(p-t)*g,t=p,u=0;u<S;++u)if(b=e[u],b<t&&++r>f&&a("overflow"),b==t){for(l=r,d=T;y=d<=o?C:d>=o+k?k:d-o,!(l<y);d+=T)N=l-y,h=T-y,I.push(B(m(y+N%h,0))),l=G(N/h);I.push(B(m(l,0))),o=c(r,g,i==s),r=0,++i}++r,++t}return I.join("")}function y(e){return o(e,function(e){return q.test(e)?l(e.slice(4).toLowerCase()):e})}function b(e){return o(e,function(e){return x.test(e)?"xn--"+d(e):e})}var S="object"==typeof r&&r&&!r.nodeType&&r,g="object"==typeof t&&t&&!t.nodeType&&t,h="object"==typeof e&&e;h.global!==h&&h.window!==h&&h.self!==h||(i=h);var N,I,f=2147483647,T=36,C=1,k=26,A=38,R=700,v=72,D=128,P="-",q=/^xn--/,x=/[^\x20-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,M={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},L=T-C,G=Math.floor,B=String.fromCharCode;if(N={version:"1.3.2",ucs2:{decode:n,encode:u},decode:l,encode:d,toASCII:b,toUnicode:y},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return N});else if(S&&g)if(t.exports==S)g.exports=N;else for(I in N)N.hasOwnProperty(I)&&(S[I]=N[I]);else i.punycode=N}(this)}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],433:[function(e,t,r){"use strict";function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,r,s){t=t||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var n=/\+/g;e=e.split(t);var u=1e3;s&&"number"==typeof s.maxKeys&&(u=s.maxKeys);var p=e.length;u>0&&p>u&&(p=u);for(var m=0;m<p;++m){var c,l,d,y,b=e[m].replace(n,"%20"),S=b.indexOf(r);S>=0?(c=b.substr(0,S),l=b.substr(S+1)):(c=b,l=""),d=decodeURIComponent(c),y=decodeURIComponent(l),i(o,d)?a(o[d])?o[d].push(y):o[d]=[o[d],y]:o[d]=y}return o};var a=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],434:[function(e,t,r){"use strict";function i(e,t){if(e.map)return e.map(t);for(var r=[],i=0;i<e.length;i++)r.push(t(e[i],i));return r}var a=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(e,t,r,n){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?i(o(e),function(o){var n=encodeURIComponent(a(o))+r;return s(e[o])?i(e[o],function(e){return n+encodeURIComponent(a(e))}).join(t):n+encodeURIComponent(a(e[o]))}).join(t):n?encodeURIComponent(a(n))+r+encodeURIComponent(a(e)):""};var s=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},o=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}},{}],435:[function(e,t,r){"use strict";r.decode=r.parse=e("./decode"),r.encode=r.stringify=e("./encode")},{"./decode":433,"./encode":434}],436:[function(e,t,r){"use strict";function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,r,a){t=t||"&",r=r||"=";var s={};if("string"!=typeof e||0===e.length)return s;var o=/\+/g;e=e.split(t);var n=1e3;a&&"number"==typeof a.maxKeys&&(n=a.maxKeys);var u=e.length;n>0&&u>n&&(u=n);for(var p=0;p<u;++p){var m,c,l,d,y=e[p].replace(o,"%20"),b=y.indexOf(r);b>=0?(m=y.substr(0,b),c=y.substr(b+1)):(m=y,c=""),l=decodeURIComponent(m),d=decodeURIComponent(c),i(s,l)?Array.isArray(s[l])?s[l].push(d):s[l]=[s[l],d]:s[l]=d}return s}},{}],437:[function(e,t,r){"use strict";var i=function(e){
|
|
91
|
+
switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(e,t,r,a){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map(function(a){var s=encodeURIComponent(i(a))+r;return Array.isArray(e[a])?e[a].map(function(e){return s+encodeURIComponent(i(e))}).join(t):s+encodeURIComponent(i(e[a]))}).join(t):a?encodeURIComponent(i(a))+r+encodeURIComponent(i(e)):""}},{}],438:[function(e,t,r){arguments[4][435][0].apply(r,arguments)},{"./decode":436,"./encode":437,dup:435}],439:[function(e,t,r){(function(t,i){(function(){function a(e,t){this._id=e,this._clearFn=t}var s=e("process/browser.js").nextTick,o=Function.prototype.apply,n=Array.prototype.slice,u={},p=0;r.setTimeout=function(){return new a(o.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new a(o.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(e){e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},r.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},r._unrefActive=r.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r.setImmediate="function"==typeof t?t:function(e){var t=p++,i=!(arguments.length<2)&&n.call(arguments,1);return u[t]=!0,s(function(){u[t]&&(i?e.apply(null,i):e.call(null),r.clearImmediate(t))}),t},r.clearImmediate="function"==typeof i?i:function(e){delete u[e]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":431,timers:439}],440:[function(e,t,r){function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function a(e,t,r){if(e&&p(e)&&e instanceof i)return e;var a=new i;return a.parse(e,t,r),a}function s(e){return u(e)&&(e=a(e)),e instanceof i?e.format():i.prototype.format.call(e)}function o(e,t){return a(e,!1,!0).resolve(t)}function n(e,t){return e?a(e,!1,!0).resolveObject(t):t}function u(e){return"string"==typeof e}function p(e){return"object"==typeof e&&null!==e}function m(e){return null===e}function c(e){return null==e}var l=e("punycode");r.parse=a,r.resolve=o,r.resolveObject=n,r.format=s,r.Url=i;var d=/^([a-z0-9.+-]+:)/i,y=/:[0-9]*$/,b=["<",">",'"',"`"," ","\r","\n","\t"],S=["{","}","|","\\","^","`"].concat(b),g=["'"].concat(S),h=["%","/","?",";","#"].concat(g),N=["/","?","#"],I=/^[a-z0-9A-Z_-]{0,63}$/,f=/^([a-z0-9A-Z_-]{0,63})(.*)$/,T={javascript:!0,"javascript:":!0},C={javascript:!0,"javascript:":!0},k={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},A=e("querystring");i.prototype.parse=function(e,t,r){if(!u(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e;i=i.trim();var a=d.exec(i);if(a){a=a[0];var s=a.toLowerCase();this.protocol=s,i=i.substr(a.length)}if(r||a||i.match(/^\/\/[^@\/]+@[^@\/]+/)){var o="//"===i.substr(0,2);!o||a&&C[a]||(i=i.substr(2),this.slashes=!0)}if(!C[a]&&(o||a&&!k[a])){for(var n=-1,p=0;p<N.length;p++){var m=i.indexOf(N[p]);-1!==m&&(-1===n||m<n)&&(n=m)}var c,y;y=-1===n?i.lastIndexOf("@"):i.lastIndexOf("@",n),-1!==y&&(c=i.slice(0,y),i=i.slice(y+1),this.auth=decodeURIComponent(c)),n=-1;for(var p=0;p<h.length;p++){var m=i.indexOf(h[p]);-1!==m&&(-1===n||m<n)&&(n=m)}-1===n&&(n=i.length),this.host=i.slice(0,n),i=i.slice(n),this.parseHost(),this.hostname=this.hostname||"";var b="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!b)for(var S=this.hostname.split(/\./),p=0,R=S.length;p<R;p++){var v=S[p];if(v&&!v.match(I)){for(var D="",P=0,q=v.length;P<q;P++)v.charCodeAt(P)>127?D+="x":D+=v[P];if(!D.match(I)){var x=S.slice(0,p),E=S.slice(p+1),M=v.match(f);M&&(x.push(M[1]),E.unshift(M[2])),E.length&&(i="/"+E.join(".")+i),this.hostname=x.join(".");break}}}if(this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),!b){for(var L=this.hostname.split("."),G=[],p=0;p<L.length;++p){var B=L[p];G.push(B.match(/[^A-Za-z0-9_-]/)?"xn--"+l.encode(B):B)}this.hostname=G.join(".")}var w=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+w,this.href+=this.host,b&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==i[0]&&(i="/"+i))}if(!T[s])for(var p=0,R=g.length;p<R;p++){var _=g[p],F=encodeURIComponent(_);F===_&&(F=escape(_)),i=i.split(_).join(F)}var O=i.indexOf("#");-1!==O&&(this.hash=i.substr(O),i=i.slice(0,O));var V=i.indexOf("?");if(-1!==V?(this.search=i.substr(V),this.query=i.substr(V+1),t&&(this.query=A.parse(this.query)),i=i.slice(0,V)):t&&(this.search="",this.query={}),i&&(this.pathname=i),k[s]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var w=this.pathname||"",B=this.search||"";this.path=w+B}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",i=this.hash||"",a=!1,s="";this.host?a=e+this.host:this.hostname&&(a=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(a+=":"+this.port)),this.query&&p(this.query)&&Object.keys(this.query).length&&(s=A.stringify(this.query));var o=this.search||s&&"?"+s||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||k[t])&&!1!==a?(a="//"+(a||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):a||(a=""),i&&"#"!==i.charAt(0)&&(i="#"+i),o&&"?"!==o.charAt(0)&&(o="?"+o),r=r.replace(/[?#]/g,function(e){return encodeURIComponent(e)}),o=o.replace("#","%23"),t+a+r+o+i},i.prototype.resolve=function(e){return this.resolveObject(a(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(u(e)){var t=new i;t.parse(e,!1,!0),e=t}var r=new i;if(Object.keys(this).forEach(function(e){r[e]=this[e]},this),r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol)return Object.keys(e).forEach(function(t){"protocol"!==t&&(r[t]=e[t])}),k[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r;if(e.protocol&&e.protocol!==r.protocol){if(!k[e.protocol])return Object.keys(e).forEach(function(t){r[t]=e[t]}),r.href=r.format(),r;if(r.protocol=e.protocol,e.host||C[e.protocol])r.pathname=e.pathname;else{for(var a=(e.pathname||"").split("/");a.length&&!(e.host=a.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==a[0]&&a.unshift(""),a.length<2&&a.unshift(""),r.pathname=a.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var s=r.pathname||"",o=r.search||"";r.path=s+o}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var n=r.pathname&&"/"===r.pathname.charAt(0),p=e.host||e.pathname&&"/"===e.pathname.charAt(0),l=p||n||r.host&&e.pathname,d=l,y=r.pathname&&r.pathname.split("/")||[],a=e.pathname&&e.pathname.split("/")||[],b=r.protocol&&!k[r.protocol];if(b&&(r.hostname="",r.port=null,r.host&&(""===y[0]?y[0]=r.host:y.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===a[0]?a[0]=e.host:a.unshift(e.host)),e.host=null),l=l&&(""===a[0]||""===y[0])),p)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,y=a;else if(a.length)y||(y=[]),y.pop(),y=y.concat(a),r.search=e.search,r.query=e.query;else if(!c(e.search)){if(b){r.hostname=r.host=y.shift();var S=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");S&&(r.auth=S.shift(),r.host=r.hostname=S.shift())}return r.search=e.search,r.query=e.query,m(r.pathname)&&m(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!y.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var g=y.slice(-1)[0],h=(r.host||e.host)&&("."===g||".."===g)||""===g,N=0,I=y.length;I>=0;I--)g=y[I],"."==g?y.splice(I,1):".."===g?(y.splice(I,1),N++):N&&(y.splice(I,1),N--);if(!l&&!d)for(;N--;N)y.unshift("..");!l||""===y[0]||y[0]&&"/"===y[0].charAt(0)||y.unshift(""),h&&"/"!==y.join("/").substr(-1)&&y.push("");var f=""===y[0]||y[0]&&"/"===y[0].charAt(0);if(b){r.hostname=r.host=f?"":y.length?y.shift():"";var S=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");S&&(r.auth=S.shift(),r.host=r.hostname=S.shift())}return l=l||r.host&&y.length,l&&!f&&y.unshift(""),y.length?r.pathname=y.join("/"):(r.pathname=null,r.path=null),m(r.pathname)&&m(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var e=this.host,t=y.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{punycode:432,querystring:435}],441:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],442:[function(e,t,r){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],443:[function(e,t,r){(function(t,i){(function(){function a(e,t){var i={seen:[],stylize:o};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),b(t)?i.showHidden=t:t&&r._extend(i,t),f(i.showHidden)&&(i.showHidden=!1),f(i.depth)&&(i.depth=2),f(i.colors)&&(i.colors=!1),f(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=s),u(i,e,i.depth)}function s(e,t){var r=a.styles[t];return r?"["+a.colors[r][0]+"m"+e+"["+a.colors[r][1]+"m":e}function o(e,t){return e}function n(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function u(e,t,i){if(e.customInspect&&t&&R(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var a=t.inspect(i,e);return N(a)||(a=u(e,a,i)),a}var s=p(e,t);if(s)return s;var o=Object.keys(t),b=n(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),A(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return m(t);if(0===o.length){if(R(t)){var S=t.name?": "+t.name:"";return e.stylize("[Function"+S+"]","special")}if(T(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(k(t))return e.stylize(Date.prototype.toString.call(t),"date");if(A(t))return m(t)}var g="",h=!1,I=["{","}"];if(y(t)&&(h=!0,I=["[","]"]),R(t)){g=" [Function"+(t.name?": "+t.name:"")+"]"}if(T(t)&&(g=" "+RegExp.prototype.toString.call(t)),k(t)&&(g=" "+Date.prototype.toUTCString.call(t)),A(t)&&(g=" "+m(t)),0===o.length&&(!h||0==t.length))return I[0]+g+I[1];if(i<0)return T(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var f;return f=h?c(e,t,i,b,o):o.map(function(r){return l(e,t,i,b,r,h)}),e.seen.pop(),d(f,g,I)}function p(e,t){if(f(t))return e.stylize("undefined","undefined");if(N(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return h(t)?e.stylize(""+t,"number"):b(t)?e.stylize(""+t,"boolean"):S(t)?e.stylize("null","null"):void 0}function m(e){return"["+Error.prototype.toString.call(e)+"]"}function c(e,t,r,i,a){for(var s=[],o=0,n=t.length;o<n;++o)x(t,String(o))?s.push(l(e,t,r,i,String(o),!0)):s.push("");return a.forEach(function(a){a.match(/^\d+$/)||s.push(l(e,t,r,i,a,!0))}),s}function l(e,t,r,i,a,s){var o,n,p;if(p=Object.getOwnPropertyDescriptor(t,a)||{value:t[a]},p.get?n=p.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):p.set&&(n=e.stylize("[Setter]","special")),x(i,a)||(o="["+a+"]"),n||(e.seen.indexOf(p.value)<0?(n=S(r)?u(e,p.value,null):u(e,p.value,r-1),n.indexOf("\n")>-1&&(n=s?n.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+n.split("\n").map(function(e){return" "+e}).join("\n"))):n=e.stylize("[Circular]","special")),f(o)){if(s&&a.match(/^\d+$/))return n;o=JSON.stringify(""+a),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+n}function d(e,t,r){var i=0;return e.reduce(function(e,t){return i++,t.indexOf("\n")>=0&&i++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function y(e){return Array.isArray(e)}function b(e){return"boolean"==typeof e}function S(e){return null===e}function g(e){return null==e}function h(e){return"number"==typeof e}function N(e){return"string"==typeof e}function I(e){return"symbol"==typeof e}function f(e){return void 0===e}function T(e){return C(e)&&"[object RegExp]"===D(e)}function C(e){return"object"==typeof e&&null!==e}function k(e){return C(e)&&"[object Date]"===D(e)}function A(e){return C(e)&&("[object Error]"===D(e)||e instanceof Error)}function R(e){return"function"==typeof e}function v(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function D(e){return Object.prototype.toString.call(e)}function P(e){return e<10?"0"+e.toString(10):e.toString(10)}function q(){var e=new Date,t=[P(e.getHours()),P(e.getMinutes()),P(e.getSeconds())].join(":");return[e.getDate(),G[e.getMonth()],t].join(" ")}function x(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var E=/%[sdj%]/g;r.format=function(e){if(!N(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(a(arguments[r]));return t.join(" ")}for(var r=1,i=arguments,s=i.length,o=String(e).replace(E,function(e){if("%%"===e)return"%";if(r>=s)return e;switch(e){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(e){return"[Circular]"}default:return e}}),n=i[r];r<s;n=i[++r])S(n)||!C(n)?o+=" "+n:o+=" "+a(n);return o},r.deprecate=function(e,a){function s(){if(!o){if(t.throwDeprecation)throw new Error(a);t.traceDeprecation?console.trace(a):console.error(a),o=!0}return e.apply(this,arguments)}if(f(i.process))return function(){return r.deprecate(e,a).apply(this,arguments)};if(!0===t.noDeprecation)return e;var o=!1;return s};var M,L={};r.debuglog=function(e){if(f(M)&&(M=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!L[e])if(new RegExp("\\b"+e+"\\b","i").test(M)){var i=t.pid;L[e]=function(){var t=r.format.apply(r,arguments);console.error("%s %d: %s",e,i,t)}}else L[e]=function(){};return L[e]},r.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=y,r.isBoolean=b,r.isNull=S,r.isNullOrUndefined=g,r.isNumber=h,r.isString=N,r.isSymbol=I,r.isUndefined=f,r.isRegExp=T,r.isObject=C,r.isDate=k,r.isError=A,r.isFunction=R,r.isPrimitive=v,r.isBuffer=e("./support/isBuffer");var G=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];r.log=function(){console.log("%s - %s",q(),r.format.apply(r,arguments))},r.inherits=e("inherits"),r._extend=function(e,t){if(!t||!C(t))return e;for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":442,_process:431,inherits:441}],444:[function(e,t,r){var i=e("./v1"),a=e("./v4"),s=a;s.v1=i,s.v4=a,t.exports=s},{"./v1":447,"./v4":448}],445:[function(e,t,r){function i(e,t){var r=t||0,i=a;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}for(var a=[],s=0;s<256;++s)a[s]=(s+256).toString(16).substr(1);t.exports=i},{}],446:[function(e,t,r){var i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(i){var a=new Uint8Array(16);t.exports=function(){return i(a),a}}else{var s=new Array(16);t.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),s[t]=e>>>((3&t)<<3)&255;return s}}},{}],447:[function(e,t,r){function i(e,t,r){var i=t&&r||0,m=t||[];e=e||{};var c=e.node||a,l=void 0!==e.clockseq?e.clockseq:s;if(null==c||null==l){var d=o();null==c&&(c=a=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==l&&(l=s=16383&(d[6]<<8|d[7]))}var y=void 0!==e.msecs?e.msecs:(new Date).getTime(),b=void 0!==e.nsecs?e.nsecs:p+1,S=y-u+(b-p)/1e4;if(S<0&&void 0===e.clockseq&&(l=l+1&16383),(S<0||y>u)&&void 0===e.nsecs&&(b=0),b>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=y,p=b,s=l,y+=122192928e5;var g=(1e4*(268435455&y)+b)%4294967296;m[i++]=g>>>24&255,m[i++]=g>>>16&255,m[i++]=g>>>8&255,m[i++]=255&g;var h=y/4294967296*1e4&268435455;m[i++]=h>>>8&255,m[i++]=255&h,m[i++]=h>>>24&15|16,m[i++]=h>>>16&255,m[i++]=l>>>8|128,m[i++]=255&l;for(var N=0;N<6;++N)m[i+N]=c[N];return t||n(m)}var a,s,o=e("./lib/rng"),n=e("./lib/bytesToUuid"),u=0,p=0;t.exports=i},{"./lib/bytesToUuid":445,"./lib/rng":446}],448:[function(e,t,r){function i(e,t,r){var i=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null),e=e||{};var o=e.random||(e.rng||a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var n=0;n<16;++n)t[i+n]=o[n];return t||s(o)}var a=e("./lib/rng"),s=e("./lib/bytesToUuid");t.exports=i},{"./lib/bytesToUuid":445,"./lib/rng":446}],449:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=e("./utils/LRU"),a=1e3,s=function(){function e(e){void 0===e&&(e=a),this.maxSize=e,this.cache=new i.LRUCache(e)}return Object.defineProperty(e.prototype,"size",{get:function(){return this.cache.length},enumerable:!0,configurable:!0}),e.prototype.put=function(t,r){var i="string"!=typeof t?e.getKeyString(t):t,a=this.populateValue(r);this.cache.put(i,a)},e.prototype.get=function(t){var r="string"!=typeof t?e.getKeyString(t):t,i=Date.now(),a=this.cache.get(r);if(a){for(var s=a.length-1;s>=0;s--){a[s].Expire<i&&a.splice(s,1)}if(0===a.length)return void this.cache.remove(r)}return a},e.getKeyString=function(e){for(var t=[],r=Object.keys(e).sort(),i=0;i<r.length;i++){var a=r[i];void 0!==e[a]&&t.push(e[a])}return t.join(" ")},e.prototype.populateValue=function(e){var t=Date.now();return e.map(function(e){return{Address:e.Address||"",Expire:t+60*(e.CachePeriodInMinutes||1)*1e3}})},e.prototype.empty=function(){this.cache.empty()},e.prototype.remove=function(t){var r="string"!=typeof t?e.getKeyString(t):t;this.cache.remove(r)},e}();r.EndpointCache=s},{"./utils/LRU":450}],450:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=function(){function e(e,t){this.key=e,this.value=t}return e}(),a=function(){function e(e){if(this.nodeMap={},this.size=0,"number"!=typeof e||e<1)throw new Error("Cache size can only be positive number");this.sizeLimit=e}return Object.defineProperty(e.prototype,"length",{get:function(){return this.size},enumerable:!0,configurable:!0}),e.prototype.prependToList=function(e){this.headerNode?(this.headerNode.prev=e,e.next=this.headerNode):this.tailNode=e,this.headerNode=e,this.size++},e.prototype.removeFromTail=function(){if(this.tailNode){var e=this.tailNode,t=e.prev;return t&&(t.next=void 0),e.prev=void 0,this.tailNode=t,this.size--,e}},e.prototype.detachFromList=function(e){this.headerNode===e&&(this.headerNode=e.next),this.tailNode===e&&(this.tailNode=e.prev),e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.next=void 0,e.prev=void 0,this.size--},e.prototype.get=function(e){if(this.nodeMap[e]){var t=this.nodeMap[e];return this.detachFromList(t),this.prependToList(t),t.value}},e.prototype.remove=function(e){if(this.nodeMap[e]){var t=this.nodeMap[e];this.detachFromList(t),delete this.nodeMap[e]}},e.prototype.put=function(e,t){if(this.nodeMap[e])this.remove(e);else if(this.size===this.sizeLimit){var r=this.removeFromTail(),a=r.key;delete this.nodeMap[a]}var s=new i(e,t);this.nodeMap[e]=s,this.prependToList(s)},e.prototype.empty=function(){for(var e=Object.keys(this.nodeMap),t=0;t<e.length;t++){var r=e[t],i=this.nodeMap[r];this.detachFromList(i),delete this.nodeMap[r]}},e}();r.LRUCache=a},{}],451:[function(e,t,r){e("./browser_loader");var i=e("./core");"undefined"!=typeof window&&(window.AWS=i),void 0!==t&&(t.exports=i),"undefined"!=typeof self&&(self.AWS=i),e("../clients/browser_default")},{"../clients/browser_default":245,"./browser_loader":338,"./core":342}]},{},[451]);
|