sst 2.1.25 → 2.1.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -55,7 +55,7 @@ ${(0,ub.toHex)(o)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){let i=[];f
55
55
  `);let n=s.parse(i),o="#text",c=Object.keys(n)[0],d=n[c];return d[o]&&(d[c]=d[o],delete d[o]),(0,pe.getValueFromTextNode)(d)}return{}}),"parseBody"),Dn=r(async(e,t)=>{let i=await Bs(e,t);return i.Error&&(i.Error.message=i.Error.message??i.Error.Message),i},"parseErrorBody"),kn=r(e=>Object.entries(e).map(([t,i])=>(0,pe.extendedEncodeURIComponent)(t)+"="+(0,pe.extendedEncodeURIComponent)(i)).join("&"),"buildFormUrlencodedString"),Jn=r((e,t)=>{if(t.Error?.Code!==void 0)return t.Error.Code;if(e.statusCode==404)return"NotFound"},"loadQueryErrorCode")});var Lb=h(qb=>{"use strict";Object.defineProperty(qb,"__esModule",{value:!0});qb.AssumeRoleCommand=void 0;var Btt=b(),$tt=C(),Htt=Gs(),Wtt=E(),s5=Di(),n5=$s(),Ku=class extends Wtt.Command{constructor(t){super(),this.input=t}static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,i,s){this.middlewareStack.use((0,$tt.getSerdePlugin)(i,this.serialize,this.deserialize)),this.middlewareStack.use((0,Btt.getEndpointPlugin)(i,Ku.getEndpointParameterInstructions())),this.middlewareStack.use((0,Htt.getAwsAuthPlugin)(i));let n=t.concat(this.middlewareStack),{logger:o}=i,l={logger:o,clientName:"STSClient",commandName:"AssumeRoleCommand",inputFilterSensitiveLog:s5.AssumeRoleRequestFilterSensitiveLog,outputFilterSensitiveLog:s5.AssumeRoleResponseFilterSensitiveLog},{requestHandler:u}=i;return n.resolve(m=>u.handle(m.request,s||{}),l)}serialize(t,i){return(0,n5.serializeAws_queryAssumeRoleCommand)(t,i)}deserialize(t,i){return(0,n5.deserializeAws_queryAssumeRoleCommand)(t,i)}};r(Ku,"AssumeRoleCommand");qb.AssumeRoleCommand=Ku});var $F=h(zb=>{"use strict";Object.defineProperty(zb,"__esModule",{value:!0});zb.AssumeRoleWithSAMLCommand=void 0;var Ktt=b(),Ytt=C(),Qtt=E(),r5=Di(),o5=$s(),Yu=class extends Qtt.Command{constructor(t){super(),this.input=t}static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,i,s){this.middlewareStack.use((0,Ytt.getSerdePlugin)(i,this.serialize,this.deserialize)),this.middlewareStack.use((0,Ktt.getEndpointPlugin)(i,Yu.getEndpointParameterInstructions()));let n=t.concat(this.middlewareStack),{logger:o}=i,l={logger:o,clientName:"STSClient",commandName:"AssumeRoleWithSAMLCommand",inputFilterSensitiveLog:r5.AssumeRoleWithSAMLRequestFilterSensitiveLog,outputFilterSensitiveLog:r5.AssumeRoleWithSAMLResponseFilterSensitiveLog},{requestHandler:u}=i;return n.resolve(m=>u.handle(m.request,s||{}),l)}serialize(t,i){return(0,o5.serializeAws_queryAssumeRoleWithSAMLCommand)(t,i)}deserialize(t,i){return(0,o5.deserializeAws_queryAssumeRoleWithSAMLCommand)(t,i)}};r(Yu,"AssumeRoleWithSAMLCommand");zb.AssumeRoleWithSAMLCommand=Yu});var Nb=h(Fb=>{"use strict";Object.defineProperty(Fb,"__esModule",{value:!0});Fb.AssumeRoleWithWebIdentityCommand=void 0;var Xtt=b(),Ztt=C(),eit=E(),a5=Di(),c5=$s(),Qu=class extends eit.Command{constructor(t){super(),this.input=t}static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,i,s){this.middlewareStack.use((0,Ztt.getSerdePlugin)(i,this.serialize,this.deserialize)),this.middlewareStack.use((0,Xtt.getEndpointPlugin)(i,Qu.getEndpointParameterInstructions()));let n=t.concat(this.middlewareStack),{logger:o}=i,l={logger:o,clientName:"STSClient",commandName:"AssumeRoleWithWebIdentityCommand",inputFilterSensitiveLog:a5.AssumeRoleWithWebIdentityRequestFilterSensitiveLog,outputFilterSensitiveLog:a5.AssumeRoleWithWebIdentityResponseFilterSensitiveLog},{requestHandler:u}=i;return n.resolve(m=>u.handle(m.request,s||{}),l)}serialize(t,i){return(0,c5.serializeAws_queryAssumeRoleWithWebIdentityCommand)(t,i)}deserialize(t,i){return(0,c5.deserializeAws_queryAssumeRoleWithWebIdentityCommand)(t,i)}};r(Qu,"AssumeRoleWithWebIdentityCommand");Fb.AssumeRoleWithWebIdentityCommand=Qu});var HF=h(Db=>{"use strict";Object.defineProperty(Db,"__esModule",{value:!0});Db.DecodeAuthorizationMessageCommand=void 0;var tit=b(),iit=C(),sit=Gs(),nit=E(),l5=Di(),d5=$s(),Xu=class extends nit.Command{constructor(t){super(),this.input=t}static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,i,s){this.middlewareStack.use((0,iit.getSerdePlugin)(i,this.serialize,this.deserialize)),this.middlewareStack.use((0,tit.getEndpointPlugin)(i,Xu.getEndpointParameterInstructions())),this.middlewareStack.use((0,sit.getAwsAuthPlugin)(i));let n=t.concat(this.middlewareStack),{logger:o}=i,l={logger:o,clientName:"STSClient",commandName:"DecodeAuthorizationMessageCommand",inputFilterSensitiveLog:l5.DecodeAuthorizationMessageRequestFilterSensitiveLog,outputFilterSensitiveLog:l5.DecodeAuthorizationMessageResponseFilterSensitiveLog},{requestHandler:u}=i;return n.resolve(m=>u.handle(m.request,s||{}),l)}serialize(t,i){return(0,d5.serializeAws_queryDecodeAuthorizationMessageCommand)(t,i)}deserialize(t,i){return(0,d5.deserializeAws_queryDecodeAuthorizationMessageCommand)(t,i)}};r(Xu,"DecodeAuthorizationMessageCommand");Db.DecodeAuthorizationMessageCommand=Xu});var WF=h(kb=>{"use strict";Object.defineProperty(kb,"__esModule",{value:!0});kb.GetAccessKeyInfoCommand=void 0;var rit=b(),oit=C(),ait=Gs(),cit=E(),u5=Di(),m5=$s(),Zu=class extends cit.Command{constructor(t){super(),this.input=t}static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,i,s){this.middlewareStack.use((0,oit.getSerdePlugin)(i,this.serialize,this.deserialize)),this.middlewareStack.use((0,rit.getEndpointPlugin)(i,Zu.getEndpointParameterInstructions())),this.middlewareStack.use((0,ait.getAwsAuthPlugin)(i));let n=t.concat(this.middlewareStack),{logger:o}=i,l={logger:o,clientName:"STSClient",commandName:"GetAccessKeyInfoCommand",inputFilterSensitiveLog:u5.GetAccessKeyInfoRequestFilterSensitiveLog,outputFilterSensitiveLog:u5.GetAccessKeyInfoResponseFilterSensitiveLog},{requestHandler:u}=i;return n.resolve(m=>u.handle(m.request,s||{}),l)}serialize(t,i){return(0,m5.serializeAws_queryGetAccessKeyInfoCommand)(t,i)}deserialize(t,i){return(0,m5.deserializeAws_queryGetAccessKeyInfoCommand)(t,i)}};r(Zu,"GetAccessKeyInfoCommand");kb.GetAccessKeyInfoCommand=Zu});var KF=h(Jb=>{"use strict";Object.defineProperty(Jb,"__esModule",{value:!0});Jb.GetCallerIdentityCommand=void 0;var lit=b(),dit=C(),uit=Gs(),mit=E(),p5=Di(),h5=$s(),em=class extends mit.Command{constructor(t){super(),this.input=t}static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,i,s){this.middlewareStack.use((0,dit.getSerdePlugin)(i,this.serialize,this.deserialize)),this.middlewareStack.use((0,lit.getEndpointPlugin)(i,em.getEndpointParameterInstructions())),this.middlewareStack.use((0,uit.getAwsAuthPlugin)(i));let n=t.concat(this.middlewareStack),{logger:o}=i,l={logger:o,clientName:"STSClient",commandName:"GetCallerIdentityCommand",inputFilterSensitiveLog:p5.GetCallerIdentityRequestFilterSensitiveLog,outputFilterSensitiveLog:p5.GetCallerIdentityResponseFilterSensitiveLog},{requestHandler:u}=i;return n.resolve(m=>u.handle(m.request,s||{}),l)}serialize(t,i){return(0,h5.serializeAws_queryGetCallerIdentityCommand)(t,i)}deserialize(t,i){return(0,h5.deserializeAws_queryGetCallerIdentityCommand)(t,i)}};r(em,"GetCallerIdentityCommand");Jb.GetCallerIdentityCommand=em});var YF=h(Mb=>{"use strict";Object.defineProperty(Mb,"__esModule",{value:!0});Mb.GetFederationTokenCommand=void 0;var pit=b(),hit=C(),fit=Gs(),git=E(),f5=Di(),g5=$s(),tm=class extends git.Command{constructor(t){super(),this.input=t}static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,i,s){this.middlewareStack.use((0,hit.getSerdePlugin)(i,this.serialize,this.deserialize)),this.middlewareStack.use((0,pit.getEndpointPlugin)(i,tm.getEndpointParameterInstructions())),this.middlewareStack.use((0,fit.getAwsAuthPlugin)(i));let n=t.concat(this.middlewareStack),{logger:o}=i,l={logger:o,clientName:"STSClient",commandName:"GetFederationTokenCommand",inputFilterSensitiveLog:f5.GetFederationTokenRequestFilterSensitiveLog,outputFilterSensitiveLog:f5.GetFederationTokenResponseFilterSensitiveLog},{requestHandler:u}=i;return n.resolve(m=>u.handle(m.request,s||{}),l)}serialize(t,i){return(0,g5.serializeAws_queryGetFederationTokenCommand)(t,i)}deserialize(t,i){return(0,g5.deserializeAws_queryGetFederationTokenCommand)(t,i)}};r(tm,"GetFederationTokenCommand");Mb.GetFederationTokenCommand=tm});var QF=h(Ub=>{"use strict";Object.defineProperty(Ub,"__esModule",{value:!0});Ub.GetSessionTokenCommand=void 0;var wit=b(),_it=C(),yit=Gs(),Sit=E(),w5=Di(),_5=$s(),im=class extends Sit.Command{constructor(t){super(),this.input=t}static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,i,s){this.middlewareStack.use((0,_it.getSerdePlugin)(i,this.serialize,this.deserialize)),this.middlewareStack.use((0,wit.getEndpointPlugin)(i,im.getEndpointParameterInstructions())),this.middlewareStack.use((0,yit.getAwsAuthPlugin)(i));let n=t.concat(this.middlewareStack),{logger:o}=i,l={logger:o,clientName:"STSClient",commandName:"GetSessionTokenCommand",inputFilterSensitiveLog:w5.GetSessionTokenRequestFilterSensitiveLog,outputFilterSensitiveLog:w5.GetSessionTokenResponseFilterSensitiveLog},{requestHandler:u}=i;return n.resolve(m=>u.handle(m.request,s||{}),l)}serialize(t,i){return(0,_5.serializeAws_queryGetSessionTokenCommand)(t,i)}deserialize(t,i){return(0,_5.deserializeAws_queryGetSessionTokenCommand)(t,i)}};r(im,"GetSessionTokenCommand");Ub.GetSessionTokenCommand=im});var y5=h(Ob=>{"use strict";Object.defineProperty(Ob,"__esModule",{value:!0});Ob.resolveStsAuthConfig=void 0;var vit=Gs(),Eit=r((e,{stsClientCtor:t})=>(0,vit.resolveAwsAuthConfig)({...e,stsClientCtor:t}),"resolveStsAuthConfig");Ob.resolveStsAuthConfig=Eit});var S5=h(jb=>{"use strict";Object.defineProperty(jb,"__esModule",{value:!0});jb.resolveClientEndpointParameters=void 0;var Ait=r(e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"}),"resolveClientEndpointParameters");jb.resolveClientEndpointParameters=Ait});var v5=h((djt,bit)=>{bit.exports={name:"@aws-sdk/client-sts",description:"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",version:"3.279.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","generate:client":"node ../../scripts/generate-clients/single-service --solo sts",test:"yarn test:unit","test:unit":"jest"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/config-resolver":"3.272.0","@aws-sdk/credential-provider-node":"3.279.0","@aws-sdk/fetch-http-handler":"3.272.0","@aws-sdk/hash-node":"3.272.0","@aws-sdk/invalid-dependency":"3.272.0","@aws-sdk/middleware-content-length":"3.272.0","@aws-sdk/middleware-endpoint":"3.272.0","@aws-sdk/middleware-host-header":"3.278.0","@aws-sdk/middleware-logger":"3.272.0","@aws-sdk/middleware-recursion-detection":"3.272.0","@aws-sdk/middleware-retry":"3.272.0","@aws-sdk/middleware-sdk-sts":"3.272.0","@aws-sdk/middleware-serde":"3.272.0","@aws-sdk/middleware-signing":"3.272.0","@aws-sdk/middleware-stack":"3.272.0","@aws-sdk/middleware-user-agent":"3.272.0","@aws-sdk/node-config-provider":"3.272.0","@aws-sdk/node-http-handler":"3.272.0","@aws-sdk/protocol-http":"3.272.0","@aws-sdk/smithy-client":"3.279.0","@aws-sdk/types":"3.272.0","@aws-sdk/url-parser":"3.272.0","@aws-sdk/util-base64":"3.208.0","@aws-sdk/util-body-length-browser":"3.188.0","@aws-sdk/util-body-length-node":"3.208.0","@aws-sdk/util-defaults-mode-browser":"3.279.0","@aws-sdk/util-defaults-mode-node":"3.279.0","@aws-sdk/util-endpoints":"3.272.0","@aws-sdk/util-retry":"3.272.0","@aws-sdk/util-user-agent-browser":"3.272.0","@aws-sdk/util-user-agent-node":"3.272.0","@aws-sdk/util-utf8":"3.254.0","fast-xml-parser":"4.1.2",tslib:"^2.3.1"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.208.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.19.2",typescript:"~4.6.2"},overrides:{typedoc:{typescript:"~4.6.2"}},engines:{node:">=14.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sts"}}});var XF=h(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.decorateDefaultCredentialProvider=ns.getDefaultRoleAssumerWithWebIdentity=ns.getDefaultRoleAssumer=void 0;var Cit=Lb(),Tit=Nb(),E5="us-east-1",A5=r(e=>typeof e!="function"?e===void 0?E5:e:async()=>{try{return await e()}catch{return E5}},"decorateDefaultRegion"),xit=r((e,t)=>{let i,s;return async(n,o)=>{if(s=n,!i){let{logger:d,region:l,requestHandler:u}=e;i=new t({logger:d,credentialDefaultProvider:()=>async()=>s,region:A5(l||e.region),...u?{requestHandler:u}:{}})}let{Credentials:c}=await i.send(new Cit.AssumeRoleCommand(o));if(!c||!c.AccessKeyId||!c.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${o.RoleArn}`);return{accessKeyId:c.AccessKeyId,secretAccessKey:c.SecretAccessKey,sessionToken:c.SessionToken,expiration:c.Expiration}}},"getDefaultRoleAssumer");ns.getDefaultRoleAssumer=xit;var Pit=r((e,t)=>{let i;return async s=>{if(!i){let{logger:o,region:c,requestHandler:d}=e;i=new t({logger:o,region:A5(c||e.region),...d?{requestHandler:d}:{}})}let{Credentials:n}=await i.send(new Tit.AssumeRoleWithWebIdentityCommand(s));if(!n||!n.AccessKeyId||!n.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${s.RoleArn}`);return{accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,sessionToken:n.SessionToken,expiration:n.Expiration}}},"getDefaultRoleAssumerWithWebIdentity");ns.getDefaultRoleAssumerWithWebIdentity=Pit;var Iit=r(e=>t=>e({roleAssumer:(0,ns.getDefaultRoleAssumer)(t,t.stsClientCtor),roleAssumerWithWebIdentity:(0,ns.getDefaultRoleAssumerWithWebIdentity)(t,t.stsClientCtor),...t}),"decorateDefaultCredentialProvider");ns.decorateDefaultCredentialProvider=Iit});var b5=h(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.fromEnv=zt.ENV_EXPIRATION=zt.ENV_SESSION=zt.ENV_SECRET=zt.ENV_KEY=void 0;var Rit=Ve();zt.ENV_KEY="AWS_ACCESS_KEY_ID";zt.ENV_SECRET="AWS_SECRET_ACCESS_KEY";zt.ENV_SESSION="AWS_SESSION_TOKEN";zt.ENV_EXPIRATION="AWS_CREDENTIAL_EXPIRATION";var qit=r(()=>async()=>{let e=process.env[zt.ENV_KEY],t=process.env[zt.ENV_SECRET],i=process.env[zt.ENV_SESSION],s=process.env[zt.ENV_EXPIRATION];if(e&&t)return{accessKeyId:e,secretAccessKey:t,...i&&{sessionToken:i},...s&&{expiration:new Date(s)}};throw new Rit.CredentialsProviderError("Unable to find environment variable credentials.")},"fromEnv");zt.fromEnv=qit});var eN=h(ZF=>{"use strict";Object.defineProperty(ZF,"__esModule",{value:!0});var Lit=(se(),te(ie));Lit.__exportStar(b5(),ZF)});var Sh=h(Gb=>{"use strict";Object.defineProperty(Gb,"__esModule",{value:!0});Gb.getHomeDir=void 0;var zit=$("os"),Fit=$("path"),Nit=r(()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:i,HOMEDRIVE:s=`C:${Fit.sep}`}=process.env;return e||t||(i?`${s}${i}`:(0,zit.homedir)())},"getHomeDir");Gb.getHomeDir=Nit});var C5=h(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.getProfileName=rs.DEFAULT_PROFILE=rs.ENV_PROFILE=void 0;rs.ENV_PROFILE="AWS_PROFILE";rs.DEFAULT_PROFILE="default";var Dit=r(e=>e.profile||process.env[rs.ENV_PROFILE]||rs.DEFAULT_PROFILE,"getProfileName");rs.getProfileName=Dit});var tN=h(Vb=>{"use strict";Object.defineProperty(Vb,"__esModule",{value:!0});Vb.getSSOTokenFilepath=void 0;var kit=$("crypto"),Jit=$("path"),Mit=Sh(),Uit=r(e=>{let i=(0,kit.createHash)("sha1").update(e).digest("hex");return(0,Jit.join)((0,Mit.getHomeDir)(),".aws","sso","cache",`${i}.json`)},"getSSOTokenFilepath");Vb.getSSOTokenFilepath=Uit});var T5=h(Bb=>{"use strict";Object.defineProperty(Bb,"__esModule",{value:!0});Bb.getSSOTokenFromFile=void 0;var Oit=$("fs"),jit=tN(),{readFile:Git}=Oit.promises,Vit=r(async e=>{let t=(0,jit.getSSOTokenFilepath)(e),i=await Git(t,"utf8");return JSON.parse(i)},"getSSOTokenFromFile");Bb.getSSOTokenFromFile=Vit});var iN=h(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.getConfigFilepath=Nr.ENV_CONFIG_PATH=void 0;var Bit=$("path"),$it=Sh();Nr.ENV_CONFIG_PATH="AWS_CONFIG_FILE";var Hit=r(()=>process.env[Nr.ENV_CONFIG_PATH]||(0,Bit.join)((0,$it.getHomeDir)(),".aws","config"),"getConfigFilepath");Nr.getConfigFilepath=Hit});var x5=h(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});Dr.getCredentialsFilepath=Dr.ENV_CREDENTIALS_PATH=void 0;var Wit=$("path"),Kit=Sh();Dr.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";var Yit=r(()=>process.env[Dr.ENV_CREDENTIALS_PATH]||(0,Wit.join)((0,Kit.getHomeDir)(),".aws","credentials"),"getCredentialsFilepath");Dr.getCredentialsFilepath=Yit});var I5=h($b=>{"use strict";Object.defineProperty($b,"__esModule",{value:!0});$b.getProfileData=void 0;var P5=/^profile\s(["'])?([^\1]+)\1$/,Qit=r(e=>Object.entries(e).filter(([t])=>P5.test(t)).reduce((t,[i,s])=>({...t,[P5.exec(i)[2]]:s}),{...e.default&&{default:e.default}}),"getProfileData");$b.getProfileData=Qit});var sN=h(Hb=>{"use strict";Object.defineProperty(Hb,"__esModule",{value:!0});Hb.parseIni=void 0;var Xit=["__proto__","profile __proto__"],Zit=r(e=>{let t={},i;for(let s of e.split(/\r?\n/))if(s=s.split(/(^|\s)[;#]/)[0].trim(),s[0]==="["&&s[s.length-1]==="]"){if(i=s.substring(1,s.length-1),Xit.includes(i))throw new Error(`Found invalid profile name "${i}"`)}else if(i){let o=s.indexOf("="),c=0,d=s.length-1;if(o!==-1&&o!==c&&o!==d){let[u,m]=[s.substring(0,o).trim(),s.substring(o+1).trim()];t[i]=t[i]||{},t[i][u]=m}}return t},"parseIni");Hb.parseIni=Zit});var rN=h(Wb=>{"use strict";Object.defineProperty(Wb,"__esModule",{value:!0});Wb.slurpFile=void 0;var est=$("fs"),{readFile:tst}=est.promises,nN={},ist=r(e=>(nN[e]||(nN[e]=tst(e,"utf8")),nN[e]),"slurpFile");Wb.slurpFile=ist});var oN=h(Kb=>{"use strict";Object.defineProperty(Kb,"__esModule",{value:!0});Kb.loadSharedConfigFiles=void 0;var sst=iN(),nst=x5(),rst=I5(),R5=sN(),q5=rN(),L5=r(()=>({}),"swallowError"),ost=r(async(e={})=>{let{filepath:t=(0,nst.getCredentialsFilepath)(),configFilepath:i=(0,sst.getConfigFilepath)()}=e,s=await Promise.all([(0,q5.slurpFile)(i).then(R5.parseIni).then(rst.getProfileData).catch(L5),(0,q5.slurpFile)(t).then(R5.parseIni).catch(L5)]);return{configFile:s[0],credentialsFile:s[1]}},"loadSharedConfigFiles");Kb.loadSharedConfigFiles=ost});var F5=h(Yb=>{"use strict";Object.defineProperty(Yb,"__esModule",{value:!0});Yb.getSsoSessionData=void 0;var z5=/^sso-session\s(["'])?([^\1]+)\1$/,ast=r(e=>Object.entries(e).filter(([t])=>z5.test(t)).reduce((t,[i,s])=>({...t,[z5.exec(i)[2]]:s}),{}),"getSsoSessionData");Yb.getSsoSessionData=ast});var N5=h(Qb=>{"use strict";Object.defineProperty(Qb,"__esModule",{value:!0});Qb.loadSsoSessionData=void 0;var cst=iN(),lst=F5(),dst=sN(),ust=rN(),mst=r(()=>({}),"swallowError"),pst=r(async(e={})=>{var t;return(0,ust.slurpFile)((t=e.configFilepath)!==null&&t!==void 0?t:(0,cst.getConfigFilepath)()).then(dst.parseIni).then(lst.getSsoSessionData).catch(mst)},"loadSsoSessionData");Qb.loadSsoSessionData=pst});var D5=h(Xb=>{"use strict";Object.defineProperty(Xb,"__esModule",{value:!0});Xb.parseKnownFiles=void 0;var hst=oN(),fst=r(async e=>{let t=await(0,hst.loadSharedConfigFiles)(e);return{...t.configFile,...t.credentialsFile}},"parseKnownFiles");Xb.parseKnownFiles=fst});var J5=h(k5=>{"use strict";Object.defineProperty(k5,"__esModule",{value:!0})});var as=h(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});var Mn=(se(),te(ie));Mn.__exportStar(Sh(),os);Mn.__exportStar(C5(),os);Mn.__exportStar(tN(),os);Mn.__exportStar(T5(),os);Mn.__exportStar(oN(),os);Mn.__exportStar(N5(),os);Mn.__exportStar(D5(),os);Mn.__exportStar(J5(),os)});var e0=h(Zb=>{"use strict";Object.defineProperty(Zb,"__esModule",{value:!0});Zb.httpRequest=void 0;var aN=Ve(),gst=$("buffer"),wst=$("http");function _st(e){return new Promise((t,i)=>{var s;let n=(0,wst.request)({method:"GET",...e,hostname:(s=e.hostname)===null||s===void 0?void 0:s.replace(/^\[(.+)\]$/,"$1")});n.on("error",o=>{i(Object.assign(new aN.ProviderError("Unable to connect to instance metadata service"),o)),n.destroy()}),n.on("timeout",()=>{i(new aN.ProviderError("TimeoutError from instance metadata service")),n.destroy()}),n.on("response",o=>{let{statusCode:c=400}=o;(c<200||300<=c)&&(i(Object.assign(new aN.ProviderError("Error response received from instance metadata service"),{statusCode:c})),n.destroy());let d=[];o.on("data",l=>{d.push(l)}),o.on("end",()=>{t(gst.Buffer.concat(d)),n.destroy()})}),n.end()})}r(_st,"httpRequest");Zb.httpRequest=_st});var cN=h(sm=>{"use strict";Object.defineProperty(sm,"__esModule",{value:!0});sm.fromImdsCredentials=sm.isImdsCredentials=void 0;var yst=r(e=>Boolean(e)&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string","isImdsCredentials");sm.isImdsCredentials=yst;var Sst=r(e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)}),"fromImdsCredentials");sm.fromImdsCredentials=Sst});var t0=h(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.providerConfigFromInit=cs.DEFAULT_MAX_RETRIES=cs.DEFAULT_TIMEOUT=void 0;cs.DEFAULT_TIMEOUT=1e3;cs.DEFAULT_MAX_RETRIES=0;var vst=r(({maxRetries:e=cs.DEFAULT_MAX_RETRIES,timeout:t=cs.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:t}),"providerConfigFromInit");cs.providerConfigFromInit=vst});var lN=h(i0=>{"use strict";Object.defineProperty(i0,"__esModule",{value:!0});i0.retry=void 0;var Est=r((e,t)=>{let i=e();for(let s=0;s<t;s++)i=i.catch(e);return i},"retry");i0.retry=Est});var U5=h(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.fromContainerMetadata=wt.ENV_CMDS_AUTH_TOKEN=wt.ENV_CMDS_RELATIVE_URI=wt.ENV_CMDS_FULL_URI=void 0;var s0=Ve(),Ast=$("url"),bst=e0(),M5=cN(),Cst=t0(),Tst=lN();wt.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";wt.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";wt.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";var xst=r((e={})=>{let{timeout:t,maxRetries:i}=(0,Cst.providerConfigFromInit)(e);return()=>(0,Tst.retry)(async()=>{let s=await Lst(),n=JSON.parse(await Pst(t,s));if(!(0,M5.isImdsCredentials)(n))throw new s0.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,M5.fromImdsCredentials)(n)},i)},"fromContainerMetadata");wt.fromContainerMetadata=xst;var Pst=r(async(e,t)=>(process.env[wt.ENV_CMDS_AUTH_TOKEN]&&(t.headers={...t.headers,Authorization:process.env[wt.ENV_CMDS_AUTH_TOKEN]}),(await(0,bst.httpRequest)({...t,timeout:e})).toString()),"requestFromEcsImds"),Ist="169.254.170.2",Rst={localhost:!0,"127.0.0.1":!0},qst={"http:":!0,"https:":!0},Lst=r(async()=>{if(process.env[wt.ENV_CMDS_RELATIVE_URI])return{hostname:Ist,path:process.env[wt.ENV_CMDS_RELATIVE_URI]};if(process.env[wt.ENV_CMDS_FULL_URI]){let e=(0,Ast.parse)(process.env[wt.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in Rst))throw new s0.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in qst))throw new s0.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,!1);return{...e,port:e.port?parseInt(e.port,10):void 0}}throw new s0.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${wt.ENV_CMDS_RELATIVE_URI} or ${wt.ENV_CMDS_FULL_URI} environment variable is set`,!1)},"getCmdsUri")});var O5=h(n0=>{"use strict";Object.defineProperty(n0,"__esModule",{value:!0});n0.fromEnv=void 0;var zst=Ve(),Fst=r(e=>async()=>{try{let t=e(process.env);if(t===void 0)throw new Error;return t}catch(t){throw new zst.CredentialsProviderError(t.message||`Cannot load config from environment variables with getter: ${e}`)}},"fromEnv");n0.fromEnv=Fst});var G5=h(r0=>{"use strict";Object.defineProperty(r0,"__esModule",{value:!0});r0.fromSharedConfigFiles=void 0;var Nst=Ve(),j5=as(),Dst=r((e,{preferredFile:t="config",...i}={})=>async()=>{let s=(0,j5.getProfileName)(i),{configFile:n,credentialsFile:o}=await(0,j5.loadSharedConfigFiles)(i),c=o[s]||{},d=n[s]||{},l=t==="config"?{...c,...d}:{...d,...c};try{let u=e(l);if(u===void 0)throw new Error;return u}catch(u){throw new Nst.CredentialsProviderError(u.message||`Cannot load config for profile ${s} in SDK configuration files with getter: ${e}`)}},"fromSharedConfigFiles");r0.fromSharedConfigFiles=Dst});var V5=h(o0=>{"use strict";Object.defineProperty(o0,"__esModule",{value:!0});o0.fromStatic=void 0;var kst=Ve(),Jst=r(e=>typeof e=="function","isFunction"),Mst=r(e=>Jst(e)?async()=>await e():(0,kst.fromStatic)(e),"fromStatic");o0.fromStatic=Mst});var $5=h(a0=>{"use strict";Object.defineProperty(a0,"__esModule",{value:!0});a0.loadConfig=void 0;var B5=Ve(),Ust=O5(),Ost=G5(),jst=V5(),Gst=r(({environmentVariableSelector:e,configFileSelector:t,default:i},s={})=>(0,B5.memoize)((0,B5.chain)((0,Ust.fromEnv)(e),(0,Ost.fromSharedConfigFiles)(t,s),(0,jst.fromStatic)(i))),"loadConfig");a0.loadConfig=Gst});var Un=h(dN=>{"use strict";Object.defineProperty(dN,"__esModule",{value:!0});var Vst=(se(),te(ie));Vst.__exportStar($5(),dN)});var H5=h(vh=>{"use strict";Object.defineProperty(vh,"__esModule",{value:!0});vh.Endpoint=void 0;var Bst;(function(e){e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]"})(Bst=vh.Endpoint||(vh.Endpoint={}))});var W5=h(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.ENDPOINT_CONFIG_OPTIONS=ls.CONFIG_ENDPOINT_NAME=ls.ENV_ENDPOINT_NAME=void 0;ls.ENV_ENDPOINT_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT";ls.CONFIG_ENDPOINT_NAME="ec2_metadata_service_endpoint";ls.ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>e[ls.ENV_ENDPOINT_NAME],configFileSelector:e=>e[ls.CONFIG_ENDPOINT_NAME],default:void 0}});var uN=h(Eh=>{"use strict";Object.defineProperty(Eh,"__esModule",{value:!0});Eh.EndpointMode=void 0;var $st;(function(e){e.IPv4="IPv4",e.IPv6="IPv6"})($st=Eh.EndpointMode||(Eh.EndpointMode={}))});var K5=h(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.ENDPOINT_MODE_CONFIG_OPTIONS=ds.CONFIG_ENDPOINT_MODE_NAME=ds.ENV_ENDPOINT_MODE_NAME=void 0;var Hst=uN();ds.ENV_ENDPOINT_MODE_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";ds.CONFIG_ENDPOINT_MODE_NAME="ec2_metadata_service_endpoint_mode";ds.ENDPOINT_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[ds.ENV_ENDPOINT_MODE_NAME],configFileSelector:e=>e[ds.CONFIG_ENDPOINT_MODE_NAME],default:Hst.EndpointMode.IPv4}});var pN=h(c0=>{"use strict";Object.defineProperty(c0,"__esModule",{value:!0});c0.getInstanceMetadataEndpoint=void 0;var Q5=Un(),Wst=Er(),Y5=H5(),Kst=W5(),mN=uN(),Yst=K5(),Qst=r(async()=>(0,Wst.parseUrl)(await Xst()||await Zst()),"getInstanceMetadataEndpoint");c0.getInstanceMetadataEndpoint=Qst;var Xst=r(async()=>(0,Q5.loadConfig)(Kst.ENDPOINT_CONFIG_OPTIONS)(),"getFromEndpointConfig"),Zst=r(async()=>{let e=await(0,Q5.loadConfig)(Yst.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case mN.EndpointMode.IPv4:return Y5.Endpoint.IPv4;case mN.EndpointMode.IPv6:return Y5.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(mN.EndpointMode)}`)}},"getFromEndpointModeConfig")});var X5=h(l0=>{"use strict";Object.defineProperty(l0,"__esModule",{value:!0});l0.getExtendedInstanceMetadataCredentials=void 0;var ent=5*60,tnt=5*60,int="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",snt=r((e,t)=>{var i;let s=ent+Math.floor(Math.random()*tnt),n=new Date(Date.now()+s*1e3);t.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: "+int);let o=(i=e.originalExpiration)!==null&&i!==void 0?i:e.expiration;return{...e,...o?{originalExpiration:o}:{},expiration:n}},"getExtendedInstanceMetadataCredentials");l0.getExtendedInstanceMetadataCredentials=snt});var eY=h(d0=>{"use strict";Object.defineProperty(d0,"__esModule",{value:!0});d0.staticStabilityProvider=void 0;var Z5=X5(),nnt=r((e,t={})=>{let i=t?.logger||console,s;return async()=>{let n;try{n=await e(),n.expiration&&n.expiration.getTime()<Date.now()&&(n=(0,Z5.getExtendedInstanceMetadataCredentials)(n,i))}catch(o){if(s)i.warn("Credential renew failed: ",o),n=(0,Z5.getExtendedInstanceMetadataCredentials)(s,i);else throw o}return s=n,n}},"staticStabilityProvider");d0.staticStabilityProvider=nnt});var nY=h(u0=>{"use strict";Object.defineProperty(u0,"__esModule",{value:!0});u0.fromInstanceMetadata=void 0;var rnt=Ve(),hN=e0(),tY=cN(),ont=t0(),iY=lN(),ant=pN(),cnt=eY(),sY="/latest/meta-data/iam/security-credentials/",lnt="/latest/api/token",dnt=r((e={})=>(0,cnt.staticStabilityProvider)(unt(e),{logger:e.logger}),"fromInstanceMetadata");u0.fromInstanceMetadata=dnt;var unt=r(e=>{let t=!1,{timeout:i,maxRetries:s}=(0,ont.providerConfigFromInit)(e),n=r(async(o,c)=>{let d=(await(0,iY.retry)(async()=>{let l;try{l=await pnt(c)}catch(u){throw u.statusCode===401&&(t=!1),u}return l},o)).trim();return(0,iY.retry)(async()=>{let l;try{l=await hnt(d,c)}catch(u){throw u.statusCode===401&&(t=!1),u}return l},o)},"getCredentials");return async()=>{let o=await(0,ant.getInstanceMetadataEndpoint)();if(t)return n(s,{...o,timeout:i});{let c;try{c=(await mnt({...o,timeout:i})).toString()}catch(d){if(d?.statusCode===400)throw Object.assign(d,{message:"EC2 Metadata token request returned error"});return(d.message==="TimeoutError"||[403,404,405].includes(d.statusCode))&&(t=!0),n(s,{...o,timeout:i})}return n(s,{...o,headers:{"x-aws-ec2-metadata-token":c},timeout:i})}}},"getInstanceImdsProvider"),mnt=r(async e=>(0,hN.httpRequest)({...e,path:lnt,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),"getMetadataToken"),pnt=r(async e=>(await(0,hN.httpRequest)({...e,path:sY})).toString(),"getProfile"),hnt=r(async(e,t)=>{let i=JSON.parse((await(0,hN.httpRequest)({...t,path:sY+e})).toString());if(!(0,tY.isImdsCredentials)(i))throw new rnt.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,tY.fromImdsCredentials)(i)},"getCredentialsFromProfile")});var oY=h(rY=>{"use strict";Object.defineProperty(rY,"__esModule",{value:!0})});var p0=h(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.getInstanceMetadataEndpoint=us.httpRequest=void 0;var m0=(se(),te(ie));m0.__exportStar(U5(),us);m0.__exportStar(nY(),us);m0.__exportStar(t0(),us);m0.__exportStar(oY(),us);var fnt=e0();Object.defineProperty(us,"httpRequest",{enumerable:!0,get:function(){return fnt.httpRequest}});var gnt=pN();Object.defineProperty(us,"getInstanceMetadataEndpoint",{enumerable:!0,get:function(){return gnt.getInstanceMetadataEndpoint}})});var cY=h(h0=>{"use strict";Object.defineProperty(h0,"__esModule",{value:!0});h0.resolveCredentialSource=void 0;var wnt=eN(),aY=p0(),_nt=Ve(),ynt=r((e,t)=>{let i={EcsContainer:aY.fromContainerMetadata,Ec2InstanceMetadata:aY.fromInstanceMetadata,Environment:wnt.fromEnv};if(e in i)return i[e]();throw new _nt.CredentialsProviderError(`Unsupported credential source in profile ${t}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`)},"resolveCredentialSource");h0.resolveCredentialSource=ynt});var lY=h(nm=>{"use strict";Object.defineProperty(nm,"__esModule",{value:!0});nm.resolveAssumeRoleCredentials=nm.isAssumeRoleProfile=void 0;var fN=Ve(),Snt=as(),vnt=cY(),Ent=gN(),Ant=r(e=>Boolean(e)&&typeof e=="object"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1&&(bnt(e)||Cnt(e)),"isAssumeRoleProfile");nm.isAssumeRoleProfile=Ant;var bnt=r(e=>typeof e.source_profile=="string"&&typeof e.credential_source>"u","isAssumeRoleWithSourceProfile"),Cnt=r(e=>typeof e.credential_source=="string"&&typeof e.source_profile>"u","isAssumeRoleWithProviderProfile"),Tnt=r(async(e,t,i,s={})=>{let n=t[e];if(!i.roleAssumer)throw new fN.CredentialsProviderError(`Profile ${e} requires a role to be assumed, but no role assumption callback was provided.`,!1);let{source_profile:o}=n;if(o&&o in s)throw new fN.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${(0,Snt.getProfileName)(i)}. Profiles visited: `+Object.keys(s).join(", "),!1);let c=o?(0,Ent.resolveProfileData)(o,t,i,{...s,[o]:!0}):(0,vnt.resolveCredentialSource)(n.credential_source,e)(),d={RoleArn:n.role_arn,RoleSessionName:n.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:n.external_id},{mfa_serial:l}=n;if(l){if(!i.mfaCodeProvider)throw new fN.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,!1);d.SerialNumber=l,d.TokenCode=await i.mfaCodeProvider(l)}let u=await c;return i.roleAssumer(u,d)},"resolveAssumeRoleCredentials");nm.resolveAssumeRoleCredentials=Tnt});var dY=h(f0=>{"use strict";Object.defineProperty(f0,"__esModule",{value:!0});f0.getValidatedProcessCredentials=void 0;var xnt=r((e,t)=>{if(t.Version!==1)throw Error(`Profile ${e} credential_process did not return Version 1.`);if(t.AccessKeyId===void 0||t.SecretAccessKey===void 0)throw Error(`Profile ${e} credential_process returned invalid credentials.`);if(t.Expiration){let i=new Date;if(new Date(t.Expiration)<i)throw Error(`Profile ${e} credential_process returned expired credentials.`)}return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,...t.SessionToken&&{sessionToken:t.SessionToken},...t.Expiration&&{expiration:new Date(t.Expiration)}}},"getValidatedProcessCredentials");f0.getValidatedProcessCredentials=xnt});var uY=h(g0=>{"use strict";Object.defineProperty(g0,"__esModule",{value:!0});g0.resolveProcessCredentials=void 0;var wN=Ve(),Pnt=$("child_process"),Int=$("util"),Rnt=dY(),qnt=r(async(e,t)=>{let i=t[e];if(t[e]){let s=i.credential_process;if(s!==void 0){let n=(0,Int.promisify)(Pnt.exec);try{let{stdout:o}=await n(s),c;try{c=JSON.parse(o.trim())}catch{throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return(0,Rnt.getValidatedProcessCredentials)(e,c)}catch(o){throw new wN.CredentialsProviderError(o.message)}}else throw new wN.CredentialsProviderError(`Profile ${e} did not contain credential_process.`)}else throw new wN.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`)},"resolveProcessCredentials");g0.resolveProcessCredentials=qnt});var pY=h(w0=>{"use strict";Object.defineProperty(w0,"__esModule",{value:!0});w0.fromProcess=void 0;var mY=as(),Lnt=uY(),znt=r((e={})=>async()=>{let t=await(0,mY.parseKnownFiles)(e);return(0,Lnt.resolveProcessCredentials)((0,mY.getProfileName)(e),t)},"fromProcess");w0.fromProcess=znt});var yN=h(_N=>{"use strict";Object.defineProperty(_N,"__esModule",{value:!0});var Fnt=(se(),te(ie));Fnt.__exportStar(pY(),_N)});var hY=h(rm=>{"use strict";Object.defineProperty(rm,"__esModule",{value:!0});rm.resolveProcessCredentials=rm.isProcessProfile=void 0;var Nnt=yN(),Dnt=r(e=>Boolean(e)&&typeof e=="object"&&typeof e.credential_process=="string","isProcessProfile");rm.isProcessProfile=Dnt;var knt=r(async(e,t)=>(0,Nnt.fromProcess)({...e,profile:t})(),"resolveProcessCredentials");rm.resolveProcessCredentials=knt});var SN=h(_0=>{"use strict";Object.defineProperty(_0,"__esModule",{value:!0});_0.isSsoProfile=void 0;var Jnt=r(e=>e&&(typeof e.sso_start_url=="string"||typeof e.sso_account_id=="string"||typeof e.sso_session=="string"||typeof e.sso_region=="string"||typeof e.sso_role_name=="string"),"isSsoProfile");_0.isSsoProfile=Jnt});var S0=h(y0=>{"use strict";Object.defineProperty(y0,"__esModule",{value:!0});y0.SSOServiceException=void 0;var Mnt=E(),om=class extends Mnt.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,om.prototype)}};r(om,"SSOServiceException");y0.SSOServiceException=om});var kr=h(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.LogoutRequestFilterSensitiveLog=Ne.ListAccountsResponseFilterSensitiveLog=Ne.ListAccountsRequestFilterSensitiveLog=Ne.ListAccountRolesResponseFilterSensitiveLog=Ne.RoleInfoFilterSensitiveLog=Ne.ListAccountRolesRequestFilterSensitiveLog=Ne.GetRoleCredentialsResponseFilterSensitiveLog=Ne.RoleCredentialsFilterSensitiveLog=Ne.GetRoleCredentialsRequestFilterSensitiveLog=Ne.AccountInfoFilterSensitiveLog=Ne.UnauthorizedException=Ne.TooManyRequestsException=Ne.ResourceNotFoundException=Ne.InvalidRequestException=void 0;var um=E(),v0=S0(),am=class extends v0.SSOServiceException{constructor(t){super({name:"InvalidRequestException",$fault:"client",...t}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,am.prototype)}};r(am,"InvalidRequestException");Ne.InvalidRequestException=am;var cm=class extends v0.SSOServiceException{constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,cm.prototype)}};r(cm,"ResourceNotFoundException");Ne.ResourceNotFoundException=cm;var lm=class extends v0.SSOServiceException{constructor(t){super({name:"TooManyRequestsException",$fault:"client",...t}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,lm.prototype)}};r(lm,"TooManyRequestsException");Ne.TooManyRequestsException=lm;var dm=class extends v0.SSOServiceException{constructor(t){super({name:"UnauthorizedException",$fault:"client",...t}),this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,dm.prototype)}};r(dm,"UnauthorizedException");Ne.UnauthorizedException=dm;var Unt=r(e=>({...e}),"AccountInfoFilterSensitiveLog");Ne.AccountInfoFilterSensitiveLog=Unt;var Ont=r(e=>({...e,...e.accessToken&&{accessToken:um.SENSITIVE_STRING}}),"GetRoleCredentialsRequestFilterSensitiveLog");Ne.GetRoleCredentialsRequestFilterSensitiveLog=Ont;var jnt=r(e=>({...e,...e.secretAccessKey&&{secretAccessKey:um.SENSITIVE_STRING},...e.sessionToken&&{sessionToken:um.SENSITIVE_STRING}}),"RoleCredentialsFilterSensitiveLog");Ne.RoleCredentialsFilterSensitiveLog=jnt;var Gnt=r(e=>({...e,...e.roleCredentials&&{roleCredentials:(0,Ne.RoleCredentialsFilterSensitiveLog)(e.roleCredentials)}}),"GetRoleCredentialsResponseFilterSensitiveLog");Ne.GetRoleCredentialsResponseFilterSensitiveLog=Gnt;var Vnt=r(e=>({...e,...e.accessToken&&{accessToken:um.SENSITIVE_STRING}}),"ListAccountRolesRequestFilterSensitiveLog");Ne.ListAccountRolesRequestFilterSensitiveLog=Vnt;var Bnt=r(e=>({...e}),"RoleInfoFilterSensitiveLog");Ne.RoleInfoFilterSensitiveLog=Bnt;var $nt=r(e=>({...e}),"ListAccountRolesResponseFilterSensitiveLog");Ne.ListAccountRolesResponseFilterSensitiveLog=$nt;var Hnt=r(e=>({...e,...e.accessToken&&{accessToken:um.SENSITIVE_STRING}}),"ListAccountsRequestFilterSensitiveLog");Ne.ListAccountsRequestFilterSensitiveLog=Hnt;var Wnt=r(e=>({...e}),"ListAccountsResponseFilterSensitiveLog");Ne.ListAccountsResponseFilterSensitiveLog=Wnt;var Knt=r(e=>({...e,...e.accessToken&&{accessToken:um.SENSITIVE_STRING}}),"LogoutRequestFilterSensitiveLog");Ne.LogoutRequestFilterSensitiveLog=Knt});var Ah=h(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.deserializeAws_restJson1LogoutCommand=_t.deserializeAws_restJson1ListAccountsCommand=_t.deserializeAws_restJson1ListAccountRolesCommand=_t.deserializeAws_restJson1GetRoleCredentialsCommand=_t.serializeAws_restJson1LogoutCommand=_t.serializeAws_restJson1ListAccountsCommand=_t.serializeAws_restJson1ListAccountRolesCommand=_t.serializeAws_restJson1GetRoleCredentialsCommand=void 0;var E0=kt(),qe=E(),A0=kr(),b0=S0(),Ynt=r(async(e,t)=>{let{hostname:i,protocol:s="https",port:n,path:o}=await t.endpoint(),c=Mt({},P0,{"x-amz-sso_bearer_token":e.accessToken}),d=`${o?.endsWith("/")?o.slice(0,-1):o||""}/federation/credentials`,l=Mt({role_name:[,(0,qe.expectNonNull)(e.roleName,"roleName")],account_id:[,(0,qe.expectNonNull)(e.accountId,"accountId")]}),u;return new E0.HttpRequest({protocol:s,hostname:i,port:n,method:"GET",headers:c,path:d,query:l,body:u})},"serializeAws_restJson1GetRoleCredentialsCommand");_t.serializeAws_restJson1GetRoleCredentialsCommand=Ynt;var Qnt=r(async(e,t)=>{let{hostname:i,protocol:s="https",port:n,path:o}=await t.endpoint(),c=Mt({},P0,{"x-amz-sso_bearer_token":e.accessToken}),d=`${o?.endsWith("/")?o.slice(0,-1):o||""}/assignment/roles`,l=Mt({next_token:[,e.nextToken],max_result:[()=>e.maxResults!==void 0,()=>e.maxResults.toString()],account_id:[,(0,qe.expectNonNull)(e.accountId,"accountId")]}),u;return new E0.HttpRequest({protocol:s,hostname:i,port:n,method:"GET",headers:c,path:d,query:l,body:u})},"serializeAws_restJson1ListAccountRolesCommand");_t.serializeAws_restJson1ListAccountRolesCommand=Qnt;var Xnt=r(async(e,t)=>{let{hostname:i,protocol:s="https",port:n,path:o}=await t.endpoint(),c=Mt({},P0,{"x-amz-sso_bearer_token":e.accessToken}),d=`${o?.endsWith("/")?o.slice(0,-1):o||""}/assignment/accounts`,l=Mt({next_token:[,e.nextToken],max_result:[()=>e.maxResults!==void 0,()=>e.maxResults.toString()]}),u;return new E0.HttpRequest({protocol:s,hostname:i,port:n,method:"GET",headers:c,path:d,query:l,body:u})},"serializeAws_restJson1ListAccountsCommand");_t.serializeAws_restJson1ListAccountsCommand=Xnt;var Znt=r(async(e,t)=>{let{hostname:i,protocol:s="https",port:n,path:o}=await t.endpoint(),c=Mt({},P0,{"x-amz-sso_bearer_token":e.accessToken}),d=`${o?.endsWith("/")?o.slice(0,-1):o||""}/logout`,l;return new E0.HttpRequest({protocol:s,hostname:i,port:n,method:"POST",headers:c,path:d,body:l})},"serializeAws_restJson1LogoutCommand");_t.serializeAws_restJson1LogoutCommand=Znt;var ert=r(async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return trt(e,t);let i=Mt({$metadata:On(e)}),s=(0,qe.expectNonNull)((0,qe.expectObject)(await I0(e.body,t)),"body");return s.roleCredentials!=null&&(i.roleCredentials=drt(s.roleCredentials,t)),i},"deserializeAws_restJson1GetRoleCredentialsCommand");_t.deserializeAws_restJson1GetRoleCredentialsCommand=ert;var trt=r(async(e,t)=>{let i={...e,body:await R0(e.body,t)},s=q0(e,i.body);switch(s){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await C0(i,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await vN(i,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await T0(i,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await x0(i,t);default:let n=i.body;(0,qe.throwDefaultError)({output:e,parsedBody:n,exceptionCtor:b0.SSOServiceException,errorCode:s})}},"deserializeAws_restJson1GetRoleCredentialsCommandError"),irt=r(async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return srt(e,t);let i=Mt({$metadata:On(e)}),s=(0,qe.expectNonNull)((0,qe.expectObject)(await I0(e.body,t)),"body");return s.nextToken!=null&&(i.nextToken=(0,qe.expectString)(s.nextToken)),s.roleList!=null&&(i.roleList=mrt(s.roleList,t)),i},"deserializeAws_restJson1ListAccountRolesCommand");_t.deserializeAws_restJson1ListAccountRolesCommand=irt;var srt=r(async(e,t)=>{let i={...e,body:await R0(e.body,t)},s=q0(e,i.body);switch(s){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await C0(i,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await vN(i,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await T0(i,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await x0(i,t);default:let n=i.body;(0,qe.throwDefaultError)({output:e,parsedBody:n,exceptionCtor:b0.SSOServiceException,errorCode:s})}},"deserializeAws_restJson1ListAccountRolesCommandError"),nrt=r(async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return rrt(e,t);let i=Mt({$metadata:On(e)}),s=(0,qe.expectNonNull)((0,qe.expectObject)(await I0(e.body,t)),"body");return s.accountList!=null&&(i.accountList=lrt(s.accountList,t)),s.nextToken!=null&&(i.nextToken=(0,qe.expectString)(s.nextToken)),i},"deserializeAws_restJson1ListAccountsCommand");_t.deserializeAws_restJson1ListAccountsCommand=nrt;var rrt=r(async(e,t)=>{let i={...e,body:await R0(e.body,t)},s=q0(e,i.body);switch(s){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await C0(i,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await vN(i,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await T0(i,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await x0(i,t);default:let n=i.body;(0,qe.throwDefaultError)({output:e,parsedBody:n,exceptionCtor:b0.SSOServiceException,errorCode:s})}},"deserializeAws_restJson1ListAccountsCommandError"),ort=r(async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return art(e,t);let i=Mt({$metadata:On(e)});return await fY(e.body,t),i},"deserializeAws_restJson1LogoutCommand");_t.deserializeAws_restJson1LogoutCommand=ort;var art=r(async(e,t)=>{let i={...e,body:await R0(e.body,t)},s=q0(e,i.body);switch(s){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await C0(i,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await T0(i,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await x0(i,t);default:let n=i.body;(0,qe.throwDefaultError)({output:e,parsedBody:n,exceptionCtor:b0.SSOServiceException,errorCode:s})}},"deserializeAws_restJson1LogoutCommandError"),Mt=qe.map,C0=r(async(e,t)=>{let i=Mt({}),s=e.body;s.message!=null&&(i.message=(0,qe.expectString)(s.message));let n=new A0.InvalidRequestException({$metadata:On(e),...i});return(0,qe.decorateServiceException)(n,e.body)},"deserializeAws_restJson1InvalidRequestExceptionResponse"),vN=r(async(e,t)=>{let i=Mt({}),s=e.body;s.message!=null&&(i.message=(0,qe.expectString)(s.message));let n=new A0.ResourceNotFoundException({$metadata:On(e),...i});return(0,qe.decorateServiceException)(n,e.body)},"deserializeAws_restJson1ResourceNotFoundExceptionResponse"),T0=r(async(e,t)=>{let i=Mt({}),s=e.body;s.message!=null&&(i.message=(0,qe.expectString)(s.message));let n=new A0.TooManyRequestsException({$metadata:On(e),...i});return(0,qe.decorateServiceException)(n,e.body)},"deserializeAws_restJson1TooManyRequestsExceptionResponse"),x0=r(async(e,t)=>{let i=Mt({}),s=e.body;s.message!=null&&(i.message=(0,qe.expectString)(s.message));let n=new A0.UnauthorizedException({$metadata:On(e),...i});return(0,qe.decorateServiceException)(n,e.body)},"deserializeAws_restJson1UnauthorizedExceptionResponse"),crt=r((e,t)=>({accountId:(0,qe.expectString)(e.accountId),accountName:(0,qe.expectString)(e.accountName),emailAddress:(0,qe.expectString)(e.emailAddress)}),"deserializeAws_restJson1AccountInfo"),lrt=r((e,t)=>(e||[]).filter(s=>s!=null).map(s=>s===null?null:crt(s,t)),"deserializeAws_restJson1AccountListType"),drt=r((e,t)=>({accessKeyId:(0,qe.expectString)(e.accessKeyId),expiration:(0,qe.expectLong)(e.expiration),secretAccessKey:(0,qe.expectString)(e.secretAccessKey),sessionToken:(0,qe.expectString)(e.sessionToken)}),"deserializeAws_restJson1RoleCredentials"),urt=r((e,t)=>({accountId:(0,qe.expectString)(e.accountId),roleName:(0,qe.expectString)(e.roleName)}),"deserializeAws_restJson1RoleInfo"),mrt=r((e,t)=>(e||[]).filter(s=>s!=null).map(s=>s===null?null:urt(s,t)),"deserializeAws_restJson1RoleListType"),On=r(e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),"deserializeMetadata"),fY=r((e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),"collectBody"),prt=r((e,t)=>fY(e,t).then(i=>t.utf8Encoder(i)),"collectBodyString"),P0=r(e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),"isSerializableHeaderValue"),I0=r((e,t)=>prt(e,t).then(i=>i.length?JSON.parse(i):{}),"parseBody"),R0=r(async(e,t)=>{let i=await I0(e,t);return i.message=i.message??i.Message,i},"parseErrorBody"),q0=r((e,t)=>{let i=r((o,c)=>Object.keys(o).find(d=>d.toLowerCase()===c.toLowerCase()),"findKey"),s=r(o=>{let c=o;return typeof c=="number"&&(c=c.toString()),c.indexOf(",")>=0&&(c=c.split(",")[0]),c.indexOf(":")>=0&&(c=c.split(":")[0]),c.indexOf("#")>=0&&(c=c.split("#")[1]),c},"sanitizeErrorCode"),n=i(e.headers,"x-amzn-errortype");if(n!==void 0)return s(e.headers[n]);if(t.code!==void 0)return s(t.code);if(t.__type!==void 0)return s(t.__type)},"loadRestJsonErrorCode")});var EN=h(L0=>{"use strict";Object.defineProperty(L0,"__esModule",{value:!0});L0.GetRoleCredentialsCommand=void 0;var hrt=b(),frt=C(),grt=E(),gY=kr(),wY=Ah(),mm=class extends grt.Command{constructor(t){super(),this.input=t}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,i,s){this.middlewareStack.use((0,frt.getSerdePlugin)(i,this.serialize,this.deserialize)),this.middlewareStack.use((0,hrt.getEndpointPlugin)(i,mm.getEndpointParameterInstructions()));let n=t.concat(this.middlewareStack),{logger:o}=i,l={logger:o,clientName:"SSOClient",commandName:"GetRoleCredentialsCommand",inputFilterSensitiveLog:gY.GetRoleCredentialsRequestFilterSensitiveLog,outputFilterSensitiveLog:gY.GetRoleCredentialsResponseFilterSensitiveLog},{requestHandler:u}=i;return n.resolve(m=>u.handle(m.request,s||{}),l)}serialize(t,i){return(0,wY.serializeAws_restJson1GetRoleCredentialsCommand)(t,i)}deserialize(t,i){return(0,wY.deserializeAws_restJson1GetRoleCredentialsCommand)(t,i)}};r(mm,"GetRoleCredentialsCommand");L0.GetRoleCredentialsCommand=mm});var F0=h(z0=>{"use strict";Object.defineProperty(z0,"__esModule",{value:!0});z0.ListAccountRolesCommand=void 0;var wrt=b(),_rt=C(),yrt=E(),_Y=kr(),yY=Ah(),pm=class extends yrt.Command{constructor(t){super(),this.input=t}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,i,s){this.middlewareStack.use((0,_rt.getSerdePlugin)(i,this.serialize,this.deserialize)),this.middlewareStack.use((0,wrt.getEndpointPlugin)(i,pm.getEndpointParameterInstructions()));let n=t.concat(this.middlewareStack),{logger:o}=i,l={logger:o,clientName:"SSOClient",commandName:"ListAccountRolesCommand",inputFilterSensitiveLog:_Y.ListAccountRolesRequestFilterSensitiveLog,outputFilterSensitiveLog:_Y.ListAccountRolesResponseFilterSensitiveLog},{requestHandler:u}=i;return n.resolve(m=>u.handle(m.request,s||{}),l)}serialize(t,i){return(0,yY.serializeAws_restJson1ListAccountRolesCommand)(t,i)}deserialize(t,i){return(0,yY.deserializeAws_restJson1ListAccountRolesCommand)(t,i)}};r(pm,"ListAccountRolesCommand");z0.ListAccountRolesCommand=pm});var D0=h(N0=>{"use strict";Object.defineProperty(N0,"__esModule",{value:!0});N0.ListAccountsCommand=void 0;var Srt=b(),vrt=C(),Ert=E(),SY=kr(),vY=Ah(),hm=class extends Ert.Command{constructor(t){super(),this.input=t}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,i,s){this.middlewareStack.use((0,vrt.getSerdePlugin)(i,this.serialize,this.deserialize)),this.middlewareStack.use((0,Srt.getEndpointPlugin)(i,hm.getEndpointParameterInstructions()));let n=t.concat(this.middlewareStack),{logger:o}=i,l={logger:o,clientName:"SSOClient",commandName:"ListAccountsCommand",inputFilterSensitiveLog:SY.ListAccountsRequestFilterSensitiveLog,outputFilterSensitiveLog:SY.ListAccountsResponseFilterSensitiveLog},{requestHandler:u}=i;return n.resolve(m=>u.handle(m.request,s||{}),l)}serialize(t,i){return(0,vY.serializeAws_restJson1ListAccountsCommand)(t,i)}deserialize(t,i){return(0,vY.deserializeAws_restJson1ListAccountsCommand)(t,i)}};r(hm,"ListAccountsCommand");N0.ListAccountsCommand=hm});var AN=h(k0=>{"use strict";Object.defineProperty(k0,"__esModule",{value:!0});k0.LogoutCommand=void 0;var Art=b(),brt=C(),Crt=E(),Trt=kr(),EY=Ah(),fm=class extends Crt.Command{constructor(t){super(),this.input=t}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,i,s){this.middlewareStack.use((0,brt.getSerdePlugin)(i,this.serialize,this.deserialize)),this.middlewareStack.use((0,Art.getEndpointPlugin)(i,fm.getEndpointParameterInstructions()));let n=t.concat(this.middlewareStack),{logger:o}=i,l={logger:o,clientName:"SSOClient",commandName:"LogoutCommand",inputFilterSensitiveLog:Trt.LogoutRequestFilterSensitiveLog,outputFilterSensitiveLog:m=>m},{requestHandler:u}=i;return n.resolve(m=>u.handle(m.request,s||{}),l)}serialize(t,i){return(0,EY.serializeAws_restJson1LogoutCommand)(t,i)}deserialize(t,i){return(0,EY.deserializeAws_restJson1LogoutCommand)(t,i)}};r(fm,"LogoutCommand");k0.LogoutCommand=fm});var AY=h(J0=>{"use strict";Object.defineProperty(J0,"__esModule",{value:!0});J0.resolveClientEndpointParameters=void 0;var xrt=r(e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}),"resolveClientEndpointParameters");J0.resolveClientEndpointParameters=xrt});var bY=h((eVt,Prt)=>{Prt.exports={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.279.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","generate:client":"node ../../scripts/generate-clients/single-service --solo sso"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/config-resolver":"3.272.0","@aws-sdk/fetch-http-handler":"3.272.0","@aws-sdk/hash-node":"3.272.0","@aws-sdk/invalid-dependency":"3.272.0","@aws-sdk/middleware-content-length":"3.272.0","@aws-sdk/middleware-endpoint":"3.272.0","@aws-sdk/middleware-host-header":"3.278.0","@aws-sdk/middleware-logger":"3.272.0","@aws-sdk/middleware-recursion-detection":"3.272.0","@aws-sdk/middleware-retry":"3.272.0","@aws-sdk/middleware-serde":"3.272.0","@aws-sdk/middleware-stack":"3.272.0","@aws-sdk/middleware-user-agent":"3.272.0","@aws-sdk/node-config-provider":"3.272.0","@aws-sdk/node-http-handler":"3.272.0","@aws-sdk/protocol-http":"3.272.0","@aws-sdk/smithy-client":"3.279.0","@aws-sdk/types":"3.272.0","@aws-sdk/url-parser":"3.272.0","@aws-sdk/util-base64":"3.208.0","@aws-sdk/util-body-length-browser":"3.188.0","@aws-sdk/util-body-length-node":"3.208.0","@aws-sdk/util-defaults-mode-browser":"3.279.0","@aws-sdk/util-defaults-mode-node":"3.279.0","@aws-sdk/util-endpoints":"3.272.0","@aws-sdk/util-retry":"3.272.0","@aws-sdk/util-user-agent-browser":"3.272.0","@aws-sdk/util-user-agent-node":"3.272.0","@aws-sdk/util-utf8":"3.254.0",tslib:"^2.3.1"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.208.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.19.2",typescript:"~4.6.2"},overrides:{typedoc:{typescript:"~4.6.2"}},engines:{node:">=14.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso"}}});var bh=h(U0=>{"use strict";Object.defineProperty(U0,"__esModule",{value:!0});U0.Hash=void 0;var bN=Du(),Irt=js(),Rrt=$("buffer"),CY=$("crypto"),M0=class{constructor(t,i){this.algorithmIdentifier=t,this.secret=i,this.reset()}update(t,i){this.hash.update((0,Irt.toUint8Array)(TY(t,i)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,CY.createHmac)(this.algorithmIdentifier,TY(this.secret)):(0,CY.createHash)(this.algorithmIdentifier)}};r(M0,"Hash");U0.Hash=M0;function TY(e,t){return Rrt.Buffer.isBuffer(e)?e:typeof e=="string"?(0,bN.fromString)(e,t):ArrayBuffer.isView(e)?(0,bN.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength):(0,bN.fromArrayBuffer)(e)}r(TY,"castSourceData")});var TN=h(O0=>{"use strict";Object.defineProperty(O0,"__esModule",{value:!0});O0.buildQueryString=void 0;var CN=TF();function qrt(e){let t=[];for(let i of Object.keys(e).sort()){let s=e[i];if(i=(0,CN.escapeUri)(i),Array.isArray(s))for(let n=0,o=s.length;n<o;n++)t.push(`${i}=${(0,CN.escapeUri)(s[n])}`);else{let n=i;(s||typeof s=="string")&&(n+=`=${(0,CN.escapeUri)(s)}`),t.push(n)}}return t.join("&")}r(qrt,"buildQueryString");O0.buildQueryString=qrt});var xY=h(j0=>{"use strict";Object.defineProperty(j0,"__esModule",{value:!0});j0.NODEJS_TIMEOUT_ERROR_CODES=void 0;j0.NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","EPIPE","ETIMEDOUT"]});var xN=h(G0=>{"use strict";Object.defineProperty(G0,"__esModule",{value:!0});G0.getTransformedHeaders=void 0;var Lrt=r(e=>{let t={};for(let i of Object.keys(e)){let s=e[i];t[i]=Array.isArray(s)?s.join(","):s}return t},"getTransformedHeaders");G0.getTransformedHeaders=Lrt});var PY=h(V0=>{"use strict";Object.defineProperty(V0,"__esModule",{value:!0});V0.setConnectionTimeout=void 0;var zrt=r((e,t,i=0)=>{i&&e.on("socket",s=>{if(s.connecting){let n=setTimeout(()=>{e.destroy(),t(Object.assign(new Error(`Socket timed out without establishing a connection within ${i} ms`),{name:"TimeoutError"}))},i);s.on("connect",()=>{clearTimeout(n)})}})},"setConnectionTimeout");V0.setConnectionTimeout=zrt});var IY=h(B0=>{"use strict";Object.defineProperty(B0,"__esModule",{value:!0});B0.setSocketTimeout=void 0;var Frt=r((e,t,i=0)=>{e.setTimeout(i,()=>{e.destroy(),t(Object.assign(new Error(`Connection timed out after ${i} ms`),{name:"TimeoutError"}))})},"setSocketTimeout");B0.setSocketTimeout=Frt});var PN=h($0=>{"use strict";Object.defineProperty($0,"__esModule",{value:!0});$0.writeRequestBody=void 0;var Nrt=$("stream");function Drt(e,t){(t.headers.Expect||t.headers.expect)==="100-continue"?e.on("continue",()=>{RY(e,t.body)}):RY(e,t.body)}r(Drt,"writeRequestBody");$0.writeRequestBody=Drt;function RY(e,t){t instanceof Nrt.Readable?t.pipe(e):t?e.end(Buffer.from(t)):e.end()}r(RY,"writeBody")});var zY=h(W0=>{"use strict";Object.defineProperty(W0,"__esModule",{value:!0});W0.NodeHttpHandler=void 0;var krt=kt(),Jrt=TN(),qY=$("http"),LY=$("https"),Mrt=xY(),Urt=xN(),Ort=PY(),jrt=IY(),Grt=PN(),H0=class{constructor(t){this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((i,s)=>{typeof t=="function"?t().then(n=>{i(this.resolveDefaultConfig(n))}).catch(s):i(this.resolveDefaultConfig(t))})}resolveDefaultConfig(t){let{connectionTimeout:i,socketTimeout:s,httpAgent:n,httpsAgent:o}=t||{},c=!0,d=50;return{connectionTimeout:i,socketTimeout:s,httpAgent:n||new qY.Agent({keepAlive:c,maxSockets:d}),httpsAgent:o||new LY.Agent({keepAlive:c,maxSockets:d})}}destroy(){var t,i,s,n;(i=(t=this.config)===null||t===void 0?void 0:t.httpAgent)===null||i===void 0||i.destroy(),(n=(s=this.config)===null||s===void 0?void 0:s.httpsAgent)===null||n===void 0||n.destroy()}async handle(t,{abortSignal:i}={}){return this.config||(this.config=await this.configProvider),new Promise((s,n)=>{if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(i?.aborted){let m=new Error("Request aborted");m.name="AbortError",n(m);return}let o=t.protocol==="https:",c=(0,Jrt.buildQueryString)(t.query||{}),d={headers:t.headers,host:t.hostname,method:t.method,path:c?`${t.path}?${c}`:t.path,port:t.port,agent:o?this.config.httpsAgent:this.config.httpAgent},u=(o?LY.request:qY.request)(d,m=>{let w=new krt.HttpResponse({statusCode:m.statusCode||-1,headers:(0,Urt.getTransformedHeaders)(m.headers),body:m});s({response:w})});u.on("error",m=>{Mrt.NODEJS_TIMEOUT_ERROR_CODES.includes(m.code)?n(Object.assign(m,{name:"TimeoutError"})):n(m)}),(0,Ort.setConnectionTimeout)(u,n,this.config.connectionTimeout),(0,jrt.setSocketTimeout)(u,n,this.config.socketTimeout),i&&(i.onabort=()=>{u.abort();let m=new Error("Request aborted");m.name="AbortError",n(m)}),(0,Grt.writeRequestBody)(u,t)})}};r(H0,"NodeHttpHandler");W0.NodeHttpHandler=H0});var FY=h(Y0=>{"use strict";Object.defineProperty(Y0,"__esModule",{value:!0});Y0.NodeHttp2Handler=void 0;var Vrt=kt(),Brt=TN(),IN=$("http2"),$rt=xN(),Hrt=PN(),K0=class{constructor(t){this.metadata={handlerProtocol:"h2"},this.configProvider=new Promise((i,s)=>{typeof t=="function"?t().then(n=>{i(n||{})}).catch(s):i(t||{})}),this.sessionCache=new Map}destroy(){for(let t of this.sessionCache.values())t.forEach(i=>this.destroySession(i));this.sessionCache.clear()}async handle(t,{abortSignal:i}={}){this.config||(this.config=await this.configProvider);let{requestTimeout:s,disableConcurrentStreams:n}=this.config;return new Promise((o,c)=>{let d=!1;if(i?.aborted){d=!0;let W=new Error("Request aborted");W.name="AbortError",c(W);return}let{hostname:l,method:u,port:m,protocol:w,path:_,query:S}=t,N=`${w}//${l}${m?`:${m}`:""}`,k=this.getSession(N,n||!1),U=r(W=>{n&&this.destroySession(k),d=!0,c(W)},"reject"),J=(0,Brt.buildQueryString)(S||{}),j=k.request({...t.headers,[IN.constants.HTTP2_HEADER_PATH]:J?`${_}?${J}`:_,[IN.constants.HTTP2_HEADER_METHOD]:u});k.ref(),j.on("response",W=>{let X=new Vrt.HttpResponse({statusCode:W[":status"]||-1,headers:(0,$rt.getTransformedHeaders)(W),body:j});d=!0,o({response:X}),n&&(k.close(),this.deleteSessionFromCache(N,k))}),s&&j.setTimeout(s,()=>{j.close();let W=new Error(`Stream timed out because of no activity for ${s} ms`);W.name="TimeoutError",U(W)}),i&&(i.onabort=()=>{j.close();let W=new Error("Request aborted");W.name="AbortError",U(W)}),j.on("frameError",(W,X,ae)=>{U(new Error(`Frame type id ${W} in stream id ${ae} has failed with code ${X}.`))}),j.on("error",U),j.on("aborted",()=>{U(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${j.rstCode}.`))}),j.on("close",()=>{k.unref(),n&&k.destroy(),d||U(new Error("Unexpected error: http2 request did not get a response"))}),(0,Hrt.writeRequestBody)(j,t)})}getSession(t,i){var s;let n=this.sessionCache,o=n.get(t)||[];if(o.length>0&&!i)return o[0];let c=(0,IN.connect)(t);c.unref();let d=r(()=>{this.destroySession(c),this.deleteSessionFromCache(t,c)},"destroySessionCb");return c.on("goaway",d),c.on("error",d),c.on("frameError",d),c.on("close",()=>this.deleteSessionFromCache(t,c)),!((s=this.config)===null||s===void 0)&&s.sessionTimeout&&c.setTimeout(this.config.sessionTimeout,d),o.push(c),n.set(t,o),c}destroySession(t){t.destroyed||t.destroy()}deleteSessionFromCache(t,i){let s=this.sessionCache.get(t)||[];s.includes(i)&&this.sessionCache.set(t,s.filter(n=>n!==i))}};r(K0,"NodeHttp2Handler");Y0.NodeHttp2Handler=K0});var NY=h(X0=>{"use strict";Object.defineProperty(X0,"__esModule",{value:!0});X0.Collector=void 0;var Wrt=$("stream"),Q0=class extends Wrt.Writable{constructor(){super(...arguments),this.bufferedBytes=[]}_write(t,i,s){this.bufferedBytes.push(t),s()}};r(Q0,"Collector");X0.Collector=Q0});var DY=h(Z0=>{"use strict";Object.defineProperty(Z0,"__esModule",{value:!0});Z0.streamCollector=void 0;var Krt=NY(),Yrt=r(e=>new Promise((t,i)=>{let s=new Krt.Collector;e.pipe(s),e.on("error",n=>{s.end(),i(n)}),s.on("error",i),s.on("finish",function(){let n=new Uint8Array(Buffer.concat(this.bufferedBytes));t(n)})}),"streamCollector");Z0.streamCollector=Yrt});var Th=h(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});var RN=(se(),te(ie));RN.__exportStar(zY(),Ch);RN.__exportStar(FY(),Ch);RN.__exportStar(DY(),Ch)});var JY=h(eC=>{"use strict";Object.defineProperty(eC,"__esModule",{value:!0});eC.calculateBodyLength=void 0;var kY=$("fs"),Qrt=r(e=>{if(!e)return 0;if(typeof e=="string")return Buffer.from(e).length;if(typeof e.byteLength=="number")return e.byteLength;if(typeof e.size=="number")return e.size;if(typeof e.path=="string"||Buffer.isBuffer(e.path))return(0,kY.lstatSync)(e.path).size;if(typeof e.fd=="number")return(0,kY.fstatSync)(e.fd).size;throw new Error(`Body Length computation failed for ${e}`)},"calculateBodyLength");eC.calculateBodyLength=Qrt});var xh=h(qN=>{"use strict";Object.defineProperty(qN,"__esModule",{value:!0});var Xrt=(se(),te(ie));Xrt.__exportStar(JY(),qN)});var MY=h((TVt,Zrt)=>{Zrt.exports={name:"aws-crt",version:"1.15.9",description:"NodeJS/browser bindings to the aws-c-* libraries",homepage:"https://github.com/awslabs/aws-crt-nodejs",repository:{type:"git",url:"git+https://github.com/awslabs/aws-crt-nodejs.git"},contributors:["AWS Common Runtime Team <aws-sdk-common-runtime@amazon.com>"],license:"Apache-2.0",main:"./dist/index.js",browser:"./dist.browser/browser.js",types:"./dist/index.d.ts",scripts:{tsc:"node ./scripts/tsc.js",test:"npm run test:native","test:node":"npm run test:native","test:native":"npx jest --runInBand --verbose --config test/native/jest.config.js --forceExit","test:browser":"npx jest --runInBand --verbose --config test/browser/jest.config.js --forceExit","test:browser:ci":"npm run install:puppeteer && npm run test:browser","install:puppeteer":"npm install --save-dev jest-puppeteer puppeteer @types/puppeteer",prepare:"node ./scripts/tsc.js && node ./scripts/install.js",install:"node ./scripts/install.js"},devDependencies:{"@types/crypto-js":"^3.1.43","@types/jest":"^27.0.1","@types/node":"^10.17.54","@types/prettier":"2.6.0","@types/puppeteer":"^5.4.4","@types/uuid":"^3.4.8","@types/ws":"^7.4.7","aws-sdk":"^2.848.0","https-proxy-agent":"^5.0.1",jest:"^27.2.1","jest-puppeteer":"^5.0.4","jest-runtime":"^27.2.1",puppeteer:"^3.3.0","ts-jest":"^27.0.5",typedoc:"^0.22.18","typedoc-plugin-merge-modules":"^3.1.0",typescript:"^4.7.4",uuid:"^8.3.2",yargs:"^17.2.1","cmake-js":"^6.3.2",tar:"^6.1.11"},dependencies:{"@aws-sdk/util-utf8-browser":"^3.109.0","@httptoolkit/websocket-stream":"^6.0.0",axios:"^0.24.0","crypto-js":"^4.0.0",mqtt:"^4.3.7","cmake-js":"^6.3.2",tar:"^6.1.11"}}});var tC=h(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.crt_version=ms.package_info=ms.is_browser=ms.is_nodejs=void 0;function UY(){return typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node<"u"}r(UY,"is_nodejs");ms.is_nodejs=UY;function eot(){return!UY()}r(eot,"is_browser");ms.is_browser=eot;function OY(){try{return MY()}catch{return{name:"aws-crt-nodejs",version:"UNKNOWN"}}}r(OY,"package_info");ms.package_info=OY;function tot(){return OY().version}r(tot,"crt_version");ms.crt_version=tot});var jY=h(gm=>{"use strict";var iot=gm&&gm.__awaiter||function(e,t,i,s){function n(o){return o instanceof i?o:new i(function(c){c(o)})}return r(n,"adopt"),new(i||(i=Promise))(function(o,c){function d(m){try{u(s.next(m))}catch(w){c(w)}}r(d,"fulfilled");function l(m){try{u(s.throw(m))}catch(w){c(w)}}r(l,"rejected");function u(m){m.done?o(m.value):n(m.value).then(d,l)}r(u,"step"),u((s=s.apply(e,t||[])).next())})};Object.defineProperty(gm,"__esModule",{value:!0});gm.using=void 0;function sot(e,t){return iot(this,void 0,void 0,function*(){try{yield t(e)}finally{e.close()}})}r(sot,"using");gm.using=sot});var ps=h(Hs=>{"use strict";var not=Hs&&Hs.__createBinding||(Object.create?function(e,t,i,s){s===void 0&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){s===void 0&&(s=i),e[s]=t[i]}),rot=Hs&&Hs.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),oot=Hs&&Hs.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&not(t,e,i);return rot(t,e),t};Object.defineProperty(Hs,"__esModule",{value:!0});var iC=oot($("path")),GY=$("os"),HY=$("fs"),VY=$("process"),BY="Please upgrade to node >=10.16.0, or use the provided browser implementation.";if("napi"in VY.versions){if(parseInt(VY.versions.napi)<4)throw new Error("The AWS CRT native implementation requires that NAPI version 4 be present. "+BY)}else throw new Error("The current runtime is not reporting an NAPI version. "+BY);var aot="aws-crt-nodejs",cot=`${GY.platform}-${GY.arch}`,LN=iC.resolve(__dirname,"..",".."),$Y=iC.join(LN,"dist");(0,HY.existsSync)($Y)&&(LN=$Y);var lot=iC.resolve(LN,"bin"),WY=[iC.join(lot,cot,aot)],zN;for(let e of WY)if((0,HY.existsSync)(e+".node")){zN=$(e);break}if(zN==null)throw new Error(`AWS CRT binary not present in any of the following locations:
56
56
  `+WY.join(`
57
57
  `));Hs.default=zN});var jn=h(wm=>{"use strict";var dot=wm&&wm.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wm,"__esModule",{value:!0});wm.CrtError=void 0;var KY=dot(ps()),Jr=class extends Error{constructor(t){super(uot(t)),this.error=t,this.error_code=mot(t),this.error_name=pot(t)}};r(Jr,"CrtError");wm.CrtError=Jr;function uot(e){return typeof e=="number"?KY.default.error_code_to_string(e):e instanceof Jr?e.message:e.toString()}r(uot,"extract_message");function mot(e){if(typeof e=="number")return e;if(e instanceof Jr)return e.error_code}r(mot,"extract_code");function pot(e){if(typeof e=="number")return KY.default.error_code_to_name(e);if(e instanceof Jr)return e.error_name}r(pot,"extract_name")});var ym=h(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});_m.NativeResourceMixin=_m.NativeResource=void 0;var sC=class{constructor(t){this.handle=t}native_handle(){return this.handle}};r(sC,"NativeResource");_m.NativeResource=sC;function hot(e){return class extends e{constructor(...t){let i=t.shift();super(...t),this._handle=i}_super(t){this._handle=t}native_handle(){return this._handle}}}r(hot,"NativeResourceMixin");_m.NativeResourceMixin=hot});var FN=h(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.SocketDomain=ki.SocketType=ki.TlsVersion=void 0;var fot;(function(e){e[e.SSLv3=0]="SSLv3",e[e.TLSv1=1]="TLSv1",e[e.TLSv1_1=2]="TLSv1_1",e[e.TLSv1_2=3]="TLSv1_2",e[e.TLSv1_3=4]="TLSv1_3",e[e.Default=128]="Default"})(fot=ki.TlsVersion||(ki.TlsVersion={}));var got;(function(e){e[e.STREAM=0]="STREAM",e[e.DGRAM=1]="DGRAM"})(got=ki.SocketType||(ki.SocketType={}));var wot;(function(e){e[e.IPV4=0]="IPV4",e[e.IPV6=1]="IPV6",e[e.LOCAL=2]="LOCAL"})(wot=ki.SocketDomain||(ki.SocketDomain={}))});var Gn=h(Se=>{"use strict";var _ot=Se&&Se.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Se,"__esModule",{value:!0});Se.Pkcs11Lib=Se.TlsConnectionOptions=Se.ServerTlsContext=Se.ClientTlsContext=Se.TlsContext=Se.TlsContextOptions=Se.SocketOptions=Se.ClientBootstrap=Se.InputStream=Se.is_alpn_available=Se.enable_logging=Se.LogLevel=Se.error_code_to_name=Se.error_code_to_string=Se.SocketDomain=Se.SocketType=Se.TlsVersion=void 0;var ni=_ot(ps()),vm=ym(),NN=FN(),DN=FN();Object.defineProperty(Se,"TlsVersion",{enumerable:!0,get:function(){return DN.TlsVersion}});Object.defineProperty(Se,"SocketType",{enumerable:!0,get:function(){return DN.SocketType}});Object.defineProperty(Se,"SocketDomain",{enumerable:!0,get:function(){return DN.SocketDomain}});function yot(e){return ni.default.error_code_to_string(e)}r(yot,"error_code_to_string");Se.error_code_to_string=yot;function Sot(e){return ni.default.error_code_to_name(e)}r(Sot,"error_code_to_name");Se.error_code_to_name=Sot;var vot;(function(e){e[e.NONE=0]="NONE",e[e.FATAL=1]="FATAL",e[e.ERROR=2]="ERROR",e[e.WARN=3]="WARN",e[e.INFO=4]="INFO",e[e.DEBUG=5]="DEBUG",e[e.TRACE=6]="TRACE"})(vot=Se.LogLevel||(Se.LogLevel={}));function Eot(e){ni.default.io_logging_enable(e)}r(Eot,"enable_logging");Se.enable_logging=Eot;function Aot(){return ni.default.is_alpn_available()}r(Aot,"is_alpn_available");Se.is_alpn_available=Aot;var nC=class extends vm.NativeResource{constructor(t){super(ni.default.io_input_stream_new(16*1024)),this.source=t,this.source.on("data",i=>{i=Buffer.isBuffer(i)?i:new Buffer(i.toString(),"utf8"),ni.default.io_input_stream_append(this.native_handle(),i)}),this.source.on("end",()=>{ni.default.io_input_stream_append(this.native_handle(),void 0)})}};r(nC,"InputStream");Se.InputStream=nC;var rC=class extends vm.NativeResource{constructor(){super(ni.default.io_client_bootstrap_new())}};r(rC,"ClientBootstrap");Se.ClientBootstrap=rC;var oC=class extends vm.NativeResource{constructor(t=NN.SocketType.STREAM,i=NN.SocketDomain.IPV6,s=5e3,n=!1,o=0,c=0,d=0){super(ni.default.io_socket_options_new(t,i,s,o,c,d,n))}};r(oC,"SocketOptions");Se.SocketOptions=oC;var Kt=class{constructor(){this.min_tls_version=NN.TlsVersion.Default,this.alpn_list=[],this.verify_peer=!0}override_default_trust_store_from_path(t,i){this.ca_dirpath=t,this.ca_filepath=i}override_default_trust_store(t){this.certificate_authority=t}static create_client_with_mtls(t,i){let s=new Kt;return s.certificate=t,s.private_key=i,s.verify_peer=!0,s}static create_client_with_mtls_from_path(t,i){let s=new Kt;return s.certificate_filepath=t,s.private_key_filepath=i,s.verify_peer=!0,s}static create_client_with_mtls_pkcs12_from_path(t,i){let s=new Kt;return s.pkcs12_filepath=t,s.pkcs12_password=i,s.verify_peer=!0,s}static create_client_with_mtls_pkcs_from_path(t,i){return this.create_client_with_mtls_pkcs12_from_path(t,i)}static create_client_with_mtls_pkcs11(t){let i=new Kt;return i.pkcs11_options=t,i.verify_peer=!0,i}static create_client_with_mtls_windows_cert_store_path(t){let i=new Kt;return i.windows_cert_store_path=t,i.verify_peer=!0,i}static create_server_with_mtls_from_path(t,i){let s=new Kt;return s.certificate_filepath=t,s.private_key_filepath=i,s.verify_peer=!1,s}static create_server_with_mtls_pkcs_from_path(t,i){let s=new Kt;return s.pkcs12_filepath=t,s.pkcs12_password=i,s.verify_peer=!1,s}};r(Kt,"TlsContextOptions");Se.TlsContextOptions=Kt;var Sm=class extends vm.NativeResource{constructor(t){super(ni.default.io_tls_ctx_new(t.min_tls_version,t.ca_filepath,t.ca_dirpath,t.certificate_authority,t.alpn_list&&t.alpn_list.length>0?t.alpn_list.join(";"):void 0,t.certificate_filepath,t.certificate,t.private_key_filepath,t.private_key,t.pkcs12_filepath,t.pkcs12_password,t.pkcs11_options,t.windows_cert_store_path,t.verify_peer))}};r(Sm,"TlsContext");Se.TlsContext=Sm;var aC=class extends Sm{constructor(t){t||(t=new Kt,t.verify_peer=!0),super(t)}};r(aC,"ClientTlsContext");Se.ClientTlsContext=aC;var cC=class extends Sm{constructor(t){t||(t=new Kt,t.verify_peer=!1),super(t)}};r(cC,"ServerTlsContext");Se.ServerTlsContext=cC;var lC=class extends vm.NativeResource{constructor(t,i,s=[]){super(ni.default.io_tls_connection_options_new(t.native_handle(),i,s&&s.length>0?s.join(";"):void 0)),this.tls_ctx=t,this.server_name=i,this.alpn_list=s}};r(lC,"TlsConnectionOptions");Se.TlsConnectionOptions=lC;var Mr=class extends vm.NativeResource{constructor(t,i=Mr.InitializeFinalizeBehavior.DEFAULT){super(ni.default.io_pkcs11_lib_new(t,i))}close(){ni.default.io_pkcs11_lib_close(this.native_handle())}};r(Mr,"Pkcs11Lib");Se.Pkcs11Lib=Mr;(function(e){let t;(function(i){i[i.DEFAULT=0]="DEFAULT",i[i.OMIT=1]="OMIT",i[i.STRICT=2]="STRICT"})(t=e.InitializeFinalizeBehavior||(e.InitializeFinalizeBehavior={}))})(Mr=Se.Pkcs11Lib||(Se.Pkcs11Lib={}))});var uC=h(et=>{"use strict";var bot=et&&et.__awaiter||function(e,t,i,s){function n(o){return o instanceof i?o:new i(function(c){c(o)})}return r(n,"adopt"),new(i||(i=Promise))(function(o,c){function d(m){try{u(s.next(m))}catch(w){c(w)}}r(d,"fulfilled");function l(m){try{u(s.throw(m))}catch(w){c(w)}}r(l,"rejected");function u(m){m.done?o(m.value):n(m.value).then(d,l)}r(u,"step"),u((s=s.apply(e,t||[])).next())})},Cot=et&&et.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(et,"__esModule",{value:!0});et.aws_verify_sigv4a_signing=et.aws_sign_request=et.AwsSignedBodyHeaderType=et.AwsSignedBodyValue=et.AwsSignatureType=et.AwsSigningAlgorithm=et.AwsCredentialsProvider=void 0;var kN=Cot(ps()),Tot=jn(),xot=Gn(),dC=class extends kN.default.AwsCredentialsProvider{static newDefault(t=void 0){return super.newDefault(t!=null?t.native_handle():null)}static newStatic(t,i,s){return super.newStatic(t,i,s)}static newCognito(t){return super.newCognito(t,t.tlsContext!=null?t.tlsContext.native_handle():new xot.ClientTlsContext().native_handle(),t.bootstrap!=null?t.bootstrap.native_handle():null,t.httpProxyOptions?t.httpProxyOptions.create_native_handle():null)}};r(dC,"AwsCredentialsProvider");et.AwsCredentialsProvider=dC;var Pot;(function(e){e[e.SigV4=0]="SigV4",e[e.SigV4Asymmetric=1]="SigV4Asymmetric"})(Pot=et.AwsSigningAlgorithm||(et.AwsSigningAlgorithm={}));var Iot;(function(e){e[e.HttpRequestViaHeaders=0]="HttpRequestViaHeaders",e[e.HttpRequestViaQueryParams=1]="HttpRequestViaQueryParams",e[e.HttpRequestChunk=2]="HttpRequestChunk",e[e.HttpRequestEvent=3]="HttpRequestEvent"})(Iot=et.AwsSignatureType||(et.AwsSignatureType={}));var Rot;(function(e){e.EmptySha256="e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",e.UnsignedPayload="UNSIGNED-PAYLOAD",e.StreamingAws4HmacSha256Payload="STREAMING-AWS4-HMAC-SHA256-PAYLOAD",e.StreamingAws4HmacSha256Events="STREAMING-AWS4-HMAC-SHA256-EVENTS"})(Rot=et.AwsSignedBodyValue||(et.AwsSignedBodyValue={}));var qot;(function(e){e[e.None=0]="None",e[e.XAmzContentSha256=1]="XAmzContentSha256"})(qot=et.AwsSignedBodyHeaderType||(et.AwsSignedBodyHeaderType={}));function Lot(e,t){return bot(this,void 0,void 0,function*(){return new Promise((i,s)=>{try{kN.default.aws_sign_request(e,t,n=>{n==0?i(e):s(new Tot.CrtError(n))})}catch(n){s(n)}})})}r(Lot,"aws_sign_request");et.aws_sign_request=Lot;function zot(e,t,i,s,n,o){return kN.default.aws_verify_sigv4a_signing(e,t,i,s,n,o)}r(zot,"aws_verify_sigv4a_signing");et.aws_verify_sigv4a_signing=zot});var QY=h(Vn=>{"use strict";var Fot=Vn&&Vn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vn,"__esModule",{value:!0});Vn.crc32c=Vn.crc32=void 0;var YY=Fot(ps());function Not(e,t){return YY.default.checksums_crc32(e,t)}r(Not,"crc32");Vn.crc32=Not;function Dot(e,t){return YY.default.checksums_crc32c(e,t)}r(Dot,"crc32c");Vn.crc32c=Dot});var ZY=h(Bn=>{"use strict";var kot=Bn&&Bn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Bn,"__esModule",{value:!0});Bn.native_memory_dump=Bn.native_memory=void 0;var XY=kot(ps());function Jot(){return XY.default.native_memory()}r(Jot,"native_memory");Bn.native_memory=Jot;function Mot(){return XY.default.native_memory_dump()}r(Mot,"native_memory_dump");Bn.native_memory_dump=Mot});var t9=h(pt=>{"use strict";var Uot=pt&&pt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pt,"__esModule",{value:!0});pt.hmac_sha256=pt.Sha256Hmac=pt.hash_sha1=pt.Sha1Hash=pt.hash_sha256=pt.Sha256Hash=pt.hash_md5=pt.Md5Hash=void 0;var Ei=Uot(ps()),e9=ym(),Em=class extends e9.NativeResource{update(t){Ei.default.hash_update(this.native_handle(),t)}finalize(t){return Ei.default.hash_digest(this.native_handle(),t)}constructor(t){super(t)}};r(Em,"Hash");var mC=class extends Em{constructor(){super(Ei.default.hash_md5_new())}};r(mC,"Md5Hash");pt.Md5Hash=mC;function Oot(e,t){return Ei.default.hash_md5_compute(e,t)}r(Oot,"hash_md5");pt.hash_md5=Oot;var pC=class extends Em{constructor(){super(Ei.default.hash_sha256_new())}};r(pC,"Sha256Hash");pt.Sha256Hash=pC;function jot(e,t){return Ei.default.hash_sha256_compute(e,t)}r(jot,"hash_sha256");pt.hash_sha256=jot;var hC=class extends Em{constructor(){super(Ei.default.hash_sha1_new())}};r(hC,"Sha1Hash");pt.Sha1Hash=hC;function Got(e,t){return Ei.default.hash_sha1_compute(e,t)}r(Got,"hash_sha1");pt.hash_sha1=Got;var fC=class extends e9.NativeResource{update(t){Ei.default.hmac_update(this.native_handle(),t)}finalize(t){return Ei.default.hmac_digest(this.native_handle(),t)}constructor(t){super(t)}};r(fC,"Hmac");var gC=class extends fC{constructor(t){super(Ei.default.hmac_sha256_new(t))}};r(gC,"Sha256Hmac");pt.Sha256Hmac=gC;function Vot(e,t,i){return Ei.default.hmac_sha256_compute(e,t,i)}r(Vot,"hmac_sha256");pt.hmac_sha256=Vot});var JN=h(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.CommonHttpProxyOptions=hs.HttpProxyAuthenticationType=hs.HttpVersion=void 0;var Bot;(function(e){e[e.Unknown=0]="Unknown",e[e.Http1_0=1]="Http1_0",e[e.Http1_1=2]="Http1_1",e[e.Http2=3]="Http2"})(Bot=hs.HttpVersion||(hs.HttpVersion={}));var i9;(function(e){e[e.None=0]="None",e[e.Basic=1]="Basic"})(i9=hs.HttpProxyAuthenticationType||(hs.HttpProxyAuthenticationType={}));var wC=class{constructor(t,i,s=i9.None,n,o){this.host_name=t,this.port=i,this.auth_method=s,this.auth_username=n,this.auth_password=o}};r(wC,"CommonHttpProxyOptions");hs.CommonHttpProxyOptions=wC});var vC=h(SC=>{"use strict";Object.defineProperty(SC,"__esModule",{value:!0});SC.BufferedEventEmitter=void 0;var $ot=$("events"),_C=class{constructor(t,i){this.event=t,this.args=i}};r(_C,"BufferedEvent");var yC=class extends $ot.EventEmitter{constructor(){super(),this.corked=!1}cork(){this.corked=!0}uncork(){for(this.corked=!1;this.eventQueue;){let t=this.eventQueue;super.emit(t.event,...t.args),this.eventQueue=this.eventQueue.next}}emit(t,...i){if(this.corked){let s=this.lastQueuedEvent;return this.lastQueuedEvent=new _C(t,i),s?s.next=this.lastQueuedEvent:this.eventQueue=this.lastQueuedEvent,this.listeners(t).length>0}return super.emit(t,...i)}};r(yC,"BufferedEventEmitter");SC.BufferedEventEmitter=yC});var TC=h(Ye=>{"use strict";var Hot=Ye&&Ye.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ye,"__esModule",{value:!0});Ye.HttpClientConnectionManager=Ye.HttpClientStream=Ye.HttpStream=Ye.HttpClientConnection=Ye.HttpProxyOptions=Ye.HttpProxyConnectionType=Ye.HttpConnection=Ye.HttpRequest=Ye.HttpHeaders=Ye.HttpProxyAuthenticationType=void 0;var Ai=Hot(ps()),MN=ym(),CC=jn(),s9=JN(),Wot=JN();Object.defineProperty(Ye,"HttpProxyAuthenticationType",{enumerable:!0,get:function(){return Wot.HttpProxyAuthenticationType}});var n9=vC();Ye.HttpHeaders=Ai.default.HttpHeaders;var Kot=Ai.default.HttpRequest,EC=class extends Kot{constructor(t,i,s,n){super(t,i,s,n?.native_handle())}};r(EC,"HttpRequest");Ye.HttpRequest=EC;var $n=class extends(0,MN.NativeResourceMixin)(n9.BufferedEventEmitter){constructor(t){super(),this._super(t)}close(){Ai.default.http_connection_close(this.native_handle())}on(t,i){return super.on(t,i),t=="connect"&&process.nextTick(()=>{this.uncork()}),this}};r($n,"HttpConnection");Ye.HttpConnection=$n;$n.CONNECT="connect";$n.ERROR="error";$n.CLOSE="close";var r9;(function(e){e[e.Legacy=0]="Legacy",e[e.Forwarding=1]="Forwarding",e[e.Tunneling=2]="Tunneling"})(r9=Ye.HttpProxyConnectionType||(Ye.HttpProxyConnectionType={}));var AC=class extends s9.CommonHttpProxyOptions{constructor(t,i,s=s9.HttpProxyAuthenticationType.None,n,o,c,d){super(t,i,s,n,o),this.tls_opts=c,this.connection_type=d}create_native_handle(){return Ai.default.http_proxy_options_new(this.host_name,this.port,this.auth_method,this.auth_username,this.auth_password,this.tls_opts?this.tls_opts.native_handle():void 0,this.connection_type?this.connection_type:r9.Legacy)}};r(AC,"HttpProxyOptions");Ye.HttpProxyOptions=AC;var Ph=class extends $n{constructor(t,i,s,n,o,c,d){super(d||Ai.default.http_connection_new(t!=null?t.native_handle():null,(l,u)=>{this._on_setup(l,u)},(l,u)=>{this._on_shutdown(l,u)},i,s,n.native_handle(),o?o.native_handle():void 0,c?c.create_native_handle():void 0)),this.bootstrap=t,this.socket_options=n,this.tls_opts=o}_on_setup(t,i){if(i){this.emit("error",new CC.CrtError(i));return}this.emit("connect")}_on_shutdown(t,i){if(i){this.emit("error",new CC.CrtError(i));return}this.emit("close")}request(t){let i,s=r((d,l)=>{i._on_response(d,l)},"on_response_impl"),n=r(d=>{i._on_body(d)},"on_body_impl"),o=r(d=>{i._on_complete(d)},"on_complete_impl"),c=Ai.default.http_stream_new(this.native_handle(),t,o,s,n);return i=new fs(c,this,t)}};r(Ph,"HttpClientConnection");Ye.HttpClientConnection=Ph;var Ih=class extends(0,MN.NativeResourceMixin)(n9.BufferedEventEmitter){constructor(t,i){super(),this.connection=i,this._super(t),this.cork()}activate(){Ai.default.http_stream_activate(this.native_handle())}close(){Ai.default.http_stream_close(this.native_handle())}_on_body(t){this.emit("data",t)}_on_complete(t){if(t){this.emit("error",new CC.CrtError(t)),this.close();return}this.on("end",()=>{this.close()}),this.emit("end")}};r(Ih,"HttpStream");Ye.HttpStream=Ih;var fs=class extends Ih{constructor(t,i,s){super(t,i),this.request=s}status_code(){return this.response_status_code}on(t,i){return super.on(t,i),t=="response"&&process.nextTick(()=>{this.uncork()}),this}_on_response(t,i){this.response_status_code=t;let s=new Ye.HttpHeaders(i);this.emit("response",t,s)}};r(fs,"HttpClientStream");Ye.HttpClientStream=fs;fs.RESPONSE="response";fs.DATA="data";fs.ERROR="error";fs.END="end";fs.HEADERS="headers";var bC=class extends MN.NativeResource{constructor(t,i,s,n,o,c,d,l){super(Ai.default.http_connection_manager_new(t!=null?t.native_handle():null,i,s,n,o,c.native_handle(),d?d.native_handle():void 0,l?l.create_native_handle():void 0,void 0)),this.bootstrap=t,this.host=i,this.port=s,this.max_connections=n,this.initial_window_size=o,this.socket_options=c,this.tls_opts=d,this.proxy_options=l,this.connections=new Map}acquire(){return new Promise((t,i)=>{let s=r((n,o)=>{if(o){i(new CC.CrtError(o));return}let c=this.connections.get(n);c||(c=new Ph(this.bootstrap,this.host,this.port,this.socket_options,this.tls_opts,this.proxy_options,n),this.connections.set(n,c),c.on("close",()=>{this.connections.delete(n)})),t(c)},"on_acquired");Ai.default.http_connection_manager_acquire(this.native_handle(),s)})}release(t){Ai.default.http_connection_manager_release(this.native_handle(),t.native_handle())}close(){Ai.default.http_connection_manager_close(this.native_handle())}};r(bC,"HttpClientConnectionManager");Ye.HttpClientConnectionManager=bC});var PC=h(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.DEFAULT_RECONNECT_MIN_SEC=Ji.DEFAULT_RECONNECT_MAX_SEC=Ji.MqttWill=Ji.QoS=void 0;var Yot;(function(e){e[e.AtMostOnce=0]="AtMostOnce",e[e.AtLeastOnce=1]="AtLeastOnce",e[e.ExactlyOnce=2]="ExactlyOnce"})(Yot=Ji.QoS||(Ji.QoS={}));var xC=class{constructor(t,i,s,n=!1){this.topic=t,this.qos=i,this.payload=s,this.retain=n}};r(xC,"MqttWill");Ji.MqttWill=xC;Ji.DEFAULT_RECONNECT_MAX_SEC=128;Ji.DEFAULT_RECONNECT_MIN_SEC=1});var jN=h(yt=>{"use strict";var Qot=yt&&yt.__createBinding||(Object.create?function(e,t,i,s){s===void 0&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){s===void 0&&(s=i),e[s]=t[i]}),Xot=yt&&yt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Zot=yt&&yt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&Qot(t,e,i);return Xot(t,e),t};Object.defineProperty(yt,"__esModule",{value:!0});yt.extractRegionFromEndpoint=yt.buildMqtt5FinalUsername=yt.populate_username_string_with_custom_authorizer=yt.is_string_and_not_empty=yt.add_to_username_parameter=void 0;var eat=Zot(tC());function ON(e,t,i){let s=e;return s.indexOf("?")!=-1?s+="&":s+="?",t.indexOf(i)!=-1?s+t:s+i+t}r(ON,"add_to_username_parameter");yt.add_to_username_parameter=ON;function Rh(e){return e!=null&&typeof e=="string"&&e!=""}r(Rh,"is_string_and_not_empty");yt.is_string_and_not_empty=Rh;function tat(e,t,i,s,n){let o="";return e&&(o+=e),Rh(t)==!1?Rh(n)&&n&&(o+=n):o+=t,Rh(i)&&i&&(o=ON(o,i,"x-amz-customauthorizer-name=")),Rh(s)&&s&&(o=ON(o,s,"x-amz-customauthorizer-signature=")),o}r(tat,"populate_username_string_with_custom_authorizer");yt.populate_username_string_with_custom_authorizer=tat;function UN(e,t,i){t&&i.push([e,t])}r(UN,"addParam");function iat(e){let t="",i=[];if(e){let s=!1;if((e.tokenValue||e.tokenKeyName||e.tokenSignature)&&(s=!0,!e.tokenValue||!e.tokenKeyName||!e.tokenSignature))throw new Error("Token-based custom authentication requires all token-related properties to be set");let n=e.username,o=(n??"").split("?"),c=o.slice(1);if(t=o[0],c.length>1)throw new Error("Custom auth username property value is invalid");c.length==1&&c[0].split("&").forEach((d,l,u)=>{var m;let w=d.split("=");i.push([w[0],(m=w[1])!==null&&m!==void 0?m:""])}),UN("x-amz-customauthorizer-name",e.authorizerName,i),s&&(UN(e.tokenKeyName,e.tokenValue,i),UN("x-amz-customauthorizer-signature",e.tokenSignature,i))}return i.push(["SDK","NodeJSv2"]),i.push(["Version",eat.crt_version()]),(t??"")+"?"+i.map(s=>`${s[0]}=${s[1]}`).join("&")}r(iat,"buildMqtt5FinalUsername");yt.buildMqtt5FinalUsername=iat;function sat(e){let t=/^[\w\-]+\.[\w\-]+\.([\w+\-]+)\./,i=e.match(t);if(i)return i[1];throw new Error("AWS region could not be extracted from endpoint. Use 'region' property on WebsocketConfig to set manually.")}r(sat,"extractRegionFromEndpoint");yt.extractRegionFromEndpoint=sat});var a9=h(Ci=>{"use strict";var nat=Ci&&Ci.__createBinding||(Object.create?function(e,t,i,s){s===void 0&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){s===void 0&&(s=i),e[s]=t[i]}),rat=Ci&&Ci.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),VN=Ci&&Ci.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&nat(t,e,i);return rat(t,e),t},oat=Ci&&Ci.__awaiter||function(e,t,i,s){function n(o){return o instanceof i?o:new i(function(c){c(o)})}return r(n,"adopt"),new(i||(i=Promise))(function(o,c){function d(m){try{u(s.next(m))}catch(w){c(w)}}r(d,"fulfilled");function l(m){try{u(s.throw(m))}catch(w){c(w)}}r(l,"rejected");function u(m){m.done?o(m.value):n(m.value).then(d,l)}r(u,"step"),u((s=s.apply(e,t||[])).next())})};Object.defineProperty(Ci,"__esModule",{value:!0});Ci.AwsIotMqttConnectionConfigBuilder=void 0;var o9=PC(),Ur=VN(Gn()),qh=Gn(),aat=VN(tC()),cat=jn(),Lh=uC(),GN=VN(jN()),bi=class{constructor(t){this.tls_ctx_options=t,this.params={client_id:"",host_name:"",socket_options:new Ur.SocketOptions,port:8883,use_websocket:!1,clean_session:!1,keep_alive:void 0,will:void 0,username:"",password:void 0,tls_ctx:void 0,reconnect_min_sec:o9.DEFAULT_RECONNECT_MIN_SEC,reconnect_max_sec:o9.DEFAULT_RECONNECT_MAX_SEC},this.is_using_custom_authorizer=!1}static new_mtls_builder_from_path(t,i){let s=new bi(qh.TlsContextOptions.create_client_with_mtls_from_path(t,i));return s.params.port=8883,Ur.is_alpn_available()&&s.tls_ctx_options.alpn_list.unshift("x-amzn-mqtt-ca"),s}static new_mtls_builder(t,i){let s=new bi(qh.TlsContextOptions.create_client_with_mtls(t,i));return s.params.port=8883,Ur.is_alpn_available()&&s.tls_ctx_options.alpn_list.unshift("x-amzn-mqtt-ca"),s}static new_mtls_pkcs11_builder(t){let i=new bi(qh.TlsContextOptions.create_client_with_mtls_pkcs11(t));return i.params.port=8883,Ur.is_alpn_available()&&i.tls_ctx_options.alpn_list.unshift("x-amzn-mqtt-ca"),i}static new_mtls_windows_cert_store_path_builder(t){let i=new bi(qh.TlsContextOptions.create_client_with_mtls_windows_cert_store_path(t));return i.params.port=8883,Ur.is_alpn_available()&&i.tls_ctx_options.alpn_list.unshift("x-amzn-mqtt-ca"),i}static new_default_builder(){let t=new Ur.TlsContextOptions;return new bi(t)}static new_websocket_builder(...t){return this.new_with_websockets(...t)}static configure_websocket_handshake(t,i){return i&&(t.params.websocket_handshake_transform=(s,n)=>oat(this,void 0,void 0,function*(){var o,c,d;let l=(c=(o=i.create_signing_config)===null||o===void 0?void 0:o.call(i))!==null&&c!==void 0?c:{algorithm:Lh.AwsSigningAlgorithm.SigV4,signature_type:Lh.AwsSignatureType.HttpRequestViaQueryParams,provider:i.credentials_provider,region:i.region,service:(d=i.service)!==null&&d!==void 0?d:"iotdevicegateway",signed_body_value:Lh.AwsSignedBodyValue.EmptySha256,omit_session_token:!0};try{yield(0,Lh.aws_sign_request)(s,l),n()}catch(u){u instanceof cat.CrtError?n(u.error_code):n(3)}})),t}static new_with_websockets(t){let i=t?.tls_ctx_options;i||(i=new qh.TlsContextOptions,i.alpn_list=[]);let s=new bi(i);return s.params.use_websocket=!0,s.params.proxy_options=t?.proxy_options,s.tls_ctx_options&&(s.params.port=443),this.configure_websocket_handshake(s,t),s}with_certificate_authority_from_path(t,i){return this.tls_ctx_options.override_default_trust_store_from_path(t,i),this}with_certificate_authority(t){return this.tls_ctx_options.override_default_trust_store(t),this}with_endpoint(t){return this.params.host_name=t,this}with_port(t){return this.params.port=t,this}with_client_id(t){return this.params.client_id=t,this}with_clean_session(t){return this.params.clean_session=t,this}with_keep_alive_seconds(t){return this.params.keep_alive=t,this}with_timeout_ms(t){return this.with_ping_timeout_ms(t),this}with_ping_timeout_ms(t){return this.params.ping_timeout=t,this}with_protocol_operation_timeout_ms(t){return this.params.protocol_operation_timeout=t,this}with_will(t){return this.params.will=t,this}with_socket_options(t){return this.params.socket_options=t,this}with_credentials(t,i,s,n){return bi.configure_websocket_handshake(this,{credentials_provider:Lh.AwsCredentialsProvider.newStatic(i,s,n),region:t,service:"iotdevicegateway"})}with_http_proxy_options(t){return this.params.proxy_options=t,this}with_custom_authorizer(t,i,s,n){this.is_using_custom_authorizer=!0;let o=GN.populate_username_string_with_custom_authorizer("",t,i,s,this.params.username);return this.params.username=o,this.params.password=n,this.params.use_websocket||(this.tls_ctx_options.alpn_list=["mqtt"]),this.params.port=443,this}with_username(t){return this.params.username=t,this}with_password(t){return this.params.password=t,this}with_reconnect_max_sec(t){return this.params.reconnect_max_sec=t,this}with_reconnect_min_sec(t){return this.params.reconnect_min_sec=t,this}build(){var t,i,s;if(this.params.client_id===void 0||this.params.host_name===void 0)throw"client_id and endpoint are required";return this.is_using_custom_authorizer==!1&&GN.is_string_and_not_empty(this.params.username)&&(((t=this.params.username)===null||t===void 0?void 0:t.indexOf("x-amz-customauthorizer-name="))!=-1||((i=this.params.username)===null||i===void 0?void 0:i.indexOf("x-amz-customauthorizer-signature="))!=-1)&&(this.is_using_custom_authorizer=!0),this.is_using_custom_authorizer==!0&&this.params.port!=443&&console.log("Warning: Attempting to connect to authorizer with unsupported port. Port is not 443..."),this.params.tls_ctx===void 0&&(this.params.tls_ctx=new Ur.ClientTlsContext(this.tls_ctx_options)),GN.is_string_and_not_empty(this.params.username)==!1?this.params.username="?SDK=NodeJSv2&Version=":((s=this.params.username)===null||s===void 0?void 0:s.indexOf("?"))!=-1?this.params.username+="&SDK=NodeJSv2&Version=":this.params.username+="?SDK=NodeJSv2&Version=",this.params.username+=aat.crt_version(),this.params}};r(bi,"AwsIotMqttConnectionConfigBuilder");Ci.AwsIotMqttConnectionConfigBuilder=bi});var IC=h(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});Am.DEFAULT_KEEP_ALIVE=Am.normalize_payload=void 0;function lat(e){if(e instanceof Buffer||typeof e=="string")return e;if(ArrayBuffer.isView(e)){let t=e;return Buffer.from(t.buffer,t.byteOffset,t.byteLength)}if(e instanceof ArrayBuffer)return Buffer.from(e);if(typeof e=="object")return JSON.stringify(e);if(!e)return"";throw new TypeError("payload parameter must be a string, object, or DataView.")}r(lat,"normalize_payload");Am.normalize_payload=lat;Am.DEFAULT_KEEP_ALIVE=1200});var c9=h(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.RetryJitterType=Hn.ClientSessionBehavior=void 0;var dat;(function(e){e[e.Default=0]="Default",e[e.Clean=1]="Clean",e[e.RejoinPostSuccess=2]="RejoinPostSuccess",e[e.RejoinAlways=3]="RejoinAlways"})(dat=Hn.ClientSessionBehavior||(Hn.ClientSessionBehavior={}));var uat;(function(e){e[e.Default=0]="Default",e[e.None=1]="None",e[e.Full=2]="Full",e[e.Decorrelated=3]="Decorrelated"})(uat=Hn.RetryJitterType||(Hn.RetryJitterType={}))});var l9=h(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.PacketType=Ee.RetainHandlingType=Ee.QoS=Ee.PayloadFormatIndicator=Ee.isSuccessfulPubackReasonCode=Ee.PubackReasonCode=Ee.isSuccessfulUnsubackReasonCode=Ee.UnsubackReasonCode=Ee.isSuccessfulSubackReasonCode=Ee.SubackReasonCode=Ee.isSuccessfulDisconnectReasonCode=Ee.DisconnectReasonCode=Ee.isSuccessfulConnectReasonCode=Ee.ConnectReasonCode=void 0;var mat;(function(e){e[e.Success=0]="Success",e[e.UnspecifiedError=128]="UnspecifiedError",e[e.MalformedPacket=129]="MalformedPacket",e[e.ProtocolError=130]="ProtocolError",e[e.ImplementationSpecificError=131]="ImplementationSpecificError",e[e.UnsupportedProtocolVersion=132]="UnsupportedProtocolVersion",e[e.ClientIdentifierNotValid=133]="ClientIdentifierNotValid",e[e.BadUsernameOrPassword=134]="BadUsernameOrPassword",e[e.NotAuthorized=135]="NotAuthorized",e[e.ServerUnavailable=136]="ServerUnavailable",e[e.ServerBusy=137]="ServerBusy",e[e.Banned=138]="Banned",e[e.BadAuthenticationMethod=140]="BadAuthenticationMethod",e[e.TopicNameInvalid=144]="TopicNameInvalid",e[e.PacketTooLarge=149]="PacketTooLarge",e[e.QuotaExceeded=151]="QuotaExceeded",e[e.PayloadFormatInvalid=153]="PayloadFormatInvalid",e[e.RetainNotSupported=154]="RetainNotSupported",e[e.QosNotSupported=155]="QosNotSupported",e[e.UseAnotherServer=156]="UseAnotherServer",e[e.ServerMoved=157]="ServerMoved",e[e.ConnectionRateExceeded=159]="ConnectionRateExceeded"})(mat=Ee.ConnectReasonCode||(Ee.ConnectReasonCode={}));function pat(e){return e<128}r(pat,"isSuccessfulConnectReasonCode");Ee.isSuccessfulConnectReasonCode=pat;var hat;(function(e){e[e.NormalDisconnection=0]="NormalDisconnection",e[e.DisconnectWithWillMessage=4]="DisconnectWithWillMessage",e[e.UnspecifiedError=128]="UnspecifiedError",e[e.MalformedPacket=129]="MalformedPacket",e[e.ProtocolError=130]="ProtocolError",e[e.ImplementationSpecificError=131]="ImplementationSpecificError",e[e.NotAuthorized=135]="NotAuthorized",e[e.ServerBusy=137]="ServerBusy",e[e.ServerShuttingDown=139]="ServerShuttingDown",e[e.KeepAliveTimeout=141]="KeepAliveTimeout",e[e.SessionTakenOver=142]="SessionTakenOver",e[e.TopicFilterInvalid=143]="TopicFilterInvalid",e[e.TopicNameInvalid=144]="TopicNameInvalid",e[e.ReceiveMaximumExceeded=147]="ReceiveMaximumExceeded",e[e.TopicAliasInvalid=148]="TopicAliasInvalid",e[e.PacketTooLarge=149]="PacketTooLarge",e[e.MessageRateTooHigh=150]="MessageRateTooHigh",e[e.QuotaExceeded=151]="QuotaExceeded",e[e.AdministrativeAction=152]="AdministrativeAction",e[e.PayloadFormatInvalid=153]="PayloadFormatInvalid",e[e.RetainNotSupported=154]="RetainNotSupported",e[e.QosNotSupported=155]="QosNotSupported",e[e.UseAnotherServer=156]="UseAnotherServer",e[e.ServerMoved=157]="ServerMoved",e[e.SharedSubscriptionsNotSupported=158]="SharedSubscriptionsNotSupported",e[e.ConnectionRateExceeded=159]="ConnectionRateExceeded",e[e.MaximumConnectTime=160]="MaximumConnectTime",e[e.SubscriptionIdentifiersNotSupported=161]="SubscriptionIdentifiersNotSupported",e[e.WildcardSubscriptionsNotSupported=162]="WildcardSubscriptionsNotSupported"})(hat=Ee.DisconnectReasonCode||(Ee.DisconnectReasonCode={}));function fat(e){return e<128}r(fat,"isSuccessfulDisconnectReasonCode");Ee.isSuccessfulDisconnectReasonCode=fat;var gat;(function(e){e[e.GrantedQoS0=0]="GrantedQoS0",e[e.GrantedQoS1=1]="GrantedQoS1",e[e.GrantedQoS2=2]="GrantedQoS2",e[e.UnspecifiedError=128]="UnspecifiedError",e[e.ImplementationSpecificError=131]="ImplementationSpecificError",e[e.NotAuthorized=135]="NotAuthorized",e[e.TopicFilterInvalid=143]="TopicFilterInvalid",e[e.PacketIdentifierInUse=145]="PacketIdentifierInUse",e[e.QuotaExceeded=151]="QuotaExceeded",e[e.SharedSubscriptionsNotSupported=158]="SharedSubscriptionsNotSupported",e[e.SubscriptionIdentifiersNotSupported=161]="SubscriptionIdentifiersNotSupported",e[e.WildcardSubscriptionsNotSupported=162]="WildcardSubscriptionsNotSupported"})(gat=Ee.SubackReasonCode||(Ee.SubackReasonCode={}));function wat(e){return e<128}r(wat,"isSuccessfulSubackReasonCode");Ee.isSuccessfulSubackReasonCode=wat;var _at;(function(e){e[e.Success=0]="Success",e[e.NoSubscriptionExisted=17]="NoSubscriptionExisted",e[e.UnspecifiedError=128]="UnspecifiedError",e[e.ImplementationSpecificError=131]="ImplementationSpecificError",e[e.NotAuthorized=135]="NotAuthorized",e[e.TopicFilterInvalid=143]="TopicFilterInvalid",e[e.PacketIdentifierInUse=145]="PacketIdentifierInUse"})(_at=Ee.UnsubackReasonCode||(Ee.UnsubackReasonCode={}));function yat(e){return e<128}r(yat,"isSuccessfulUnsubackReasonCode");Ee.isSuccessfulUnsubackReasonCode=yat;var Sat;(function(e){e[e.Success=0]="Success",e[e.NoMatchingSubscribers=16]="NoMatchingSubscribers",e[e.UnspecifiedError=128]="UnspecifiedError",e[e.ImplementationSpecificError=131]="ImplementationSpecificError",e[e.NotAuthorized=135]="NotAuthorized",e[e.TopicNameInvalid=144]="TopicNameInvalid",e[e.PacketIdentifierInUse=145]="PacketIdentifierInUse",e[e.QuotaExceeded=151]="QuotaExceeded",e[e.PayloadFormatInvalid=153]="PayloadFormatInvalid"})(Sat=Ee.PubackReasonCode||(Ee.PubackReasonCode={}));function vat(e){return e<128}r(vat,"isSuccessfulPubackReasonCode");Ee.isSuccessfulPubackReasonCode=vat;var Eat;(function(e){e[e.Bytes=0]="Bytes",e[e.Utf8=1]="Utf8"})(Eat=Ee.PayloadFormatIndicator||(Ee.PayloadFormatIndicator={}));var Aat;(function(e){e[e.AtMostOnce=0]="AtMostOnce",e[e.AtLeastOnce=1]="AtLeastOnce",e[e.ExactlyOnce=2]="ExactlyOnce"})(Aat=Ee.QoS||(Ee.QoS={}));var bat;(function(e){e[e.SendOnSubscribe=0]="SendOnSubscribe",e[e.SendOnSubscribeIfNew=1]="SendOnSubscribeIfNew",e[e.DontSend=2]="DontSend"})(bat=Ee.RetainHandlingType||(Ee.RetainHandlingType={}));var Cat;(function(e){e[e.Connect=1]="Connect",e[e.Connack=2]="Connack",e[e.Publish=3]="Publish",e[e.Puback=4]="Puback",e[e.Pubrec=5]="Pubrec",e[e.Pubrel=6]="Pubrel",e[e.Pubcomp=7]="Pubcomp",e[e.Subscribe=8]="Subscribe",e[e.Suback=9]="Suback",e[e.Unsubscribe=10]="Unsubscribe",e[e.Unsuback=11]="Unsuback",e[e.Pingreq=12]="Pingreq",e[e.Pingresp=13]="Pingresp",e[e.Disconnect=14]="Disconnect",e[e.Auth=15]="Auth"})(Cat=Ee.PacketType||(Ee.PacketType={}))});var HN=h(Qe=>{"use strict";var u9=Qe&&Qe.__createBinding||(Object.create?function(e,t,i,s){s===void 0&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){s===void 0&&(s=i),e[s]=t[i]}),Tat=Qe&&Qe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),m9=Qe&&Qe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&u9(t,e,i);return Tat(t,e),t},p9=Qe&&Qe.__exportStar||function(e,t){for(var i in e)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&u9(t,e,i)},BN=Qe&&Qe.__awaiter||function(e,t,i,s){function n(o){return o instanceof i?o:new i(function(c){c(o)})}return r(n,"adopt"),new(i||(i=Promise))(function(o,c){function d(m){try{u(s.next(m))}catch(w){c(w)}}r(d,"fulfilled");function l(m){try{u(s.throw(m))}catch(w){c(w)}}r(l,"rejected");function u(m){m.done?o(m.value):n(m.value).then(d,l)}r(u,"step"),u((s=s.apply(e,t||[])).next())})},xat=Qe&&Qe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Qe,"__esModule",{value:!0});Qe.Mqtt5Client=Qe.ClientExtendedValidationAndFlowControl=Qe.ClientOperationQueueBehavior=Qe.HttpProxyOptions=void 0;var Wn=xat(ps()),Pat=ym(),Iat=vC(),$N=m9(Gn()),Rat=m9(IC()),d9=jn(),qat=TC();Object.defineProperty(Qe,"HttpProxyOptions",{enumerable:!0,get:function(){return qat.HttpProxyOptions}});p9(c9(),Qe);p9(l9(),Qe);var Lat;(function(e){e[e.Default=0]="Default",e[e.FailNonQos1PublishOnDisconnect=1]="FailNonQos1PublishOnDisconnect",e[e.FailQos0PublishOnDisconnect=2]="FailQos0PublishOnDisconnect",e[e.FailAllOnDisconnect=3]="FailAllOnDisconnect"})(Lat=Qe.ClientOperationQueueBehavior||(Qe.ClientOperationQueueBehavior={}));var zat;(function(e){e[e.None=0]="None",e[e.AwsIotCoreDefaults=1]="AwsIotCoreDefaults"})(zat=Qe.ClientExtendedValidationAndFlowControl||(Qe.ClientExtendedValidationAndFlowControl={}));var Be=class extends(0,Pat.NativeResourceMixin)(Iat.BufferedEventEmitter){constructor(t){super(),this._super(Wn.default.mqtt5_client_new(this,t,i=>{Be._s_on_stopped(i)},i=>{Be._s_on_attempting_connect(i)},(i,s,n)=>{Be._s_on_connection_success(i,s,n)},(i,s,n)=>{Be._s_on_connection_failure(i,new d9.CrtError(s),n)},(i,s,n)=>{Be._s_on_disconnection(i,new d9.CrtError(s),n)},(i,s)=>{Be._s_on_message_received(i,s)},t.clientBootstrap?t.clientBootstrap.native_handle():null,t.socketOptions?t.socketOptions.native_handle():null,t.tlsCtx?t.tlsCtx.native_handle():null,t.httpProxyOptions?t.httpProxyOptions.create_native_handle():null))}close(){Wn.default.mqtt5_client_close(this.native_handle())}start(){Wn.default.mqtt5_client_start(this.native_handle())}stop(t){Wn.default.mqtt5_client_stop(this.native_handle(),t)}subscribe(t){return BN(this,void 0,void 0,function*(){return new Promise((i,s)=>{function n(o,c,d){return Be._s_on_suback_callback(i,s,o,c,d)}r(n,"curriedPromiseCallback");try{Wn.default.mqtt5_client_subscribe(this.native_handle(),t,n)}catch(o){s(o)}})})}unsubscribe(t){return BN(this,void 0,void 0,function*(){return new Promise((i,s)=>{function n(o,c,d){return Be._s_on_unsuback_callback(i,s,o,c,d)}r(n,"curriedPromiseCallback");try{Wn.default.mqtt5_client_unsubscribe(this.native_handle(),t,n)}catch(o){s(o)}})})}publish(t){return BN(this,void 0,void 0,function*(){return new Promise((i,s)=>{t&&t.payload&&(t.payload=Rat.normalize_payload(t.payload));function n(o,c,d){return Be._s_on_puback_callback(i,s,o,c,d)}r(n,"curriedPromiseCallback");try{Wn.default.mqtt5_client_publish(this.native_handle(),t,n)}catch(o){s(o)}})})}getQueueStatistics(){return Wn.default.mqtt5_client_get_queue_statistics(this.native_handle())}on(t,i){return super.on(t,i),this}static _s_on_stopped(t){process.nextTick(()=>{let i={};t.emit(Be.STOPPED,i)})}static _s_on_attempting_connect(t){process.nextTick(()=>{let i={};t.emit(Be.ATTEMPTING_CONNECT,i)})}static _s_on_connection_success(t,i,s){let n={connack:i,settings:s};process.nextTick(()=>{t.emit(Be.CONNECTION_SUCCESS,n)})}static _s_on_connection_failure(t,i,s){let n={error:i};s!=null&&(n.connack=s),process.nextTick(()=>{t.emit(Be.CONNECTION_FAILURE,n)})}static _s_on_disconnection(t,i,s){let n={error:i};s!=null&&(n.disconnect=s),process.nextTick(()=>{t.emit(Be.DISCONNECTION,n)})}static _s_on_suback_callback(t,i,s,n,o){n==0&&o!==void 0?t(o):i($N.error_code_to_string(n))}static _s_on_unsuback_callback(t,i,s,n,o){n==0&&o!==void 0?t(o):i($N.error_code_to_string(n))}static _s_on_puback_callback(t,i,s,n,o){n==0?t(o):i($N.error_code_to_string(n))}static _s_on_message_received(t,i){let s={message:i};process.nextTick(()=>{t.emit(Be.MESSAGE_RECEIVED,s)})}};r(Be,"Mqtt5Client");Qe.Mqtt5Client=Be;Be.ERROR="error";Be.MESSAGE_RECEIVED="messageReceived";Be.ATTEMPTING_CONNECT="attemptingConnect";Be.CONNECTION_SUCCESS="connectionSuccess";Be.CONNECTION_FAILURE="connectionFailure";Be.DISCONNECTION="disconnection";Be.STOPPED="stopped"});var g9=h(xi=>{"use strict";var Fat=xi&&xi.__createBinding||(Object.create?function(e,t,i,s){s===void 0&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){s===void 0&&(s=i),e[s]=t[i]}),Nat=xi&&xi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Fh=xi&&xi.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&Fat(t,e,i);return Nat(t,e),t},h9=xi&&xi.__awaiter||function(e,t,i,s){function n(o){return o instanceof i?o:new i(function(c){c(o)})}return r(n,"adopt"),new(i||(i=Promise))(function(o,c){function d(m){try{u(s.next(m))}catch(w){c(w)}}r(d,"fulfilled");function l(m){try{u(s.throw(m))}catch(w){c(w)}}r(l,"rejected");function u(m){m.done?o(m.value):n(m.value).then(d,l)}r(u,"step"),u((s=s.apply(e,t||[])).next())})};Object.defineProperty(xi,"__esModule",{value:!0});xi.AwsIotMqtt5ClientConfigBuilder=void 0;var Dat=Fh(HN()),Ti=Fh(Gn()),zh=Fh(uC()),kat=jn(),f9=Fh(jN()),Jat=Fh(IC()),at=class{constructor(t,i,s){this.tlsContextOptions=s,this.config={hostName:t,port:i,connectProperties:{keepAliveIntervalSeconds:Jat.DEFAULT_KEEP_ALIVE},extendedValidationAndFlowControlOptions:Dat.ClientExtendedValidationAndFlowControl.AwsIotCoreDefaults}}static newDirectMqttBuilderWithMtlsFromPath(t,i,s){let n=new at(t,at.DEFAULT_DIRECT_MQTT_PORT,Ti.TlsContextOptions.create_client_with_mtls_from_path(i,s));return Ti.is_alpn_available()&&n.tlsContextOptions.alpn_list.unshift("x-amzn-mqtt-ca"),n}static newDirectMqttBuilderWithMtlsFromMemory(t,i,s){let n=new at(t,at.DEFAULT_DIRECT_MQTT_PORT,Ti.TlsContextOptions.create_client_with_mtls(i,s));return Ti.is_alpn_available()&&n.tlsContextOptions.alpn_list.unshift("x-amzn-mqtt-ca"),n}static newDirectMqttBuilderWithMtlsFromPkcs11(t,i){let s=new at(t,at.DEFAULT_DIRECT_MQTT_PORT,Ti.TlsContextOptions.create_client_with_mtls_pkcs11(i));return Ti.is_alpn_available()&&s.tlsContextOptions.alpn_list.unshift("x-amzn-mqtt-ca"),s}static newDirectMqttBuilderWithMtlsFromWindowsCertStorePath(t,i){let s=new at(t,at.DEFAULT_DIRECT_MQTT_PORT,Ti.TlsContextOptions.create_client_with_mtls_windows_cert_store_path(i));return Ti.is_alpn_available()&&s.tlsContextOptions.alpn_list.unshift("x-amzn-mqtt-ca"),s}static newDirectMqttBuilderWithCustomAuth(t,i){let s=new at(t,at.DEFAULT_WEBSOCKET_MQTT_PORT,new Ti.TlsContextOptions);return s.customAuthConfig=i,s.tlsContextOptions.alpn_list=["mqtt"],s}static newWebsocketMqttBuilderWithSigv4Auth(t,i){let s=new Ti.TlsContextOptions;s.alpn_list=[];let n=new at(t,at.DEFAULT_WEBSOCKET_MQTT_PORT,s),o=i?.credentialsProvider;return o||(o=zh.AwsCredentialsProvider.newDefault()),n.config.websocketHandshakeTransform=(c,d)=>h9(this,void 0,void 0,function*(){var l;try{let u={algorithm:zh.AwsSigningAlgorithm.SigV4,signature_type:zh.AwsSignatureType.HttpRequestViaQueryParams,provider:o,region:(l=i?.region)!==null&&l!==void 0?l:f9.extractRegionFromEndpoint(t),service:"iotdevicegateway",signed_body_value:zh.AwsSignedBodyValue.EmptySha256,omit_session_token:!0};yield zh.aws_sign_request(c,u),d()}catch(u){u instanceof kat.CrtError?d(u.error_code):d(3)}}),n}static newWebsocketMqttBuilderWithCustomAuth(t,i){let s=new at(t,at.DEFAULT_WEBSOCKET_MQTT_PORT,new Ti.TlsContextOptions);return s.customAuthConfig=i,s.config.websocketHandshakeTransform=(n,o)=>h9(this,void 0,void 0,function*(){o(0)}),s}withCertificateAuthorityFromPath(t,i){return this.tlsContextOptions.override_default_trust_store_from_path(t,i),this}withCertificateAuthority(t){return this.tlsContextOptions.override_default_trust_store(t),this}withPort(t){return this.config.port=t,this}withConnectProperties(t){return this.config.connectProperties=t,this}withSessionBehavior(t){return this.config.sessionBehavior=t,this}withRetryJitterMode(t){return this.config.retryJitterMode=t,this}withMinReconnectDelayMs(t){return this.config.minReconnectDelayMs=t,this}withMaxReconnectDelayMs(t){return this.config.maxReconnectDelayMs=t,this}withMinConnectedTimeToResetReconnectDelayMs(t){return this.config.minConnectedTimeToResetReconnectDelayMs=t,this}withConnackTimeoutMs(t){return this.config.connackTimeoutMs=t,this}withOfflineQueueBehavior(t){return this.config.offlineQueueBehavior=t,this}withPingTimeoutMs(t){return this.config.pingTimeoutMs=t,this}withAckTimeoutSeconds(t){return this.config.ackTimeoutSeconds=t,this}withSocketOptions(t){return this.config.socketOptions=t,this}withHttpProxyOptions(t){return this.config.httpProxyOptions=t,this}withExtendedValidationAndFlowControlOptions(t){return this.config.extendedValidationAndFlowControlOptions=t,this}build(){var t,i;return this.config.tlsCtx===void 0&&(this.config.tlsCtx=new Ti.ClientTlsContext(this.tlsContextOptions)),this.config.connectProperties&&(this.config.connectProperties.username=f9.buildMqtt5FinalUsername(this.customAuthConfig),!((t=this.customAuthConfig)===null||t===void 0)&&t.password&&(this.config.connectProperties.password=(i=this.customAuthConfig)===null||i===void 0?void 0:i.password)),this.config}};r(at,"AwsIotMqtt5ClientConfigBuilder");xi.AwsIotMqtt5ClientConfigBuilder=at;at.DEFAULT_WEBSOCKET_MQTT_PORT=443;at.DEFAULT_DIRECT_MQTT_PORT=8883});var _9=h(Kn=>{"use strict";var Mat=Kn&&Kn.__createBinding||(Object.create?function(e,t,i,s){s===void 0&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){s===void 0&&(s=i),e[s]=t[i]}),w9=Kn&&Kn.__exportStar||function(e,t){for(var i in e)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&Mat(t,e,i)};Object.defineProperty(Kn,"__esModule",{value:!0});w9(a9(),Kn);w9(g9(),Kn)});var C9=h(rt=>{"use strict";var Uat=rt&&rt.__createBinding||(Object.create?function(e,t,i,s){s===void 0&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){s===void 0&&(s=i),e[s]=t[i]}),Oat=rt&&rt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),E9=rt&&rt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&Uat(t,e,i);return Oat(t,e),t},bm=rt&&rt.__awaiter||function(e,t,i,s){function n(o){return o instanceof i?o:new i(function(c){c(o)})}return r(n,"adopt"),new(i||(i=Promise))(function(o,c){function d(m){try{u(s.next(m))}catch(w){c(w)}}r(d,"fulfilled");function l(m){try{u(s.throw(m))}catch(w){c(w)}}r(l,"rejected");function u(m){m.done?o(m.value):n(m.value).then(d,l)}r(u,"step"),u((s=s.apply(e,t||[])).next())})},jat=rt&&rt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(rt,"__esModule",{value:!0});rt.MqttClientConnection=rt.MqttClient=rt.MqttWill=rt.QoS=rt.HttpProxyOptions=void 0;var Mi=jat(ps()),A9=ym(),Gat=vC(),y9=E9(IC()),S9=jn(),RC=E9(Gn()),Vat=TC();Object.defineProperty(rt,"HttpProxyOptions",{enumerable:!0,get:function(){return Vat.HttpProxyOptions}});var v9=PC(),b9=PC();Object.defineProperty(rt,"QoS",{enumerable:!0,get:function(){return b9.QoS}});Object.defineProperty(rt,"MqttWill",{enumerable:!0,get:function(){return b9.MqttWill}});var qC=class extends A9.NativeResource{constructor(t=void 0){super(Mi.default.mqtt_client_new(t!=null?t.native_handle():null)),this.bootstrap=t}new_connection(t){return new Ui(this,t)}};r(qC,"MqttClient");rt.MqttClient=qC;var Ui=class extends(0,A9.NativeResourceMixin)(Gat.BufferedEventEmitter){constructor(t,i){super(),this.client=t,this.config=i;let s=i.will?{topic:i.will.topic,qos:i.will.qos,payload:y9.normalize_payload(i.will.payload),retain:i.will.retain}:void 0;var n=v9.DEFAULT_RECONNECT_MIN_SEC,o=v9.DEFAULT_RECONNECT_MAX_SEC;i.reconnect_min_sec&&(n=i.reconnect_min_sec,o=Math.max(n,o)),i.reconnect_max_sec&&(o=i.reconnect_max_sec,n=Math.min(n,o)),this._super(Mi.default.mqtt_client_connection_new(t.native_handle(),c=>{this._on_connection_interrupted(c)},(c,d)=>{this._on_connection_resumed(c,d)},i.tls_ctx?i.tls_ctx.native_handle():null,s,i.username,i.password,i.use_websocket,i.proxy_options?i.proxy_options.create_native_handle():void 0,i.websocket_handshake_transform,n,o)),this.tls_ctx=i.tls_ctx,Mi.default.mqtt_client_connection_on_message(this.native_handle(),this._on_any_publish.bind(this)),this.on("error",c=>{})}close(){Mi.default.mqtt_client_connection_close(this.native_handle())}on(t,i){return super.on(t,i),t=="connect"&&process.nextTick(()=>{this.uncork()}),this}connect(){return bm(this,void 0,void 0,function*(){return new Promise((t,i)=>{i=this._reject(i);try{Mi.default.mqtt_client_connection_connect(this.native_handle(),this.config.client_id,this.config.host_name,this.config.port,this.config.socket_options.native_handle(),this.config.keep_alive,this.config.ping_timeout,this.config.protocol_operation_timeout,this.config.clean_session,this._on_connect_callback.bind(this,t,i))}catch(s){i(s)}})})}reconnect(){return bm(this,void 0,void 0,function*(){return new Promise((t,i)=>{i=this._reject(i);try{Mi.default.mqtt_client_connection_reconnect(this.native_handle(),this._on_connect_callback.bind(this,t,i))}catch(s){i(s)}})})}publish(t,i,s,n=!1){return bm(this,void 0,void 0,function*(){return new Promise((o,c)=>{c=this._reject(c);try{Mi.default.mqtt_client_connection_publish(this.native_handle(),t,y9.normalize_payload(i),s,n,this._on_puback_callback.bind(this,o,c))}catch(d){c(d)}})})}subscribe(t,i,s){return bm(this,void 0,void 0,function*(){return new Promise((n,o)=>{o=this._reject(o);try{Mi.default.mqtt_client_connection_subscribe(this.native_handle(),t,i,s,this._on_suback_callback.bind(this,n,o))}catch(c){o(c)}})})}unsubscribe(t){return bm(this,void 0,void 0,function*(){return new Promise((i,s)=>{s=this._reject(s);try{Mi.default.mqtt_client_connection_unsubscribe(this.native_handle(),t,this._on_unsuback_callback.bind(this,i,s))}catch(n){s(n)}})})}disconnect(){return bm(this,void 0,void 0,function*(){return new Promise((t,i)=>{i=this._reject(i);try{Mi.default.mqtt_client_connection_disconnect(this.native_handle(),this._on_disconnect_callback.bind(this,t))}catch(s){i(s)}})})}getQueueStatistics(){return Mi.default.mqtt_client_connection_get_queue_statistics(this.native_handle())}_reject(t){return i=>{t(i),process.nextTick(()=>{this.emit("error",new S9.CrtError(i))})}}_on_connection_interrupted(t){this.emit("interrupt",new S9.CrtError(t))}_on_connection_resumed(t,i){this.emit("resume",t,i)}_on_any_publish(t,i,s,n,o){this.emit("message",t,i,s,n,o)}_on_connect_callback(t,i,s,n,o){s==0&&n==0?(t(o),this.emit("connect",o)):s!=0?i("Failed to connect: "+RC.error_code_to_string(s)):i("Server rejected connection.")}_on_puback_callback(t,i,s,n){n==0?t({packet_id:s}):i("Failed to publish: "+RC.error_code_to_string(n))}_on_suback_callback(t,i,s,n,o,c){c==0?t({packet_id:s,topic:n,qos:o,error_code:c}):i("Failed to subscribe: "+RC.error_code_to_string(c))}_on_unsuback_callback(t,i,s,n){n==0?t({packet_id:s}):i("Failed to unsubscribe: "+RC.error_code_to_string(n))}_on_disconnect_callback(t){t(),this.emit("disconnect"),this.close()}};r(Ui,"MqttClientConnection");rt.MqttClientConnection=Ui;Ui.CONNECT="connect";Ui.DISCONNECT="disconnect";Ui.ERROR="error";Ui.INTERRUPT="interrupt";Ui.RESUME="resume";Ui.MESSAGE="message"});var T9=h(Le=>{"use strict";var Bat=Le&&Le.__createBinding||(Object.create?function(e,t,i,s){s===void 0&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){s===void 0&&(s=i),e[s]=t[i]}),$at=Le&&Le.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Oi=Le&&Le.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&Bat(t,e,i);return $at(t,e),t};Object.defineProperty(Le,"__esModule",{value:!0});Le.CrtError=Le.resource_safety=Le.platform=Le.mqtt5=Le.mqtt=Le.iot=Le.io=Le.http=Le.crt=Le.crypto=Le.checksums=Le.auth=void 0;var Hat=Oi(tC());Le.platform=Hat;var Wat=Oi(jY());Le.resource_safety=Wat;var Kat=Oi(uC());Le.auth=Kat;var Yat=Oi(QY());Le.checksums=Yat;var Qat=Oi(ZY());Le.crt=Qat;var Xat=Oi(t9());Le.crypto=Xat;var Zat=Oi(TC());Le.http=Zat;var ect=Oi(Gn());Le.io=ect;var tct=Oi(_9());Le.iot=tct;var ict=Oi(C9());Le.mqtt=ict;var sct=Oi(HN());Le.mqtt5=sct;var nct=jn();Object.defineProperty(Le,"CrtError",{enumerable:!0,get:function(){return nct.CrtError}})});var x9=h((LC,WN)=>{"use strict";Object.defineProperty(LC,"__esModule",{value:!0});LC.isCrtAvailable=void 0;var rct=r(()=>{try{return typeof $=="function"&&typeof WN<"u"&&WN.require&&T9()?["md/crt-avail"]:null}catch{return null}},"isCrtAvailable");LC.isCrtAvailable=rct});var Nh=h(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.defaultUserAgent=gs.UA_APP_ID_INI_NAME=gs.UA_APP_ID_ENV_NAME=void 0;var oct=Un(),P9=$("os"),KN=$("process"),act=x9();gs.UA_APP_ID_ENV_NAME="AWS_SDK_UA_APP_ID";gs.UA_APP_ID_INI_NAME="sdk-ua-app-id";var cct=r(({serviceId:e,clientVersion:t})=>{let i=[["aws-sdk-js",t],[`os/${(0,P9.platform)()}`,(0,P9.release)()],["lang/js"],["md/nodejs",`${KN.versions.node}`]],s=(0,act.isCrtAvailable)();s&&i.push(s),e&&i.push([`api/${e}`,t]),KN.env.AWS_EXECUTION_ENV&&i.push([`exec-env/${KN.env.AWS_EXECUTION_ENV}`]);let n=(0,oct.loadConfig)({environmentVariableSelector:c=>c[gs.UA_APP_ID_ENV_NAME],configFileSelector:c=>c[gs.UA_APP_ID_INI_NAME],default:void 0})(),o;return async()=>{if(!o){let c=await n;o=c?[...i,[`app/${c}`]]:[...i]}return o}},"defaultUserAgent");gs.defaultUserAgent=cct});var I9=h(zC=>{"use strict";Object.defineProperty(zC,"__esModule",{value:!0});zC.fromBase64=void 0;var lct=Du(),dct=/^[A-Za-z0-9+/]*={0,2}$/,uct=r(e=>{if(e.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!dct.exec(e))throw new TypeError("Invalid base64 string.");let t=(0,lct.fromString)(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)},"fromBase64");zC.fromBase64=uct});var R9=h(FC=>{"use strict";Object.defineProperty(FC,"__esModule",{value:!0});FC.toBase64=void 0;var mct=Du(),pct=r(e=>(0,mct.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("base64"),"toBase64");FC.toBase64=pct});var Dh=h(NC=>{"use strict";Object.defineProperty(NC,"__esModule",{value:!0});var q9=(se(),te(ie));q9.__exportStar(I9(),NC);q9.__exportStar(R9(),NC)});var L9=h((PBt,hct)=>{hct.exports={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"aws-global":{description:"AWS Standard global region"},"ca-central-1":{description:"Canada (Central)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"AWS China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"AWS GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"sc2s.sgov.gov",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}}],version:"1.1"}});var QN=h(DC=>{"use strict";Object.defineProperty(DC,"__esModule",{value:!0});DC.partition=void 0;var fct=(se(),te(ie)),gct=fct.__importDefault(L9()),{partitions:YN}=gct.default,z9=YN.find(e=>e.id==="aws"),wct=r(e=>{for(let t of YN){let{regions:i,outputs:s}=t;for(let[n,o]of Object.entries(i))if(n===e)return{...s,...o}}for(let t of YN){let{regionRegex:i,outputs:s}=t;if(new RegExp(i).test(e))return{...s}}if(!z9)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...z9.outputs}},"partition");DC.partition=wct});var F9=h(kC=>{"use strict";Object.defineProperty(kC,"__esModule",{value:!0});kC.debugId=void 0;kC.debugId="endpoints"});var N9=h(JC=>{"use strict";Object.defineProperty(JC,"__esModule",{value:!0});JC.toDebugString=void 0;function XN(e){return typeof e!="object"||e==null?e:"ref"in e?`$${XN(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(XN).join(", ")})`:JSON.stringify(e,null,2)}r(XN,"toDebugString");JC.toDebugString=XN});var kh=h(MC=>{"use strict";Object.defineProperty(MC,"__esModule",{value:!0});var D9=(se(),te(ie));D9.__exportStar(F9(),MC);D9.__exportStar(N9(),MC)});var k9=h(OC=>{"use strict";Object.defineProperty(OC,"__esModule",{value:!0});OC.EndpointError=void 0;var UC=class extends Error{constructor(t){super(t),this.name="EndpointError"}};r(UC,"EndpointError");OC.EndpointError=UC});var M9=h(J9=>{"use strict";Object.defineProperty(J9,"__esModule",{value:!0})});var O9=h(U9=>{"use strict";Object.defineProperty(U9,"__esModule",{value:!0})});var G9=h(j9=>{"use strict";Object.defineProperty(j9,"__esModule",{value:!0})});var B9=h(V9=>{"use strict";Object.defineProperty(V9,"__esModule",{value:!0})});var H9=h($9=>{"use strict";Object.defineProperty($9,"__esModule",{value:!0})});var Pi=h(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});var Cm=(se(),te(ie));Cm.__exportStar(k9(),Yn);Cm.__exportStar(M9(),Yn);Cm.__exportStar(O9(),Yn);Cm.__exportStar(G9(),Yn);Cm.__exportStar(B9(),Yn);Cm.__exportStar(H9(),Yn)});var ZN=h(jC=>{"use strict";Object.defineProperty(jC,"__esModule",{value:!0});jC.isIpAddress=void 0;var _ct=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),yct=r(e=>_ct.test(e)||e.startsWith("[")&&e.endsWith("]"),"isIpAddress");jC.isIpAddress=yct});var eD=h(Jh=>{"use strict";Object.defineProperty(Jh,"__esModule",{value:!0});Jh.isValidHostLabel=void 0;var Sct=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),vct=r((e,t=!1)=>{if(!t)return Sct.test(e);let i=e.split(".");for(let s of i)if(!(0,Jh.isValidHostLabel)(s))return!1;return!0},"isValidHostLabel");Jh.isValidHostLabel=vct});var W9=h(Mh=>{"use strict";Object.defineProperty(Mh,"__esModule",{value:!0});Mh.isVirtualHostableS3Bucket=void 0;var Ect=ZN(),Act=eD(),bct=r((e,t=!1)=>{if(t){for(let i of e.split("."))if(!(0,Mh.isVirtualHostableS3Bucket)(i))return!1;return!0}return!(!(0,Act.isValidHostLabel)(e)||e.length<3||e.length>63||e!==e.toLowerCase()||(0,Ect.isIpAddress)(e))},"isVirtualHostableS3Bucket");Mh.isVirtualHostableS3Bucket=bct});var K9=h(GC=>{"use strict";Object.defineProperty(GC,"__esModule",{value:!0});GC.parseArn=void 0;var Cct=r(e=>{let t=e.split(":");if(t.length<6)return null;let[i,s,n,o,c,...d]=t;return i!=="arn"||s===""||n===""||d[0]===""?null:{partition:s,service:n,region:o,accountId:c,resourceId:d[0].includes("/")?d[0].split("/"):d}},"parseArn");GC.parseArn=Cct});var Y9=h(Uh=>{"use strict";Object.defineProperty(Uh,"__esModule",{value:!0});var tD=(se(),te(ie));tD.__exportStar(W9(),Uh);tD.__exportStar(K9(),Uh);tD.__exportStar(QN(),Uh)});var Q9=h(VC=>{"use strict";Object.defineProperty(VC,"__esModule",{value:!0});VC.booleanEquals=void 0;var Tct=r((e,t)=>e===t,"booleanEquals");VC.booleanEquals=Tct});var Z9=h(BC=>{"use strict";Object.defineProperty(BC,"__esModule",{value:!0});BC.getAttrPathList=void 0;var X9=Pi(),xct=r(e=>{let t=e.split("."),i=[];for(let s of t){let n=s.indexOf("[");if(n!==-1){if(s.indexOf("]")!==s.length-1)throw new X9.EndpointError(`Path: '${e}' does not end with ']'`);let o=s.slice(n+1,-1);if(Number.isNaN(parseInt(o)))throw new X9.EndpointError(`Invalid array index: '${o}' in path: '${e}'`);n!==0&&i.push(s.slice(0,n)),i.push(o)}else i.push(s)}return i},"getAttrPathList");BC.getAttrPathList=xct});var e7=h($C=>{"use strict";Object.defineProperty($C,"__esModule",{value:!0});$C.getAttr=void 0;var Pct=Pi(),Ict=Z9(),Rct=r((e,t)=>(0,Ict.getAttrPathList)(t).reduce((i,s)=>{if(typeof i!="object")throw new Pct.EndpointError(`Index '${s}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(i)?i[parseInt(s)]:i[s]},e),"getAttr");$C.getAttr=Rct});var t7=h(HC=>{"use strict";Object.defineProperty(HC,"__esModule",{value:!0});HC.isSet=void 0;var qct=r(e=>e!=null,"isSet");HC.isSet=qct});var i7=h(WC=>{"use strict";Object.defineProperty(WC,"__esModule",{value:!0});WC.not=void 0;var Lct=r(e=>!e,"not");WC.not=Lct});var n7=h(s7=>{"use strict";Object.defineProperty(s7,"__esModule",{value:!0})});var r7=h(Oh=>{"use strict";Object.defineProperty(Oh,"__esModule",{value:!0});Oh.HttpAuthLocation=void 0;var zct;(function(e){e.HEADER="header",e.QUERY="query"})(zct=Oh.HttpAuthLocation||(Oh.HttpAuthLocation={}))});var a7=h(o7=>{"use strict";Object.defineProperty(o7,"__esModule",{value:!0})});var l7=h(c7=>{"use strict";Object.defineProperty(c7,"__esModule",{value:!0})});var u7=h(d7=>{"use strict";Object.defineProperty(d7,"__esModule",{value:!0})});var p7=h(m7=>{"use strict";Object.defineProperty(m7,"__esModule",{value:!0})});var f7=h(h7=>{"use strict";Object.defineProperty(h7,"__esModule",{value:!0})});var g7=h(jh=>{"use strict";Object.defineProperty(jh,"__esModule",{value:!0});jh.HostAddressType=void 0;var Fct;(function(e){e.AAAA="AAAA",e.A="A"})(Fct=jh.HostAddressType||(jh.HostAddressType={}))});var w7=h(Gh=>{"use strict";Object.defineProperty(Gh,"__esModule",{value:!0});Gh.EndpointURLScheme=void 0;var Nct;(function(e){e.HTTP="http",e.HTTPS="https"})(Nct=Gh.EndpointURLScheme||(Gh.EndpointURLScheme={}))});var y7=h(_7=>{"use strict";Object.defineProperty(_7,"__esModule",{value:!0})});var v7=h(S7=>{"use strict";Object.defineProperty(S7,"__esModule",{value:!0})});var A7=h(E7=>{"use strict";Object.defineProperty(E7,"__esModule",{value:!0})});var C7=h(b7=>{"use strict";Object.defineProperty(b7,"__esModule",{value:!0})});var x7=h(T7=>{"use strict";Object.defineProperty(T7,"__esModule",{value:!0})});var I7=h(P7=>{"use strict";Object.defineProperty(P7,"__esModule",{value:!0})});var q7=h(R7=>{"use strict";Object.defineProperty(R7,"__esModule",{value:!0})});var L7=h(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});var Vh=(se(),te(ie));Vh.__exportStar(A7(),Or);Vh.__exportStar(C7(),Or);Vh.__exportStar(x7(),Or);Vh.__exportStar(I7(),Or);Vh.__exportStar(q7(),Or)});var F7=h(z7=>{"use strict";Object.defineProperty(z7,"__esModule",{value:!0})});var D7=h(N7=>{"use strict";Object.defineProperty(N7,"__esModule",{value:!0})});var J7=h(k7=>{"use strict";Object.defineProperty(k7,"__esModule",{value:!0})});var U7=h(M7=>{"use strict";Object.defineProperty(M7,"__esModule",{value:!0})});var j7=h(O7=>{"use strict";Object.defineProperty(O7,"__esModule",{value:!0})});var V7=h(G7=>{"use strict";Object.defineProperty(G7,"__esModule",{value:!0})});var $7=h(B7=>{"use strict";Object.defineProperty(B7,"__esModule",{value:!0})});var W7=h(H7=>{"use strict";Object.defineProperty(H7,"__esModule",{value:!0})});var Y7=h(K7=>{"use strict";Object.defineProperty(K7,"__esModule",{value:!0})});var X7=h(Q7=>{"use strict";Object.defineProperty(Q7,"__esModule",{value:!0})});var eQ=h(Z7=>{"use strict";Object.defineProperty(Z7,"__esModule",{value:!0})});var iQ=h(tQ=>{"use strict";Object.defineProperty(tQ,"__esModule",{value:!0})});var nQ=h(sQ=>{"use strict";Object.defineProperty(sQ,"__esModule",{value:!0})});var oQ=h(rQ=>{"use strict";Object.defineProperty(rQ,"__esModule",{value:!0})});var cQ=h(aQ=>{"use strict";Object.defineProperty(aQ,"__esModule",{value:!0})});var lQ=h(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});var $e=(se(),te(ie));$e.__exportStar(n7(),Me);$e.__exportStar(r7(),Me);$e.__exportStar(a7(),Me);$e.__exportStar(l7(),Me);$e.__exportStar(u7(),Me);$e.__exportStar(p7(),Me);$e.__exportStar(f7(),Me);$e.__exportStar(g7(),Me);$e.__exportStar(w7(),Me);$e.__exportStar(y7(),Me);$e.__exportStar(v7(),Me);$e.__exportStar(L7(),Me);$e.__exportStar(F7(),Me);$e.__exportStar(D7(),Me);$e.__exportStar(J7(),Me);$e.__exportStar(U7(),Me);$e.__exportStar(j7(),Me);$e.__exportStar(V7(),Me);$e.__exportStar($7(),Me);$e.__exportStar(W7(),Me);$e.__exportStar(Y7(),Me);$e.__exportStar(X7(),Me);$e.__exportStar(eQ(),Me);$e.__exportStar(iQ(),Me);$e.__exportStar(nQ(),Me);$e.__exportStar(oQ(),Me);$e.__exportStar(cQ(),Me)});var dQ=h(KC=>{"use strict";Object.defineProperty(KC,"__esModule",{value:!0});KC.parseURL=void 0;var sD=lQ(),Dct=ZN(),iD={[sD.EndpointURLScheme.HTTP]:80,[sD.EndpointURLScheme.HTTPS]:443},kct=r(e=>{let t=(()=>{try{if(e instanceof URL)return e;if(typeof e=="object"&&"hostname"in e){let{hostname:_,port:S,protocol:N="",path:k="",query:U={}}=e,J=new URL(`${N}//${_}${S?`:${S}`:""}${k}`);return J.search=Object.entries(U).map(([j,W])=>`${j}=${W}`).join("&"),J}return new URL(e)}catch{return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let i=t.href,{host:s,hostname:n,pathname:o,protocol:c,search:d}=t;if(d)return null;let l=c.slice(0,-1);if(!Object.values(sD.EndpointURLScheme).includes(l))return null;let u=(0,Dct.isIpAddress)(n),m=i.includes(`${s}:${iD[l]}`)||typeof e=="string"&&e.includes(`${s}:${iD[l]}`),w=`${s}${m?`:${iD[l]}`:""}`;return{scheme:l,authority:w,path:o,normalizedPath:o.endsWith("/")?o:`${o}/`,isIp:u}},"parseURL");KC.parseURL=kct});var uQ=h(YC=>{"use strict";Object.defineProperty(YC,"__esModule",{value:!0});YC.stringEquals=void 0;var Jct=r((e,t)=>e===t,"stringEquals");YC.stringEquals=Jct});var mQ=h(QC=>{"use strict";Object.defineProperty(QC,"__esModule",{value:!0});QC.substring=void 0;var Mct=r((e,t,i,s)=>t>=i||e.length<i?null:s?e.substring(e.length-i,e.length-t):e.substring(t,i),"substring");QC.substring=Mct});var pQ=h(XC=>{"use strict";Object.defineProperty(XC,"__esModule",{value:!0});XC.uriEncode=void 0;var Uct=r(e=>encodeURIComponent(e).replace(/[!*'()]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),"uriEncode");XC.uriEncode=Uct});var nD=h(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.aws=void 0;var ws=(se(),te(ie));ri.aws=ws.__importStar(Y9());ws.__exportStar(Q9(),ri);ws.__exportStar(e7(),ri);ws.__exportStar(t7(),ri);ws.__exportStar(eD(),ri);ws.__exportStar(i7(),ri);ws.__exportStar(dQ(),ri);ws.__exportStar(uQ(),ri);ws.__exportStar(mQ(),ri);ws.__exportStar(pQ(),ri)});var rD=h(ZC=>{"use strict";Object.defineProperty(ZC,"__esModule",{value:!0});ZC.evaluateTemplate=void 0;var Oct=nD(),jct=r((e,t)=>{let i=[],s={...t.endpointParams,...t.referenceRecord},n=0;for(;n<e.length;){let o=e.indexOf("{",n);if(o===-1){i.push(e.slice(n));break}i.push(e.slice(n,o));let c=e.indexOf("}",o);if(c===-1){i.push(e.slice(o));break}e[o+1]==="{"&&e[c+1]==="}"&&(i.push(e.slice(o+1,c)),n=c+2);let d=e.substring(o+1,c);if(d.includes("#")){let[l,u]=d.split("#");i.push((0,Oct.getAttr)(s[l],u))}else i.push(s[d]);n=c+1}return i.join("")},"evaluateTemplate");ZC.evaluateTemplate=jct});var hQ=h(eT=>{"use strict";Object.defineProperty(eT,"__esModule",{value:!0});eT.getReferenceValue=void 0;var Gct=r(({ref:e},t)=>({...t.endpointParams,...t.referenceRecord})[e],"getReferenceValue");eT.getReferenceValue=Gct});var Bh=h(tT=>{"use strict";Object.defineProperty(tT,"__esModule",{value:!0});tT.evaluateExpression=void 0;var Vct=Pi(),Bct=oD(),$ct=rD(),Hct=hQ(),Wct=r((e,t,i)=>{if(typeof e=="string")return(0,$ct.evaluateTemplate)(e,i);if(e.fn)return(0,Bct.callFunction)(e,i);if(e.ref)return(0,Hct.getReferenceValue)(e,i);throw new Vct.EndpointError(`'${t}': ${String(e)} is not a string, function or reference.`)},"evaluateExpression");tT.evaluateExpression=Wct});var oD=h(iT=>{"use strict";Object.defineProperty(iT,"__esModule",{value:!0});iT.callFunction=void 0;var Kct=(se(),te(ie)),Yct=Kct.__importStar(nD()),Qct=Bh(),Xct=r(({fn:e,argv:t},i)=>{let s=t.map(n=>["boolean","number"].includes(typeof n)?n:(0,Qct.evaluateExpression)(n,"arg",i));return e.split(".").reduce((n,o)=>n[o],Yct)(...s)},"callFunction");iT.callFunction=Xct});var fQ=h(sT=>{"use strict";Object.defineProperty(sT,"__esModule",{value:!0});sT.evaluateCondition=void 0;var aD=kh(),Zct=Pi(),elt=oD(),tlt=r(({assign:e,...t},i)=>{var s,n;if(e&&e in i.referenceRecord)throw new Zct.EndpointError(`'${e}' is already defined in Reference Record.`);let o=(0,elt.callFunction)(t,i);return(n=(s=i.logger)===null||s===void 0?void 0:s.debug)===null||n===void 0||n.call(s,aD.debugId,`evaluateCondition: ${(0,aD.toDebugString)(t)} = ${(0,aD.toDebugString)(o)}`),{result:o===""?!0:!!o,...e!=null&&{toAssign:{name:e,value:o}}}},"evaluateCondition");sT.evaluateCondition=tlt});var rT=h(nT=>{"use strict";Object.defineProperty(nT,"__esModule",{value:!0});nT.evaluateConditions=void 0;var gQ=kh(),ilt=fQ(),slt=r((e=[],t)=>{var i,s;let n={};for(let o of e){let{result:c,toAssign:d}=(0,ilt.evaluateCondition)(o,{...t,referenceRecord:{...t.referenceRecord,...n}});if(!c)return{result:c};d&&(n[d.name]=d.value,(s=(i=t.logger)===null||i===void 0?void 0:i.debug)===null||s===void 0||s.call(i,gQ.debugId,`assign: ${d.name} := ${(0,gQ.toDebugString)(d.value)}`))}return{result:!0,referenceRecord:n}},"evaluateConditions");nT.evaluateConditions=slt});var wQ=h(oT=>{"use strict";Object.defineProperty(oT,"__esModule",{value:!0});oT.getEndpointHeaders=void 0;var nlt=Pi(),rlt=Bh(),olt=r((e,t)=>Object.entries(e).reduce((i,[s,n])=>({...i,[s]:n.map(o=>{let c=(0,rlt.evaluateExpression)(o,"Header value entry",t);if(typeof c!="string")throw new nlt.EndpointError(`Header '${s}' value '${c}' is not a string`);return c})}),{}),"getEndpointHeaders");oT.getEndpointHeaders=olt});var yQ=h($h=>{"use strict";Object.defineProperty($h,"__esModule",{value:!0});$h.getEndpointProperty=void 0;var _Q=Pi(),alt=rD(),clt=cD(),llt=r((e,t)=>{if(Array.isArray(e))return e.map(i=>(0,$h.getEndpointProperty)(i,t));switch(typeof e){case"string":return(0,alt.evaluateTemplate)(e,t);case"object":if(e===null)throw new _Q.EndpointError(`Unexpected endpoint property: ${e}`);return(0,clt.getEndpointProperties)(e,t);case"boolean":return e;default:throw new _Q.EndpointError(`Unexpected endpoint property type: ${typeof e}`)}},"getEndpointProperty");$h.getEndpointProperty=llt});var cD=h(aT=>{"use strict";Object.defineProperty(aT,"__esModule",{value:!0});aT.getEndpointProperties=void 0;var dlt=yQ(),ult=r((e,t)=>Object.entries(e).reduce((i,[s,n])=>({...i,[s]:(0,dlt.getEndpointProperty)(n,t)}),{}),"getEndpointProperties");aT.getEndpointProperties=ult});var SQ=h(cT=>{"use strict";Object.defineProperty(cT,"__esModule",{value:!0});cT.getEndpointUrl=void 0;var mlt=Pi(),plt=Bh(),hlt=r((e,t)=>{let i=(0,plt.evaluateExpression)(e,"Endpoint URL",t);if(typeof i=="string")try{return new URL(i)}catch(s){throw console.error(`Failed to construct URL with ${i}`,s),s}throw new mlt.EndpointError(`Endpoint URL must be a string, got ${typeof i}`)},"getEndpointUrl");cT.getEndpointUrl=hlt});var EQ=h(lT=>{"use strict";Object.defineProperty(lT,"__esModule",{value:!0});lT.evaluateEndpointRule=void 0;var vQ=kh(),flt=rT(),glt=wQ(),wlt=cD(),_lt=SQ(),ylt=r((e,t)=>{var i,s;let{conditions:n,endpoint:o}=e,{result:c,referenceRecord:d}=(0,flt.evaluateConditions)(n,t);if(!c)return;let l={...t,referenceRecord:{...t.referenceRecord,...d}},{url:u,properties:m,headers:w}=o;return(s=(i=t.logger)===null||i===void 0?void 0:i.debug)===null||s===void 0||s.call(i,vQ.debugId,`Resolving endpoint from template: ${(0,vQ.toDebugString)(o)}`),{...w!=null&&{headers:(0,glt.getEndpointHeaders)(w,l)},...m!=null&&{properties:(0,wlt.getEndpointProperties)(m,l)},url:(0,_lt.getEndpointUrl)(u,l)}},"evaluateEndpointRule");lT.evaluateEndpointRule=ylt});var AQ=h(dT=>{"use strict";Object.defineProperty(dT,"__esModule",{value:!0});dT.evaluateErrorRule=void 0;var Slt=Pi(),vlt=rT(),Elt=Bh(),Alt=r((e,t)=>{let{conditions:i,error:s}=e,{result:n,referenceRecord:o}=(0,vlt.evaluateConditions)(i,t);if(n)throw new Slt.EndpointError((0,Elt.evaluateExpression)(s,"Error",{...t,referenceRecord:{...t.referenceRecord,...o}}))},"evaluateErrorRule");dT.evaluateErrorRule=Alt});var bQ=h(uT=>{"use strict";Object.defineProperty(uT,"__esModule",{value:!0});uT.evaluateTreeRule=void 0;var blt=rT(),Clt=lD(),Tlt=r((e,t)=>{let{conditions:i,rules:s}=e,{result:n,referenceRecord:o}=(0,blt.evaluateConditions)(i,t);if(n)return(0,Clt.evaluateRules)(s,{...t,referenceRecord:{...t.referenceRecord,...o}})},"evaluateTreeRule");uT.evaluateTreeRule=Tlt});var lD=h(mT=>{"use strict";Object.defineProperty(mT,"__esModule",{value:!0});mT.evaluateRules=void 0;var CQ=Pi(),xlt=EQ(),Plt=AQ(),Ilt=bQ(),Rlt=r((e,t)=>{for(let i of e)if(i.type==="endpoint"){let s=(0,xlt.evaluateEndpointRule)(i,t);if(s)return s}else if(i.type==="error")(0,Plt.evaluateErrorRule)(i,t);else if(i.type==="tree"){let s=(0,Ilt.evaluateTreeRule)(i,t);if(s)return s}else throw new CQ.EndpointError(`Unknown endpoint rule: ${i}`);throw new CQ.EndpointError("Rules evaluation failed")},"evaluateRules");mT.evaluateRules=Rlt});var TQ=h(dD=>{"use strict";Object.defineProperty(dD,"__esModule",{value:!0});var qlt=(se(),te(ie));qlt.__exportStar(lD(),dD)});var xQ=h(hT=>{"use strict";Object.defineProperty(hT,"__esModule",{value:!0});hT.resolveEndpoint=void 0;var pT=kh(),Llt=Pi(),zlt=TQ(),Flt=r((e,t)=>{var i,s,n,o,c,d;let{endpointParams:l,logger:u}=t,{parameters:m,rules:w}=e;(s=(i=t.logger)===null||i===void 0?void 0:i.debug)===null||s===void 0||s.call(i,pT.debugId,`Initial EndpointParams: ${(0,pT.toDebugString)(l)}`);let _=Object.entries(m).filter(([,k])=>k.default!=null).map(([k,U])=>[k,U.default]);if(_.length>0)for(let[k,U]of _)l[k]=(n=l[k])!==null&&n!==void 0?n:U;let S=Object.entries(m).filter(([,k])=>k.required).map(([k])=>k);for(let k of S)if(l[k]==null)throw new Llt.EndpointError(`Missing required parameter: '${k}'`);let N=(0,zlt.evaluateRules)(w,{endpointParams:l,logger:u,referenceRecord:{}});if(!((o=t.endpointParams)===null||o===void 0)&&o.Endpoint)try{let k=new URL(t.endpointParams.Endpoint),{protocol:U,port:J}=k;N.url.protocol=U,N.url.port=J}catch{}return(d=(c=t.logger)===null||c===void 0?void 0:c.debug)===null||d===void 0||d.call(c,pT.debugId,`Resolved endpoint: ${(0,pT.toDebugString)(N)}`),N},"resolveEndpoint");hT.resolveEndpoint=Flt});var Wh=h(Hh=>{"use strict";Object.defineProperty(Hh,"__esModule",{value:!0});var uD=(se(),te(ie));uD.__exportStar(QN(),Hh);uD.__exportStar(xQ(),Hh);uD.__exportStar(Pi(),Hh)});var MQ=h(fT=>{"use strict";Object.defineProperty(fT,"__esModule",{value:!0});fT.ruleSet=void 0;var NQ="required",Ws="fn",Ks="argv",Tm="ref",mD="PartitionResult",_s="tree",Kh="error",Yh="endpoint",PQ={[NQ]:!1,type:"String"},IQ={[NQ]:!0,default:!1,type:"Boolean"},DQ={[Tm]:"Endpoint"},kQ={[Ws]:"booleanEquals",[Ks]:[{[Tm]:"UseFIPS"},!0]},JQ={[Ws]:"booleanEquals",[Ks]:[{[Tm]:"UseDualStack"},!0]},ys={},RQ={[Ws]:"booleanEquals",[Ks]:[!0,{[Ws]:"getAttr",[Ks]:[{[Tm]:mD},"supportsFIPS"]}]},qQ={[Ws]:"booleanEquals",[Ks]:[!0,{[Ws]:"getAttr",[Ks]:[{[Tm]:mD},"supportsDualStack"]}]},LQ=[DQ],zQ=[kQ],FQ=[JQ],Nlt={version:"1.0",parameters:{Region:PQ,UseDualStack:IQ,UseFIPS:IQ,Endpoint:PQ},rules:[{conditions:[{[Ws]:"aws.partition",[Ks]:[{[Tm]:"Region"}],assign:mD}],type:_s,rules:[{conditions:[{[Ws]:"isSet",[Ks]:LQ},{[Ws]:"parseURL",[Ks]:LQ,assign:"url"}],type:_s,rules:[{conditions:zQ,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Kh},{type:_s,rules:[{conditions:FQ,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Kh},{endpoint:{url:DQ,properties:ys,headers:ys},type:Yh}]}]},{conditions:[kQ,JQ],type:_s,rules:[{conditions:[RQ,qQ],type:_s,rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ys,headers:ys},type:Yh}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Kh}]},{conditions:zQ,type:_s,rules:[{conditions:[RQ],type:_s,rules:[{type:_s,rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:ys,headers:ys},type:Yh}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:Kh}]},{conditions:FQ,type:_s,rules:[{conditions:[qQ],type:_s,rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ys,headers:ys},type:Yh}]},{error:"DualStack is enabled but this partition does not support DualStack",type:Kh}]},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:ys,headers:ys},type:Yh}]}]};fT.ruleSet=Nlt});var UQ=h(gT=>{"use strict";Object.defineProperty(gT,"__esModule",{value:!0});gT.defaultEndpointResolver=void 0;var Dlt=Wh(),klt=MQ(),Jlt=r((e,t={})=>(0,Dlt.resolveEndpoint)(klt.ruleSet,{endpointParams:e,logger:t.logger}),"defaultEndpointResolver");gT.defaultEndpointResolver=Jlt});var GQ=h(wT=>{"use strict";Object.defineProperty(wT,"__esModule",{value:!0});wT.getRuntimeConfig=void 0;var Mlt=E(),Ult=Er(),OQ=Dh(),jQ=js(),Olt=UQ(),jlt=r(e=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??OQ.fromBase64,base64Encoder:e?.base64Encoder??OQ.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Olt.defaultEndpointResolver,logger:e?.logger??new Mlt.NoOpLogger,serviceId:e?.serviceId??"SSO",urlParser:e?.urlParser??Ult.parseUrl,utf8Decoder:e?.utf8Decoder??jQ.fromUtf8,utf8Encoder:e?.utf8Encoder??jQ.toUtf8}),"getRuntimeConfig");wT.getRuntimeConfig=jlt});var VQ=h(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.IMDS_REGION_PATH=Yt.DEFAULTS_MODE_OPTIONS=Yt.ENV_IMDS_DISABLED=Yt.AWS_DEFAULT_REGION_ENV=Yt.AWS_REGION_ENV=Yt.AWS_EXECUTION_ENV=void 0;Yt.AWS_EXECUTION_ENV="AWS_EXECUTION_ENV";Yt.AWS_REGION_ENV="AWS_REGION";Yt.AWS_DEFAULT_REGION_ENV="AWS_DEFAULT_REGION";Yt.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";Yt.DEFAULTS_MODE_OPTIONS=["in-region","cross-region","mobile","standard","legacy"];Yt.IMDS_REGION_PATH="/latest/meta-data/placement/region"});var BQ=h(_T=>{"use strict";Object.defineProperty(_T,"__esModule",{value:!0});_T.NODE_DEFAULTS_MODE_CONFIG_OPTIONS=void 0;var Glt="AWS_DEFAULTS_MODE",Vlt="defaults_mode";_T.NODE_DEFAULTS_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Glt],configFileSelector:e=>e[Vlt],default:"legacy"}});var WQ=h(yT=>{"use strict";Object.defineProperty(yT,"__esModule",{value:!0});yT.resolveDefaultsModeConfig=void 0;var Blt=Xi(),$Q=p0(),HQ=Un(),$lt=Ve(),Qn=VQ(),Hlt=BQ(),Wlt=r(({region:e=(0,HQ.loadConfig)(Blt.NODE_REGION_CONFIG_OPTIONS),defaultsMode:t=(0,HQ.loadConfig)(Hlt.NODE_DEFAULTS_MODE_CONFIG_OPTIONS)}={})=>(0,$lt.memoize)(async()=>{let i=typeof t=="function"?await t():t;switch(i?.toLowerCase()){case"auto":return Klt(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(i?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${Qn.DEFAULTS_MODE_OPTIONS.join(", ")}, got ${i}`)}}),"resolveDefaultsModeConfig");yT.resolveDefaultsModeConfig=Wlt;var Klt=r(async e=>{if(e){let t=typeof e=="function"?await e():e,i=await Ylt();return i?t===i?"in-region":"cross-region":"standard"}return"standard"},"resolveNodeDefaultsModeAuto"),Ylt=r(async()=>{var e;if(process.env[Qn.AWS_EXECUTION_ENV]&&(process.env[Qn.AWS_REGION_ENV]||process.env[Qn.AWS_DEFAULT_REGION_ENV]))return(e=process.env[Qn.AWS_REGION_ENV])!==null&&e!==void 0?e:process.env[Qn.AWS_DEFAULT_REGION_ENV];if(!process.env[Qn.ENV_IMDS_DISABLED])try{let t=await(0,$Q.getInstanceMetadataEndpoint)();return(await(0,$Q.httpRequest)({...t,path:Qn.IMDS_REGION_PATH})).toString()}catch{}},"inferPhysicalRegion")});var Qh=h(pD=>{"use strict";Object.defineProperty(pD,"__esModule",{value:!0});var Qlt=(se(),te(ie));Qlt.__exportStar(WQ(),pD)});var QQ=h(vT=>{"use strict";Object.defineProperty(vT,"__esModule",{value:!0});vT.getRuntimeConfig=void 0;var Xlt=(se(),te(ie)),Zlt=Xlt.__importDefault(bY()),ST=Xi(),edt=bh(),KQ=Os(),Xh=Un(),YQ=Th(),tdt=xh(),idt=vi(),sdt=Nh(),ndt=GQ(),rdt=E(),odt=Qh(),adt=E(),cdt=r(e=>{(0,adt.emitWarningIfUnsupportedVersion)(process.version);let t=(0,odt.resolveDefaultsModeConfig)(e),i=r(()=>t().then(rdt.loadConfigsForDefaultMode),"defaultConfigProvider"),s=(0,ndt.getRuntimeConfig)(e);return{...s,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??tdt.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,sdt.defaultUserAgent)({serviceId:s.serviceId,clientVersion:Zlt.default.version}),maxAttempts:e?.maxAttempts??(0,Xh.loadConfig)(KQ.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:e?.region??(0,Xh.loadConfig)(ST.NODE_REGION_CONFIG_OPTIONS,ST.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new YQ.NodeHttpHandler(i),retryMode:e?.retryMode??(0,Xh.loadConfig)({...KQ.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await i()).retryMode||idt.DEFAULT_RETRY_MODE}),sha256:e?.sha256??edt.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??YQ.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,Xh.loadConfig)(ST.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,Xh.loadConfig)(ST.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}},"getRuntimeConfig");vT.getRuntimeConfig=cdt});var Zh=h(AT=>{"use strict";Object.defineProperty(AT,"__esModule",{value:!0});AT.SSOClient=void 0;var ldt=Xi(),ddt=oh(),udt=b(),XQ=ah(),mdt=ch(),pdt=lh(),ZQ=Os(),eX=fh(),hdt=E(),fdt=AY(),gdt=QQ(),ET=class extends hdt.Client{constructor(t){let i=(0,gdt.getRuntimeConfig)(t),s=(0,fdt.resolveClientEndpointParameters)(i),n=(0,ldt.resolveRegionConfig)(s),o=(0,udt.resolveEndpointConfig)(n),c=(0,ZQ.resolveRetryConfig)(o),d=(0,XQ.resolveHostHeaderConfig)(c),l=(0,eX.resolveUserAgentConfig)(d);super(l),this.config=l,this.middlewareStack.use((0,ZQ.getRetryPlugin)(this.config)),this.middlewareStack.use((0,ddt.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,XQ.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,mdt.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,pdt.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,eX.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};r(ET,"SSOClient");AT.SSOClient=ET});var TT=h(CT=>{"use strict";Object.defineProperty(CT,"__esModule",{value:!0});CT.SSO=void 0;var wdt=EN(),_dt=F0(),ydt=D0(),Sdt=AN(),vdt=Zh(),bT=class extends vdt.SSOClient{getRoleCredentials(t,i,s){let n=new wdt.GetRoleCredentialsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listAccountRoles(t,i,s){let n=new _dt.ListAccountRolesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listAccounts(t,i,s){let n=new ydt.ListAccountsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}logout(t,i,s){let n=new Sdt.LogoutCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}};r(bT,"SSO");CT.SSO=bT});var tX=h(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});var xT=(se(),te(ie));xT.__exportStar(EN(),xm);xT.__exportStar(F0(),xm);xT.__exportStar(D0(),xm);xT.__exportStar(AN(),xm)});var iX=h(hD=>{"use strict";Object.defineProperty(hD,"__esModule",{value:!0});var Edt=(se(),te(ie));Edt.__exportStar(kr(),hD)});var nX=h(sX=>{"use strict";Object.defineProperty(sX,"__esModule",{value:!0})});var rX=h(PT=>{"use strict";Object.defineProperty(PT,"__esModule",{value:!0});PT.paginateListAccountRoles=void 0;var Adt=F0(),bdt=TT(),Cdt=Zh(),Tdt=r(async(e,t,...i)=>await e.send(new Adt.ListAccountRolesCommand(t),...i),"makePagedClientRequest"),xdt=r(async(e,t,...i)=>await e.listAccountRoles(t,...i),"makePagedRequest");async function*Pdt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof bdt.SSO)o=await xdt(e.client,t,...i);else if(e.client instanceof Cdt.SSOClient)o=await Tdt(e.client,t,...i);else throw new Error("Invalid client, expected SSO | SSOClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Pdt,"paginateListAccountRoles");PT.paginateListAccountRoles=Pdt});var oX=h(IT=>{"use strict";Object.defineProperty(IT,"__esModule",{value:!0});IT.paginateListAccounts=void 0;var Idt=D0(),Rdt=TT(),qdt=Zh(),Ldt=r(async(e,t,...i)=>await e.send(new Idt.ListAccountsCommand(t),...i),"makePagedClientRequest"),zdt=r(async(e,t,...i)=>await e.listAccounts(t,...i),"makePagedRequest");async function*Fdt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Rdt.SSO)o=await zdt(e.client,t,...i);else if(e.client instanceof qdt.SSOClient)o=await Ldt(e.client,t,...i);else throw new Error("Invalid client, expected SSO | SSOClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Fdt,"paginateListAccounts");IT.paginateListAccounts=Fdt});var aX=h(ef=>{"use strict";Object.defineProperty(ef,"__esModule",{value:!0});var fD=(se(),te(ie));fD.__exportStar(nX(),ef);fD.__exportStar(rX(),ef);fD.__exportStar(oX(),ef)});var cX=h(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.SSOServiceException=void 0;var tf=(se(),te(ie));tf.__exportStar(TT(),Ys);tf.__exportStar(Zh(),Ys);tf.__exportStar(tX(),Ys);tf.__exportStar(iX(),Ys);tf.__exportStar(aX(),Ys);var Ndt=S0();Object.defineProperty(Ys,"SSOServiceException",{enumerable:!0,get:function(){return Ndt.SSOServiceException}})});var RT=h(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});Pm.REFRESH_MESSAGE=Pm.EXPIRE_WINDOW_MS=void 0;Pm.EXPIRE_WINDOW_MS=5*60*1e3;Pm.REFRESH_MESSAGE="To refresh this SSO session run 'aws sso login' with the corresponding profile."});var LT=h(qT=>{"use strict";Object.defineProperty(qT,"__esModule",{value:!0});qT.SSOOIDCServiceException=void 0;var Ddt=E(),Im=class extends Ddt.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,Im.prototype)}};r(Im,"SSOOIDCServiceException");qT.SSOOIDCServiceException=Im});var jm=h(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.StartDeviceAuthorizationResponseFilterSensitiveLog=Ce.StartDeviceAuthorizationRequestFilterSensitiveLog=Ce.RegisterClientResponseFilterSensitiveLog=Ce.RegisterClientRequestFilterSensitiveLog=Ce.CreateTokenResponseFilterSensitiveLog=Ce.CreateTokenRequestFilterSensitiveLog=Ce.InvalidClientMetadataException=Ce.UnsupportedGrantTypeException=Ce.UnauthorizedClientException=Ce.SlowDownException=Ce.InvalidScopeException=Ce.InvalidRequestException=Ce.InvalidGrantException=Ce.InvalidClientException=Ce.InternalServerException=Ce.ExpiredTokenException=Ce.AuthorizationPendingException=Ce.AccessDeniedException=void 0;var Ii=LT(),Rm=class extends Ii.SSOOIDCServiceException{constructor(t){super({name:"AccessDeniedException",$fault:"client",...t}),this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,Rm.prototype),this.error=t.error,this.error_description=t.error_description}};r(Rm,"AccessDeniedException");Ce.AccessDeniedException=Rm;var qm=class extends Ii.SSOOIDCServiceException{constructor(t){super({name:"AuthorizationPendingException",$fault:"client",...t}),this.name="AuthorizationPendingException",this.$fault="client",Object.setPrototypeOf(this,qm.prototype),this.error=t.error,this.error_description=t.error_description}};r(qm,"AuthorizationPendingException");Ce.AuthorizationPendingException=qm;var Lm=class extends Ii.SSOOIDCServiceException{constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,Lm.prototype),this.error=t.error,this.error_description=t.error_description}};r(Lm,"ExpiredTokenException");Ce.ExpiredTokenException=Lm;var zm=class extends Ii.SSOOIDCServiceException{constructor(t){super({name:"InternalServerException",$fault:"server",...t}),this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,zm.prototype),this.error=t.error,this.error_description=t.error_description}};r(zm,"InternalServerException");Ce.InternalServerException=zm;var Fm=class extends Ii.SSOOIDCServiceException{constructor(t){super({name:"InvalidClientException",$fault:"client",...t}),this.name="InvalidClientException",this.$fault="client",Object.setPrototypeOf(this,Fm.prototype),this.error=t.error,this.error_description=t.error_description}};r(Fm,"InvalidClientException");Ce.InvalidClientException=Fm;var Nm=class extends Ii.SSOOIDCServiceException{constructor(t){super({name:"InvalidGrantException",$fault:"client",...t}),this.name="InvalidGrantException",this.$fault="client",Object.setPrototypeOf(this,Nm.prototype),this.error=t.error,this.error_description=t.error_description}};r(Nm,"InvalidGrantException");Ce.InvalidGrantException=Nm;var Dm=class extends Ii.SSOOIDCServiceException{constructor(t){super({name:"InvalidRequestException",$fault:"client",...t}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,Dm.prototype),this.error=t.error,this.error_description=t.error_description}};r(Dm,"InvalidRequestException");Ce.InvalidRequestException=Dm;var km=class extends Ii.SSOOIDCServiceException{constructor(t){super({name:"InvalidScopeException",$fault:"client",...t}),this.name="InvalidScopeException",this.$fault="client",Object.setPrototypeOf(this,km.prototype),this.error=t.error,this.error_description=t.error_description}};r(km,"InvalidScopeException");Ce.InvalidScopeException=km;var Jm=class extends Ii.SSOOIDCServiceException{constructor(t){super({name:"SlowDownException",$fault:"client",...t}),this.name="SlowDownException",this.$fault="client",Object.setPrototypeOf(this,Jm.prototype),this.error=t.error,this.error_description=t.error_description}};r(Jm,"SlowDownException");Ce.SlowDownException=Jm;var Mm=class extends Ii.SSOOIDCServiceException{constructor(t){super({name:"UnauthorizedClientException",$fault:"client",...t}),this.name="UnauthorizedClientException",this.$fault="client",Object.setPrototypeOf(this,Mm.prototype),this.error=t.error,this.error_description=t.error_description}};r(Mm,"UnauthorizedClientException");Ce.UnauthorizedClientException=Mm;var Um=class extends Ii.SSOOIDCServiceException{constructor(t){super({name:"UnsupportedGrantTypeException",$fault:"client",...t}),this.name="UnsupportedGrantTypeException",this.$fault="client",Object.setPrototypeOf(this,Um.prototype),this.error=t.error,this.error_description=t.error_description}};r(Um,"UnsupportedGrantTypeException");Ce.UnsupportedGrantTypeException=Um;var Om=class extends Ii.SSOOIDCServiceException{constructor(t){super({name:"InvalidClientMetadataException",$fault:"client",...t}),this.name="InvalidClientMetadataException",this.$fault="client",Object.setPrototypeOf(this,Om.prototype),this.error=t.error,this.error_description=t.error_description}};r(Om,"InvalidClientMetadataException");Ce.InvalidClientMetadataException=Om;var kdt=r(e=>({...e}),"CreateTokenRequestFilterSensitiveLog");Ce.CreateTokenRequestFilterSensitiveLog=kdt;var Jdt=r(e=>({...e}),"CreateTokenResponseFilterSensitiveLog");Ce.CreateTokenResponseFilterSensitiveLog=Jdt;var Mdt=r(e=>({...e}),"RegisterClientRequestFilterSensitiveLog");Ce.RegisterClientRequestFilterSensitiveLog=Mdt;var Udt=r(e=>({...e}),"RegisterClientResponseFilterSensitiveLog");Ce.RegisterClientResponseFilterSensitiveLog=Udt;var Odt=r(e=>({...e}),"StartDeviceAuthorizationRequestFilterSensitiveLog");Ce.StartDeviceAuthorizationRequestFilterSensitiveLog=Odt;var jdt=r(e=>({...e}),"StartDeviceAuthorizationResponseFilterSensitiveLog");Ce.StartDeviceAuthorizationResponseFilterSensitiveLog=jdt});var FT=h(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.deserializeAws_restJson1StartDeviceAuthorizationCommand=Qt.deserializeAws_restJson1RegisterClientCommand=Qt.deserializeAws_restJson1CreateTokenCommand=Qt.serializeAws_restJson1StartDeviceAuthorizationCommand=Qt.serializeAws_restJson1RegisterClientCommand=Qt.serializeAws_restJson1CreateTokenCommand=void 0;var gD=kt(),re=E(),Ri=jm(),wD=LT(),Gdt=r(async(e,t)=>{let{hostname:i,protocol:s="https",port:n,path:o}=await t.endpoint(),c={"content-type":"application/json"},d=`${o?.endsWith("/")?o.slice(0,-1):o||""}/token`,l;return l=JSON.stringify({...e.clientId!=null&&{clientId:e.clientId},...e.clientSecret!=null&&{clientSecret:e.clientSecret},...e.code!=null&&{code:e.code},...e.deviceCode!=null&&{deviceCode:e.deviceCode},...e.grantType!=null&&{grantType:e.grantType},...e.redirectUri!=null&&{redirectUri:e.redirectUri},...e.refreshToken!=null&&{refreshToken:e.refreshToken},...e.scope!=null&&{scope:pX(e.scope,t)}}),new gD.HttpRequest({protocol:s,hostname:i,port:n,method:"POST",headers:c,path:d,body:l})},"serializeAws_restJson1CreateTokenCommand");Qt.serializeAws_restJson1CreateTokenCommand=Gdt;var Vdt=r(async(e,t)=>{let{hostname:i,protocol:s="https",port:n,path:o}=await t.endpoint(),c={"content-type":"application/json"},d=`${o?.endsWith("/")?o.slice(0,-1):o||""}/client/register`,l;return l=JSON.stringify({...e.clientName!=null&&{clientName:e.clientName},...e.clientType!=null&&{clientType:e.clientType},...e.scopes!=null&&{scopes:pX(e.scopes,t)}}),new gD.HttpRequest({protocol:s,hostname:i,port:n,method:"POST",headers:c,path:d,body:l})},"serializeAws_restJson1RegisterClientCommand");Qt.serializeAws_restJson1RegisterClientCommand=Vdt;var Bdt=r(async(e,t)=>{let{hostname:i,protocol:s="https",port:n,path:o}=await t.endpoint(),c={"content-type":"application/json"},d=`${o?.endsWith("/")?o.slice(0,-1):o||""}/device_authorization`,l;return l=JSON.stringify({...e.clientId!=null&&{clientId:e.clientId},...e.clientSecret!=null&&{clientSecret:e.clientSecret},...e.startUrl!=null&&{startUrl:e.startUrl}}),new gD.HttpRequest({protocol:s,hostname:i,port:n,method:"POST",headers:c,path:d,body:l})},"serializeAws_restJson1StartDeviceAuthorizationCommand");Qt.serializeAws_restJson1StartDeviceAuthorizationCommand=Bdt;var $dt=r(async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Hdt(e,t);let i=Ut({$metadata:Ot(e)}),s=(0,re.expectNonNull)((0,re.expectObject)(await zT(e.body,t)),"body");return s.accessToken!=null&&(i.accessToken=(0,re.expectString)(s.accessToken)),s.expiresIn!=null&&(i.expiresIn=(0,re.expectInt32)(s.expiresIn)),s.idToken!=null&&(i.idToken=(0,re.expectString)(s.idToken)),s.refreshToken!=null&&(i.refreshToken=(0,re.expectString)(s.refreshToken)),s.tokenType!=null&&(i.tokenType=(0,re.expectString)(s.tokenType)),i},"deserializeAws_restJson1CreateTokenCommand");Qt.deserializeAws_restJson1CreateTokenCommand=$dt;var Hdt=r(async(e,t)=>{let i={...e,body:await SD(e.body,t)},s=vD(e,i.body);switch(s){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await Xdt(i,t);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await Zdt(i,t);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await eut(i,t);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await _D(i,t);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await lX(i,t);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await iut(i,t);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await yD(i,t);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await dX(i,t);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await uX(i,t);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await mX(i,t);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await sut(i,t);default:let n=i.body;(0,re.throwDefaultError)({output:e,parsedBody:n,exceptionCtor:wD.SSOOIDCServiceException,errorCode:s})}},"deserializeAws_restJson1CreateTokenCommandError"),Wdt=r(async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Kdt(e,t);let i=Ut({$metadata:Ot(e)}),s=(0,re.expectNonNull)((0,re.expectObject)(await zT(e.body,t)),"body");return s.authorizationEndpoint!=null&&(i.authorizationEndpoint=(0,re.expectString)(s.authorizationEndpoint)),s.clientId!=null&&(i.clientId=(0,re.expectString)(s.clientId)),s.clientIdIssuedAt!=null&&(i.clientIdIssuedAt=(0,re.expectLong)(s.clientIdIssuedAt)),s.clientSecret!=null&&(i.clientSecret=(0,re.expectString)(s.clientSecret)),s.clientSecretExpiresAt!=null&&(i.clientSecretExpiresAt=(0,re.expectLong)(s.clientSecretExpiresAt)),s.tokenEndpoint!=null&&(i.tokenEndpoint=(0,re.expectString)(s.tokenEndpoint)),i},"deserializeAws_restJson1RegisterClientCommand");Qt.deserializeAws_restJson1RegisterClientCommand=Wdt;var Kdt=r(async(e,t)=>{let i={...e,body:await SD(e.body,t)},s=vD(e,i.body);switch(s){case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await _D(i,t);case"InvalidClientMetadataException":case"com.amazonaws.ssooidc#InvalidClientMetadataException":throw await tut(i,t);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await yD(i,t);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await dX(i,t);default:let n=i.body;(0,re.throwDefaultError)({output:e,parsedBody:n,exceptionCtor:wD.SSOOIDCServiceException,errorCode:s})}},"deserializeAws_restJson1RegisterClientCommandError"),Ydt=r(async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Qdt(e,t);let i=Ut({$metadata:Ot(e)}),s=(0,re.expectNonNull)((0,re.expectObject)(await zT(e.body,t)),"body");return s.deviceCode!=null&&(i.deviceCode=(0,re.expectString)(s.deviceCode)),s.expiresIn!=null&&(i.expiresIn=(0,re.expectInt32)(s.expiresIn)),s.interval!=null&&(i.interval=(0,re.expectInt32)(s.interval)),s.userCode!=null&&(i.userCode=(0,re.expectString)(s.userCode)),s.verificationUri!=null&&(i.verificationUri=(0,re.expectString)(s.verificationUri)),s.verificationUriComplete!=null&&(i.verificationUriComplete=(0,re.expectString)(s.verificationUriComplete)),i},"deserializeAws_restJson1StartDeviceAuthorizationCommand");Qt.deserializeAws_restJson1StartDeviceAuthorizationCommand=Ydt;var Qdt=r(async(e,t)=>{let i={...e,body:await SD(e.body,t)},s=vD(e,i.body);switch(s){case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await _D(i,t);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await lX(i,t);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await yD(i,t);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await uX(i,t);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await mX(i,t);default:let n=i.body;(0,re.throwDefaultError)({output:e,parsedBody:n,exceptionCtor:wD.SSOOIDCServiceException,errorCode:s})}},"deserializeAws_restJson1StartDeviceAuthorizationCommandError"),Ut=re.map,Xdt=r(async(e,t)=>{let i=Ut({}),s=e.body;s.error!=null&&(i.error=(0,re.expectString)(s.error)),s.error_description!=null&&(i.error_description=(0,re.expectString)(s.error_description));let n=new Ri.AccessDeniedException({$metadata:Ot(e),...i});return(0,re.decorateServiceException)(n,e.body)},"deserializeAws_restJson1AccessDeniedExceptionResponse"),Zdt=r(async(e,t)=>{let i=Ut({}),s=e.body;s.error!=null&&(i.error=(0,re.expectString)(s.error)),s.error_description!=null&&(i.error_description=(0,re.expectString)(s.error_description));let n=new Ri.AuthorizationPendingException({$metadata:Ot(e),...i});return(0,re.decorateServiceException)(n,e.body)},"deserializeAws_restJson1AuthorizationPendingExceptionResponse"),eut=r(async(e,t)=>{let i=Ut({}),s=e.body;s.error!=null&&(i.error=(0,re.expectString)(s.error)),s.error_description!=null&&(i.error_description=(0,re.expectString)(s.error_description));let n=new Ri.ExpiredTokenException({$metadata:Ot(e),...i});return(0,re.decorateServiceException)(n,e.body)},"deserializeAws_restJson1ExpiredTokenExceptionResponse"),_D=r(async(e,t)=>{let i=Ut({}),s=e.body;s.error!=null&&(i.error=(0,re.expectString)(s.error)),s.error_description!=null&&(i.error_description=(0,re.expectString)(s.error_description));let n=new Ri.InternalServerException({$metadata:Ot(e),...i});return(0,re.decorateServiceException)(n,e.body)},"deserializeAws_restJson1InternalServerExceptionResponse"),lX=r(async(e,t)=>{let i=Ut({}),s=e.body;s.error!=null&&(i.error=(0,re.expectString)(s.error)),s.error_description!=null&&(i.error_description=(0,re.expectString)(s.error_description));let n=new Ri.InvalidClientException({$metadata:Ot(e),...i});return(0,re.decorateServiceException)(n,e.body)},"deserializeAws_restJson1InvalidClientExceptionResponse"),tut=r(async(e,t)=>{let i=Ut({}),s=e.body;s.error!=null&&(i.error=(0,re.expectString)(s.error)),s.error_description!=null&&(i.error_description=(0,re.expectString)(s.error_description));let n=new Ri.InvalidClientMetadataException({$metadata:Ot(e),...i});return(0,re.decorateServiceException)(n,e.body)},"deserializeAws_restJson1InvalidClientMetadataExceptionResponse"),iut=r(async(e,t)=>{let i=Ut({}),s=e.body;s.error!=null&&(i.error=(0,re.expectString)(s.error)),s.error_description!=null&&(i.error_description=(0,re.expectString)(s.error_description));let n=new Ri.InvalidGrantException({$metadata:Ot(e),...i});return(0,re.decorateServiceException)(n,e.body)},"deserializeAws_restJson1InvalidGrantExceptionResponse"),yD=r(async(e,t)=>{let i=Ut({}),s=e.body;s.error!=null&&(i.error=(0,re.expectString)(s.error)),s.error_description!=null&&(i.error_description=(0,re.expectString)(s.error_description));let n=new Ri.InvalidRequestException({$metadata:Ot(e),...i});return(0,re.decorateServiceException)(n,e.body)},"deserializeAws_restJson1InvalidRequestExceptionResponse"),dX=r(async(e,t)=>{let i=Ut({}),s=e.body;s.error!=null&&(i.error=(0,re.expectString)(s.error)),s.error_description!=null&&(i.error_description=(0,re.expectString)(s.error_description));let n=new Ri.InvalidScopeException({$metadata:Ot(e),...i});return(0,re.decorateServiceException)(n,e.body)},"deserializeAws_restJson1InvalidScopeExceptionResponse"),uX=r(async(e,t)=>{let i=Ut({}),s=e.body;s.error!=null&&(i.error=(0,re.expectString)(s.error)),s.error_description!=null&&(i.error_description=(0,re.expectString)(s.error_description));let n=new Ri.SlowDownException({$metadata:Ot(e),...i});return(0,re.decorateServiceException)(n,e.body)},"deserializeAws_restJson1SlowDownExceptionResponse"),mX=r(async(e,t)=>{let i=Ut({}),s=e.body;s.error!=null&&(i.error=(0,re.expectString)(s.error)),s.error_description!=null&&(i.error_description=(0,re.expectString)(s.error_description));let n=new Ri.UnauthorizedClientException({$metadata:Ot(e),...i});return(0,re.decorateServiceException)(n,e.body)},"deserializeAws_restJson1UnauthorizedClientExceptionResponse"),sut=r(async(e,t)=>{let i=Ut({}),s=e.body;s.error!=null&&(i.error=(0,re.expectString)(s.error)),s.error_description!=null&&(i.error_description=(0,re.expectString)(s.error_description));let n=new Ri.UnsupportedGrantTypeException({$metadata:Ot(e),...i});return(0,re.decorateServiceException)(n,e.body)},"deserializeAws_restJson1UnsupportedGrantTypeExceptionResponse"),pX=r((e,t)=>e.filter(i=>i!=null).map(i=>i),"serializeAws_restJson1Scopes"),Ot=r(e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),"deserializeMetadata"),nut=r((e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),"collectBody"),rut=r((e,t)=>nut(e,t).then(i=>t.utf8Encoder(i)),"collectBodyString"),zT=r((e,t)=>rut(e,t).then(i=>i.length?JSON.parse(i):{}),"parseBody"),SD=r(async(e,t)=>{let i=await zT(e,t);return i.message=i.message??i.Message,i},"parseErrorBody"),vD=r((e,t)=>{let i=r((o,c)=>Object.keys(o).find(d=>d.toLowerCase()===c.toLowerCase()),"findKey"),s=r(o=>{let c=o;return typeof c=="number"&&(c=c.toString()),c.indexOf(",")>=0&&(c=c.split(",")[0]),c.indexOf(":")>=0&&(c=c.split(":")[0]),c.indexOf("#")>=0&&(c=c.split("#")[1]),c},"sanitizeErrorCode"),n=i(e.headers,"x-amzn-errortype");if(n!==void 0)return s(e.headers[n]);if(t.code!==void 0)return s(t.code);if(t.__type!==void 0)return s(t.__type)},"loadRestJsonErrorCode")});var ED=h(NT=>{"use strict";Object.defineProperty(NT,"__esModule",{value:!0});NT.CreateTokenCommand=void 0;var out=b(),aut=C(),cut=E(),hX=jm(),fX=FT(),Gm=class extends cut.Command{constructor(t){super(),this.input=t}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,i,s){this.middlewareStack.use((0,aut.getSerdePlugin)(i,this.serialize,this.deserialize)),this.middlewareStack.use((0,out.getEndpointPlugin)(i,Gm.getEndpointParameterInstructions()));let n=t.concat(this.middlewareStack),{logger:o}=i,l={logger:o,clientName:"SSOOIDCClient",commandName:"CreateTokenCommand",inputFilterSensitiveLog:hX.CreateTokenRequestFilterSensitiveLog,outputFilterSensitiveLog:hX.CreateTokenResponseFilterSensitiveLog},{requestHandler:u}=i;return n.resolve(m=>u.handle(m.request,s||{}),l)}serialize(t,i){return(0,fX.serializeAws_restJson1CreateTokenCommand)(t,i)}deserialize(t,i){return(0,fX.deserializeAws_restJson1CreateTokenCommand)(t,i)}};r(Gm,"CreateTokenCommand");NT.CreateTokenCommand=Gm});var AD=h(DT=>{"use strict";Object.defineProperty(DT,"__esModule",{value:!0});DT.RegisterClientCommand=void 0;var lut=b(),dut=C(),uut=E(),gX=jm(),wX=FT(),Vm=class extends uut.Command{constructor(t){super(),this.input=t}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,i,s){this.middlewareStack.use((0,dut.getSerdePlugin)(i,this.serialize,this.deserialize)),this.middlewareStack.use((0,lut.getEndpointPlugin)(i,Vm.getEndpointParameterInstructions()));let n=t.concat(this.middlewareStack),{logger:o}=i,l={logger:o,clientName:"SSOOIDCClient",commandName:"RegisterClientCommand",inputFilterSensitiveLog:gX.RegisterClientRequestFilterSensitiveLog,outputFilterSensitiveLog:gX.RegisterClientResponseFilterSensitiveLog},{requestHandler:u}=i;return n.resolve(m=>u.handle(m.request,s||{}),l)}serialize(t,i){return(0,wX.serializeAws_restJson1RegisterClientCommand)(t,i)}deserialize(t,i){return(0,wX.deserializeAws_restJson1RegisterClientCommand)(t,i)}};r(Vm,"RegisterClientCommand");DT.RegisterClientCommand=Vm});var bD=h(kT=>{"use strict";Object.defineProperty(kT,"__esModule",{value:!0});kT.StartDeviceAuthorizationCommand=void 0;var mut=b(),put=C(),hut=E(),_X=jm(),yX=FT(),Bm=class extends hut.Command{constructor(t){super(),this.input=t}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,i,s){this.middlewareStack.use((0,put.getSerdePlugin)(i,this.serialize,this.deserialize)),this.middlewareStack.use((0,mut.getEndpointPlugin)(i,Bm.getEndpointParameterInstructions()));let n=t.concat(this.middlewareStack),{logger:o}=i,l={logger:o,clientName:"SSOOIDCClient",commandName:"StartDeviceAuthorizationCommand",inputFilterSensitiveLog:_X.StartDeviceAuthorizationRequestFilterSensitiveLog,outputFilterSensitiveLog:_X.StartDeviceAuthorizationResponseFilterSensitiveLog},{requestHandler:u}=i;return n.resolve(m=>u.handle(m.request,s||{}),l)}serialize(t,i){return(0,yX.serializeAws_restJson1StartDeviceAuthorizationCommand)(t,i)}deserialize(t,i){return(0,yX.deserializeAws_restJson1StartDeviceAuthorizationCommand)(t,i)}};r(Bm,"StartDeviceAuthorizationCommand");kT.StartDeviceAuthorizationCommand=Bm});var SX=h(JT=>{"use strict";Object.defineProperty(JT,"__esModule",{value:!0});JT.resolveClientEndpointParameters=void 0;var fut=r(e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"awsssooidc"}),"resolveClientEndpointParameters");JT.resolveClientEndpointParameters=fut});var vX=h((hHt,gut)=>{gut.exports={name:"@aws-sdk/client-sso-oidc",description:"AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",version:"3.279.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","generate:client":"node ../../scripts/generate-clients/single-service --solo sso-oidc"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/config-resolver":"3.272.0","@aws-sdk/fetch-http-handler":"3.272.0","@aws-sdk/hash-node":"3.272.0","@aws-sdk/invalid-dependency":"3.272.0","@aws-sdk/middleware-content-length":"3.272.0","@aws-sdk/middleware-endpoint":"3.272.0","@aws-sdk/middleware-host-header":"3.278.0","@aws-sdk/middleware-logger":"3.272.0","@aws-sdk/middleware-recursion-detection":"3.272.0","@aws-sdk/middleware-retry":"3.272.0","@aws-sdk/middleware-serde":"3.272.0","@aws-sdk/middleware-stack":"3.272.0","@aws-sdk/middleware-user-agent":"3.272.0","@aws-sdk/node-config-provider":"3.272.0","@aws-sdk/node-http-handler":"3.272.0","@aws-sdk/protocol-http":"3.272.0","@aws-sdk/smithy-client":"3.279.0","@aws-sdk/types":"3.272.0","@aws-sdk/url-parser":"3.272.0","@aws-sdk/util-base64":"3.208.0","@aws-sdk/util-body-length-browser":"3.188.0","@aws-sdk/util-body-length-node":"3.208.0","@aws-sdk/util-defaults-mode-browser":"3.279.0","@aws-sdk/util-defaults-mode-node":"3.279.0","@aws-sdk/util-endpoints":"3.272.0","@aws-sdk/util-retry":"3.272.0","@aws-sdk/util-user-agent-browser":"3.272.0","@aws-sdk/util-user-agent-node":"3.272.0","@aws-sdk/util-utf8":"3.254.0",tslib:"^2.3.1"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.208.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.19.2",typescript:"~4.6.2"},overrides:{typedoc:{typescript:"~4.6.2"}},engines:{node:">=14.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso-oidc",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso-oidc"}}});var zX=h(MT=>{"use strict";Object.defineProperty(MT,"__esModule",{value:!0});MT.ruleSet=void 0;var IX="required",Qs="fn",Xs="argv",$m="ref",CD="PartitionResult",Ss="tree",sf="error",nf="endpoint",EX={[IX]:!1,type:"String"},AX={[IX]:!0,default:!1,type:"Boolean"},RX={[$m]:"Endpoint"},qX={[Qs]:"booleanEquals",[Xs]:[{[$m]:"UseFIPS"},!0]},LX={[Qs]:"booleanEquals",[Xs]:[{[$m]:"UseDualStack"},!0]},vs={},bX={[Qs]:"booleanEquals",[Xs]:[!0,{[Qs]:"getAttr",[Xs]:[{[$m]:CD},"supportsFIPS"]}]},CX={[Qs]:"booleanEquals",[Xs]:[!0,{[Qs]:"getAttr",[Xs]:[{[$m]:CD},"supportsDualStack"]}]},TX=[RX],xX=[qX],PX=[LX],wut={version:"1.0",parameters:{Region:EX,UseDualStack:AX,UseFIPS:AX,Endpoint:EX},rules:[{conditions:[{[Qs]:"aws.partition",[Xs]:[{[$m]:"Region"}],assign:CD}],type:Ss,rules:[{conditions:[{[Qs]:"isSet",[Xs]:TX},{[Qs]:"parseURL",[Xs]:TX,assign:"url"}],type:Ss,rules:[{conditions:xX,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:sf},{type:Ss,rules:[{conditions:PX,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:sf},{endpoint:{url:RX,properties:vs,headers:vs},type:nf}]}]},{conditions:[qX,LX],type:Ss,rules:[{conditions:[bX,CX],type:Ss,rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:vs,headers:vs},type:nf}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:sf}]},{conditions:xX,type:Ss,rules:[{conditions:[bX],type:Ss,rules:[{type:Ss,rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:vs,headers:vs},type:nf}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:sf}]},{conditions:PX,type:Ss,rules:[{conditions:[CX],type:Ss,rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:vs,headers:vs},type:nf}]},{error:"DualStack is enabled but this partition does not support DualStack",type:sf}]},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:vs,headers:vs},type:nf}]}]};MT.ruleSet=wut});var FX=h(UT=>{"use strict";Object.defineProperty(UT,"__esModule",{value:!0});UT.defaultEndpointResolver=void 0;var _ut=Wh(),yut=zX(),Sut=r((e,t={})=>(0,_ut.resolveEndpoint)(yut.ruleSet,{endpointParams:e,logger:t.logger}),"defaultEndpointResolver");UT.defaultEndpointResolver=Sut});var kX=h(OT=>{"use strict";Object.defineProperty(OT,"__esModule",{value:!0});OT.getRuntimeConfig=void 0;var vut=E(),Eut=Er(),NX=Dh(),DX=js(),Aut=FX(),but=r(e=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??NX.fromBase64,base64Encoder:e?.base64Encoder??NX.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Aut.defaultEndpointResolver,logger:e?.logger??new vut.NoOpLogger,serviceId:e?.serviceId??"SSO OIDC",urlParser:e?.urlParser??Eut.parseUrl,utf8Decoder:e?.utf8Decoder??DX.fromUtf8,utf8Encoder:e?.utf8Encoder??DX.toUtf8}),"getRuntimeConfig");OT.getRuntimeConfig=but});var UX=h(GT=>{"use strict";Object.defineProperty(GT,"__esModule",{value:!0});GT.getRuntimeConfig=void 0;var Cut=(se(),te(ie)),Tut=Cut.__importDefault(vX()),jT=Xi(),xut=bh(),JX=Os(),rf=Un(),MX=Th(),Put=xh(),Iut=vi(),Rut=Nh(),qut=kX(),Lut=E(),zut=Qh(),Fut=E(),Nut=r(e=>{(0,Fut.emitWarningIfUnsupportedVersion)(process.version);let t=(0,zut.resolveDefaultsModeConfig)(e),i=r(()=>t().then(Lut.loadConfigsForDefaultMode),"defaultConfigProvider"),s=(0,qut.getRuntimeConfig)(e);return{...s,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Put.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,Rut.defaultUserAgent)({serviceId:s.serviceId,clientVersion:Tut.default.version}),maxAttempts:e?.maxAttempts??(0,rf.loadConfig)(JX.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:e?.region??(0,rf.loadConfig)(jT.NODE_REGION_CONFIG_OPTIONS,jT.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new MX.NodeHttpHandler(i),retryMode:e?.retryMode??(0,rf.loadConfig)({...JX.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await i()).retryMode||Iut.DEFAULT_RETRY_MODE}),sha256:e?.sha256??xut.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??MX.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,rf.loadConfig)(jT.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,rf.loadConfig)(jT.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}},"getRuntimeConfig");GT.getRuntimeConfig=Nut});var TD=h(BT=>{"use strict";Object.defineProperty(BT,"__esModule",{value:!0});BT.SSOOIDCClient=void 0;var Dut=Xi(),kut=oh(),Jut=b(),OX=ah(),Mut=ch(),Uut=lh(),jX=Os(),GX=fh(),Out=E(),jut=SX(),Gut=UX(),VT=class extends Out.Client{constructor(t){let i=(0,Gut.getRuntimeConfig)(t),s=(0,jut.resolveClientEndpointParameters)(i),n=(0,Dut.resolveRegionConfig)(s),o=(0,Jut.resolveEndpointConfig)(n),c=(0,jX.resolveRetryConfig)(o),d=(0,OX.resolveHostHeaderConfig)(c),l=(0,GX.resolveUserAgentConfig)(d);super(l),this.config=l,this.middlewareStack.use((0,jX.getRetryPlugin)(this.config)),this.middlewareStack.use((0,kut.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,OX.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Mut.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,Uut.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,GX.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};r(VT,"SSOOIDCClient");BT.SSOOIDCClient=VT});var VX=h(HT=>{"use strict";Object.defineProperty(HT,"__esModule",{value:!0});HT.SSOOIDC=void 0;var Vut=ED(),But=AD(),$ut=bD(),Hut=TD(),$T=class extends Hut.SSOOIDCClient{createToken(t,i,s){let n=new Vut.CreateTokenCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}registerClient(t,i,s){let n=new But.RegisterClientCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}startDeviceAuthorization(t,i,s){let n=new $ut.StartDeviceAuthorizationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}};r($T,"SSOOIDC");HT.SSOOIDC=$T});var BX=h(of=>{"use strict";Object.defineProperty(of,"__esModule",{value:!0});var xD=(se(),te(ie));xD.__exportStar(ED(),of);xD.__exportStar(AD(),of);xD.__exportStar(bD(),of)});var $X=h(PD=>{"use strict";Object.defineProperty(PD,"__esModule",{value:!0});var Wut=(se(),te(ie));Wut.__exportStar(jm(),PD)});var ID=h(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.SSOOIDCServiceException=void 0;var WT=(se(),te(ie));WT.__exportStar(VX(),Xn);WT.__exportStar(TD(),Xn);WT.__exportStar(BX(),Xn);WT.__exportStar($X(),Xn);var Kut=LT();Object.defineProperty(Xn,"SSOOIDCServiceException",{enumerable:!0,get:function(){return Kut.SSOOIDCServiceException}})});var HX=h(KT=>{"use strict";Object.defineProperty(KT,"__esModule",{value:!0});KT.getSsoOidcClient=void 0;var Yut=ID(),RD={},Qut=r(e=>{if(RD[e])return RD[e];let t=new Yut.SSOOIDCClient({region:e});return RD[e]=t,t},"getSsoOidcClient");KT.getSsoOidcClient=Qut});var WX=h(YT=>{"use strict";Object.defineProperty(YT,"__esModule",{value:!0});YT.getNewSsoOidcToken=void 0;var Xut=ID(),Zut=HX(),emt=r((e,t)=>(0,Zut.getSsoOidcClient)(t).send(new Xut.CreateTokenCommand({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"})),"getNewSsoOidcToken");YT.getNewSsoOidcToken=emt});var KX=h(QT=>{"use strict";Object.defineProperty(QT,"__esModule",{value:!0});QT.validateTokenExpiry=void 0;var tmt=Ve(),imt=RT(),smt=r(e=>{if(e.expiration&&e.expiration.getTime()<Date.now())throw new tmt.TokenProviderError(`Token is expired. ${imt.REFRESH_MESSAGE}`,!1)},"validateTokenExpiry");QT.validateTokenExpiry=smt});var YX=h(XT=>{"use strict";Object.defineProperty(XT,"__esModule",{value:!0});XT.validateTokenKey=void 0;var nmt=Ve(),rmt=RT(),omt=r((e,t,i=!1)=>{if(typeof t>"u")throw new nmt.TokenProviderError(`Value not present for '${e}' in SSO Token${i?". Cannot refresh":""}. ${rmt.REFRESH_MESSAGE}`,!1)},"validateTokenKey");XT.validateTokenKey=omt});var QX=h(ZT=>{"use strict";Object.defineProperty(ZT,"__esModule",{value:!0});ZT.writeSSOTokenToFile=void 0;var amt=as(),cmt=$("fs"),{writeFile:lmt}=cmt.promises,dmt=r((e,t)=>{let i=(0,amt.getSSOTokenFilepath)(e),s=JSON.stringify(t,null,2);return lmt(i,s)},"writeSSOTokenToFile");ZT.writeSSOTokenToFile=dmt});var qD=h(tx=>{"use strict";Object.defineProperty(tx,"__esModule",{value:!0});tx.fromSso=void 0;var af=Ve(),ex=as(),XX=RT(),umt=WX(),ZX=KX(),jr=YX(),mmt=QX(),eZ=new Date(0),pmt=r((e={})=>async()=>{let t=await(0,ex.parseKnownFiles)(e),i=(0,ex.getProfileName)(e),s=t[i];if(s){if(!s.sso_session)throw new af.TokenProviderError(`Profile '${i}' is missing required property 'sso_session'.`)}else throw new af.TokenProviderError(`Profile '${i}' could not be found in shared credentials file.`,!1);let n=s.sso_session,c=(await(0,ex.loadSsoSessionData)(e))[n];if(!c)throw new af.TokenProviderError(`Sso session '${n}' could not be found in shared credentials file.`,!1);for(let S of["sso_start_url","sso_region"])if(!c[S])throw new af.TokenProviderError(`Sso session '${n}' is missing required property '${S}'.`,!1);let d=c.sso_start_url,l=c.sso_region,u;try{u=await(0,ex.getSSOTokenFromFile)(n)}catch{throw new af.TokenProviderError(`The SSO session token associated with profile=${i} was not found or is invalid. ${XX.REFRESH_MESSAGE}`,!1)}(0,jr.validateTokenKey)("accessToken",u.accessToken),(0,jr.validateTokenKey)("expiresAt",u.expiresAt);let{accessToken:m,expiresAt:w}=u,_={token:m,expiration:new Date(w)};if(_.expiration.getTime()-Date.now()>XX.EXPIRE_WINDOW_MS)return _;if(Date.now()-eZ.getTime()<30*1e3)return(0,ZX.validateTokenExpiry)(_),_;(0,jr.validateTokenKey)("clientId",u.clientId,!0),(0,jr.validateTokenKey)("clientSecret",u.clientSecret,!0),(0,jr.validateTokenKey)("refreshToken",u.refreshToken,!0);try{eZ.setTime(Date.now());let S=await(0,umt.getNewSsoOidcToken)(u,l);(0,jr.validateTokenKey)("accessToken",S.accessToken),(0,jr.validateTokenKey)("expiresIn",S.expiresIn);let N=new Date(Date.now()+S.expiresIn*1e3);try{await(0,mmt.writeSSOTokenToFile)(n,{...u,accessToken:S.accessToken,expiresAt:N.toISOString(),refreshToken:S.refreshToken})}catch{}return{token:S.accessToken,expiration:N}}catch{return(0,ZX.validateTokenExpiry)(_),_}},"fromSso");tx.fromSso=pmt});var tZ=h(ix=>{"use strict";Object.defineProperty(ix,"__esModule",{value:!0});ix.fromStatic=void 0;var hmt=Ve(),fmt=r(({token:e})=>async()=>{if(!e||!e.token)throw new hmt.TokenProviderError("Please pass a valid token to fromStatic",!1);return e},"fromStatic");ix.fromStatic=fmt});var iZ=h(sx=>{"use strict";Object.defineProperty(sx,"__esModule",{value:!0});sx.nodeProvider=void 0;var LD=Ve(),gmt=qD(),wmt=r((e={})=>(0,LD.memoize)((0,LD.chain)((0,gmt.fromSso)(e),async()=>{throw new LD.TokenProviderError("Could not load token from any providers",!1)}),t=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5,t=>t.expiration!==void 0),"nodeProvider");sx.nodeProvider=wmt});var sZ=h(cf=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});var zD=(se(),te(ie));zD.__exportStar(qD(),cf);zD.__exportStar(tZ(),cf);zD.__exportStar(iZ(),cf)});var rZ=h(nx=>{"use strict";Object.defineProperty(nx,"__esModule",{value:!0});nx.resolveSSOCredentials=void 0;var nZ=cX(),lf=Ve(),_mt=as(),ymt=sZ(),Smt=15*60*1e3,df=!1,vmt=r(async({ssoStartUrl:e,ssoSession:t,ssoAccountId:i,ssoRegion:s,ssoRoleName:n,ssoClient:o,profile:c})=>{let d,l="To refresh this SSO session run aws sso login with the corresponding profile.";if(t)try{let U=await(0,ymt.fromSso)({profile:c})();d={accessToken:U.token,expiresAt:new Date(U.expiration).toISOString()}}catch(U){throw new lf.CredentialsProviderError(U.message,df)}else try{d=await(0,_mt.getSSOTokenFromFile)(e)}catch{throw new lf.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${l}`,df)}if(new Date(d.expiresAt).getTime()-Date.now()<=Smt)throw new lf.CredentialsProviderError(`The SSO session associated with this profile has expired. ${l}`,df);let{accessToken:u}=d,m=o||new nZ.SSOClient({region:s}),w;try{w=await m.send(new nZ.GetRoleCredentialsCommand({accountId:i,roleName:n,accessToken:u}))}catch(U){throw lf.CredentialsProviderError.from(U,df)}let{roleCredentials:{accessKeyId:_,secretAccessKey:S,sessionToken:N,expiration:k}={}}=w;if(!_||!S||!N||!k)throw new lf.CredentialsProviderError("SSO returns an invalid temporary credential.",df);return{accessKeyId:_,secretAccessKey:S,sessionToken:N,expiration:new Date(k)}},"resolveSSOCredentials");nx.resolveSSOCredentials=vmt});var FD=h(rx=>{"use strict";Object.defineProperty(rx,"__esModule",{value:!0});rx.validateSsoProfile=void 0;var Emt=Ve(),Amt=r(e=>{let{sso_start_url:t,sso_account_id:i,sso_region:s,sso_role_name:n}=e;if(!t||!i||!s||!n)throw new Emt.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}
58
- Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,!1);return e},"validateSsoProfile");rx.validateSsoProfile=Amt});var aZ=h(ox=>{"use strict";Object.defineProperty(ox,"__esModule",{value:!0});ox.fromSSO=void 0;var uf=Ve(),ND=as(),bmt=SN(),oZ=rZ(),Cmt=FD(),Tmt=r((e={})=>async()=>{let{ssoStartUrl:t,ssoAccountId:i,ssoRegion:s,ssoRoleName:n,ssoClient:o,ssoSession:c}=e,d=(0,ND.getProfileName)(e);if(!t&&!i&&!s&&!n&&!c){let u=(await(0,ND.parseKnownFiles)(e))[d];if(!u)throw new uf.CredentialsProviderError(`Profile ${d} was not found.`);if(!(0,bmt.isSsoProfile)(u))throw new uf.CredentialsProviderError(`Profile ${d} is not configured with SSO credentials.`);if(u?.sso_session){let U=(await(0,ND.loadSsoSessionData)(e))[u.sso_session],J=` configurations in profile ${d} and sso-session ${u.sso_session}`;if(s&&s!==U.sso_region)throw new uf.CredentialsProviderError("Conflicting SSO region"+J,!1);if(t&&t!==U.sso_start_url)throw new uf.CredentialsProviderError("Conflicting SSO start_url"+J,!1);u.sso_region=U.sso_region,u.sso_start_url=U.sso_start_url}let{sso_start_url:m,sso_account_id:w,sso_region:_,sso_role_name:S,sso_session:N}=(0,Cmt.validateSsoProfile)(u);return(0,oZ.resolveSSOCredentials)({ssoStartUrl:m,ssoSession:N,ssoAccountId:w,ssoRegion:_,ssoRoleName:S,ssoClient:o,profile:d})}else{if(!t||!i||!s||!n)throw new uf.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');return(0,oZ.resolveSSOCredentials)({ssoStartUrl:t,ssoSession:c,ssoAccountId:i,ssoRegion:s,ssoRoleName:n,ssoClient:o,profile:d})}},"fromSSO");ox.fromSSO=Tmt});var lZ=h(cZ=>{"use strict";Object.defineProperty(cZ,"__esModule",{value:!0})});var cx=h(Hm=>{"use strict";Object.defineProperty(Hm,"__esModule",{value:!0});var ax=(se(),te(ie));ax.__exportStar(aZ(),Hm);ax.__exportStar(SN(),Hm);ax.__exportStar(lZ(),Hm);ax.__exportStar(FD(),Hm)});var uZ=h(Wm=>{"use strict";Object.defineProperty(Wm,"__esModule",{value:!0});Wm.resolveSsoCredentials=Wm.isSsoProfile=void 0;var dZ=cx(),xmt=cx();Object.defineProperty(Wm,"isSsoProfile",{enumerable:!0,get:function(){return xmt.isSsoProfile}});var Pmt=r(e=>{let{sso_start_url:t,sso_account_id:i,sso_session:s,sso_region:n,sso_role_name:o}=(0,dZ.validateSsoProfile)(e);return(0,dZ.fromSSO)({ssoStartUrl:t,ssoAccountId:i,ssoSession:s,ssoRegion:n,ssoRoleName:o})()},"resolveSsoCredentials");Wm.resolveSsoCredentials=Pmt});var mZ=h(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0});Km.resolveStaticCredentials=Km.isStaticCredsProfile=void 0;var Imt=r(e=>Boolean(e)&&typeof e=="object"&&typeof e.aws_access_key_id=="string"&&typeof e.aws_secret_access_key=="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1,"isStaticCredsProfile");Km.isStaticCredsProfile=Imt;var Rmt=r(e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token}),"resolveStaticCredentials");Km.resolveStaticCredentials=Rmt});var DD=h(lx=>{"use strict";Object.defineProperty(lx,"__esModule",{value:!0});lx.fromWebToken=void 0;var qmt=Ve(),Lmt=r(e=>()=>{let{roleArn:t,roleSessionName:i,webIdentityToken:s,providerId:n,policyArns:o,policy:c,durationSeconds:d,roleAssumerWithWebIdentity:l}=e;if(!l)throw new qmt.CredentialsProviderError(`Role Arn '${t}' needs to be assumed with web identity, but no role assumption callback was provided.`,!1);return l({RoleArn:t,RoleSessionName:i??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:s,ProviderId:n,PolicyArns:o,Policy:c,DurationSeconds:d})},"fromWebToken");lx.fromWebToken=Lmt});var pZ=h(dx=>{"use strict";Object.defineProperty(dx,"__esModule",{value:!0});dx.fromTokenFile=void 0;var zmt=Ve(),Fmt=$("fs"),Nmt=DD(),Dmt="AWS_WEB_IDENTITY_TOKEN_FILE",kmt="AWS_ROLE_ARN",Jmt="AWS_ROLE_SESSION_NAME",Mmt=r((e={})=>async()=>Umt(e),"fromTokenFile");dx.fromTokenFile=Mmt;var Umt=r(e=>{var t,i,s;let n=(t=e?.webIdentityTokenFile)!==null&&t!==void 0?t:process.env[Dmt],o=(i=e?.roleArn)!==null&&i!==void 0?i:process.env[kmt],c=(s=e?.roleSessionName)!==null&&s!==void 0?s:process.env[Jmt];if(!n||!o)throw new zmt.CredentialsProviderError("Web identity configuration not specified");return(0,Nmt.fromWebToken)({...e,webIdentityToken:(0,Fmt.readFileSync)(n,{encoding:"ascii"}),roleArn:o,roleSessionName:c})()},"resolveTokenFile")});var kD=h(ux=>{"use strict";Object.defineProperty(ux,"__esModule",{value:!0});var hZ=(se(),te(ie));hZ.__exportStar(pZ(),ux);hZ.__exportStar(DD(),ux)});var fZ=h(Ym=>{"use strict";Object.defineProperty(Ym,"__esModule",{value:!0});Ym.resolveWebIdentityCredentials=Ym.isWebIdentityProfile=void 0;var Omt=kD(),jmt=r(e=>Boolean(e)&&typeof e=="object"&&typeof e.web_identity_token_file=="string"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1,"isWebIdentityProfile");Ym.isWebIdentityProfile=jmt;var Gmt=r(async(e,t)=>(0,Omt.fromTokenFile)({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity})(),"resolveWebIdentityCredentials");Ym.resolveWebIdentityCredentials=Gmt});var gN=h(px=>{"use strict";Object.defineProperty(px,"__esModule",{value:!0});px.resolveProfileData=void 0;var Vmt=Ve(),gZ=lY(),wZ=hY(),_Z=uZ(),mx=mZ(),yZ=fZ(),Bmt=r(async(e,t,i,s={})=>{let n=t[e];if(Object.keys(s).length>0&&(0,mx.isStaticCredsProfile)(n))return(0,mx.resolveStaticCredentials)(n);if((0,gZ.isAssumeRoleProfile)(n))return(0,gZ.resolveAssumeRoleCredentials)(e,t,i,s);if((0,mx.isStaticCredsProfile)(n))return(0,mx.resolveStaticCredentials)(n);if((0,yZ.isWebIdentityProfile)(n))return(0,yZ.resolveWebIdentityCredentials)(n,i);if((0,wZ.isProcessProfile)(n))return(0,wZ.resolveProcessCredentials)(i,e);if((0,_Z.isSsoProfile)(n))return(0,_Z.resolveSsoCredentials)(n);throw new Vmt.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)},"resolveProfileData");px.resolveProfileData=Bmt});var vZ=h(hx=>{"use strict";Object.defineProperty(hx,"__esModule",{value:!0});hx.fromIni=void 0;var SZ=as(),$mt=gN(),Hmt=r((e={})=>async()=>{let t=await(0,SZ.parseKnownFiles)(e);return(0,$mt.resolveProfileData)((0,SZ.getProfileName)(e),t,e)},"fromIni");hx.fromIni=Hmt});var EZ=h(JD=>{"use strict";Object.defineProperty(JD,"__esModule",{value:!0});var Wmt=(se(),te(ie));Wmt.__exportStar(vZ(),JD)});var AZ=h(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.remoteProvider=Gr.ENV_IMDS_DISABLED=void 0;var fx=p0(),Kmt=Ve();Gr.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";var Ymt=r(e=>process.env[fx.ENV_CMDS_RELATIVE_URI]||process.env[fx.ENV_CMDS_FULL_URI]?(0,fx.fromContainerMetadata)(e):process.env[Gr.ENV_IMDS_DISABLED]?async()=>{throw new Kmt.CredentialsProviderError("EC2 Instance Metadata Service access disabled")}:(0,fx.fromInstanceMetadata)(e),"remoteProvider");Gr.remoteProvider=Ymt});var bZ=h(gx=>{"use strict";Object.defineProperty(gx,"__esModule",{value:!0});gx.defaultProvider=void 0;var Qmt=eN(),Xmt=EZ(),Zmt=yN(),ept=cx(),tpt=kD(),MD=Ve(),ipt=as(),spt=AZ(),npt=r((e={})=>(0,MD.memoize)((0,MD.chain)(...e.profile||process.env[ipt.ENV_PROFILE]?[]:[(0,Qmt.fromEnv)()],(0,ept.fromSSO)(e),(0,Xmt.fromIni)(e),(0,Zmt.fromProcess)(e),(0,tpt.fromTokenFile)(e),(0,spt.remoteProvider)(e),async()=>{throw new MD.CredentialsProviderError("Could not load credentials from any providers",!1)}),t=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5,t=>t.expiration!==void 0),"defaultProvider");gx.defaultProvider=npt});var OD=h(UD=>{"use strict";Object.defineProperty(UD,"__esModule",{value:!0});var rpt=(se(),te(ie));rpt.__exportStar(bZ(),UD)});var BZ=h(_x=>{"use strict";Object.defineProperty(_x,"__esModule",{value:!0});_x.ruleSet=void 0;var FZ="required",ye="type",De="fn",ke="argv",Zn="ref",Vr="properties",Br="headers",CZ=!1,opt=!0,GD="PartitionResult",qi="tree",$r="booleanEquals",Tt="stringEquals",NZ="sigv4",DZ="us-east-1",kZ="sts",tt="endpoint",JZ="https://sts.{Region}.{PartitionResult#dnsSuffix}",mf="error",VD="getAttr",TZ={[FZ]:!1,[ye]:"String"},jD={[FZ]:!0,default:!1,[ye]:"Boolean"},xt={[Zn]:"Region"},MZ={[Zn]:"UseFIPS"},UZ={[Zn]:"UseDualStack"},xZ={[De]:"isSet",[ke]:[{[Zn]:"Endpoint"}]},OZ={[Zn]:"Endpoint"},Ft={url:"https://sts.amazonaws.com",[Vr]:{authSchemes:[{name:NZ,signingRegion:DZ,signingName:kZ}]},[Br]:{}},Zs={},PZ={conditions:[{[De]:Tt,[ke]:[xt,"aws-global"]}],[tt]:Ft,[ye]:tt},jZ={[De]:$r,[ke]:[MZ,!0]},GZ={[De]:$r,[ke]:[UZ,!0]},IZ={[De]:$r,[ke]:[!0,{[De]:VD,[ke]:[{[Zn]:GD},"supportsFIPS"]}]},VZ={[Zn]:GD},RZ={[De]:$r,[ke]:[!0,{[De]:VD,[ke]:[VZ,"supportsDualStack"]}]},qZ={url:JZ,[Vr]:{},[Br]:{}},apt=[OZ],LZ=[jZ],zZ=[GZ],cpt={version:"1.0",parameters:{Region:TZ,UseDualStack:jD,UseFIPS:jD,Endpoint:TZ,UseGlobalEndpoint:jD},rules:[{conditions:[{[De]:"aws.partition",[ke]:[xt],assign:GD}],[ye]:qi,rules:[{conditions:[{[De]:$r,[ke]:[{[Zn]:"UseGlobalEndpoint"},opt]},{[De]:$r,[ke]:[MZ,CZ]},{[De]:$r,[ke]:[UZ,CZ]},{[De]:"not",[ke]:[xZ]}],[ye]:qi,rules:[{conditions:[{[De]:Tt,[ke]:[xt,"ap-northeast-1"]}],endpoint:Ft,[ye]:tt},{conditions:[{[De]:Tt,[ke]:[xt,"ap-south-1"]}],endpoint:Ft,[ye]:tt},{conditions:[{[De]:Tt,[ke]:[xt,"ap-southeast-1"]}],endpoint:Ft,[ye]:tt},{conditions:[{[De]:Tt,[ke]:[xt,"ap-southeast-2"]}],endpoint:Ft,[ye]:tt},PZ,{conditions:[{[De]:Tt,[ke]:[xt,"ca-central-1"]}],endpoint:Ft,[ye]:tt},{conditions:[{[De]:Tt,[ke]:[xt,"eu-central-1"]}],endpoint:Ft,[ye]:tt},{conditions:[{[De]:Tt,[ke]:[xt,"eu-north-1"]}],endpoint:Ft,[ye]:tt},{conditions:[{[De]:Tt,[ke]:[xt,"eu-west-1"]}],endpoint:Ft,[ye]:tt},{conditions:[{[De]:Tt,[ke]:[xt,"eu-west-2"]}],endpoint:Ft,[ye]:tt},{conditions:[{[De]:Tt,[ke]:[xt,"eu-west-3"]}],endpoint:Ft,[ye]:tt},{conditions:[{[De]:Tt,[ke]:[xt,"sa-east-1"]}],endpoint:Ft,[ye]:tt},{conditions:[{[De]:Tt,[ke]:[xt,DZ]}],endpoint:Ft,[ye]:tt},{conditions:[{[De]:Tt,[ke]:[xt,"us-east-2"]}],endpoint:Ft,[ye]:tt},{conditions:[{[De]:Tt,[ke]:[xt,"us-west-1"]}],endpoint:Ft,[ye]:tt},{conditions:[{[De]:Tt,[ke]:[xt,"us-west-2"]}],endpoint:Ft,[ye]:tt},{endpoint:{url:JZ,[Vr]:{authSchemes:[{name:NZ,signingRegion:"{Region}",signingName:kZ}]},[Br]:Zs},[ye]:tt}]},{conditions:[xZ,{[De]:"parseURL",[ke]:apt,assign:"url"}],[ye]:qi,rules:[{conditions:LZ,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[ye]:mf},{[ye]:qi,rules:[{conditions:zZ,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[ye]:mf},{endpoint:{url:OZ,[Vr]:Zs,[Br]:Zs},[ye]:tt}]}]},{conditions:[jZ,GZ],[ye]:qi,rules:[{conditions:[IZ,RZ],[ye]:qi,rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[Vr]:Zs,[Br]:Zs},[ye]:tt}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[ye]:mf}]},{conditions:LZ,[ye]:qi,rules:[{conditions:[IZ],[ye]:qi,rules:[{[ye]:qi,rules:[{conditions:[{[De]:Tt,[ke]:["aws-us-gov",{[De]:VD,[ke]:[VZ,"name"]}]}],endpoint:qZ,[ye]:tt},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",[Vr]:Zs,[Br]:Zs},[ye]:tt}]}]},{error:"FIPS is enabled but this partition does not support FIPS",[ye]:mf}]},{conditions:zZ,[ye]:qi,rules:[{conditions:[RZ],[ye]:qi,rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",[Vr]:Zs,[Br]:Zs},[ye]:tt}]},{error:"DualStack is enabled but this partition does not support DualStack",[ye]:mf}]},{[ye]:qi,rules:[PZ,{endpoint:qZ,[ye]:tt}]}]}]};_x.ruleSet=cpt});var $Z=h(yx=>{"use strict";Object.defineProperty(yx,"__esModule",{value:!0});yx.defaultEndpointResolver=void 0;var lpt=Wh(),dpt=BZ(),upt=r((e,t={})=>(0,lpt.resolveEndpoint)(dpt.ruleSet,{endpointParams:e,logger:t.logger}),"defaultEndpointResolver");yx.defaultEndpointResolver=upt});var KZ=h(Sx=>{"use strict";Object.defineProperty(Sx,"__esModule",{value:!0});Sx.getRuntimeConfig=void 0;var mpt=E(),ppt=Er(),HZ=Dh(),WZ=js(),hpt=$Z(),fpt=r(e=>({apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??HZ.fromBase64,base64Encoder:e?.base64Encoder??HZ.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??hpt.defaultEndpointResolver,logger:e?.logger??new mpt.NoOpLogger,serviceId:e?.serviceId??"STS",urlParser:e?.urlParser??ppt.parseUrl,utf8Decoder:e?.utf8Decoder??WZ.fromUtf8,utf8Encoder:e?.utf8Encoder??WZ.toUtf8}),"getRuntimeConfig");Sx.getRuntimeConfig=fpt});var XZ=h(Ex=>{"use strict";Object.defineProperty(Ex,"__esModule",{value:!0});Ex.getRuntimeConfig=void 0;var gpt=(se(),te(ie)),wpt=gpt.__importDefault(v5()),_pt=XF(),vx=Xi(),ypt=OD(),Spt=bh(),YZ=Os(),pf=Un(),QZ=Th(),vpt=xh(),Ept=vi(),Apt=Nh(),bpt=KZ(),Cpt=E(),Tpt=Qh(),xpt=E(),Ppt=r(e=>{(0,xpt.emitWarningIfUnsupportedVersion)(process.version);let t=(0,Tpt.resolveDefaultsModeConfig)(e),i=r(()=>t().then(Cpt.loadConfigsForDefaultMode),"defaultConfigProvider"),s=(0,bpt.getRuntimeConfig)(e);return{...s,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??vpt.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??(0,_pt.decorateDefaultCredentialProvider)(ypt.defaultProvider),defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,Apt.defaultUserAgent)({serviceId:s.serviceId,clientVersion:wpt.default.version}),maxAttempts:e?.maxAttempts??(0,pf.loadConfig)(YZ.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:e?.region??(0,pf.loadConfig)(vx.NODE_REGION_CONFIG_OPTIONS,vx.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new QZ.NodeHttpHandler(i),retryMode:e?.retryMode??(0,pf.loadConfig)({...YZ.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await i()).retryMode||Ept.DEFAULT_RETRY_MODE}),sha256:e?.sha256??Spt.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??QZ.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,pf.loadConfig)(vx.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,pf.loadConfig)(vx.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}},"getRuntimeConfig");Ex.getRuntimeConfig=Ppt});var bx=h(Ax=>{"use strict";Object.defineProperty(Ax,"__esModule",{value:!0});Ax.STSClient=void 0;var Ipt=Xi(),Rpt=oh(),qpt=b(),ZZ=ah(),Lpt=ch(),zpt=lh(),eee=Os(),Fpt=y5(),tee=fh(),Npt=E(),Dpt=S5(),kpt=XZ(),Qm=class extends Npt.Client{constructor(t){let i=(0,kpt.getRuntimeConfig)(t),s=(0,Dpt.resolveClientEndpointParameters)(i),n=(0,Ipt.resolveRegionConfig)(s),o=(0,qpt.resolveEndpointConfig)(n),c=(0,eee.resolveRetryConfig)(o),d=(0,ZZ.resolveHostHeaderConfig)(c),l=(0,Fpt.resolveStsAuthConfig)(d,{stsClientCtor:Qm}),u=(0,tee.resolveUserAgentConfig)(l);super(u),this.config=u,this.middlewareStack.use((0,eee.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Rpt.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,ZZ.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Lpt.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,zpt.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,tee.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};r(Qm,"STSClient");Ax.STSClient=Qm});var iee=h(Tx=>{"use strict";Object.defineProperty(Tx,"__esModule",{value:!0});Tx.STS=void 0;var Jpt=Lb(),Mpt=$F(),Upt=Nb(),Opt=HF(),jpt=WF(),Gpt=KF(),Vpt=YF(),Bpt=QF(),$pt=bx(),Cx=class extends $pt.STSClient{assumeRole(t,i,s){let n=new Jpt.AssumeRoleCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}assumeRoleWithSAML(t,i,s){let n=new Mpt.AssumeRoleWithSAMLCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}assumeRoleWithWebIdentity(t,i,s){let n=new Upt.AssumeRoleWithWebIdentityCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}decodeAuthorizationMessage(t,i,s){let n=new Opt.DecodeAuthorizationMessageCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getAccessKeyInfo(t,i,s){let n=new jpt.GetAccessKeyInfoCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getCallerIdentity(t,i,s){let n=new Gpt.GetCallerIdentityCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getFederationToken(t,i,s){let n=new Vpt.GetFederationTokenCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getSessionToken(t,i,s){let n=new Bpt.GetSessionTokenCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}};r(Cx,"STS");Tx.STS=Cx});var see=h(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});var er=(se(),te(ie));er.__exportStar(Lb(),Es);er.__exportStar($F(),Es);er.__exportStar(Nb(),Es);er.__exportStar(HF(),Es);er.__exportStar(WF(),Es);er.__exportStar(KF(),Es);er.__exportStar(YF(),Es);er.__exportStar(QF(),Es)});var aee=h(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.decorateDefaultCredentialProvider=As.getDefaultRoleAssumerWithWebIdentity=As.getDefaultRoleAssumer=void 0;var nee=XF(),ree=bx(),oee=r((e,t)=>t?r(class extends e{constructor(s){super(s);for(let n of t)this.middlewareStack.use(n)}},"CustomizableSTSClient"):e,"getCustomizableStsClientCtor"),Hpt=r((e={},t)=>(0,nee.getDefaultRoleAssumer)(e,oee(ree.STSClient,t)),"getDefaultRoleAssumer");As.getDefaultRoleAssumer=Hpt;var Wpt=r((e={},t)=>(0,nee.getDefaultRoleAssumerWithWebIdentity)(e,oee(ree.STSClient,t)),"getDefaultRoleAssumerWithWebIdentity");As.getDefaultRoleAssumerWithWebIdentity=Wpt;var Kpt=r(e=>t=>e({roleAssumer:(0,As.getDefaultRoleAssumer)(t),roleAssumerWithWebIdentity:(0,As.getDefaultRoleAssumerWithWebIdentity)(t),...t}),"decorateDefaultCredentialProvider");As.decorateDefaultCredentialProvider=Kpt});var cee=h(BD=>{"use strict";Object.defineProperty(BD,"__esModule",{value:!0});var Ypt=(se(),te(ie));Ypt.__exportStar(Di(),BD)});var lee=h(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.STSServiceException=void 0;var hf=(se(),te(ie));hf.__exportStar(iee(),en);hf.__exportStar(bx(),en);hf.__exportStar(see(),en);hf.__exportStar(aee(),en);hf.__exportStar(cee(),en);var Qpt=bb();Object.defineProperty(en,"STSServiceException",{enumerable:!0,get:function(){return Qpt.STSServiceException}})});var yee=h(xx=>{"use strict";Object.defineProperty(xx,"__esModule",{value:!0});xx.ruleSet=void 0;var tr="fn",ir="argv",Xm="ref",Xpt=!0,Zpt=!1,dee="String",$D="PartitionResult",bs="tree",ff="error",gf="endpoint",uee={required:!0,default:!1,type:"Boolean"},mee={[Xm]:"Endpoint"},wee={[tr]:"booleanEquals",[ir]:[{[Xm]:"UseFIPS"},!0]},_ee={[tr]:"booleanEquals",[ir]:[{[Xm]:"UseDualStack"},!0]},Cs={},pee={[tr]:"booleanEquals",[ir]:[!0,{[tr]:"getAttr",[ir]:[{[Xm]:$D},"supportsFIPS"]}]},hee={[tr]:"booleanEquals",[ir]:[!0,{[tr]:"getAttr",[ir]:[{[Xm]:$D},"supportsDualStack"]}]},fee=[wee],gee=[_ee],eht={version:"1.0",parameters:{Region:{required:Xpt,type:dee},UseDualStack:uee,UseFIPS:uee,Endpoint:{required:Zpt,type:dee}},rules:[{conditions:[{[tr]:"aws.partition",[ir]:[{[Xm]:"Region"}],assign:$D}],type:bs,rules:[{conditions:[{[tr]:"isSet",[ir]:[mee]}],type:bs,rules:[{conditions:fee,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:ff},{type:bs,rules:[{conditions:gee,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:ff},{endpoint:{url:mee,properties:Cs,headers:Cs},type:gf}]}]},{conditions:[wee,_ee],type:bs,rules:[{conditions:[pee,hee],type:bs,rules:[{endpoint:{url:"https://iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Cs,headers:Cs},type:gf}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:ff}]},{conditions:fee,type:bs,rules:[{conditions:[pee],type:bs,rules:[{type:bs,rules:[{endpoint:{url:"https://iot-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Cs,headers:Cs},type:gf}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:ff}]},{conditions:gee,type:bs,rules:[{conditions:[hee],type:bs,rules:[{endpoint:{url:"https://iot.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Cs,headers:Cs},type:gf}]},{error:"DualStack is enabled but this partition does not support DualStack",type:ff}]},{endpoint:{url:"https://iot.{Region}.{PartitionResult#dnsSuffix}",properties:Cs,headers:Cs},type:gf}]}]};xx.ruleSet=eht});var See=h(Px=>{"use strict";Object.defineProperty(Px,"__esModule",{value:!0});Px.defaultEndpointResolver=void 0;var tht=Wh(),iht=yee(),sht=r((e,t={})=>(0,tht.resolveEndpoint)(iht.ruleSet,{endpointParams:e,logger:t.logger}),"defaultEndpointResolver");Px.defaultEndpointResolver=sht});var Aee=h(Ix=>{"use strict";Object.defineProperty(Ix,"__esModule",{value:!0});Ix.getRuntimeConfig=void 0;var nht=E(),rht=Er(),vee=Dh(),Eee=js(),oht=See(),aht=r(e=>({apiVersion:"2015-05-28",base64Decoder:e?.base64Decoder??vee.fromBase64,base64Encoder:e?.base64Encoder??vee.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??oht.defaultEndpointResolver,logger:e?.logger??new nht.NoOpLogger,serviceId:e?.serviceId??"IoT",urlParser:e?.urlParser??rht.parseUrl,utf8Decoder:e?.utf8Decoder??Eee.fromUtf8,utf8Encoder:e?.utf8Encoder??Eee.toUtf8}),"getRuntimeConfig");Ix.getRuntimeConfig=aht});var Tee=h(qx=>{"use strict";Object.defineProperty(qx,"__esModule",{value:!0});qx.getRuntimeConfig=void 0;var cht=(se(),te(ie)),lht=cht.__importDefault(EK()),dht=lee(),Rx=Xi(),uht=OD(),mht=bh(),bee=Os(),wf=Un(),Cee=Th(),pht=xh(),hht=vi(),fht=Nh(),ght=Aee(),wht=E(),_ht=Qh(),yht=E(),Sht=r(e=>{(0,yht.emitWarningIfUnsupportedVersion)(process.version);let t=(0,_ht.resolveDefaultsModeConfig)(e),i=r(()=>t().then(wht.loadConfigsForDefaultMode),"defaultConfigProvider"),s=(0,ght.getRuntimeConfig)(e);return{...s,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??pht.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??(0,dht.decorateDefaultCredentialProvider)(uht.defaultProvider),defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,fht.defaultUserAgent)({serviceId:s.serviceId,clientVersion:lht.default.version}),maxAttempts:e?.maxAttempts??(0,wf.loadConfig)(bee.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:e?.region??(0,wf.loadConfig)(Rx.NODE_REGION_CONFIG_OPTIONS,Rx.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new Cee.NodeHttpHandler(i),retryMode:e?.retryMode??(0,wf.loadConfig)({...bee.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await i()).retryMode||hht.DEFAULT_RETRY_MODE}),sha256:e?.sha256??mht.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??Cee.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,wf.loadConfig)(Rx.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,wf.loadConfig)(Rx.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}},"getRuntimeConfig");qx.getRuntimeConfig=Sht});var le=h(zx=>{"use strict";Object.defineProperty(zx,"__esModule",{value:!0});zx.IoTClient=void 0;var vht=Xi(),Eht=oh(),Aht=b(),xee=ah(),bht=ch(),Cht=lh(),HD=Os(),Pee=Gs(),Iee=fh(),Tht=E(),xht=vK(),Pht=Tee(),Lx=class extends Tht.Client{constructor(t){let i=(0,Pht.getRuntimeConfig)(t),s=(0,xht.resolveClientEndpointParameters)(i),n=(0,vht.resolveRegionConfig)(s),o=(0,Aht.resolveEndpointConfig)(n),c=(0,HD.resolveRetryConfig)(o),d=(0,xee.resolveHostHeaderConfig)(c),l=(0,Pee.resolveAwsAuthConfig)(d),u=(0,Iee.resolveUserAgentConfig)(l);super(u),this.config=u,this.middlewareStack.use((0,HD.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Eht.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,xee.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,bht.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,Cht.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,Pee.getAwsAuthPlugin)(this.config)),this.middlewareStack.use((0,Iee.getUserAgentPlugin)(this.config)),this.middlewareStack.use((0,HD.getOmitRetryHeadersPlugin)(this.config))}destroy(){super.destroy()}};r(Lx,"IoTClient");zx.IoTClient=Lx});var me=h(Nx=>{"use strict";Object.defineProperty(Nx,"__esModule",{value:!0});Nx.IoT=void 0;var Iht=LR(),Rht=zR(),qht=FR(),Lht=NR(),zht=DR(),Fht=kR(),Nht=JR(),Dht=MR(),kht=UR(),Jht=OR(),Mht=jR(),Uht=GR(),Oht=VR(),jht=BR(),Ght=$R(),Vht=HR(),Bht=WR(),$ht=KR(),Hht=YR(),Wht=QR(),Kht=XR(),Yht=ZR(),Qht=eq(),Xht=tq(),Zht=iq(),eft=sq(),tft=nq(),ift=rq(),sft=oq(),nft=aq(),rft=cq(),oft=lq(),aft=dq(),cft=uq(),lft=mq(),dft=pq(),uft=hq(),mft=fq(),pft=gq(),hft=wq(),fft=_q(),gft=yq(),wft=Sq(),_ft=vq(),yft=Eq(),Sft=Aq(),vft=bq(),Eft=Cq(),Aft=Tq(),bft=xq(),Cft=Pq(),Tft=Iq(),xft=Rq(),Pft=qq(),Ift=Lq(),Rft=zq(),qft=Fq(),Lft=Nq(),zft=Dq(),Fft=kq(),Nft=Jq(),Dft=Mq(),kft=Uq(),Jft=Oq(),Mft=jq(),Uft=Gq(),Oft=Vq(),jft=Bq(),Gft=$q(),Vft=Hq(),Bft=Wq(),$ft=Kq(),Hft=Yq(),Wft=Qq(),Kft=Xq(),Yft=Zq(),Qft=eL(),Xft=tL(),Zft=iL(),egt=sL(),tgt=nL(),igt=rL(),sgt=oL(),ngt=aL(),rgt=cL(),ogt=lL(),agt=dL(),cgt=uL(),lgt=mL(),dgt=pL(),ugt=hL(),mgt=fL(),pgt=gL(),hgt=wL(),fgt=_L(),ggt=yL(),wgt=SL(),_gt=vL(),ygt=EL(),Sgt=AL(),vgt=bL(),Egt=CL(),Agt=TL(),bgt=xL(),Cgt=PL(),Tgt=IL(),xgt=RL(),Pgt=qL(),Igt=LL(),Rgt=zL(),qgt=FL(),Lgt=NL(),zgt=DL(),Fgt=kL(),Ngt=JL(),Dgt=Yy(),kgt=ML(),Jgt=UL(),Mgt=OL(),Ugt=jL(),Ogt=GL(),jgt=VL(),Ggt=BL(),Vgt=$L(),Bgt=HL(),$gt=WL(),Hgt=KL(),Wgt=YL(),Kgt=QL(),Ygt=XL(),Qgt=ZL(),Xgt=pS(),Zgt=fS(),ewt=wS(),twt=yS(),iwt=vS(),swt=AS(),nwt=CS(),rwt=xS(),owt=IS(),awt=qS(),cwt=zS(),lwt=NS(),dwt=kS(),uwt=MS(),mwt=OS(),pwt=GS(),hwt=BS(),fwt=HS(),gwt=KS(),wwt=QS(),_wt=ZS(),ywt=tv(),Swt=sv(),vwt=ez(),Ewt=ov(),Awt=cv(),bwt=dv(),Cwt=mv(),Twt=hv(),xwt=gv(),Pwt=tz(),Iwt=yv(),Rwt=vv(),qwt=Av(),Lwt=Cv(),zwt=iz(),Fwt=Pv(),Nwt=Rv(),Dwt=Lv(),kwt=Fv(),Jwt=Dv(),Mwt=Jv(),Uwt=Uv(),Owt=jv(),jwt=Vv(),Gwt=$v(),Vwt=Wv(),Bwt=Yv(),$wt=Xv(),Hwt=eE(),Wwt=iE(),Kwt=nE(),Ywt=oE(),Qwt=cE(),Xwt=dE(),Zwt=mE(),e_t=hE(),t_t=sz(),i_t=nz(),s_t=rz(),n_t=oz(),r_t=az(),o_t=cz(),a_t=lz(),c_t=dz(),l_t=uz(),d_t=mz(),u_t=pz(),m_t=hz(),p_t=fz(),h_t=gz(),f_t=wz(),g_t=_z(),w_t=yz(),__t=Sz(),y_t=vz(),S_t=Ez(),v_t=Az(),E_t=bz(),A_t=Cz(),b_t=Tz(),C_t=xz(),T_t=Pz(),x_t=Iz(),P_t=Rz(),I_t=qz(),R_t=Lz(),q_t=zz(),L_t=Fz(),z_t=Nz(),F_t=Dz(),N_t=kz(),D_t=Jz(),k_t=Mz(),J_t=Uz(),M_t=Oz(),U_t=jz(),O_t=Gz(),j_t=Vz(),G_t=Bz(),V_t=$z(),B_t=Hz(),$_t=Wz(),H_t=Kz(),W_t=Yz(),K_t=Qz(),Y_t=Xz(),Q_t=le(),Fx=class extends Q_t.IoTClient{acceptCertificateTransfer(t,i,s){let n=new Iht.AcceptCertificateTransferCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}addThingToBillingGroup(t,i,s){let n=new Rht.AddThingToBillingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}addThingToThingGroup(t,i,s){let n=new qht.AddThingToThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}associateTargetsWithJob(t,i,s){let n=new Lht.AssociateTargetsWithJobCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}attachPolicy(t,i,s){let n=new zht.AttachPolicyCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}attachPrincipalPolicy(t,i,s){let n=new Fht.AttachPrincipalPolicyCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}attachSecurityProfile(t,i,s){let n=new Nht.AttachSecurityProfileCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}attachThingPrincipal(t,i,s){let n=new Dht.AttachThingPrincipalCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}cancelAuditMitigationActionsTask(t,i,s){let n=new kht.CancelAuditMitigationActionsTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}cancelAuditTask(t,i,s){let n=new Jht.CancelAuditTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}cancelCertificateTransfer(t,i,s){let n=new Mht.CancelCertificateTransferCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}cancelDetectMitigationActionsTask(t,i,s){let n=new Uht.CancelDetectMitigationActionsTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}cancelJob(t,i,s){let n=new Oht.CancelJobCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}cancelJobExecution(t,i,s){let n=new jht.CancelJobExecutionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}clearDefaultAuthorizer(t,i,s){let n=new Ght.ClearDefaultAuthorizerCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}confirmTopicRuleDestination(t,i,s){let n=new Vht.ConfirmTopicRuleDestinationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createAuditSuppression(t,i,s){let n=new Bht.CreateAuditSuppressionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createAuthorizer(t,i,s){let n=new $ht.CreateAuthorizerCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createBillingGroup(t,i,s){let n=new Hht.CreateBillingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createCertificateFromCsr(t,i,s){let n=new Wht.CreateCertificateFromCsrCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createCustomMetric(t,i,s){let n=new Kht.CreateCustomMetricCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createDimension(t,i,s){let n=new Yht.CreateDimensionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createDomainConfiguration(t,i,s){let n=new Qht.CreateDomainConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createDynamicThingGroup(t,i,s){let n=new Xht.CreateDynamicThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createFleetMetric(t,i,s){let n=new Zht.CreateFleetMetricCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createJob(t,i,s){let n=new eft.CreateJobCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createJobTemplate(t,i,s){let n=new tft.CreateJobTemplateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createKeysAndCertificate(t,i,s){let n=new ift.CreateKeysAndCertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createMitigationAction(t,i,s){let n=new sft.CreateMitigationActionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createOTAUpdate(t,i,s){let n=new nft.CreateOTAUpdateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createPolicy(t,i,s){let n=new rft.CreatePolicyCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createPolicyVersion(t,i,s){let n=new oft.CreatePolicyVersionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createProvisioningClaim(t,i,s){let n=new aft.CreateProvisioningClaimCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createProvisioningTemplate(t,i,s){let n=new cft.CreateProvisioningTemplateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createProvisioningTemplateVersion(t,i,s){let n=new lft.CreateProvisioningTemplateVersionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createRoleAlias(t,i,s){let n=new dft.CreateRoleAliasCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createScheduledAudit(t,i,s){let n=new uft.CreateScheduledAuditCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createSecurityProfile(t,i,s){let n=new mft.CreateSecurityProfileCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createStream(t,i,s){let n=new pft.CreateStreamCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createThing(t,i,s){let n=new hft.CreateThingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createThingGroup(t,i,s){let n=new fft.CreateThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createThingType(t,i,s){let n=new gft.CreateThingTypeCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createTopicRule(t,i,s){let n=new wft.CreateTopicRuleCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createTopicRuleDestination(t,i,s){let n=new _ft.CreateTopicRuleDestinationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteAccountAuditConfiguration(t,i,s){let n=new yft.DeleteAccountAuditConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteAuditSuppression(t,i,s){let n=new Sft.DeleteAuditSuppressionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteAuthorizer(t,i,s){let n=new vft.DeleteAuthorizerCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteBillingGroup(t,i,s){let n=new Eft.DeleteBillingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteCACertificate(t,i,s){let n=new Aft.DeleteCACertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteCertificate(t,i,s){let n=new bft.DeleteCertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteCustomMetric(t,i,s){let n=new Cft.DeleteCustomMetricCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteDimension(t,i,s){let n=new Tft.DeleteDimensionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteDomainConfiguration(t,i,s){let n=new xft.DeleteDomainConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteDynamicThingGroup(t,i,s){let n=new Pft.DeleteDynamicThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteFleetMetric(t,i,s){let n=new Ift.DeleteFleetMetricCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteJob(t,i,s){let n=new Rft.DeleteJobCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteJobExecution(t,i,s){let n=new qft.DeleteJobExecutionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteJobTemplate(t,i,s){let n=new Lft.DeleteJobTemplateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteMitigationAction(t,i,s){let n=new zft.DeleteMitigationActionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteOTAUpdate(t,i,s){let n=new Fft.DeleteOTAUpdateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deletePolicy(t,i,s){let n=new Nft.DeletePolicyCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deletePolicyVersion(t,i,s){let n=new Dft.DeletePolicyVersionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteProvisioningTemplate(t,i,s){let n=new kft.DeleteProvisioningTemplateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteProvisioningTemplateVersion(t,i,s){let n=new Jft.DeleteProvisioningTemplateVersionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteRegistrationCode(t,i,s){let n=new Mft.DeleteRegistrationCodeCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteRoleAlias(t,i,s){let n=new Uft.DeleteRoleAliasCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteScheduledAudit(t,i,s){let n=new Oft.DeleteScheduledAuditCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteSecurityProfile(t,i,s){let n=new jft.DeleteSecurityProfileCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteStream(t,i,s){let n=new Gft.DeleteStreamCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteThing(t,i,s){let n=new Vft.DeleteThingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteThingGroup(t,i,s){let n=new Bft.DeleteThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteThingType(t,i,s){let n=new $ft.DeleteThingTypeCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteTopicRule(t,i,s){let n=new Hft.DeleteTopicRuleCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteTopicRuleDestination(t,i,s){let n=new Wft.DeleteTopicRuleDestinationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteV2LoggingLevel(t,i,s){let n=new Kft.DeleteV2LoggingLevelCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deprecateThingType(t,i,s){let n=new Yft.DeprecateThingTypeCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeAccountAuditConfiguration(t,i,s){let n=new Qft.DescribeAccountAuditConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeAuditFinding(t,i,s){let n=new Xft.DescribeAuditFindingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeAuditMitigationActionsTask(t,i,s){let n=new Zft.DescribeAuditMitigationActionsTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeAuditSuppression(t,i,s){let n=new egt.DescribeAuditSuppressionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeAuditTask(t,i,s){let n=new tgt.DescribeAuditTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeAuthorizer(t,i,s){let n=new igt.DescribeAuthorizerCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeBillingGroup(t,i,s){let n=new sgt.DescribeBillingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeCACertificate(t,i,s){let n=new ngt.DescribeCACertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeCertificate(t,i,s){let n=new rgt.DescribeCertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeCustomMetric(t,i,s){let n=new ogt.DescribeCustomMetricCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeDefaultAuthorizer(t,i,s){let n=new agt.DescribeDefaultAuthorizerCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeDetectMitigationActionsTask(t,i,s){let n=new cgt.DescribeDetectMitigationActionsTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeDimension(t,i,s){let n=new lgt.DescribeDimensionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeDomainConfiguration(t,i,s){let n=new dgt.DescribeDomainConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeEndpoint(t,i,s){let n=new ugt.DescribeEndpointCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeEventConfigurations(t,i,s){let n=new mgt.DescribeEventConfigurationsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeFleetMetric(t,i,s){let n=new pgt.DescribeFleetMetricCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeIndex(t,i,s){let n=new hgt.DescribeIndexCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeJob(t,i,s){let n=new fgt.DescribeJobCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeJobExecution(t,i,s){let n=new ggt.DescribeJobExecutionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeJobTemplate(t,i,s){let n=new wgt.DescribeJobTemplateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeManagedJobTemplate(t,i,s){let n=new _gt.DescribeManagedJobTemplateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeMitigationAction(t,i,s){let n=new ygt.DescribeMitigationActionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeProvisioningTemplate(t,i,s){let n=new Sgt.DescribeProvisioningTemplateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeProvisioningTemplateVersion(t,i,s){let n=new vgt.DescribeProvisioningTemplateVersionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeRoleAlias(t,i,s){let n=new Egt.DescribeRoleAliasCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeScheduledAudit(t,i,s){let n=new Agt.DescribeScheduledAuditCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeSecurityProfile(t,i,s){let n=new bgt.DescribeSecurityProfileCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeStream(t,i,s){let n=new Cgt.DescribeStreamCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeThing(t,i,s){let n=new Tgt.DescribeThingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeThingGroup(t,i,s){let n=new xgt.DescribeThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeThingRegistrationTask(t,i,s){let n=new Pgt.DescribeThingRegistrationTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeThingType(t,i,s){let n=new Igt.DescribeThingTypeCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}detachPolicy(t,i,s){let n=new Rgt.DetachPolicyCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}detachPrincipalPolicy(t,i,s){let n=new qgt.DetachPrincipalPolicyCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}detachSecurityProfile(t,i,s){let n=new Lgt.DetachSecurityProfileCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}detachThingPrincipal(t,i,s){let n=new zgt.DetachThingPrincipalCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}disableTopicRule(t,i,s){let n=new Fgt.DisableTopicRuleCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}enableTopicRule(t,i,s){let n=new Ngt.EnableTopicRuleCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getBehaviorModelTrainingSummaries(t,i,s){let n=new Dgt.GetBehaviorModelTrainingSummariesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getBucketsAggregation(t,i,s){let n=new kgt.GetBucketsAggregationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getCardinality(t,i,s){let n=new Jgt.GetCardinalityCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getEffectivePolicies(t,i,s){let n=new Mgt.GetEffectivePoliciesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getIndexingConfiguration(t,i,s){let n=new Ugt.GetIndexingConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getJobDocument(t,i,s){let n=new Ogt.GetJobDocumentCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getLoggingOptions(t,i,s){let n=new jgt.GetLoggingOptionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getOTAUpdate(t,i,s){let n=new Ggt.GetOTAUpdateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getPercentiles(t,i,s){let n=new Vgt.GetPercentilesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getPolicy(t,i,s){let n=new Bgt.GetPolicyCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getPolicyVersion(t,i,s){let n=new $gt.GetPolicyVersionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getRegistrationCode(t,i,s){let n=new Hgt.GetRegistrationCodeCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getStatistics(t,i,s){let n=new Wgt.GetStatisticsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getTopicRule(t,i,s){let n=new Kgt.GetTopicRuleCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getTopicRuleDestination(t,i,s){let n=new Ygt.GetTopicRuleDestinationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getV2LoggingOptions(t,i,s){let n=new Qgt.GetV2LoggingOptionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listActiveViolations(t,i,s){let n=new Xgt.ListActiveViolationsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listAttachedPolicies(t,i,s){let n=new Zgt.ListAttachedPoliciesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listAuditFindings(t,i,s){let n=new ewt.ListAuditFindingsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listAuditMitigationActionsExecutions(t,i,s){let n=new twt.ListAuditMitigationActionsExecutionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listAuditMitigationActionsTasks(t,i,s){let n=new iwt.ListAuditMitigationActionsTasksCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listAuditSuppressions(t,i,s){let n=new swt.ListAuditSuppressionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listAuditTasks(t,i,s){let n=new nwt.ListAuditTasksCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listAuthorizers(t,i,s){let n=new rwt.ListAuthorizersCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listBillingGroups(t,i,s){let n=new owt.ListBillingGroupsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listCACertificates(t,i,s){let n=new awt.ListCACertificatesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listCertificates(t,i,s){let n=new lwt.ListCertificatesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listCertificatesByCA(t,i,s){let n=new cwt.ListCertificatesByCACommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listCustomMetrics(t,i,s){let n=new dwt.ListCustomMetricsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listDetectMitigationActionsExecutions(t,i,s){let n=new uwt.ListDetectMitigationActionsExecutionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listDetectMitigationActionsTasks(t,i,s){let n=new mwt.ListDetectMitigationActionsTasksCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listDimensions(t,i,s){let n=new pwt.ListDimensionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listDomainConfigurations(t,i,s){let n=new hwt.ListDomainConfigurationsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listFleetMetrics(t,i,s){let n=new fwt.ListFleetMetricsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listIndices(t,i,s){let n=new gwt.ListIndicesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listJobExecutionsForJob(t,i,s){let n=new wwt.ListJobExecutionsForJobCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listJobExecutionsForThing(t,i,s){let n=new _wt.ListJobExecutionsForThingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listJobs(t,i,s){let n=new ywt.ListJobsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listJobTemplates(t,i,s){let n=new Swt.ListJobTemplatesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listManagedJobTemplates(t,i,s){let n=new vwt.ListManagedJobTemplatesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listMetricValues(t,i,s){let n=new Ewt.ListMetricValuesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listMitigationActions(t,i,s){let n=new Awt.ListMitigationActionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listOTAUpdates(t,i,s){let n=new bwt.ListOTAUpdatesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listOutgoingCertificates(t,i,s){let n=new Cwt.ListOutgoingCertificatesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listPolicies(t,i,s){let n=new Twt.ListPoliciesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listPolicyPrincipals(t,i,s){let n=new xwt.ListPolicyPrincipalsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listPolicyVersions(t,i,s){let n=new Pwt.ListPolicyVersionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listPrincipalPolicies(t,i,s){let n=new Iwt.ListPrincipalPoliciesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listPrincipalThings(t,i,s){let n=new Rwt.ListPrincipalThingsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listProvisioningTemplates(t,i,s){let n=new qwt.ListProvisioningTemplatesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listProvisioningTemplateVersions(t,i,s){let n=new Lwt.ListProvisioningTemplateVersionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listRelatedResourcesForAuditFinding(t,i,s){let n=new zwt.ListRelatedResourcesForAuditFindingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listRoleAliases(t,i,s){let n=new Fwt.ListRoleAliasesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listScheduledAudits(t,i,s){let n=new Nwt.ListScheduledAuditsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listSecurityProfiles(t,i,s){let n=new Dwt.ListSecurityProfilesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listSecurityProfilesForTarget(t,i,s){let n=new kwt.ListSecurityProfilesForTargetCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listStreams(t,i,s){let n=new Jwt.ListStreamsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listTagsForResource(t,i,s){let n=new Mwt.ListTagsForResourceCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listTargetsForPolicy(t,i,s){let n=new Uwt.ListTargetsForPolicyCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listTargetsForSecurityProfile(t,i,s){let n=new Owt.ListTargetsForSecurityProfileCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThingGroups(t,i,s){let n=new jwt.ListThingGroupsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThingGroupsForThing(t,i,s){let n=new Gwt.ListThingGroupsForThingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThingPrincipals(t,i,s){let n=new Vwt.ListThingPrincipalsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThingRegistrationTaskReports(t,i,s){let n=new Bwt.ListThingRegistrationTaskReportsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThingRegistrationTasks(t,i,s){let n=new $wt.ListThingRegistrationTasksCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThings(t,i,s){let n=new Hwt.ListThingsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThingsInBillingGroup(t,i,s){let n=new Wwt.ListThingsInBillingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThingsInThingGroup(t,i,s){let n=new Kwt.ListThingsInThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThingTypes(t,i,s){let n=new Ywt.ListThingTypesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listTopicRuleDestinations(t,i,s){let n=new Qwt.ListTopicRuleDestinationsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listTopicRules(t,i,s){let n=new Xwt.ListTopicRulesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listV2LoggingLevels(t,i,s){let n=new Zwt.ListV2LoggingLevelsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listViolationEvents(t,i,s){let n=new e_t.ListViolationEventsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}putVerificationStateOnViolation(t,i,s){let n=new t_t.PutVerificationStateOnViolationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}registerCACertificate(t,i,s){let n=new i_t.RegisterCACertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}registerCertificate(t,i,s){let n=new s_t.RegisterCertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}registerCertificateWithoutCA(t,i,s){let n=new n_t.RegisterCertificateWithoutCACommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}registerThing(t,i,s){let n=new r_t.RegisterThingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}rejectCertificateTransfer(t,i,s){let n=new o_t.RejectCertificateTransferCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}removeThingFromBillingGroup(t,i,s){let n=new a_t.RemoveThingFromBillingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}removeThingFromThingGroup(t,i,s){let n=new c_t.RemoveThingFromThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}replaceTopicRule(t,i,s){let n=new l_t.ReplaceTopicRuleCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}searchIndex(t,i,s){let n=new d_t.SearchIndexCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}setDefaultAuthorizer(t,i,s){let n=new u_t.SetDefaultAuthorizerCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}setDefaultPolicyVersion(t,i,s){let n=new m_t.SetDefaultPolicyVersionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}setLoggingOptions(t,i,s){let n=new p_t.SetLoggingOptionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}setV2LoggingLevel(t,i,s){let n=new h_t.SetV2LoggingLevelCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}setV2LoggingOptions(t,i,s){let n=new f_t.SetV2LoggingOptionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}startAuditMitigationActionsTask(t,i,s){let n=new g_t.StartAuditMitigationActionsTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}startDetectMitigationActionsTask(t,i,s){let n=new w_t.StartDetectMitigationActionsTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}startOnDemandAuditTask(t,i,s){let n=new __t.StartOnDemandAuditTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}startThingRegistrationTask(t,i,s){let n=new y_t.StartThingRegistrationTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}stopThingRegistrationTask(t,i,s){let n=new S_t.StopThingRegistrationTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}tagResource(t,i,s){let n=new v_t.TagResourceCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}testAuthorization(t,i,s){let n=new E_t.TestAuthorizationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}testInvokeAuthorizer(t,i,s){let n=new A_t.TestInvokeAuthorizerCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}transferCertificate(t,i,s){let n=new b_t.TransferCertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}untagResource(t,i,s){let n=new C_t.UntagResourceCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateAccountAuditConfiguration(t,i,s){let n=new T_t.UpdateAccountAuditConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateAuditSuppression(t,i,s){let n=new x_t.UpdateAuditSuppressionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateAuthorizer(t,i,s){let n=new P_t.UpdateAuthorizerCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateBillingGroup(t,i,s){let n=new I_t.UpdateBillingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateCACertificate(t,i,s){let n=new R_t.UpdateCACertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateCertificate(t,i,s){let n=new q_t.UpdateCertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateCustomMetric(t,i,s){let n=new L_t.UpdateCustomMetricCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateDimension(t,i,s){let n=new z_t.UpdateDimensionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateDomainConfiguration(t,i,s){let n=new F_t.UpdateDomainConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateDynamicThingGroup(t,i,s){let n=new N_t.UpdateDynamicThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateEventConfigurations(t,i,s){let n=new D_t.UpdateEventConfigurationsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateFleetMetric(t,i,s){let n=new k_t.UpdateFleetMetricCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateIndexingConfiguration(t,i,s){let n=new J_t.UpdateIndexingConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateJob(t,i,s){let n=new M_t.UpdateJobCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateMitigationAction(t,i,s){let n=new U_t.UpdateMitigationActionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateProvisioningTemplate(t,i,s){let n=new O_t.UpdateProvisioningTemplateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateRoleAlias(t,i,s){let n=new j_t.UpdateRoleAliasCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateScheduledAudit(t,i,s){let n=new G_t.UpdateScheduledAuditCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateSecurityProfile(t,i,s){let n=new V_t.UpdateSecurityProfileCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateStream(t,i,s){let n=new B_t.UpdateStreamCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateThing(t,i,s){let n=new $_t.UpdateThingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateThingGroup(t,i,s){let n=new H_t.UpdateThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateThingGroupsForThing(t,i,s){let n=new W_t.UpdateThingGroupsForThingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateTopicRuleDestination(t,i,s){let n=new K_t.UpdateTopicRuleDestinationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}validateSecurityProfileBehaviors(t,i,s){let n=new Y_t.ValidateSecurityProfileBehaviorsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}};r(Fx,"IoT");Nx.IoT=Fx});var Ree=h(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});var L=(se(),te(ie));L.__exportStar(LR(),T);L.__exportStar(zR(),T);L.__exportStar(FR(),T);L.__exportStar(NR(),T);L.__exportStar(DR(),T);L.__exportStar(kR(),T);L.__exportStar(JR(),T);L.__exportStar(MR(),T);L.__exportStar(UR(),T);L.__exportStar(OR(),T);L.__exportStar(jR(),T);L.__exportStar(GR(),T);L.__exportStar(VR(),T);L.__exportStar(BR(),T);L.__exportStar($R(),T);L.__exportStar(HR(),T);L.__exportStar(WR(),T);L.__exportStar(KR(),T);L.__exportStar(YR(),T);L.__exportStar(QR(),T);L.__exportStar(XR(),T);L.__exportStar(ZR(),T);L.__exportStar(eq(),T);L.__exportStar(tq(),T);L.__exportStar(iq(),T);L.__exportStar(sq(),T);L.__exportStar(nq(),T);L.__exportStar(rq(),T);L.__exportStar(oq(),T);L.__exportStar(aq(),T);L.__exportStar(cq(),T);L.__exportStar(lq(),T);L.__exportStar(dq(),T);L.__exportStar(uq(),T);L.__exportStar(mq(),T);L.__exportStar(pq(),T);L.__exportStar(hq(),T);L.__exportStar(fq(),T);L.__exportStar(gq(),T);L.__exportStar(wq(),T);L.__exportStar(_q(),T);L.__exportStar(yq(),T);L.__exportStar(Sq(),T);L.__exportStar(vq(),T);L.__exportStar(Eq(),T);L.__exportStar(Aq(),T);L.__exportStar(bq(),T);L.__exportStar(Cq(),T);L.__exportStar(Tq(),T);L.__exportStar(xq(),T);L.__exportStar(Pq(),T);L.__exportStar(Iq(),T);L.__exportStar(Rq(),T);L.__exportStar(qq(),T);L.__exportStar(Lq(),T);L.__exportStar(zq(),T);L.__exportStar(Fq(),T);L.__exportStar(Nq(),T);L.__exportStar(Dq(),T);L.__exportStar(kq(),T);L.__exportStar(Jq(),T);L.__exportStar(Mq(),T);L.__exportStar(Uq(),T);L.__exportStar(Oq(),T);L.__exportStar(jq(),T);L.__exportStar(Gq(),T);L.__exportStar(Vq(),T);L.__exportStar(Bq(),T);L.__exportStar($q(),T);L.__exportStar(Hq(),T);L.__exportStar(Wq(),T);L.__exportStar(Kq(),T);L.__exportStar(Yq(),T);L.__exportStar(Qq(),T);L.__exportStar(Xq(),T);L.__exportStar(Zq(),T);L.__exportStar(eL(),T);L.__exportStar(tL(),T);L.__exportStar(iL(),T);L.__exportStar(sL(),T);L.__exportStar(nL(),T);L.__exportStar(rL(),T);L.__exportStar(oL(),T);L.__exportStar(aL(),T);L.__exportStar(cL(),T);L.__exportStar(lL(),T);L.__exportStar(dL(),T);L.__exportStar(uL(),T);L.__exportStar(mL(),T);L.__exportStar(pL(),T);L.__exportStar(hL(),T);L.__exportStar(fL(),T);L.__exportStar(gL(),T);L.__exportStar(wL(),T);L.__exportStar(_L(),T);L.__exportStar(yL(),T);L.__exportStar(SL(),T);L.__exportStar(vL(),T);L.__exportStar(EL(),T);L.__exportStar(AL(),T);L.__exportStar(bL(),T);L.__exportStar(CL(),T);L.__exportStar(TL(),T);L.__exportStar(xL(),T);L.__exportStar(PL(),T);L.__exportStar(IL(),T);L.__exportStar(RL(),T);L.__exportStar(qL(),T);L.__exportStar(LL(),T);L.__exportStar(zL(),T);L.__exportStar(FL(),T);L.__exportStar(NL(),T);L.__exportStar(DL(),T);L.__exportStar(kL(),T);L.__exportStar(JL(),T);L.__exportStar(Yy(),T);L.__exportStar(ML(),T);L.__exportStar(UL(),T);L.__exportStar(OL(),T);L.__exportStar(jL(),T);L.__exportStar(GL(),T);L.__exportStar(VL(),T);L.__exportStar(BL(),T);L.__exportStar($L(),T);L.__exportStar(HL(),T);L.__exportStar(WL(),T);L.__exportStar(KL(),T);L.__exportStar(YL(),T);L.__exportStar(QL(),T);L.__exportStar(XL(),T);L.__exportStar(ZL(),T);L.__exportStar(pS(),T);L.__exportStar(fS(),T);L.__exportStar(wS(),T);L.__exportStar(yS(),T);L.__exportStar(vS(),T);L.__exportStar(AS(),T);L.__exportStar(CS(),T);L.__exportStar(xS(),T);L.__exportStar(IS(),T);L.__exportStar(qS(),T);L.__exportStar(zS(),T);L.__exportStar(NS(),T);L.__exportStar(kS(),T);L.__exportStar(MS(),T);L.__exportStar(OS(),T);L.__exportStar(GS(),T);L.__exportStar(BS(),T);L.__exportStar(HS(),T);L.__exportStar(KS(),T);L.__exportStar(QS(),T);L.__exportStar(ZS(),T);L.__exportStar(sv(),T);L.__exportStar(tv(),T);L.__exportStar(ez(),T);L.__exportStar(ov(),T);L.__exportStar(cv(),T);L.__exportStar(dv(),T);L.__exportStar(mv(),T);L.__exportStar(hv(),T);L.__exportStar(gv(),T);L.__exportStar(tz(),T);L.__exportStar(yv(),T);L.__exportStar(vv(),T);L.__exportStar(Cv(),T);L.__exportStar(Av(),T);L.__exportStar(iz(),T);L.__exportStar(Pv(),T);L.__exportStar(Rv(),T);L.__exportStar(Lv(),T);L.__exportStar(Fv(),T);L.__exportStar(Dv(),T);L.__exportStar(Jv(),T);L.__exportStar(Uv(),T);L.__exportStar(jv(),T);L.__exportStar(Vv(),T);L.__exportStar($v(),T);L.__exportStar(Wv(),T);L.__exportStar(Yv(),T);L.__exportStar(Xv(),T);L.__exportStar(oE(),T);L.__exportStar(eE(),T);L.__exportStar(iE(),T);L.__exportStar(nE(),T);L.__exportStar(cE(),T);L.__exportStar(dE(),T);L.__exportStar(mE(),T);L.__exportStar(hE(),T);L.__exportStar(sz(),T);L.__exportStar(nz(),T);L.__exportStar(rz(),T);L.__exportStar(oz(),T);L.__exportStar(az(),T);L.__exportStar(cz(),T);L.__exportStar(lz(),T);L.__exportStar(dz(),T);L.__exportStar(uz(),T);L.__exportStar(mz(),T);L.__exportStar(pz(),T);L.__exportStar(hz(),T);L.__exportStar(fz(),T);L.__exportStar(gz(),T);L.__exportStar(wz(),T);L.__exportStar(_z(),T);L.__exportStar(yz(),T);L.__exportStar(Sz(),T);L.__exportStar(vz(),T);L.__exportStar(Ez(),T);L.__exportStar(Az(),T);L.__exportStar(bz(),T);L.__exportStar(Cz(),T);L.__exportStar(Tz(),T);L.__exportStar(xz(),T);L.__exportStar(Pz(),T);L.__exportStar(Iz(),T);L.__exportStar(Rz(),T);L.__exportStar(qz(),T);L.__exportStar(Lz(),T);L.__exportStar(zz(),T);L.__exportStar(Fz(),T);L.__exportStar(Nz(),T);L.__exportStar(Dz(),T);L.__exportStar(kz(),T);L.__exportStar(Jz(),T);L.__exportStar(Mz(),T);L.__exportStar(Uz(),T);L.__exportStar(Oz(),T);L.__exportStar(jz(),T);L.__exportStar(Gz(),T);L.__exportStar(Vz(),T);L.__exportStar(Bz(),T);L.__exportStar($z(),T);L.__exportStar(Hz(),T);L.__exportStar(Wz(),T);L.__exportStar(Kz(),T);L.__exportStar(Yz(),T);L.__exportStar(Qz(),T);L.__exportStar(Xz(),T)});var qee=h(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});var WD=(se(),te(ie));WD.__exportStar(ne(),_f);WD.__exportStar(B(),_f);WD.__exportStar(Z(),_f)});var Lee=h(Dx=>{"use strict";Object.defineProperty(Dx,"__esModule",{value:!0});Dx.paginateGetBehaviorModelTrainingSummaries=void 0;var X_t=Yy(),Z_t=me(),eyt=le(),tyt=r(async(e,t,...i)=>await e.send(new X_t.GetBehaviorModelTrainingSummariesCommand(t),...i),"makePagedClientRequest"),iyt=r(async(e,t,...i)=>await e.getBehaviorModelTrainingSummaries(t,...i),"makePagedRequest");async function*syt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Z_t.IoT)o=await iyt(e.client,t,...i);else if(e.client instanceof eyt.IoTClient)o=await tyt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(syt,"paginateGetBehaviorModelTrainingSummaries");Dx.paginateGetBehaviorModelTrainingSummaries=syt});var Fee=h(zee=>{"use strict";Object.defineProperty(zee,"__esModule",{value:!0})});var Nee=h(kx=>{"use strict";Object.defineProperty(kx,"__esModule",{value:!0});kx.paginateListActiveViolations=void 0;var nyt=pS(),ryt=me(),oyt=le(),ayt=r(async(e,t,...i)=>await e.send(new nyt.ListActiveViolationsCommand(t),...i),"makePagedClientRequest"),cyt=r(async(e,t,...i)=>await e.listActiveViolations(t,...i),"makePagedRequest");async function*lyt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof ryt.IoT)o=await cyt(e.client,t,...i);else if(e.client instanceof oyt.IoTClient)o=await ayt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(lyt,"paginateListActiveViolations");kx.paginateListActiveViolations=lyt});var Dee=h(Jx=>{"use strict";Object.defineProperty(Jx,"__esModule",{value:!0});Jx.paginateListAttachedPolicies=void 0;var dyt=fS(),uyt=me(),myt=le(),pyt=r(async(e,t,...i)=>await e.send(new dyt.ListAttachedPoliciesCommand(t),...i),"makePagedClientRequest"),hyt=r(async(e,t,...i)=>await e.listAttachedPolicies(t,...i),"makePagedRequest");async function*fyt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof uyt.IoT)o=await hyt(e.client,t,...i);else if(e.client instanceof myt.IoTClient)o=await pyt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(fyt,"paginateListAttachedPolicies");Jx.paginateListAttachedPolicies=fyt});var kee=h(Mx=>{"use strict";Object.defineProperty(Mx,"__esModule",{value:!0});Mx.paginateListAuditFindings=void 0;var gyt=wS(),wyt=me(),_yt=le(),yyt=r(async(e,t,...i)=>await e.send(new gyt.ListAuditFindingsCommand(t),...i),"makePagedClientRequest"),Syt=r(async(e,t,...i)=>await e.listAuditFindings(t,...i),"makePagedRequest");async function*vyt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof wyt.IoT)o=await Syt(e.client,t,...i);else if(e.client instanceof _yt.IoTClient)o=await yyt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(vyt,"paginateListAuditFindings");Mx.paginateListAuditFindings=vyt});var Jee=h(Ux=>{"use strict";Object.defineProperty(Ux,"__esModule",{value:!0});Ux.paginateListAuditMitigationActionsExecutions=void 0;var Eyt=yS(),Ayt=me(),byt=le(),Cyt=r(async(e,t,...i)=>await e.send(new Eyt.ListAuditMitigationActionsExecutionsCommand(t),...i),"makePagedClientRequest"),Tyt=r(async(e,t,...i)=>await e.listAuditMitigationActionsExecutions(t,...i),"makePagedRequest");async function*xyt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Ayt.IoT)o=await Tyt(e.client,t,...i);else if(e.client instanceof byt.IoTClient)o=await Cyt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(xyt,"paginateListAuditMitigationActionsExecutions");Ux.paginateListAuditMitigationActionsExecutions=xyt});var Mee=h(Ox=>{"use strict";Object.defineProperty(Ox,"__esModule",{value:!0});Ox.paginateListAuditMitigationActionsTasks=void 0;var Pyt=vS(),Iyt=me(),Ryt=le(),qyt=r(async(e,t,...i)=>await e.send(new Pyt.ListAuditMitigationActionsTasksCommand(t),...i),"makePagedClientRequest"),Lyt=r(async(e,t,...i)=>await e.listAuditMitigationActionsTasks(t,...i),"makePagedRequest");async function*zyt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Iyt.IoT)o=await Lyt(e.client,t,...i);else if(e.client instanceof Ryt.IoTClient)o=await qyt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(zyt,"paginateListAuditMitigationActionsTasks");Ox.paginateListAuditMitigationActionsTasks=zyt});var Uee=h(jx=>{"use strict";Object.defineProperty(jx,"__esModule",{value:!0});jx.paginateListAuditSuppressions=void 0;var Fyt=AS(),Nyt=me(),Dyt=le(),kyt=r(async(e,t,...i)=>await e.send(new Fyt.ListAuditSuppressionsCommand(t),...i),"makePagedClientRequest"),Jyt=r(async(e,t,...i)=>await e.listAuditSuppressions(t,...i),"makePagedRequest");async function*Myt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Nyt.IoT)o=await Jyt(e.client,t,...i);else if(e.client instanceof Dyt.IoTClient)o=await kyt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Myt,"paginateListAuditSuppressions");jx.paginateListAuditSuppressions=Myt});var Oee=h(Gx=>{"use strict";Object.defineProperty(Gx,"__esModule",{value:!0});Gx.paginateListAuditTasks=void 0;var Uyt=CS(),Oyt=me(),jyt=le(),Gyt=r(async(e,t,...i)=>await e.send(new Uyt.ListAuditTasksCommand(t),...i),"makePagedClientRequest"),Vyt=r(async(e,t,...i)=>await e.listAuditTasks(t,...i),"makePagedRequest");async function*Byt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Oyt.IoT)o=await Vyt(e.client,t,...i);else if(e.client instanceof jyt.IoTClient)o=await Gyt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Byt,"paginateListAuditTasks");Gx.paginateListAuditTasks=Byt});var jee=h(Vx=>{"use strict";Object.defineProperty(Vx,"__esModule",{value:!0});Vx.paginateListAuthorizers=void 0;var $yt=xS(),Hyt=me(),Wyt=le(),Kyt=r(async(e,t,...i)=>await e.send(new $yt.ListAuthorizersCommand(t),...i),"makePagedClientRequest"),Yyt=r(async(e,t,...i)=>await e.listAuthorizers(t,...i),"makePagedRequest");async function*Qyt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof Hyt.IoT)o=await Yyt(e.client,t,...i);else if(e.client instanceof Wyt.IoTClient)o=await Kyt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Qyt,"paginateListAuthorizers");Vx.paginateListAuthorizers=Qyt});var Gee=h(Bx=>{"use strict";Object.defineProperty(Bx,"__esModule",{value:!0});Bx.paginateListBillingGroups=void 0;var Xyt=IS(),Zyt=me(),eSt=le(),tSt=r(async(e,t,...i)=>await e.send(new Xyt.ListBillingGroupsCommand(t),...i),"makePagedClientRequest"),iSt=r(async(e,t,...i)=>await e.listBillingGroups(t,...i),"makePagedRequest");async function*sSt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Zyt.IoT)o=await iSt(e.client,t,...i);else if(e.client instanceof eSt.IoTClient)o=await tSt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(sSt,"paginateListBillingGroups");Bx.paginateListBillingGroups=sSt});var Vee=h($x=>{"use strict";Object.defineProperty($x,"__esModule",{value:!0});$x.paginateListCACertificates=void 0;var nSt=qS(),rSt=me(),oSt=le(),aSt=r(async(e,t,...i)=>await e.send(new nSt.ListCACertificatesCommand(t),...i),"makePagedClientRequest"),cSt=r(async(e,t,...i)=>await e.listCACertificates(t,...i),"makePagedRequest");async function*lSt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof rSt.IoT)o=await cSt(e.client,t,...i);else if(e.client instanceof oSt.IoTClient)o=await aSt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(lSt,"paginateListCACertificates");$x.paginateListCACertificates=lSt});var Bee=h(Hx=>{"use strict";Object.defineProperty(Hx,"__esModule",{value:!0});Hx.paginateListCertificatesByCA=void 0;var dSt=zS(),uSt=me(),mSt=le(),pSt=r(async(e,t,...i)=>await e.send(new dSt.ListCertificatesByCACommand(t),...i),"makePagedClientRequest"),hSt=r(async(e,t,...i)=>await e.listCertificatesByCA(t,...i),"makePagedRequest");async function*fSt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof uSt.IoT)o=await hSt(e.client,t,...i);else if(e.client instanceof mSt.IoTClient)o=await pSt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(fSt,"paginateListCertificatesByCA");Hx.paginateListCertificatesByCA=fSt});var $ee=h(Wx=>{"use strict";Object.defineProperty(Wx,"__esModule",{value:!0});Wx.paginateListCertificates=void 0;var gSt=NS(),wSt=me(),_St=le(),ySt=r(async(e,t,...i)=>await e.send(new gSt.ListCertificatesCommand(t),...i),"makePagedClientRequest"),SSt=r(async(e,t,...i)=>await e.listCertificates(t,...i),"makePagedRequest");async function*vSt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof wSt.IoT)o=await SSt(e.client,t,...i);else if(e.client instanceof _St.IoTClient)o=await ySt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(vSt,"paginateListCertificates");Wx.paginateListCertificates=vSt});var Hee=h(Kx=>{"use strict";Object.defineProperty(Kx,"__esModule",{value:!0});Kx.paginateListCustomMetrics=void 0;var ESt=kS(),ASt=me(),bSt=le(),CSt=r(async(e,t,...i)=>await e.send(new ESt.ListCustomMetricsCommand(t),...i),"makePagedClientRequest"),TSt=r(async(e,t,...i)=>await e.listCustomMetrics(t,...i),"makePagedRequest");async function*xSt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof ASt.IoT)o=await TSt(e.client,t,...i);else if(e.client instanceof bSt.IoTClient)o=await CSt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(xSt,"paginateListCustomMetrics");Kx.paginateListCustomMetrics=xSt});var Wee=h(Yx=>{"use strict";Object.defineProperty(Yx,"__esModule",{value:!0});Yx.paginateListDetectMitigationActionsExecutions=void 0;var PSt=MS(),ISt=me(),RSt=le(),qSt=r(async(e,t,...i)=>await e.send(new PSt.ListDetectMitigationActionsExecutionsCommand(t),...i),"makePagedClientRequest"),LSt=r(async(e,t,...i)=>await e.listDetectMitigationActionsExecutions(t,...i),"makePagedRequest");async function*zSt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof ISt.IoT)o=await LSt(e.client,t,...i);else if(e.client instanceof RSt.IoTClient)o=await qSt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(zSt,"paginateListDetectMitigationActionsExecutions");Yx.paginateListDetectMitigationActionsExecutions=zSt});var Kee=h(Qx=>{"use strict";Object.defineProperty(Qx,"__esModule",{value:!0});Qx.paginateListDetectMitigationActionsTasks=void 0;var FSt=OS(),NSt=me(),DSt=le(),kSt=r(async(e,t,...i)=>await e.send(new FSt.ListDetectMitigationActionsTasksCommand(t),...i),"makePagedClientRequest"),JSt=r(async(e,t,...i)=>await e.listDetectMitigationActionsTasks(t,...i),"makePagedRequest");async function*MSt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof NSt.IoT)o=await JSt(e.client,t,...i);else if(e.client instanceof DSt.IoTClient)o=await kSt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(MSt,"paginateListDetectMitigationActionsTasks");Qx.paginateListDetectMitigationActionsTasks=MSt});var Yee=h(Xx=>{"use strict";Object.defineProperty(Xx,"__esModule",{value:!0});Xx.paginateListDimensions=void 0;var USt=GS(),OSt=me(),jSt=le(),GSt=r(async(e,t,...i)=>await e.send(new USt.ListDimensionsCommand(t),...i),"makePagedClientRequest"),VSt=r(async(e,t,...i)=>await e.listDimensions(t,...i),"makePagedRequest");async function*BSt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof OSt.IoT)o=await VSt(e.client,t,...i);else if(e.client instanceof jSt.IoTClient)o=await GSt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(BSt,"paginateListDimensions");Xx.paginateListDimensions=BSt});var Qee=h(Zx=>{"use strict";Object.defineProperty(Zx,"__esModule",{value:!0});Zx.paginateListDomainConfigurations=void 0;var $St=BS(),HSt=me(),WSt=le(),KSt=r(async(e,t,...i)=>await e.send(new $St.ListDomainConfigurationsCommand(t),...i),"makePagedClientRequest"),YSt=r(async(e,t,...i)=>await e.listDomainConfigurations(t,...i),"makePagedRequest");async function*QSt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof HSt.IoT)o=await YSt(e.client,t,...i);else if(e.client instanceof WSt.IoTClient)o=await KSt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(QSt,"paginateListDomainConfigurations");Zx.paginateListDomainConfigurations=QSt});var Xee=h(eP=>{"use strict";Object.defineProperty(eP,"__esModule",{value:!0});eP.paginateListFleetMetrics=void 0;var XSt=HS(),ZSt=me(),evt=le(),tvt=r(async(e,t,...i)=>await e.send(new XSt.ListFleetMetricsCommand(t),...i),"makePagedClientRequest"),ivt=r(async(e,t,...i)=>await e.listFleetMetrics(t,...i),"makePagedRequest");async function*svt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof ZSt.IoT)o=await ivt(e.client,t,...i);else if(e.client instanceof evt.IoTClient)o=await tvt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(svt,"paginateListFleetMetrics");eP.paginateListFleetMetrics=svt});var Zee=h(tP=>{"use strict";Object.defineProperty(tP,"__esModule",{value:!0});tP.paginateListIndices=void 0;var nvt=KS(),rvt=me(),ovt=le(),avt=r(async(e,t,...i)=>await e.send(new nvt.ListIndicesCommand(t),...i),"makePagedClientRequest"),cvt=r(async(e,t,...i)=>await e.listIndices(t,...i),"makePagedRequest");async function*lvt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof rvt.IoT)o=await cvt(e.client,t,...i);else if(e.client instanceof ovt.IoTClient)o=await avt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(lvt,"paginateListIndices");tP.paginateListIndices=lvt});var ete=h(iP=>{"use strict";Object.defineProperty(iP,"__esModule",{value:!0});iP.paginateListJobExecutionsForJob=void 0;var dvt=QS(),uvt=me(),mvt=le(),pvt=r(async(e,t,...i)=>await e.send(new dvt.ListJobExecutionsForJobCommand(t),...i),"makePagedClientRequest"),hvt=r(async(e,t,...i)=>await e.listJobExecutionsForJob(t,...i),"makePagedRequest");async function*fvt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof uvt.IoT)o=await hvt(e.client,t,...i);else if(e.client instanceof mvt.IoTClient)o=await pvt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(fvt,"paginateListJobExecutionsForJob");iP.paginateListJobExecutionsForJob=fvt});var tte=h(sP=>{"use strict";Object.defineProperty(sP,"__esModule",{value:!0});sP.paginateListJobExecutionsForThing=void 0;var gvt=ZS(),wvt=me(),_vt=le(),yvt=r(async(e,t,...i)=>await e.send(new gvt.ListJobExecutionsForThingCommand(t),...i),"makePagedClientRequest"),Svt=r(async(e,t,...i)=>await e.listJobExecutionsForThing(t,...i),"makePagedRequest");async function*vvt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof wvt.IoT)o=await Svt(e.client,t,...i);else if(e.client instanceof _vt.IoTClient)o=await yvt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(vvt,"paginateListJobExecutionsForThing");sP.paginateListJobExecutionsForThing=vvt});var ite=h(nP=>{"use strict";Object.defineProperty(nP,"__esModule",{value:!0});nP.paginateListJobTemplates=void 0;var Evt=sv(),Avt=me(),bvt=le(),Cvt=r(async(e,t,...i)=>await e.send(new Evt.ListJobTemplatesCommand(t),...i),"makePagedClientRequest"),Tvt=r(async(e,t,...i)=>await e.listJobTemplates(t,...i),"makePagedRequest");async function*xvt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Avt.IoT)o=await Tvt(e.client,t,...i);else if(e.client instanceof bvt.IoTClient)o=await Cvt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(xvt,"paginateListJobTemplates");nP.paginateListJobTemplates=xvt});var ste=h(rP=>{"use strict";Object.defineProperty(rP,"__esModule",{value:!0});rP.paginateListJobs=void 0;var Pvt=tv(),Ivt=me(),Rvt=le(),qvt=r(async(e,t,...i)=>await e.send(new Pvt.ListJobsCommand(t),...i),"makePagedClientRequest"),Lvt=r(async(e,t,...i)=>await e.listJobs(t,...i),"makePagedRequest");async function*zvt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Ivt.IoT)o=await Lvt(e.client,t,...i);else if(e.client instanceof Rvt.IoTClient)o=await qvt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(zvt,"paginateListJobs");rP.paginateListJobs=zvt});var nte=h(oP=>{"use strict";Object.defineProperty(oP,"__esModule",{value:!0});oP.paginateListMetricValues=void 0;var Fvt=ov(),Nvt=me(),Dvt=le(),kvt=r(async(e,t,...i)=>await e.send(new Fvt.ListMetricValuesCommand(t),...i),"makePagedClientRequest"),Jvt=r(async(e,t,...i)=>await e.listMetricValues(t,...i),"makePagedRequest");async function*Mvt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Nvt.IoT)o=await Jvt(e.client,t,...i);else if(e.client instanceof Dvt.IoTClient)o=await kvt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Mvt,"paginateListMetricValues");oP.paginateListMetricValues=Mvt});var rte=h(aP=>{"use strict";Object.defineProperty(aP,"__esModule",{value:!0});aP.paginateListMitigationActions=void 0;var Uvt=cv(),Ovt=me(),jvt=le(),Gvt=r(async(e,t,...i)=>await e.send(new Uvt.ListMitigationActionsCommand(t),...i),"makePagedClientRequest"),Vvt=r(async(e,t,...i)=>await e.listMitigationActions(t,...i),"makePagedRequest");async function*Bvt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Ovt.IoT)o=await Vvt(e.client,t,...i);else if(e.client instanceof jvt.IoTClient)o=await Gvt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Bvt,"paginateListMitigationActions");aP.paginateListMitigationActions=Bvt});var ote=h(cP=>{"use strict";Object.defineProperty(cP,"__esModule",{value:!0});cP.paginateListOTAUpdates=void 0;var $vt=dv(),Hvt=me(),Wvt=le(),Kvt=r(async(e,t,...i)=>await e.send(new $vt.ListOTAUpdatesCommand(t),...i),"makePagedClientRequest"),Yvt=r(async(e,t,...i)=>await e.listOTAUpdates(t,...i),"makePagedRequest");async function*Qvt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Hvt.IoT)o=await Yvt(e.client,t,...i);else if(e.client instanceof Wvt.IoTClient)o=await Kvt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Qvt,"paginateListOTAUpdates");cP.paginateListOTAUpdates=Qvt});var ate=h(lP=>{"use strict";Object.defineProperty(lP,"__esModule",{value:!0});lP.paginateListOutgoingCertificates=void 0;var Xvt=mv(),Zvt=me(),eEt=le(),tEt=r(async(e,t,...i)=>await e.send(new Xvt.ListOutgoingCertificatesCommand(t),...i),"makePagedClientRequest"),iEt=r(async(e,t,...i)=>await e.listOutgoingCertificates(t,...i),"makePagedRequest");async function*sEt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof Zvt.IoT)o=await iEt(e.client,t,...i);else if(e.client instanceof eEt.IoTClient)o=await tEt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(sEt,"paginateListOutgoingCertificates");lP.paginateListOutgoingCertificates=sEt});var cte=h(dP=>{"use strict";Object.defineProperty(dP,"__esModule",{value:!0});dP.paginateListPolicies=void 0;var nEt=hv(),rEt=me(),oEt=le(),aEt=r(async(e,t,...i)=>await e.send(new nEt.ListPoliciesCommand(t),...i),"makePagedClientRequest"),cEt=r(async(e,t,...i)=>await e.listPolicies(t,...i),"makePagedRequest");async function*lEt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof rEt.IoT)o=await cEt(e.client,t,...i);else if(e.client instanceof oEt.IoTClient)o=await aEt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(lEt,"paginateListPolicies");dP.paginateListPolicies=lEt});var lte=h(uP=>{"use strict";Object.defineProperty(uP,"__esModule",{value:!0});uP.paginateListPolicyPrincipals=void 0;var dEt=gv(),uEt=me(),mEt=le(),pEt=r(async(e,t,...i)=>await e.send(new dEt.ListPolicyPrincipalsCommand(t),...i),"makePagedClientRequest"),hEt=r(async(e,t,...i)=>await e.listPolicyPrincipals(t,...i),"makePagedRequest");async function*fEt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof uEt.IoT)o=await hEt(e.client,t,...i);else if(e.client instanceof mEt.IoTClient)o=await pEt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(fEt,"paginateListPolicyPrincipals");uP.paginateListPolicyPrincipals=fEt});var dte=h(mP=>{"use strict";Object.defineProperty(mP,"__esModule",{value:!0});mP.paginateListPrincipalPolicies=void 0;var gEt=yv(),wEt=me(),_Et=le(),yEt=r(async(e,t,...i)=>await e.send(new gEt.ListPrincipalPoliciesCommand(t),...i),"makePagedClientRequest"),SEt=r(async(e,t,...i)=>await e.listPrincipalPolicies(t,...i),"makePagedRequest");async function*vEt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof wEt.IoT)o=await SEt(e.client,t,...i);else if(e.client instanceof _Et.IoTClient)o=await yEt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(vEt,"paginateListPrincipalPolicies");mP.paginateListPrincipalPolicies=vEt});var ute=h(pP=>{"use strict";Object.defineProperty(pP,"__esModule",{value:!0});pP.paginateListPrincipalThings=void 0;var EEt=vv(),AEt=me(),bEt=le(),CEt=r(async(e,t,...i)=>await e.send(new EEt.ListPrincipalThingsCommand(t),...i),"makePagedClientRequest"),TEt=r(async(e,t,...i)=>await e.listPrincipalThings(t,...i),"makePagedRequest");async function*xEt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof AEt.IoT)o=await TEt(e.client,t,...i);else if(e.client instanceof bEt.IoTClient)o=await CEt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(xEt,"paginateListPrincipalThings");pP.paginateListPrincipalThings=xEt});var mte=h(hP=>{"use strict";Object.defineProperty(hP,"__esModule",{value:!0});hP.paginateListProvisioningTemplateVersions=void 0;var PEt=Cv(),IEt=me(),REt=le(),qEt=r(async(e,t,...i)=>await e.send(new PEt.ListProvisioningTemplateVersionsCommand(t),...i),"makePagedClientRequest"),LEt=r(async(e,t,...i)=>await e.listProvisioningTemplateVersions(t,...i),"makePagedRequest");async function*zEt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof IEt.IoT)o=await LEt(e.client,t,...i);else if(e.client instanceof REt.IoTClient)o=await qEt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(zEt,"paginateListProvisioningTemplateVersions");hP.paginateListProvisioningTemplateVersions=zEt});var pte=h(fP=>{"use strict";Object.defineProperty(fP,"__esModule",{value:!0});fP.paginateListProvisioningTemplates=void 0;var FEt=Av(),NEt=me(),DEt=le(),kEt=r(async(e,t,...i)=>await e.send(new FEt.ListProvisioningTemplatesCommand(t),...i),"makePagedClientRequest"),JEt=r(async(e,t,...i)=>await e.listProvisioningTemplates(t,...i),"makePagedRequest");async function*MEt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof NEt.IoT)o=await JEt(e.client,t,...i);else if(e.client instanceof DEt.IoTClient)o=await kEt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(MEt,"paginateListProvisioningTemplates");fP.paginateListProvisioningTemplates=MEt});var hte=h(gP=>{"use strict";Object.defineProperty(gP,"__esModule",{value:!0});gP.paginateListRoleAliases=void 0;var UEt=Pv(),OEt=me(),jEt=le(),GEt=r(async(e,t,...i)=>await e.send(new UEt.ListRoleAliasesCommand(t),...i),"makePagedClientRequest"),VEt=r(async(e,t,...i)=>await e.listRoleAliases(t,...i),"makePagedRequest");async function*BEt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof OEt.IoT)o=await VEt(e.client,t,...i);else if(e.client instanceof jEt.IoTClient)o=await GEt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(BEt,"paginateListRoleAliases");gP.paginateListRoleAliases=BEt});var fte=h(wP=>{"use strict";Object.defineProperty(wP,"__esModule",{value:!0});wP.paginateListScheduledAudits=void 0;var $Et=Rv(),HEt=me(),WEt=le(),KEt=r(async(e,t,...i)=>await e.send(new $Et.ListScheduledAuditsCommand(t),...i),"makePagedClientRequest"),YEt=r(async(e,t,...i)=>await e.listScheduledAudits(t,...i),"makePagedRequest");async function*QEt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof HEt.IoT)o=await YEt(e.client,t,...i);else if(e.client instanceof WEt.IoTClient)o=await KEt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(QEt,"paginateListScheduledAudits");wP.paginateListScheduledAudits=QEt});var gte=h(_P=>{"use strict";Object.defineProperty(_P,"__esModule",{value:!0});_P.paginateListSecurityProfilesForTarget=void 0;var XEt=Fv(),ZEt=me(),eAt=le(),tAt=r(async(e,t,...i)=>await e.send(new XEt.ListSecurityProfilesForTargetCommand(t),...i),"makePagedClientRequest"),iAt=r(async(e,t,...i)=>await e.listSecurityProfilesForTarget(t,...i),"makePagedRequest");async function*sAt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof ZEt.IoT)o=await iAt(e.client,t,...i);else if(e.client instanceof eAt.IoTClient)o=await tAt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(sAt,"paginateListSecurityProfilesForTarget");_P.paginateListSecurityProfilesForTarget=sAt});var wte=h(yP=>{"use strict";Object.defineProperty(yP,"__esModule",{value:!0});yP.paginateListSecurityProfiles=void 0;var nAt=Lv(),rAt=me(),oAt=le(),aAt=r(async(e,t,...i)=>await e.send(new nAt.ListSecurityProfilesCommand(t),...i),"makePagedClientRequest"),cAt=r(async(e,t,...i)=>await e.listSecurityProfiles(t,...i),"makePagedRequest");async function*lAt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof rAt.IoT)o=await cAt(e.client,t,...i);else if(e.client instanceof oAt.IoTClient)o=await aAt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(lAt,"paginateListSecurityProfiles");yP.paginateListSecurityProfiles=lAt});var _te=h(SP=>{"use strict";Object.defineProperty(SP,"__esModule",{value:!0});SP.paginateListStreams=void 0;var dAt=Dv(),uAt=me(),mAt=le(),pAt=r(async(e,t,...i)=>await e.send(new dAt.ListStreamsCommand(t),...i),"makePagedClientRequest"),hAt=r(async(e,t,...i)=>await e.listStreams(t,...i),"makePagedRequest");async function*fAt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof uAt.IoT)o=await hAt(e.client,t,...i);else if(e.client instanceof mAt.IoTClient)o=await pAt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(fAt,"paginateListStreams");SP.paginateListStreams=fAt});var yte=h(vP=>{"use strict";Object.defineProperty(vP,"__esModule",{value:!0});vP.paginateListTagsForResource=void 0;var gAt=Jv(),wAt=me(),_At=le(),yAt=r(async(e,t,...i)=>await e.send(new gAt.ListTagsForResourceCommand(t),...i),"makePagedClientRequest"),SAt=r(async(e,t,...i)=>await e.listTagsForResource(t,...i),"makePagedRequest");async function*vAt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,e.client instanceof wAt.IoT)o=await SAt(e.client,t,...i);else if(e.client instanceof _At.IoTClient)o=await yAt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(vAt,"paginateListTagsForResource");vP.paginateListTagsForResource=vAt});var Ste=h(EP=>{"use strict";Object.defineProperty(EP,"__esModule",{value:!0});EP.paginateListTargetsForPolicy=void 0;var EAt=Uv(),AAt=me(),bAt=le(),CAt=r(async(e,t,...i)=>await e.send(new EAt.ListTargetsForPolicyCommand(t),...i),"makePagedClientRequest"),TAt=r(async(e,t,...i)=>await e.listTargetsForPolicy(t,...i),"makePagedRequest");async function*xAt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof AAt.IoT)o=await TAt(e.client,t,...i);else if(e.client instanceof bAt.IoTClient)o=await CAt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(xAt,"paginateListTargetsForPolicy");EP.paginateListTargetsForPolicy=xAt});var vte=h(AP=>{"use strict";Object.defineProperty(AP,"__esModule",{value:!0});AP.paginateListTargetsForSecurityProfile=void 0;var PAt=jv(),IAt=me(),RAt=le(),qAt=r(async(e,t,...i)=>await e.send(new PAt.ListTargetsForSecurityProfileCommand(t),...i),"makePagedClientRequest"),LAt=r(async(e,t,...i)=>await e.listTargetsForSecurityProfile(t,...i),"makePagedRequest");async function*zAt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof IAt.IoT)o=await LAt(e.client,t,...i);else if(e.client instanceof RAt.IoTClient)o=await qAt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(zAt,"paginateListTargetsForSecurityProfile");AP.paginateListTargetsForSecurityProfile=zAt});var Ete=h(bP=>{"use strict";Object.defineProperty(bP,"__esModule",{value:!0});bP.paginateListThingGroupsForThing=void 0;var FAt=$v(),NAt=me(),DAt=le(),kAt=r(async(e,t,...i)=>await e.send(new FAt.ListThingGroupsForThingCommand(t),...i),"makePagedClientRequest"),JAt=r(async(e,t,...i)=>await e.listThingGroupsForThing(t,...i),"makePagedRequest");async function*MAt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof NAt.IoT)o=await JAt(e.client,t,...i);else if(e.client instanceof DAt.IoTClient)o=await kAt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(MAt,"paginateListThingGroupsForThing");bP.paginateListThingGroupsForThing=MAt});var Ate=h(CP=>{"use strict";Object.defineProperty(CP,"__esModule",{value:!0});CP.paginateListThingGroups=void 0;var UAt=Vv(),OAt=me(),jAt=le(),GAt=r(async(e,t,...i)=>await e.send(new UAt.ListThingGroupsCommand(t),...i),"makePagedClientRequest"),VAt=r(async(e,t,...i)=>await e.listThingGroups(t,...i),"makePagedRequest");async function*BAt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof OAt.IoT)o=await VAt(e.client,t,...i);else if(e.client instanceof jAt.IoTClient)o=await GAt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(BAt,"paginateListThingGroups");CP.paginateListThingGroups=BAt});var bte=h(TP=>{"use strict";Object.defineProperty(TP,"__esModule",{value:!0});TP.paginateListThingPrincipals=void 0;var $At=Wv(),HAt=me(),WAt=le(),KAt=r(async(e,t,...i)=>await e.send(new $At.ListThingPrincipalsCommand(t),...i),"makePagedClientRequest"),YAt=r(async(e,t,...i)=>await e.listThingPrincipals(t,...i),"makePagedRequest");async function*QAt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof HAt.IoT)o=await YAt(e.client,t,...i);else if(e.client instanceof WAt.IoTClient)o=await KAt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(QAt,"paginateListThingPrincipals");TP.paginateListThingPrincipals=QAt});var Cte=h(xP=>{"use strict";Object.defineProperty(xP,"__esModule",{value:!0});xP.paginateListThingRegistrationTaskReports=void 0;var XAt=Yv(),ZAt=me(),ebt=le(),tbt=r(async(e,t,...i)=>await e.send(new XAt.ListThingRegistrationTaskReportsCommand(t),...i),"makePagedClientRequest"),ibt=r(async(e,t,...i)=>await e.listThingRegistrationTaskReports(t,...i),"makePagedRequest");async function*sbt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof ZAt.IoT)o=await ibt(e.client,t,...i);else if(e.client instanceof ebt.IoTClient)o=await tbt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(sbt,"paginateListThingRegistrationTaskReports");xP.paginateListThingRegistrationTaskReports=sbt});var Tte=h(PP=>{"use strict";Object.defineProperty(PP,"__esModule",{value:!0});PP.paginateListThingRegistrationTasks=void 0;var nbt=Xv(),rbt=me(),obt=le(),abt=r(async(e,t,...i)=>await e.send(new nbt.ListThingRegistrationTasksCommand(t),...i),"makePagedClientRequest"),cbt=r(async(e,t,...i)=>await e.listThingRegistrationTasks(t,...i),"makePagedRequest");async function*lbt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof rbt.IoT)o=await cbt(e.client,t,...i);else if(e.client instanceof obt.IoTClient)o=await abt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(lbt,"paginateListThingRegistrationTasks");PP.paginateListThingRegistrationTasks=lbt});var xte=h(IP=>{"use strict";Object.defineProperty(IP,"__esModule",{value:!0});IP.paginateListThingTypes=void 0;var dbt=oE(),ubt=me(),mbt=le(),pbt=r(async(e,t,...i)=>await e.send(new dbt.ListThingTypesCommand(t),...i),"makePagedClientRequest"),hbt=r(async(e,t,...i)=>await e.listThingTypes(t,...i),"makePagedRequest");async function*fbt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof ubt.IoT)o=await hbt(e.client,t,...i);else if(e.client instanceof mbt.IoTClient)o=await pbt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(fbt,"paginateListThingTypes");IP.paginateListThingTypes=fbt});var Pte=h(RP=>{"use strict";Object.defineProperty(RP,"__esModule",{value:!0});RP.paginateListThingsInBillingGroup=void 0;var gbt=iE(),wbt=me(),_bt=le(),ybt=r(async(e,t,...i)=>await e.send(new gbt.ListThingsInBillingGroupCommand(t),...i),"makePagedClientRequest"),Sbt=r(async(e,t,...i)=>await e.listThingsInBillingGroup(t,...i),"makePagedRequest");async function*vbt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof wbt.IoT)o=await Sbt(e.client,t,...i);else if(e.client instanceof _bt.IoTClient)o=await ybt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(vbt,"paginateListThingsInBillingGroup");RP.paginateListThingsInBillingGroup=vbt});var Ite=h(qP=>{"use strict";Object.defineProperty(qP,"__esModule",{value:!0});qP.paginateListThingsInThingGroup=void 0;var Ebt=nE(),Abt=me(),bbt=le(),Cbt=r(async(e,t,...i)=>await e.send(new Ebt.ListThingsInThingGroupCommand(t),...i),"makePagedClientRequest"),Tbt=r(async(e,t,...i)=>await e.listThingsInThingGroup(t,...i),"makePagedRequest");async function*xbt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Abt.IoT)o=await Tbt(e.client,t,...i);else if(e.client instanceof bbt.IoTClient)o=await Cbt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(xbt,"paginateListThingsInThingGroup");qP.paginateListThingsInThingGroup=xbt});var Rte=h(LP=>{"use strict";Object.defineProperty(LP,"__esModule",{value:!0});LP.paginateListThings=void 0;var Pbt=eE(),Ibt=me(),Rbt=le(),qbt=r(async(e,t,...i)=>await e.send(new Pbt.ListThingsCommand(t),...i),"makePagedClientRequest"),Lbt=r(async(e,t,...i)=>await e.listThings(t,...i),"makePagedRequest");async function*zbt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Ibt.IoT)o=await Lbt(e.client,t,...i);else if(e.client instanceof Rbt.IoTClient)o=await qbt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(zbt,"paginateListThings");LP.paginateListThings=zbt});var qte=h(zP=>{"use strict";Object.defineProperty(zP,"__esModule",{value:!0});zP.paginateListTopicRuleDestinations=void 0;var Fbt=cE(),Nbt=me(),Dbt=le(),kbt=r(async(e,t,...i)=>await e.send(new Fbt.ListTopicRuleDestinationsCommand(t),...i),"makePagedClientRequest"),Jbt=r(async(e,t,...i)=>await e.listTopicRuleDestinations(t,...i),"makePagedRequest");async function*Mbt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Nbt.IoT)o=await Jbt(e.client,t,...i);else if(e.client instanceof Dbt.IoTClient)o=await kbt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Mbt,"paginateListTopicRuleDestinations");zP.paginateListTopicRuleDestinations=Mbt});var Lte=h(FP=>{"use strict";Object.defineProperty(FP,"__esModule",{value:!0});FP.paginateListTopicRules=void 0;var Ubt=dE(),Obt=me(),jbt=le(),Gbt=r(async(e,t,...i)=>await e.send(new Ubt.ListTopicRulesCommand(t),...i),"makePagedClientRequest"),Vbt=r(async(e,t,...i)=>await e.listTopicRules(t,...i),"makePagedRequest");async function*Bbt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Obt.IoT)o=await Vbt(e.client,t,...i);else if(e.client instanceof jbt.IoTClient)o=await Gbt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Bbt,"paginateListTopicRules");FP.paginateListTopicRules=Bbt});var zte=h(NP=>{"use strict";Object.defineProperty(NP,"__esModule",{value:!0});NP.paginateListV2LoggingLevels=void 0;var $bt=mE(),Hbt=me(),Wbt=le(),Kbt=r(async(e,t,...i)=>await e.send(new $bt.ListV2LoggingLevelsCommand(t),...i),"makePagedClientRequest"),Ybt=r(async(e,t,...i)=>await e.listV2LoggingLevels(t,...i),"makePagedRequest");async function*Qbt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Hbt.IoT)o=await Ybt(e.client,t,...i);else if(e.client instanceof Wbt.IoTClient)o=await Kbt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Qbt,"paginateListV2LoggingLevels");NP.paginateListV2LoggingLevels=Qbt});var Fte=h(DP=>{"use strict";Object.defineProperty(DP,"__esModule",{value:!0});DP.paginateListViolationEvents=void 0;var Xbt=hE(),Zbt=me(),e0t=le(),t0t=r(async(e,t,...i)=>await e.send(new Xbt.ListViolationEventsCommand(t),...i),"makePagedClientRequest"),i0t=r(async(e,t,...i)=>await e.listViolationEvents(t,...i),"makePagedRequest");async function*s0t(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Zbt.IoT)o=await i0t(e.client,t,...i);else if(e.client instanceof e0t.IoTClient)o=await t0t(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(s0t,"paginateListViolationEvents");DP.paginateListViolationEvents=s0t});var Nte=h(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});var he=(se(),te(ie));he.__exportStar(Lee(),de);he.__exportStar(Fee(),de);he.__exportStar(Nee(),de);he.__exportStar(Dee(),de);he.__exportStar(kee(),de);he.__exportStar(Jee(),de);he.__exportStar(Mee(),de);he.__exportStar(Uee(),de);he.__exportStar(Oee(),de);he.__exportStar(jee(),de);he.__exportStar(Gee(),de);he.__exportStar(Vee(),de);he.__exportStar(Bee(),de);he.__exportStar($ee(),de);he.__exportStar(Hee(),de);he.__exportStar(Wee(),de);he.__exportStar(Kee(),de);he.__exportStar(Yee(),de);he.__exportStar(Qee(),de);he.__exportStar(Xee(),de);he.__exportStar(Zee(),de);he.__exportStar(ete(),de);he.__exportStar(tte(),de);he.__exportStar(ite(),de);he.__exportStar(ste(),de);he.__exportStar(nte(),de);he.__exportStar(rte(),de);he.__exportStar(ote(),de);he.__exportStar(ate(),de);he.__exportStar(cte(),de);he.__exportStar(lte(),de);he.__exportStar(dte(),de);he.__exportStar(ute(),de);he.__exportStar(mte(),de);he.__exportStar(pte(),de);he.__exportStar(hte(),de);he.__exportStar(fte(),de);he.__exportStar(gte(),de);he.__exportStar(wte(),de);he.__exportStar(_te(),de);he.__exportStar(yte(),de);he.__exportStar(Ste(),de);he.__exportStar(vte(),de);he.__exportStar(Ete(),de);he.__exportStar(Ate(),de);he.__exportStar(bte(),de);he.__exportStar(Cte(),de);he.__exportStar(Tte(),de);he.__exportStar(xte(),de);he.__exportStar(Pte(),de);he.__exportStar(Ite(),de);he.__exportStar(Rte(),de);he.__exportStar(qte(),de);he.__exportStar(Lte(),de);he.__exportStar(zte(),de);he.__exportStar(Fte(),de)});var Dte=h(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.IoTServiceException=void 0;var yf=(se(),te(ie));yf.__exportStar(me(),tn);yf.__exportStar(le(),tn);yf.__exportStar(Ree(),tn);yf.__exportStar(qee(),tn);yf.__exportStar(Nte(),tn);var n0t=yo();Object.defineProperty(tn,"IoTServiceException",{enumerable:!0,get:function(){return n0t.IoTServiceException}})});var kte=XD(wj(),1),JP=XD(Dte(),1);import r0t from"crypto";var o0t=new JP.IoTClient({}),a0t=await o0t.send(new JP.DescribeEndpointCommand({endpointType:"iot:Data-ATS"})),c0t=a0t.endpointAddress,kP=r0t.randomBytes(16).toString("hex"),Jte=`/sst/${process.env.SST_APP}/${process.env.SST_STAGE}`,l0t={SST_DEBUG_ENDPOINT:!0,SST_DEBUG_SRC_HANDLER:!0,SST_DEBUG_SRC_PATH:!0,AWS_LAMBDA_FUNCTION_MEMORY_SIZE:!0,AWS_LAMBDA_LOG_GROUP_NAME:!0,AWS_LAMBDA_LOG_STREAM_NAME:!0,LD_LIBRARY_PATH:!0,LAMBDA_TASK_ROOT:!0,AWS_LAMBDA_RUNTIME_API:!0,AWS_EXECUTION_ENV:!0,AWS_XRAY_DAEMON_ADDRESS:!0,AWS_LAMBDA_INITIALIZATION_TYPE:!0,PATH:!0,PWD:!0,LAMBDA_RUNTIME_DIR:!0,LANG:!0,NODE_PATH:!0,TZ:!0,SHLVL:!0,_AWS_XRAY_DAEMON_ADDRESS:!0,_AWS_XRAY_DAEMON_PORT:!0,AWS_XRAY_CONTEXT_MISSING:!0,_HANDLER:!0,_LAMBDA_CONSOLE_SOCKET:!0,_LAMBDA_CONTROL_SOCKET:!0,_LAMBDA_LOG_FD:!0,_LAMBDA_RUNTIME_LOAD_TIME:!0,_LAMBDA_SB_ID:!0,_LAMBDA_SERVER_PORT:!0,_LAMBDA_SHARED_MEM_FD:!0},Mte=Object.fromEntries(Object.entries(process.env).filter(([e,t])=>l0t[e]!==!0)),Sf=new kte.default.device({protocol:"wss",debug:!0,host:c0t,region:Mte.AWS_REGION});Sf.on("error",console.log);Sf.on("connect",console.log);Sf.subscribe(`${Jte}/events/${kP}`,{qos:1});var KD=new Map,Ute;Sf.on("message",(e,t)=>{let i=JSON.parse(t.toString());console.log("Got fragment",i.id,i.index);let s=KD.get(i.id);if(s||(s=new Map,KD.set(i.id,s)),s.set(i.index,i),s.size===i.count){console.log("Got all fragments",i.id),KD.delete(i.id);let n=[...s.values()].sort((c,d)=>c.index-d.index).map(c=>c.data).join(""),o=JSON.parse(n);Ute(o)}});async function s6t(e,t){let i=await new Promise(s=>{let n=setTimeout(()=>{s({type:"function.timeout"})},5e3);Ute=r(o=>{o.type==="function.ack"&&o.properties.workerID===kP&&clearTimeout(n),["function.success","function.error"].includes(o.type)&&o.properties.workerID===kP&&(clearTimeout(n),s(o))},"onMessage");for(let o of d0t({type:"function.invoked",properties:{workerID:kP,requestID:t.awsRequestId,functionID:process.env.SST_FUNCTION_ID,deadline:t.getRemainingTimeInMillis(),event:e,context:t,env:Mte}}))Sf.publish(`${Jte}/events`,JSON.stringify(o),{qos:1},console.log)});if(console.log("Got result",i.type),i.type==="function.timeout")return{statusCode:500,body:"This function is in live debug mode but did not get a response from your machine. If you do have an `sst dev` session running, there have been reports of certain firewalls blocking communication. Please join our discord so we can work through the issue: https://sst.dev/discord"};if(i.type==="function.success")return i.properties.body;if(i.type==="function.error"){let s=new Error(i.properties.errorMessage);throw s.stack=i.properties.trace.join(`
58
+ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,!1);return e},"validateSsoProfile");rx.validateSsoProfile=Amt});var aZ=h(ox=>{"use strict";Object.defineProperty(ox,"__esModule",{value:!0});ox.fromSSO=void 0;var uf=Ve(),ND=as(),bmt=SN(),oZ=rZ(),Cmt=FD(),Tmt=r((e={})=>async()=>{let{ssoStartUrl:t,ssoAccountId:i,ssoRegion:s,ssoRoleName:n,ssoClient:o,ssoSession:c}=e,d=(0,ND.getProfileName)(e);if(!t&&!i&&!s&&!n&&!c){let u=(await(0,ND.parseKnownFiles)(e))[d];if(!u)throw new uf.CredentialsProviderError(`Profile ${d} was not found.`);if(!(0,bmt.isSsoProfile)(u))throw new uf.CredentialsProviderError(`Profile ${d} is not configured with SSO credentials.`);if(u?.sso_session){let U=(await(0,ND.loadSsoSessionData)(e))[u.sso_session],J=` configurations in profile ${d} and sso-session ${u.sso_session}`;if(s&&s!==U.sso_region)throw new uf.CredentialsProviderError("Conflicting SSO region"+J,!1);if(t&&t!==U.sso_start_url)throw new uf.CredentialsProviderError("Conflicting SSO start_url"+J,!1);u.sso_region=U.sso_region,u.sso_start_url=U.sso_start_url}let{sso_start_url:m,sso_account_id:w,sso_region:_,sso_role_name:S,sso_session:N}=(0,Cmt.validateSsoProfile)(u);return(0,oZ.resolveSSOCredentials)({ssoStartUrl:m,ssoSession:N,ssoAccountId:w,ssoRegion:_,ssoRoleName:S,ssoClient:o,profile:d})}else{if(!t||!i||!s||!n)throw new uf.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');return(0,oZ.resolveSSOCredentials)({ssoStartUrl:t,ssoSession:c,ssoAccountId:i,ssoRegion:s,ssoRoleName:n,ssoClient:o,profile:d})}},"fromSSO");ox.fromSSO=Tmt});var lZ=h(cZ=>{"use strict";Object.defineProperty(cZ,"__esModule",{value:!0})});var cx=h(Hm=>{"use strict";Object.defineProperty(Hm,"__esModule",{value:!0});var ax=(se(),te(ie));ax.__exportStar(aZ(),Hm);ax.__exportStar(SN(),Hm);ax.__exportStar(lZ(),Hm);ax.__exportStar(FD(),Hm)});var uZ=h(Wm=>{"use strict";Object.defineProperty(Wm,"__esModule",{value:!0});Wm.resolveSsoCredentials=Wm.isSsoProfile=void 0;var dZ=cx(),xmt=cx();Object.defineProperty(Wm,"isSsoProfile",{enumerable:!0,get:function(){return xmt.isSsoProfile}});var Pmt=r(e=>{let{sso_start_url:t,sso_account_id:i,sso_session:s,sso_region:n,sso_role_name:o}=(0,dZ.validateSsoProfile)(e);return(0,dZ.fromSSO)({ssoStartUrl:t,ssoAccountId:i,ssoSession:s,ssoRegion:n,ssoRoleName:o})()},"resolveSsoCredentials");Wm.resolveSsoCredentials=Pmt});var mZ=h(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0});Km.resolveStaticCredentials=Km.isStaticCredsProfile=void 0;var Imt=r(e=>Boolean(e)&&typeof e=="object"&&typeof e.aws_access_key_id=="string"&&typeof e.aws_secret_access_key=="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1,"isStaticCredsProfile");Km.isStaticCredsProfile=Imt;var Rmt=r(e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token}),"resolveStaticCredentials");Km.resolveStaticCredentials=Rmt});var DD=h(lx=>{"use strict";Object.defineProperty(lx,"__esModule",{value:!0});lx.fromWebToken=void 0;var qmt=Ve(),Lmt=r(e=>()=>{let{roleArn:t,roleSessionName:i,webIdentityToken:s,providerId:n,policyArns:o,policy:c,durationSeconds:d,roleAssumerWithWebIdentity:l}=e;if(!l)throw new qmt.CredentialsProviderError(`Role Arn '${t}' needs to be assumed with web identity, but no role assumption callback was provided.`,!1);return l({RoleArn:t,RoleSessionName:i??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:s,ProviderId:n,PolicyArns:o,Policy:c,DurationSeconds:d})},"fromWebToken");lx.fromWebToken=Lmt});var pZ=h(dx=>{"use strict";Object.defineProperty(dx,"__esModule",{value:!0});dx.fromTokenFile=void 0;var zmt=Ve(),Fmt=$("fs"),Nmt=DD(),Dmt="AWS_WEB_IDENTITY_TOKEN_FILE",kmt="AWS_ROLE_ARN",Jmt="AWS_ROLE_SESSION_NAME",Mmt=r((e={})=>async()=>Umt(e),"fromTokenFile");dx.fromTokenFile=Mmt;var Umt=r(e=>{var t,i,s;let n=(t=e?.webIdentityTokenFile)!==null&&t!==void 0?t:process.env[Dmt],o=(i=e?.roleArn)!==null&&i!==void 0?i:process.env[kmt],c=(s=e?.roleSessionName)!==null&&s!==void 0?s:process.env[Jmt];if(!n||!o)throw new zmt.CredentialsProviderError("Web identity configuration not specified");return(0,Nmt.fromWebToken)({...e,webIdentityToken:(0,Fmt.readFileSync)(n,{encoding:"ascii"}),roleArn:o,roleSessionName:c})()},"resolveTokenFile")});var kD=h(ux=>{"use strict";Object.defineProperty(ux,"__esModule",{value:!0});var hZ=(se(),te(ie));hZ.__exportStar(pZ(),ux);hZ.__exportStar(DD(),ux)});var fZ=h(Ym=>{"use strict";Object.defineProperty(Ym,"__esModule",{value:!0});Ym.resolveWebIdentityCredentials=Ym.isWebIdentityProfile=void 0;var Omt=kD(),jmt=r(e=>Boolean(e)&&typeof e=="object"&&typeof e.web_identity_token_file=="string"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1,"isWebIdentityProfile");Ym.isWebIdentityProfile=jmt;var Gmt=r(async(e,t)=>(0,Omt.fromTokenFile)({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity})(),"resolveWebIdentityCredentials");Ym.resolveWebIdentityCredentials=Gmt});var gN=h(px=>{"use strict";Object.defineProperty(px,"__esModule",{value:!0});px.resolveProfileData=void 0;var Vmt=Ve(),gZ=lY(),wZ=hY(),_Z=uZ(),mx=mZ(),yZ=fZ(),Bmt=r(async(e,t,i,s={})=>{let n=t[e];if(Object.keys(s).length>0&&(0,mx.isStaticCredsProfile)(n))return(0,mx.resolveStaticCredentials)(n);if((0,gZ.isAssumeRoleProfile)(n))return(0,gZ.resolveAssumeRoleCredentials)(e,t,i,s);if((0,mx.isStaticCredsProfile)(n))return(0,mx.resolveStaticCredentials)(n);if((0,yZ.isWebIdentityProfile)(n))return(0,yZ.resolveWebIdentityCredentials)(n,i);if((0,wZ.isProcessProfile)(n))return(0,wZ.resolveProcessCredentials)(i,e);if((0,_Z.isSsoProfile)(n))return(0,_Z.resolveSsoCredentials)(n);throw new Vmt.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)},"resolveProfileData");px.resolveProfileData=Bmt});var vZ=h(hx=>{"use strict";Object.defineProperty(hx,"__esModule",{value:!0});hx.fromIni=void 0;var SZ=as(),$mt=gN(),Hmt=r((e={})=>async()=>{let t=await(0,SZ.parseKnownFiles)(e);return(0,$mt.resolveProfileData)((0,SZ.getProfileName)(e),t,e)},"fromIni");hx.fromIni=Hmt});var EZ=h(JD=>{"use strict";Object.defineProperty(JD,"__esModule",{value:!0});var Wmt=(se(),te(ie));Wmt.__exportStar(vZ(),JD)});var AZ=h(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.remoteProvider=Gr.ENV_IMDS_DISABLED=void 0;var fx=p0(),Kmt=Ve();Gr.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";var Ymt=r(e=>process.env[fx.ENV_CMDS_RELATIVE_URI]||process.env[fx.ENV_CMDS_FULL_URI]?(0,fx.fromContainerMetadata)(e):process.env[Gr.ENV_IMDS_DISABLED]?async()=>{throw new Kmt.CredentialsProviderError("EC2 Instance Metadata Service access disabled")}:(0,fx.fromInstanceMetadata)(e),"remoteProvider");Gr.remoteProvider=Ymt});var bZ=h(gx=>{"use strict";Object.defineProperty(gx,"__esModule",{value:!0});gx.defaultProvider=void 0;var Qmt=eN(),Xmt=EZ(),Zmt=yN(),ept=cx(),tpt=kD(),MD=Ve(),ipt=as(),spt=AZ(),npt=r((e={})=>(0,MD.memoize)((0,MD.chain)(...e.profile||process.env[ipt.ENV_PROFILE]?[]:[(0,Qmt.fromEnv)()],(0,ept.fromSSO)(e),(0,Xmt.fromIni)(e),(0,Zmt.fromProcess)(e),(0,tpt.fromTokenFile)(e),(0,spt.remoteProvider)(e),async()=>{throw new MD.CredentialsProviderError("Could not load credentials from any providers",!1)}),t=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5,t=>t.expiration!==void 0),"defaultProvider");gx.defaultProvider=npt});var OD=h(UD=>{"use strict";Object.defineProperty(UD,"__esModule",{value:!0});var rpt=(se(),te(ie));rpt.__exportStar(bZ(),UD)});var BZ=h(_x=>{"use strict";Object.defineProperty(_x,"__esModule",{value:!0});_x.ruleSet=void 0;var FZ="required",ye="type",De="fn",ke="argv",Zn="ref",Vr="properties",Br="headers",CZ=!1,opt=!0,GD="PartitionResult",qi="tree",$r="booleanEquals",Tt="stringEquals",NZ="sigv4",DZ="us-east-1",kZ="sts",tt="endpoint",JZ="https://sts.{Region}.{PartitionResult#dnsSuffix}",mf="error",VD="getAttr",TZ={[FZ]:!1,[ye]:"String"},jD={[FZ]:!0,default:!1,[ye]:"Boolean"},xt={[Zn]:"Region"},MZ={[Zn]:"UseFIPS"},UZ={[Zn]:"UseDualStack"},xZ={[De]:"isSet",[ke]:[{[Zn]:"Endpoint"}]},OZ={[Zn]:"Endpoint"},Ft={url:"https://sts.amazonaws.com",[Vr]:{authSchemes:[{name:NZ,signingRegion:DZ,signingName:kZ}]},[Br]:{}},Zs={},PZ={conditions:[{[De]:Tt,[ke]:[xt,"aws-global"]}],[tt]:Ft,[ye]:tt},jZ={[De]:$r,[ke]:[MZ,!0]},GZ={[De]:$r,[ke]:[UZ,!0]},IZ={[De]:$r,[ke]:[!0,{[De]:VD,[ke]:[{[Zn]:GD},"supportsFIPS"]}]},VZ={[Zn]:GD},RZ={[De]:$r,[ke]:[!0,{[De]:VD,[ke]:[VZ,"supportsDualStack"]}]},qZ={url:JZ,[Vr]:{},[Br]:{}},apt=[OZ],LZ=[jZ],zZ=[GZ],cpt={version:"1.0",parameters:{Region:TZ,UseDualStack:jD,UseFIPS:jD,Endpoint:TZ,UseGlobalEndpoint:jD},rules:[{conditions:[{[De]:"aws.partition",[ke]:[xt],assign:GD}],[ye]:qi,rules:[{conditions:[{[De]:$r,[ke]:[{[Zn]:"UseGlobalEndpoint"},opt]},{[De]:$r,[ke]:[MZ,CZ]},{[De]:$r,[ke]:[UZ,CZ]},{[De]:"not",[ke]:[xZ]}],[ye]:qi,rules:[{conditions:[{[De]:Tt,[ke]:[xt,"ap-northeast-1"]}],endpoint:Ft,[ye]:tt},{conditions:[{[De]:Tt,[ke]:[xt,"ap-south-1"]}],endpoint:Ft,[ye]:tt},{conditions:[{[De]:Tt,[ke]:[xt,"ap-southeast-1"]}],endpoint:Ft,[ye]:tt},{conditions:[{[De]:Tt,[ke]:[xt,"ap-southeast-2"]}],endpoint:Ft,[ye]:tt},PZ,{conditions:[{[De]:Tt,[ke]:[xt,"ca-central-1"]}],endpoint:Ft,[ye]:tt},{conditions:[{[De]:Tt,[ke]:[xt,"eu-central-1"]}],endpoint:Ft,[ye]:tt},{conditions:[{[De]:Tt,[ke]:[xt,"eu-north-1"]}],endpoint:Ft,[ye]:tt},{conditions:[{[De]:Tt,[ke]:[xt,"eu-west-1"]}],endpoint:Ft,[ye]:tt},{conditions:[{[De]:Tt,[ke]:[xt,"eu-west-2"]}],endpoint:Ft,[ye]:tt},{conditions:[{[De]:Tt,[ke]:[xt,"eu-west-3"]}],endpoint:Ft,[ye]:tt},{conditions:[{[De]:Tt,[ke]:[xt,"sa-east-1"]}],endpoint:Ft,[ye]:tt},{conditions:[{[De]:Tt,[ke]:[xt,DZ]}],endpoint:Ft,[ye]:tt},{conditions:[{[De]:Tt,[ke]:[xt,"us-east-2"]}],endpoint:Ft,[ye]:tt},{conditions:[{[De]:Tt,[ke]:[xt,"us-west-1"]}],endpoint:Ft,[ye]:tt},{conditions:[{[De]:Tt,[ke]:[xt,"us-west-2"]}],endpoint:Ft,[ye]:tt},{endpoint:{url:JZ,[Vr]:{authSchemes:[{name:NZ,signingRegion:"{Region}",signingName:kZ}]},[Br]:Zs},[ye]:tt}]},{conditions:[xZ,{[De]:"parseURL",[ke]:apt,assign:"url"}],[ye]:qi,rules:[{conditions:LZ,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[ye]:mf},{[ye]:qi,rules:[{conditions:zZ,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[ye]:mf},{endpoint:{url:OZ,[Vr]:Zs,[Br]:Zs},[ye]:tt}]}]},{conditions:[jZ,GZ],[ye]:qi,rules:[{conditions:[IZ,RZ],[ye]:qi,rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[Vr]:Zs,[Br]:Zs},[ye]:tt}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[ye]:mf}]},{conditions:LZ,[ye]:qi,rules:[{conditions:[IZ],[ye]:qi,rules:[{[ye]:qi,rules:[{conditions:[{[De]:Tt,[ke]:["aws-us-gov",{[De]:VD,[ke]:[VZ,"name"]}]}],endpoint:qZ,[ye]:tt},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",[Vr]:Zs,[Br]:Zs},[ye]:tt}]}]},{error:"FIPS is enabled but this partition does not support FIPS",[ye]:mf}]},{conditions:zZ,[ye]:qi,rules:[{conditions:[RZ],[ye]:qi,rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",[Vr]:Zs,[Br]:Zs},[ye]:tt}]},{error:"DualStack is enabled but this partition does not support DualStack",[ye]:mf}]},{[ye]:qi,rules:[PZ,{endpoint:qZ,[ye]:tt}]}]}]};_x.ruleSet=cpt});var $Z=h(yx=>{"use strict";Object.defineProperty(yx,"__esModule",{value:!0});yx.defaultEndpointResolver=void 0;var lpt=Wh(),dpt=BZ(),upt=r((e,t={})=>(0,lpt.resolveEndpoint)(dpt.ruleSet,{endpointParams:e,logger:t.logger}),"defaultEndpointResolver");yx.defaultEndpointResolver=upt});var KZ=h(Sx=>{"use strict";Object.defineProperty(Sx,"__esModule",{value:!0});Sx.getRuntimeConfig=void 0;var mpt=E(),ppt=Er(),HZ=Dh(),WZ=js(),hpt=$Z(),fpt=r(e=>({apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??HZ.fromBase64,base64Encoder:e?.base64Encoder??HZ.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??hpt.defaultEndpointResolver,logger:e?.logger??new mpt.NoOpLogger,serviceId:e?.serviceId??"STS",urlParser:e?.urlParser??ppt.parseUrl,utf8Decoder:e?.utf8Decoder??WZ.fromUtf8,utf8Encoder:e?.utf8Encoder??WZ.toUtf8}),"getRuntimeConfig");Sx.getRuntimeConfig=fpt});var XZ=h(Ex=>{"use strict";Object.defineProperty(Ex,"__esModule",{value:!0});Ex.getRuntimeConfig=void 0;var gpt=(se(),te(ie)),wpt=gpt.__importDefault(v5()),_pt=XF(),vx=Xi(),ypt=OD(),Spt=bh(),YZ=Os(),pf=Un(),QZ=Th(),vpt=xh(),Ept=vi(),Apt=Nh(),bpt=KZ(),Cpt=E(),Tpt=Qh(),xpt=E(),Ppt=r(e=>{(0,xpt.emitWarningIfUnsupportedVersion)(process.version);let t=(0,Tpt.resolveDefaultsModeConfig)(e),i=r(()=>t().then(Cpt.loadConfigsForDefaultMode),"defaultConfigProvider"),s=(0,bpt.getRuntimeConfig)(e);return{...s,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??vpt.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??(0,_pt.decorateDefaultCredentialProvider)(ypt.defaultProvider),defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,Apt.defaultUserAgent)({serviceId:s.serviceId,clientVersion:wpt.default.version}),maxAttempts:e?.maxAttempts??(0,pf.loadConfig)(YZ.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:e?.region??(0,pf.loadConfig)(vx.NODE_REGION_CONFIG_OPTIONS,vx.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new QZ.NodeHttpHandler(i),retryMode:e?.retryMode??(0,pf.loadConfig)({...YZ.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await i()).retryMode||Ept.DEFAULT_RETRY_MODE}),sha256:e?.sha256??Spt.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??QZ.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,pf.loadConfig)(vx.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,pf.loadConfig)(vx.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}},"getRuntimeConfig");Ex.getRuntimeConfig=Ppt});var bx=h(Ax=>{"use strict";Object.defineProperty(Ax,"__esModule",{value:!0});Ax.STSClient=void 0;var Ipt=Xi(),Rpt=oh(),qpt=b(),ZZ=ah(),Lpt=ch(),zpt=lh(),eee=Os(),Fpt=y5(),tee=fh(),Npt=E(),Dpt=S5(),kpt=XZ(),Qm=class extends Npt.Client{constructor(t){let i=(0,kpt.getRuntimeConfig)(t),s=(0,Dpt.resolveClientEndpointParameters)(i),n=(0,Ipt.resolveRegionConfig)(s),o=(0,qpt.resolveEndpointConfig)(n),c=(0,eee.resolveRetryConfig)(o),d=(0,ZZ.resolveHostHeaderConfig)(c),l=(0,Fpt.resolveStsAuthConfig)(d,{stsClientCtor:Qm}),u=(0,tee.resolveUserAgentConfig)(l);super(u),this.config=u,this.middlewareStack.use((0,eee.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Rpt.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,ZZ.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Lpt.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,zpt.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,tee.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};r(Qm,"STSClient");Ax.STSClient=Qm});var iee=h(Tx=>{"use strict";Object.defineProperty(Tx,"__esModule",{value:!0});Tx.STS=void 0;var Jpt=Lb(),Mpt=$F(),Upt=Nb(),Opt=HF(),jpt=WF(),Gpt=KF(),Vpt=YF(),Bpt=QF(),$pt=bx(),Cx=class extends $pt.STSClient{assumeRole(t,i,s){let n=new Jpt.AssumeRoleCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}assumeRoleWithSAML(t,i,s){let n=new Mpt.AssumeRoleWithSAMLCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}assumeRoleWithWebIdentity(t,i,s){let n=new Upt.AssumeRoleWithWebIdentityCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}decodeAuthorizationMessage(t,i,s){let n=new Opt.DecodeAuthorizationMessageCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getAccessKeyInfo(t,i,s){let n=new jpt.GetAccessKeyInfoCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getCallerIdentity(t,i,s){let n=new Gpt.GetCallerIdentityCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getFederationToken(t,i,s){let n=new Vpt.GetFederationTokenCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getSessionToken(t,i,s){let n=new Bpt.GetSessionTokenCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}};r(Cx,"STS");Tx.STS=Cx});var see=h(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});var er=(se(),te(ie));er.__exportStar(Lb(),Es);er.__exportStar($F(),Es);er.__exportStar(Nb(),Es);er.__exportStar(HF(),Es);er.__exportStar(WF(),Es);er.__exportStar(KF(),Es);er.__exportStar(YF(),Es);er.__exportStar(QF(),Es)});var aee=h(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.decorateDefaultCredentialProvider=As.getDefaultRoleAssumerWithWebIdentity=As.getDefaultRoleAssumer=void 0;var nee=XF(),ree=bx(),oee=r((e,t)=>t?r(class extends e{constructor(s){super(s);for(let n of t)this.middlewareStack.use(n)}},"CustomizableSTSClient"):e,"getCustomizableStsClientCtor"),Hpt=r((e={},t)=>(0,nee.getDefaultRoleAssumer)(e,oee(ree.STSClient,t)),"getDefaultRoleAssumer");As.getDefaultRoleAssumer=Hpt;var Wpt=r((e={},t)=>(0,nee.getDefaultRoleAssumerWithWebIdentity)(e,oee(ree.STSClient,t)),"getDefaultRoleAssumerWithWebIdentity");As.getDefaultRoleAssumerWithWebIdentity=Wpt;var Kpt=r(e=>t=>e({roleAssumer:(0,As.getDefaultRoleAssumer)(t),roleAssumerWithWebIdentity:(0,As.getDefaultRoleAssumerWithWebIdentity)(t),...t}),"decorateDefaultCredentialProvider");As.decorateDefaultCredentialProvider=Kpt});var cee=h(BD=>{"use strict";Object.defineProperty(BD,"__esModule",{value:!0});var Ypt=(se(),te(ie));Ypt.__exportStar(Di(),BD)});var lee=h(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.STSServiceException=void 0;var hf=(se(),te(ie));hf.__exportStar(iee(),en);hf.__exportStar(bx(),en);hf.__exportStar(see(),en);hf.__exportStar(aee(),en);hf.__exportStar(cee(),en);var Qpt=bb();Object.defineProperty(en,"STSServiceException",{enumerable:!0,get:function(){return Qpt.STSServiceException}})});var yee=h(xx=>{"use strict";Object.defineProperty(xx,"__esModule",{value:!0});xx.ruleSet=void 0;var tr="fn",ir="argv",Xm="ref",Xpt=!0,Zpt=!1,dee="String",$D="PartitionResult",bs="tree",ff="error",gf="endpoint",uee={required:!0,default:!1,type:"Boolean"},mee={[Xm]:"Endpoint"},wee={[tr]:"booleanEquals",[ir]:[{[Xm]:"UseFIPS"},!0]},_ee={[tr]:"booleanEquals",[ir]:[{[Xm]:"UseDualStack"},!0]},Cs={},pee={[tr]:"booleanEquals",[ir]:[!0,{[tr]:"getAttr",[ir]:[{[Xm]:$D},"supportsFIPS"]}]},hee={[tr]:"booleanEquals",[ir]:[!0,{[tr]:"getAttr",[ir]:[{[Xm]:$D},"supportsDualStack"]}]},fee=[wee],gee=[_ee],eht={version:"1.0",parameters:{Region:{required:Xpt,type:dee},UseDualStack:uee,UseFIPS:uee,Endpoint:{required:Zpt,type:dee}},rules:[{conditions:[{[tr]:"aws.partition",[ir]:[{[Xm]:"Region"}],assign:$D}],type:bs,rules:[{conditions:[{[tr]:"isSet",[ir]:[mee]}],type:bs,rules:[{conditions:fee,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:ff},{type:bs,rules:[{conditions:gee,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:ff},{endpoint:{url:mee,properties:Cs,headers:Cs},type:gf}]}]},{conditions:[wee,_ee],type:bs,rules:[{conditions:[pee,hee],type:bs,rules:[{endpoint:{url:"https://iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Cs,headers:Cs},type:gf}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:ff}]},{conditions:fee,type:bs,rules:[{conditions:[pee],type:bs,rules:[{type:bs,rules:[{endpoint:{url:"https://iot-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Cs,headers:Cs},type:gf}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:ff}]},{conditions:gee,type:bs,rules:[{conditions:[hee],type:bs,rules:[{endpoint:{url:"https://iot.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Cs,headers:Cs},type:gf}]},{error:"DualStack is enabled but this partition does not support DualStack",type:ff}]},{endpoint:{url:"https://iot.{Region}.{PartitionResult#dnsSuffix}",properties:Cs,headers:Cs},type:gf}]}]};xx.ruleSet=eht});var See=h(Px=>{"use strict";Object.defineProperty(Px,"__esModule",{value:!0});Px.defaultEndpointResolver=void 0;var tht=Wh(),iht=yee(),sht=r((e,t={})=>(0,tht.resolveEndpoint)(iht.ruleSet,{endpointParams:e,logger:t.logger}),"defaultEndpointResolver");Px.defaultEndpointResolver=sht});var Aee=h(Ix=>{"use strict";Object.defineProperty(Ix,"__esModule",{value:!0});Ix.getRuntimeConfig=void 0;var nht=E(),rht=Er(),vee=Dh(),Eee=js(),oht=See(),aht=r(e=>({apiVersion:"2015-05-28",base64Decoder:e?.base64Decoder??vee.fromBase64,base64Encoder:e?.base64Encoder??vee.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??oht.defaultEndpointResolver,logger:e?.logger??new nht.NoOpLogger,serviceId:e?.serviceId??"IoT",urlParser:e?.urlParser??rht.parseUrl,utf8Decoder:e?.utf8Decoder??Eee.fromUtf8,utf8Encoder:e?.utf8Encoder??Eee.toUtf8}),"getRuntimeConfig");Ix.getRuntimeConfig=aht});var Tee=h(qx=>{"use strict";Object.defineProperty(qx,"__esModule",{value:!0});qx.getRuntimeConfig=void 0;var cht=(se(),te(ie)),lht=cht.__importDefault(EK()),dht=lee(),Rx=Xi(),uht=OD(),mht=bh(),bee=Os(),wf=Un(),Cee=Th(),pht=xh(),hht=vi(),fht=Nh(),ght=Aee(),wht=E(),_ht=Qh(),yht=E(),Sht=r(e=>{(0,yht.emitWarningIfUnsupportedVersion)(process.version);let t=(0,_ht.resolveDefaultsModeConfig)(e),i=r(()=>t().then(wht.loadConfigsForDefaultMode),"defaultConfigProvider"),s=(0,ght.getRuntimeConfig)(e);return{...s,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??pht.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??(0,dht.decorateDefaultCredentialProvider)(uht.defaultProvider),defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,fht.defaultUserAgent)({serviceId:s.serviceId,clientVersion:lht.default.version}),maxAttempts:e?.maxAttempts??(0,wf.loadConfig)(bee.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:e?.region??(0,wf.loadConfig)(Rx.NODE_REGION_CONFIG_OPTIONS,Rx.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new Cee.NodeHttpHandler(i),retryMode:e?.retryMode??(0,wf.loadConfig)({...bee.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await i()).retryMode||hht.DEFAULT_RETRY_MODE}),sha256:e?.sha256??mht.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??Cee.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,wf.loadConfig)(Rx.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,wf.loadConfig)(Rx.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}},"getRuntimeConfig");qx.getRuntimeConfig=Sht});var le=h(zx=>{"use strict";Object.defineProperty(zx,"__esModule",{value:!0});zx.IoTClient=void 0;var vht=Xi(),Eht=oh(),Aht=b(),xee=ah(),bht=ch(),Cht=lh(),HD=Os(),Pee=Gs(),Iee=fh(),Tht=E(),xht=vK(),Pht=Tee(),Lx=class extends Tht.Client{constructor(t){let i=(0,Pht.getRuntimeConfig)(t),s=(0,xht.resolveClientEndpointParameters)(i),n=(0,vht.resolveRegionConfig)(s),o=(0,Aht.resolveEndpointConfig)(n),c=(0,HD.resolveRetryConfig)(o),d=(0,xee.resolveHostHeaderConfig)(c),l=(0,Pee.resolveAwsAuthConfig)(d),u=(0,Iee.resolveUserAgentConfig)(l);super(u),this.config=u,this.middlewareStack.use((0,HD.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Eht.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,xee.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,bht.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,Cht.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,Pee.getAwsAuthPlugin)(this.config)),this.middlewareStack.use((0,Iee.getUserAgentPlugin)(this.config)),this.middlewareStack.use((0,HD.getOmitRetryHeadersPlugin)(this.config))}destroy(){super.destroy()}};r(Lx,"IoTClient");zx.IoTClient=Lx});var me=h(Nx=>{"use strict";Object.defineProperty(Nx,"__esModule",{value:!0});Nx.IoT=void 0;var Iht=LR(),Rht=zR(),qht=FR(),Lht=NR(),zht=DR(),Fht=kR(),Nht=JR(),Dht=MR(),kht=UR(),Jht=OR(),Mht=jR(),Uht=GR(),Oht=VR(),jht=BR(),Ght=$R(),Vht=HR(),Bht=WR(),$ht=KR(),Hht=YR(),Wht=QR(),Kht=XR(),Yht=ZR(),Qht=eq(),Xht=tq(),Zht=iq(),eft=sq(),tft=nq(),ift=rq(),sft=oq(),nft=aq(),rft=cq(),oft=lq(),aft=dq(),cft=uq(),lft=mq(),dft=pq(),uft=hq(),mft=fq(),pft=gq(),hft=wq(),fft=_q(),gft=yq(),wft=Sq(),_ft=vq(),yft=Eq(),Sft=Aq(),vft=bq(),Eft=Cq(),Aft=Tq(),bft=xq(),Cft=Pq(),Tft=Iq(),xft=Rq(),Pft=qq(),Ift=Lq(),Rft=zq(),qft=Fq(),Lft=Nq(),zft=Dq(),Fft=kq(),Nft=Jq(),Dft=Mq(),kft=Uq(),Jft=Oq(),Mft=jq(),Uft=Gq(),Oft=Vq(),jft=Bq(),Gft=$q(),Vft=Hq(),Bft=Wq(),$ft=Kq(),Hft=Yq(),Wft=Qq(),Kft=Xq(),Yft=Zq(),Qft=eL(),Xft=tL(),Zft=iL(),egt=sL(),tgt=nL(),igt=rL(),sgt=oL(),ngt=aL(),rgt=cL(),ogt=lL(),agt=dL(),cgt=uL(),lgt=mL(),dgt=pL(),ugt=hL(),mgt=fL(),pgt=gL(),hgt=wL(),fgt=_L(),ggt=yL(),wgt=SL(),_gt=vL(),ygt=EL(),Sgt=AL(),vgt=bL(),Egt=CL(),Agt=TL(),bgt=xL(),Cgt=PL(),Tgt=IL(),xgt=RL(),Pgt=qL(),Igt=LL(),Rgt=zL(),qgt=FL(),Lgt=NL(),zgt=DL(),Fgt=kL(),Ngt=JL(),Dgt=Yy(),kgt=ML(),Jgt=UL(),Mgt=OL(),Ugt=jL(),Ogt=GL(),jgt=VL(),Ggt=BL(),Vgt=$L(),Bgt=HL(),$gt=WL(),Hgt=KL(),Wgt=YL(),Kgt=QL(),Ygt=XL(),Qgt=ZL(),Xgt=pS(),Zgt=fS(),ewt=wS(),twt=yS(),iwt=vS(),swt=AS(),nwt=CS(),rwt=xS(),owt=IS(),awt=qS(),cwt=zS(),lwt=NS(),dwt=kS(),uwt=MS(),mwt=OS(),pwt=GS(),hwt=BS(),fwt=HS(),gwt=KS(),wwt=QS(),_wt=ZS(),ywt=tv(),Swt=sv(),vwt=ez(),Ewt=ov(),Awt=cv(),bwt=dv(),Cwt=mv(),Twt=hv(),xwt=gv(),Pwt=tz(),Iwt=yv(),Rwt=vv(),qwt=Av(),Lwt=Cv(),zwt=iz(),Fwt=Pv(),Nwt=Rv(),Dwt=Lv(),kwt=Fv(),Jwt=Dv(),Mwt=Jv(),Uwt=Uv(),Owt=jv(),jwt=Vv(),Gwt=$v(),Vwt=Wv(),Bwt=Yv(),$wt=Xv(),Hwt=eE(),Wwt=iE(),Kwt=nE(),Ywt=oE(),Qwt=cE(),Xwt=dE(),Zwt=mE(),e_t=hE(),t_t=sz(),i_t=nz(),s_t=rz(),n_t=oz(),r_t=az(),o_t=cz(),a_t=lz(),c_t=dz(),l_t=uz(),d_t=mz(),u_t=pz(),m_t=hz(),p_t=fz(),h_t=gz(),f_t=wz(),g_t=_z(),w_t=yz(),__t=Sz(),y_t=vz(),S_t=Ez(),v_t=Az(),E_t=bz(),A_t=Cz(),b_t=Tz(),C_t=xz(),T_t=Pz(),x_t=Iz(),P_t=Rz(),I_t=qz(),R_t=Lz(),q_t=zz(),L_t=Fz(),z_t=Nz(),F_t=Dz(),N_t=kz(),D_t=Jz(),k_t=Mz(),J_t=Uz(),M_t=Oz(),U_t=jz(),O_t=Gz(),j_t=Vz(),G_t=Bz(),V_t=$z(),B_t=Hz(),$_t=Wz(),H_t=Kz(),W_t=Yz(),K_t=Qz(),Y_t=Xz(),Q_t=le(),Fx=class extends Q_t.IoTClient{acceptCertificateTransfer(t,i,s){let n=new Iht.AcceptCertificateTransferCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}addThingToBillingGroup(t,i,s){let n=new Rht.AddThingToBillingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}addThingToThingGroup(t,i,s){let n=new qht.AddThingToThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}associateTargetsWithJob(t,i,s){let n=new Lht.AssociateTargetsWithJobCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}attachPolicy(t,i,s){let n=new zht.AttachPolicyCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}attachPrincipalPolicy(t,i,s){let n=new Fht.AttachPrincipalPolicyCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}attachSecurityProfile(t,i,s){let n=new Nht.AttachSecurityProfileCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}attachThingPrincipal(t,i,s){let n=new Dht.AttachThingPrincipalCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}cancelAuditMitigationActionsTask(t,i,s){let n=new kht.CancelAuditMitigationActionsTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}cancelAuditTask(t,i,s){let n=new Jht.CancelAuditTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}cancelCertificateTransfer(t,i,s){let n=new Mht.CancelCertificateTransferCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}cancelDetectMitigationActionsTask(t,i,s){let n=new Uht.CancelDetectMitigationActionsTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}cancelJob(t,i,s){let n=new Oht.CancelJobCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}cancelJobExecution(t,i,s){let n=new jht.CancelJobExecutionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}clearDefaultAuthorizer(t,i,s){let n=new Ght.ClearDefaultAuthorizerCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}confirmTopicRuleDestination(t,i,s){let n=new Vht.ConfirmTopicRuleDestinationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createAuditSuppression(t,i,s){let n=new Bht.CreateAuditSuppressionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createAuthorizer(t,i,s){let n=new $ht.CreateAuthorizerCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createBillingGroup(t,i,s){let n=new Hht.CreateBillingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createCertificateFromCsr(t,i,s){let n=new Wht.CreateCertificateFromCsrCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createCustomMetric(t,i,s){let n=new Kht.CreateCustomMetricCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createDimension(t,i,s){let n=new Yht.CreateDimensionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createDomainConfiguration(t,i,s){let n=new Qht.CreateDomainConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createDynamicThingGroup(t,i,s){let n=new Xht.CreateDynamicThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createFleetMetric(t,i,s){let n=new Zht.CreateFleetMetricCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createJob(t,i,s){let n=new eft.CreateJobCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createJobTemplate(t,i,s){let n=new tft.CreateJobTemplateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createKeysAndCertificate(t,i,s){let n=new ift.CreateKeysAndCertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createMitigationAction(t,i,s){let n=new sft.CreateMitigationActionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createOTAUpdate(t,i,s){let n=new nft.CreateOTAUpdateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createPolicy(t,i,s){let n=new rft.CreatePolicyCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createPolicyVersion(t,i,s){let n=new oft.CreatePolicyVersionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createProvisioningClaim(t,i,s){let n=new aft.CreateProvisioningClaimCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createProvisioningTemplate(t,i,s){let n=new cft.CreateProvisioningTemplateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createProvisioningTemplateVersion(t,i,s){let n=new lft.CreateProvisioningTemplateVersionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createRoleAlias(t,i,s){let n=new dft.CreateRoleAliasCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createScheduledAudit(t,i,s){let n=new uft.CreateScheduledAuditCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createSecurityProfile(t,i,s){let n=new mft.CreateSecurityProfileCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createStream(t,i,s){let n=new pft.CreateStreamCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createThing(t,i,s){let n=new hft.CreateThingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createThingGroup(t,i,s){let n=new fft.CreateThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createThingType(t,i,s){let n=new gft.CreateThingTypeCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createTopicRule(t,i,s){let n=new wft.CreateTopicRuleCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createTopicRuleDestination(t,i,s){let n=new _ft.CreateTopicRuleDestinationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteAccountAuditConfiguration(t,i,s){let n=new yft.DeleteAccountAuditConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteAuditSuppression(t,i,s){let n=new Sft.DeleteAuditSuppressionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteAuthorizer(t,i,s){let n=new vft.DeleteAuthorizerCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteBillingGroup(t,i,s){let n=new Eft.DeleteBillingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteCACertificate(t,i,s){let n=new Aft.DeleteCACertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteCertificate(t,i,s){let n=new bft.DeleteCertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteCustomMetric(t,i,s){let n=new Cft.DeleteCustomMetricCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteDimension(t,i,s){let n=new Tft.DeleteDimensionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteDomainConfiguration(t,i,s){let n=new xft.DeleteDomainConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteDynamicThingGroup(t,i,s){let n=new Pft.DeleteDynamicThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteFleetMetric(t,i,s){let n=new Ift.DeleteFleetMetricCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteJob(t,i,s){let n=new Rft.DeleteJobCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteJobExecution(t,i,s){let n=new qft.DeleteJobExecutionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteJobTemplate(t,i,s){let n=new Lft.DeleteJobTemplateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteMitigationAction(t,i,s){let n=new zft.DeleteMitigationActionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteOTAUpdate(t,i,s){let n=new Fft.DeleteOTAUpdateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deletePolicy(t,i,s){let n=new Nft.DeletePolicyCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deletePolicyVersion(t,i,s){let n=new Dft.DeletePolicyVersionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteProvisioningTemplate(t,i,s){let n=new kft.DeleteProvisioningTemplateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteProvisioningTemplateVersion(t,i,s){let n=new Jft.DeleteProvisioningTemplateVersionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteRegistrationCode(t,i,s){let n=new Mft.DeleteRegistrationCodeCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteRoleAlias(t,i,s){let n=new Uft.DeleteRoleAliasCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteScheduledAudit(t,i,s){let n=new Oft.DeleteScheduledAuditCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteSecurityProfile(t,i,s){let n=new jft.DeleteSecurityProfileCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteStream(t,i,s){let n=new Gft.DeleteStreamCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteThing(t,i,s){let n=new Vft.DeleteThingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteThingGroup(t,i,s){let n=new Bft.DeleteThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteThingType(t,i,s){let n=new $ft.DeleteThingTypeCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteTopicRule(t,i,s){let n=new Hft.DeleteTopicRuleCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteTopicRuleDestination(t,i,s){let n=new Wft.DeleteTopicRuleDestinationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteV2LoggingLevel(t,i,s){let n=new Kft.DeleteV2LoggingLevelCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deprecateThingType(t,i,s){let n=new Yft.DeprecateThingTypeCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeAccountAuditConfiguration(t,i,s){let n=new Qft.DescribeAccountAuditConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeAuditFinding(t,i,s){let n=new Xft.DescribeAuditFindingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeAuditMitigationActionsTask(t,i,s){let n=new Zft.DescribeAuditMitigationActionsTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeAuditSuppression(t,i,s){let n=new egt.DescribeAuditSuppressionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeAuditTask(t,i,s){let n=new tgt.DescribeAuditTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeAuthorizer(t,i,s){let n=new igt.DescribeAuthorizerCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeBillingGroup(t,i,s){let n=new sgt.DescribeBillingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeCACertificate(t,i,s){let n=new ngt.DescribeCACertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeCertificate(t,i,s){let n=new rgt.DescribeCertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeCustomMetric(t,i,s){let n=new ogt.DescribeCustomMetricCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeDefaultAuthorizer(t,i,s){let n=new agt.DescribeDefaultAuthorizerCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeDetectMitigationActionsTask(t,i,s){let n=new cgt.DescribeDetectMitigationActionsTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeDimension(t,i,s){let n=new lgt.DescribeDimensionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeDomainConfiguration(t,i,s){let n=new dgt.DescribeDomainConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeEndpoint(t,i,s){let n=new ugt.DescribeEndpointCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeEventConfigurations(t,i,s){let n=new mgt.DescribeEventConfigurationsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeFleetMetric(t,i,s){let n=new pgt.DescribeFleetMetricCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeIndex(t,i,s){let n=new hgt.DescribeIndexCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeJob(t,i,s){let n=new fgt.DescribeJobCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeJobExecution(t,i,s){let n=new ggt.DescribeJobExecutionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeJobTemplate(t,i,s){let n=new wgt.DescribeJobTemplateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeManagedJobTemplate(t,i,s){let n=new _gt.DescribeManagedJobTemplateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeMitigationAction(t,i,s){let n=new ygt.DescribeMitigationActionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeProvisioningTemplate(t,i,s){let n=new Sgt.DescribeProvisioningTemplateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeProvisioningTemplateVersion(t,i,s){let n=new vgt.DescribeProvisioningTemplateVersionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeRoleAlias(t,i,s){let n=new Egt.DescribeRoleAliasCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeScheduledAudit(t,i,s){let n=new Agt.DescribeScheduledAuditCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeSecurityProfile(t,i,s){let n=new bgt.DescribeSecurityProfileCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeStream(t,i,s){let n=new Cgt.DescribeStreamCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeThing(t,i,s){let n=new Tgt.DescribeThingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeThingGroup(t,i,s){let n=new xgt.DescribeThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeThingRegistrationTask(t,i,s){let n=new Pgt.DescribeThingRegistrationTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeThingType(t,i,s){let n=new Igt.DescribeThingTypeCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}detachPolicy(t,i,s){let n=new Rgt.DetachPolicyCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}detachPrincipalPolicy(t,i,s){let n=new qgt.DetachPrincipalPolicyCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}detachSecurityProfile(t,i,s){let n=new Lgt.DetachSecurityProfileCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}detachThingPrincipal(t,i,s){let n=new zgt.DetachThingPrincipalCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}disableTopicRule(t,i,s){let n=new Fgt.DisableTopicRuleCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}enableTopicRule(t,i,s){let n=new Ngt.EnableTopicRuleCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getBehaviorModelTrainingSummaries(t,i,s){let n=new Dgt.GetBehaviorModelTrainingSummariesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getBucketsAggregation(t,i,s){let n=new kgt.GetBucketsAggregationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getCardinality(t,i,s){let n=new Jgt.GetCardinalityCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getEffectivePolicies(t,i,s){let n=new Mgt.GetEffectivePoliciesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getIndexingConfiguration(t,i,s){let n=new Ugt.GetIndexingConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getJobDocument(t,i,s){let n=new Ogt.GetJobDocumentCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getLoggingOptions(t,i,s){let n=new jgt.GetLoggingOptionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getOTAUpdate(t,i,s){let n=new Ggt.GetOTAUpdateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getPercentiles(t,i,s){let n=new Vgt.GetPercentilesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getPolicy(t,i,s){let n=new Bgt.GetPolicyCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getPolicyVersion(t,i,s){let n=new $gt.GetPolicyVersionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getRegistrationCode(t,i,s){let n=new Hgt.GetRegistrationCodeCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getStatistics(t,i,s){let n=new Wgt.GetStatisticsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getTopicRule(t,i,s){let n=new Kgt.GetTopicRuleCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getTopicRuleDestination(t,i,s){let n=new Ygt.GetTopicRuleDestinationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getV2LoggingOptions(t,i,s){let n=new Qgt.GetV2LoggingOptionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listActiveViolations(t,i,s){let n=new Xgt.ListActiveViolationsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listAttachedPolicies(t,i,s){let n=new Zgt.ListAttachedPoliciesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listAuditFindings(t,i,s){let n=new ewt.ListAuditFindingsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listAuditMitigationActionsExecutions(t,i,s){let n=new twt.ListAuditMitigationActionsExecutionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listAuditMitigationActionsTasks(t,i,s){let n=new iwt.ListAuditMitigationActionsTasksCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listAuditSuppressions(t,i,s){let n=new swt.ListAuditSuppressionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listAuditTasks(t,i,s){let n=new nwt.ListAuditTasksCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listAuthorizers(t,i,s){let n=new rwt.ListAuthorizersCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listBillingGroups(t,i,s){let n=new owt.ListBillingGroupsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listCACertificates(t,i,s){let n=new awt.ListCACertificatesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listCertificates(t,i,s){let n=new lwt.ListCertificatesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listCertificatesByCA(t,i,s){let n=new cwt.ListCertificatesByCACommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listCustomMetrics(t,i,s){let n=new dwt.ListCustomMetricsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listDetectMitigationActionsExecutions(t,i,s){let n=new uwt.ListDetectMitigationActionsExecutionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listDetectMitigationActionsTasks(t,i,s){let n=new mwt.ListDetectMitigationActionsTasksCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listDimensions(t,i,s){let n=new pwt.ListDimensionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listDomainConfigurations(t,i,s){let n=new hwt.ListDomainConfigurationsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listFleetMetrics(t,i,s){let n=new fwt.ListFleetMetricsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listIndices(t,i,s){let n=new gwt.ListIndicesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listJobExecutionsForJob(t,i,s){let n=new wwt.ListJobExecutionsForJobCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listJobExecutionsForThing(t,i,s){let n=new _wt.ListJobExecutionsForThingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listJobs(t,i,s){let n=new ywt.ListJobsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listJobTemplates(t,i,s){let n=new Swt.ListJobTemplatesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listManagedJobTemplates(t,i,s){let n=new vwt.ListManagedJobTemplatesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listMetricValues(t,i,s){let n=new Ewt.ListMetricValuesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listMitigationActions(t,i,s){let n=new Awt.ListMitigationActionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listOTAUpdates(t,i,s){let n=new bwt.ListOTAUpdatesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listOutgoingCertificates(t,i,s){let n=new Cwt.ListOutgoingCertificatesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listPolicies(t,i,s){let n=new Twt.ListPoliciesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listPolicyPrincipals(t,i,s){let n=new xwt.ListPolicyPrincipalsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listPolicyVersions(t,i,s){let n=new Pwt.ListPolicyVersionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listPrincipalPolicies(t,i,s){let n=new Iwt.ListPrincipalPoliciesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listPrincipalThings(t,i,s){let n=new Rwt.ListPrincipalThingsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listProvisioningTemplates(t,i,s){let n=new qwt.ListProvisioningTemplatesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listProvisioningTemplateVersions(t,i,s){let n=new Lwt.ListProvisioningTemplateVersionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listRelatedResourcesForAuditFinding(t,i,s){let n=new zwt.ListRelatedResourcesForAuditFindingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listRoleAliases(t,i,s){let n=new Fwt.ListRoleAliasesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listScheduledAudits(t,i,s){let n=new Nwt.ListScheduledAuditsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listSecurityProfiles(t,i,s){let n=new Dwt.ListSecurityProfilesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listSecurityProfilesForTarget(t,i,s){let n=new kwt.ListSecurityProfilesForTargetCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listStreams(t,i,s){let n=new Jwt.ListStreamsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listTagsForResource(t,i,s){let n=new Mwt.ListTagsForResourceCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listTargetsForPolicy(t,i,s){let n=new Uwt.ListTargetsForPolicyCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listTargetsForSecurityProfile(t,i,s){let n=new Owt.ListTargetsForSecurityProfileCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThingGroups(t,i,s){let n=new jwt.ListThingGroupsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThingGroupsForThing(t,i,s){let n=new Gwt.ListThingGroupsForThingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThingPrincipals(t,i,s){let n=new Vwt.ListThingPrincipalsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThingRegistrationTaskReports(t,i,s){let n=new Bwt.ListThingRegistrationTaskReportsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThingRegistrationTasks(t,i,s){let n=new $wt.ListThingRegistrationTasksCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThings(t,i,s){let n=new Hwt.ListThingsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThingsInBillingGroup(t,i,s){let n=new Wwt.ListThingsInBillingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThingsInThingGroup(t,i,s){let n=new Kwt.ListThingsInThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThingTypes(t,i,s){let n=new Ywt.ListThingTypesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listTopicRuleDestinations(t,i,s){let n=new Qwt.ListTopicRuleDestinationsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listTopicRules(t,i,s){let n=new Xwt.ListTopicRulesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listV2LoggingLevels(t,i,s){let n=new Zwt.ListV2LoggingLevelsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listViolationEvents(t,i,s){let n=new e_t.ListViolationEventsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}putVerificationStateOnViolation(t,i,s){let n=new t_t.PutVerificationStateOnViolationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}registerCACertificate(t,i,s){let n=new i_t.RegisterCACertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}registerCertificate(t,i,s){let n=new s_t.RegisterCertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}registerCertificateWithoutCA(t,i,s){let n=new n_t.RegisterCertificateWithoutCACommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}registerThing(t,i,s){let n=new r_t.RegisterThingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}rejectCertificateTransfer(t,i,s){let n=new o_t.RejectCertificateTransferCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}removeThingFromBillingGroup(t,i,s){let n=new a_t.RemoveThingFromBillingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}removeThingFromThingGroup(t,i,s){let n=new c_t.RemoveThingFromThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}replaceTopicRule(t,i,s){let n=new l_t.ReplaceTopicRuleCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}searchIndex(t,i,s){let n=new d_t.SearchIndexCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}setDefaultAuthorizer(t,i,s){let n=new u_t.SetDefaultAuthorizerCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}setDefaultPolicyVersion(t,i,s){let n=new m_t.SetDefaultPolicyVersionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}setLoggingOptions(t,i,s){let n=new p_t.SetLoggingOptionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}setV2LoggingLevel(t,i,s){let n=new h_t.SetV2LoggingLevelCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}setV2LoggingOptions(t,i,s){let n=new f_t.SetV2LoggingOptionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}startAuditMitigationActionsTask(t,i,s){let n=new g_t.StartAuditMitigationActionsTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}startDetectMitigationActionsTask(t,i,s){let n=new w_t.StartDetectMitigationActionsTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}startOnDemandAuditTask(t,i,s){let n=new __t.StartOnDemandAuditTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}startThingRegistrationTask(t,i,s){let n=new y_t.StartThingRegistrationTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}stopThingRegistrationTask(t,i,s){let n=new S_t.StopThingRegistrationTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}tagResource(t,i,s){let n=new v_t.TagResourceCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}testAuthorization(t,i,s){let n=new E_t.TestAuthorizationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}testInvokeAuthorizer(t,i,s){let n=new A_t.TestInvokeAuthorizerCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}transferCertificate(t,i,s){let n=new b_t.TransferCertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}untagResource(t,i,s){let n=new C_t.UntagResourceCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateAccountAuditConfiguration(t,i,s){let n=new T_t.UpdateAccountAuditConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateAuditSuppression(t,i,s){let n=new x_t.UpdateAuditSuppressionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateAuthorizer(t,i,s){let n=new P_t.UpdateAuthorizerCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateBillingGroup(t,i,s){let n=new I_t.UpdateBillingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateCACertificate(t,i,s){let n=new R_t.UpdateCACertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateCertificate(t,i,s){let n=new q_t.UpdateCertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateCustomMetric(t,i,s){let n=new L_t.UpdateCustomMetricCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateDimension(t,i,s){let n=new z_t.UpdateDimensionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateDomainConfiguration(t,i,s){let n=new F_t.UpdateDomainConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateDynamicThingGroup(t,i,s){let n=new N_t.UpdateDynamicThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateEventConfigurations(t,i,s){let n=new D_t.UpdateEventConfigurationsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateFleetMetric(t,i,s){let n=new k_t.UpdateFleetMetricCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateIndexingConfiguration(t,i,s){let n=new J_t.UpdateIndexingConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateJob(t,i,s){let n=new M_t.UpdateJobCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateMitigationAction(t,i,s){let n=new U_t.UpdateMitigationActionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateProvisioningTemplate(t,i,s){let n=new O_t.UpdateProvisioningTemplateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateRoleAlias(t,i,s){let n=new j_t.UpdateRoleAliasCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateScheduledAudit(t,i,s){let n=new G_t.UpdateScheduledAuditCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateSecurityProfile(t,i,s){let n=new V_t.UpdateSecurityProfileCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateStream(t,i,s){let n=new B_t.UpdateStreamCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateThing(t,i,s){let n=new $_t.UpdateThingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateThingGroup(t,i,s){let n=new H_t.UpdateThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateThingGroupsForThing(t,i,s){let n=new W_t.UpdateThingGroupsForThingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateTopicRuleDestination(t,i,s){let n=new K_t.UpdateTopicRuleDestinationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}validateSecurityProfileBehaviors(t,i,s){let n=new Y_t.ValidateSecurityProfileBehaviorsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}};r(Fx,"IoT");Nx.IoT=Fx});var Ree=h(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});var L=(se(),te(ie));L.__exportStar(LR(),T);L.__exportStar(zR(),T);L.__exportStar(FR(),T);L.__exportStar(NR(),T);L.__exportStar(DR(),T);L.__exportStar(kR(),T);L.__exportStar(JR(),T);L.__exportStar(MR(),T);L.__exportStar(UR(),T);L.__exportStar(OR(),T);L.__exportStar(jR(),T);L.__exportStar(GR(),T);L.__exportStar(VR(),T);L.__exportStar(BR(),T);L.__exportStar($R(),T);L.__exportStar(HR(),T);L.__exportStar(WR(),T);L.__exportStar(KR(),T);L.__exportStar(YR(),T);L.__exportStar(QR(),T);L.__exportStar(XR(),T);L.__exportStar(ZR(),T);L.__exportStar(eq(),T);L.__exportStar(tq(),T);L.__exportStar(iq(),T);L.__exportStar(sq(),T);L.__exportStar(nq(),T);L.__exportStar(rq(),T);L.__exportStar(oq(),T);L.__exportStar(aq(),T);L.__exportStar(cq(),T);L.__exportStar(lq(),T);L.__exportStar(dq(),T);L.__exportStar(uq(),T);L.__exportStar(mq(),T);L.__exportStar(pq(),T);L.__exportStar(hq(),T);L.__exportStar(fq(),T);L.__exportStar(gq(),T);L.__exportStar(wq(),T);L.__exportStar(_q(),T);L.__exportStar(yq(),T);L.__exportStar(Sq(),T);L.__exportStar(vq(),T);L.__exportStar(Eq(),T);L.__exportStar(Aq(),T);L.__exportStar(bq(),T);L.__exportStar(Cq(),T);L.__exportStar(Tq(),T);L.__exportStar(xq(),T);L.__exportStar(Pq(),T);L.__exportStar(Iq(),T);L.__exportStar(Rq(),T);L.__exportStar(qq(),T);L.__exportStar(Lq(),T);L.__exportStar(zq(),T);L.__exportStar(Fq(),T);L.__exportStar(Nq(),T);L.__exportStar(Dq(),T);L.__exportStar(kq(),T);L.__exportStar(Jq(),T);L.__exportStar(Mq(),T);L.__exportStar(Uq(),T);L.__exportStar(Oq(),T);L.__exportStar(jq(),T);L.__exportStar(Gq(),T);L.__exportStar(Vq(),T);L.__exportStar(Bq(),T);L.__exportStar($q(),T);L.__exportStar(Hq(),T);L.__exportStar(Wq(),T);L.__exportStar(Kq(),T);L.__exportStar(Yq(),T);L.__exportStar(Qq(),T);L.__exportStar(Xq(),T);L.__exportStar(Zq(),T);L.__exportStar(eL(),T);L.__exportStar(tL(),T);L.__exportStar(iL(),T);L.__exportStar(sL(),T);L.__exportStar(nL(),T);L.__exportStar(rL(),T);L.__exportStar(oL(),T);L.__exportStar(aL(),T);L.__exportStar(cL(),T);L.__exportStar(lL(),T);L.__exportStar(dL(),T);L.__exportStar(uL(),T);L.__exportStar(mL(),T);L.__exportStar(pL(),T);L.__exportStar(hL(),T);L.__exportStar(fL(),T);L.__exportStar(gL(),T);L.__exportStar(wL(),T);L.__exportStar(_L(),T);L.__exportStar(yL(),T);L.__exportStar(SL(),T);L.__exportStar(vL(),T);L.__exportStar(EL(),T);L.__exportStar(AL(),T);L.__exportStar(bL(),T);L.__exportStar(CL(),T);L.__exportStar(TL(),T);L.__exportStar(xL(),T);L.__exportStar(PL(),T);L.__exportStar(IL(),T);L.__exportStar(RL(),T);L.__exportStar(qL(),T);L.__exportStar(LL(),T);L.__exportStar(zL(),T);L.__exportStar(FL(),T);L.__exportStar(NL(),T);L.__exportStar(DL(),T);L.__exportStar(kL(),T);L.__exportStar(JL(),T);L.__exportStar(Yy(),T);L.__exportStar(ML(),T);L.__exportStar(UL(),T);L.__exportStar(OL(),T);L.__exportStar(jL(),T);L.__exportStar(GL(),T);L.__exportStar(VL(),T);L.__exportStar(BL(),T);L.__exportStar($L(),T);L.__exportStar(HL(),T);L.__exportStar(WL(),T);L.__exportStar(KL(),T);L.__exportStar(YL(),T);L.__exportStar(QL(),T);L.__exportStar(XL(),T);L.__exportStar(ZL(),T);L.__exportStar(pS(),T);L.__exportStar(fS(),T);L.__exportStar(wS(),T);L.__exportStar(yS(),T);L.__exportStar(vS(),T);L.__exportStar(AS(),T);L.__exportStar(CS(),T);L.__exportStar(xS(),T);L.__exportStar(IS(),T);L.__exportStar(qS(),T);L.__exportStar(zS(),T);L.__exportStar(NS(),T);L.__exportStar(kS(),T);L.__exportStar(MS(),T);L.__exportStar(OS(),T);L.__exportStar(GS(),T);L.__exportStar(BS(),T);L.__exportStar(HS(),T);L.__exportStar(KS(),T);L.__exportStar(QS(),T);L.__exportStar(ZS(),T);L.__exportStar(sv(),T);L.__exportStar(tv(),T);L.__exportStar(ez(),T);L.__exportStar(ov(),T);L.__exportStar(cv(),T);L.__exportStar(dv(),T);L.__exportStar(mv(),T);L.__exportStar(hv(),T);L.__exportStar(gv(),T);L.__exportStar(tz(),T);L.__exportStar(yv(),T);L.__exportStar(vv(),T);L.__exportStar(Cv(),T);L.__exportStar(Av(),T);L.__exportStar(iz(),T);L.__exportStar(Pv(),T);L.__exportStar(Rv(),T);L.__exportStar(Lv(),T);L.__exportStar(Fv(),T);L.__exportStar(Dv(),T);L.__exportStar(Jv(),T);L.__exportStar(Uv(),T);L.__exportStar(jv(),T);L.__exportStar(Vv(),T);L.__exportStar($v(),T);L.__exportStar(Wv(),T);L.__exportStar(Yv(),T);L.__exportStar(Xv(),T);L.__exportStar(oE(),T);L.__exportStar(eE(),T);L.__exportStar(iE(),T);L.__exportStar(nE(),T);L.__exportStar(cE(),T);L.__exportStar(dE(),T);L.__exportStar(mE(),T);L.__exportStar(hE(),T);L.__exportStar(sz(),T);L.__exportStar(nz(),T);L.__exportStar(rz(),T);L.__exportStar(oz(),T);L.__exportStar(az(),T);L.__exportStar(cz(),T);L.__exportStar(lz(),T);L.__exportStar(dz(),T);L.__exportStar(uz(),T);L.__exportStar(mz(),T);L.__exportStar(pz(),T);L.__exportStar(hz(),T);L.__exportStar(fz(),T);L.__exportStar(gz(),T);L.__exportStar(wz(),T);L.__exportStar(_z(),T);L.__exportStar(yz(),T);L.__exportStar(Sz(),T);L.__exportStar(vz(),T);L.__exportStar(Ez(),T);L.__exportStar(Az(),T);L.__exportStar(bz(),T);L.__exportStar(Cz(),T);L.__exportStar(Tz(),T);L.__exportStar(xz(),T);L.__exportStar(Pz(),T);L.__exportStar(Iz(),T);L.__exportStar(Rz(),T);L.__exportStar(qz(),T);L.__exportStar(Lz(),T);L.__exportStar(zz(),T);L.__exportStar(Fz(),T);L.__exportStar(Nz(),T);L.__exportStar(Dz(),T);L.__exportStar(kz(),T);L.__exportStar(Jz(),T);L.__exportStar(Mz(),T);L.__exportStar(Uz(),T);L.__exportStar(Oz(),T);L.__exportStar(jz(),T);L.__exportStar(Gz(),T);L.__exportStar(Vz(),T);L.__exportStar(Bz(),T);L.__exportStar($z(),T);L.__exportStar(Hz(),T);L.__exportStar(Wz(),T);L.__exportStar(Kz(),T);L.__exportStar(Yz(),T);L.__exportStar(Qz(),T);L.__exportStar(Xz(),T)});var qee=h(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});var WD=(se(),te(ie));WD.__exportStar(ne(),_f);WD.__exportStar(B(),_f);WD.__exportStar(Z(),_f)});var Lee=h(Dx=>{"use strict";Object.defineProperty(Dx,"__esModule",{value:!0});Dx.paginateGetBehaviorModelTrainingSummaries=void 0;var X_t=Yy(),Z_t=me(),eyt=le(),tyt=r(async(e,t,...i)=>await e.send(new X_t.GetBehaviorModelTrainingSummariesCommand(t),...i),"makePagedClientRequest"),iyt=r(async(e,t,...i)=>await e.getBehaviorModelTrainingSummaries(t,...i),"makePagedRequest");async function*syt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Z_t.IoT)o=await iyt(e.client,t,...i);else if(e.client instanceof eyt.IoTClient)o=await tyt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(syt,"paginateGetBehaviorModelTrainingSummaries");Dx.paginateGetBehaviorModelTrainingSummaries=syt});var Fee=h(zee=>{"use strict";Object.defineProperty(zee,"__esModule",{value:!0})});var Nee=h(kx=>{"use strict";Object.defineProperty(kx,"__esModule",{value:!0});kx.paginateListActiveViolations=void 0;var nyt=pS(),ryt=me(),oyt=le(),ayt=r(async(e,t,...i)=>await e.send(new nyt.ListActiveViolationsCommand(t),...i),"makePagedClientRequest"),cyt=r(async(e,t,...i)=>await e.listActiveViolations(t,...i),"makePagedRequest");async function*lyt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof ryt.IoT)o=await cyt(e.client,t,...i);else if(e.client instanceof oyt.IoTClient)o=await ayt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(lyt,"paginateListActiveViolations");kx.paginateListActiveViolations=lyt});var Dee=h(Jx=>{"use strict";Object.defineProperty(Jx,"__esModule",{value:!0});Jx.paginateListAttachedPolicies=void 0;var dyt=fS(),uyt=me(),myt=le(),pyt=r(async(e,t,...i)=>await e.send(new dyt.ListAttachedPoliciesCommand(t),...i),"makePagedClientRequest"),hyt=r(async(e,t,...i)=>await e.listAttachedPolicies(t,...i),"makePagedRequest");async function*fyt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof uyt.IoT)o=await hyt(e.client,t,...i);else if(e.client instanceof myt.IoTClient)o=await pyt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(fyt,"paginateListAttachedPolicies");Jx.paginateListAttachedPolicies=fyt});var kee=h(Mx=>{"use strict";Object.defineProperty(Mx,"__esModule",{value:!0});Mx.paginateListAuditFindings=void 0;var gyt=wS(),wyt=me(),_yt=le(),yyt=r(async(e,t,...i)=>await e.send(new gyt.ListAuditFindingsCommand(t),...i),"makePagedClientRequest"),Syt=r(async(e,t,...i)=>await e.listAuditFindings(t,...i),"makePagedRequest");async function*vyt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof wyt.IoT)o=await Syt(e.client,t,...i);else if(e.client instanceof _yt.IoTClient)o=await yyt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(vyt,"paginateListAuditFindings");Mx.paginateListAuditFindings=vyt});var Jee=h(Ux=>{"use strict";Object.defineProperty(Ux,"__esModule",{value:!0});Ux.paginateListAuditMitigationActionsExecutions=void 0;var Eyt=yS(),Ayt=me(),byt=le(),Cyt=r(async(e,t,...i)=>await e.send(new Eyt.ListAuditMitigationActionsExecutionsCommand(t),...i),"makePagedClientRequest"),Tyt=r(async(e,t,...i)=>await e.listAuditMitigationActionsExecutions(t,...i),"makePagedRequest");async function*xyt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Ayt.IoT)o=await Tyt(e.client,t,...i);else if(e.client instanceof byt.IoTClient)o=await Cyt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(xyt,"paginateListAuditMitigationActionsExecutions");Ux.paginateListAuditMitigationActionsExecutions=xyt});var Mee=h(Ox=>{"use strict";Object.defineProperty(Ox,"__esModule",{value:!0});Ox.paginateListAuditMitigationActionsTasks=void 0;var Pyt=vS(),Iyt=me(),Ryt=le(),qyt=r(async(e,t,...i)=>await e.send(new Pyt.ListAuditMitigationActionsTasksCommand(t),...i),"makePagedClientRequest"),Lyt=r(async(e,t,...i)=>await e.listAuditMitigationActionsTasks(t,...i),"makePagedRequest");async function*zyt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Iyt.IoT)o=await Lyt(e.client,t,...i);else if(e.client instanceof Ryt.IoTClient)o=await qyt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(zyt,"paginateListAuditMitigationActionsTasks");Ox.paginateListAuditMitigationActionsTasks=zyt});var Uee=h(jx=>{"use strict";Object.defineProperty(jx,"__esModule",{value:!0});jx.paginateListAuditSuppressions=void 0;var Fyt=AS(),Nyt=me(),Dyt=le(),kyt=r(async(e,t,...i)=>await e.send(new Fyt.ListAuditSuppressionsCommand(t),...i),"makePagedClientRequest"),Jyt=r(async(e,t,...i)=>await e.listAuditSuppressions(t,...i),"makePagedRequest");async function*Myt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Nyt.IoT)o=await Jyt(e.client,t,...i);else if(e.client instanceof Dyt.IoTClient)o=await kyt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Myt,"paginateListAuditSuppressions");jx.paginateListAuditSuppressions=Myt});var Oee=h(Gx=>{"use strict";Object.defineProperty(Gx,"__esModule",{value:!0});Gx.paginateListAuditTasks=void 0;var Uyt=CS(),Oyt=me(),jyt=le(),Gyt=r(async(e,t,...i)=>await e.send(new Uyt.ListAuditTasksCommand(t),...i),"makePagedClientRequest"),Vyt=r(async(e,t,...i)=>await e.listAuditTasks(t,...i),"makePagedRequest");async function*Byt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Oyt.IoT)o=await Vyt(e.client,t,...i);else if(e.client instanceof jyt.IoTClient)o=await Gyt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Byt,"paginateListAuditTasks");Gx.paginateListAuditTasks=Byt});var jee=h(Vx=>{"use strict";Object.defineProperty(Vx,"__esModule",{value:!0});Vx.paginateListAuthorizers=void 0;var $yt=xS(),Hyt=me(),Wyt=le(),Kyt=r(async(e,t,...i)=>await e.send(new $yt.ListAuthorizersCommand(t),...i),"makePagedClientRequest"),Yyt=r(async(e,t,...i)=>await e.listAuthorizers(t,...i),"makePagedRequest");async function*Qyt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof Hyt.IoT)o=await Yyt(e.client,t,...i);else if(e.client instanceof Wyt.IoTClient)o=await Kyt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Qyt,"paginateListAuthorizers");Vx.paginateListAuthorizers=Qyt});var Gee=h(Bx=>{"use strict";Object.defineProperty(Bx,"__esModule",{value:!0});Bx.paginateListBillingGroups=void 0;var Xyt=IS(),Zyt=me(),eSt=le(),tSt=r(async(e,t,...i)=>await e.send(new Xyt.ListBillingGroupsCommand(t),...i),"makePagedClientRequest"),iSt=r(async(e,t,...i)=>await e.listBillingGroups(t,...i),"makePagedRequest");async function*sSt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Zyt.IoT)o=await iSt(e.client,t,...i);else if(e.client instanceof eSt.IoTClient)o=await tSt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(sSt,"paginateListBillingGroups");Bx.paginateListBillingGroups=sSt});var Vee=h($x=>{"use strict";Object.defineProperty($x,"__esModule",{value:!0});$x.paginateListCACertificates=void 0;var nSt=qS(),rSt=me(),oSt=le(),aSt=r(async(e,t,...i)=>await e.send(new nSt.ListCACertificatesCommand(t),...i),"makePagedClientRequest"),cSt=r(async(e,t,...i)=>await e.listCACertificates(t,...i),"makePagedRequest");async function*lSt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof rSt.IoT)o=await cSt(e.client,t,...i);else if(e.client instanceof oSt.IoTClient)o=await aSt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(lSt,"paginateListCACertificates");$x.paginateListCACertificates=lSt});var Bee=h(Hx=>{"use strict";Object.defineProperty(Hx,"__esModule",{value:!0});Hx.paginateListCertificatesByCA=void 0;var dSt=zS(),uSt=me(),mSt=le(),pSt=r(async(e,t,...i)=>await e.send(new dSt.ListCertificatesByCACommand(t),...i),"makePagedClientRequest"),hSt=r(async(e,t,...i)=>await e.listCertificatesByCA(t,...i),"makePagedRequest");async function*fSt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof uSt.IoT)o=await hSt(e.client,t,...i);else if(e.client instanceof mSt.IoTClient)o=await pSt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(fSt,"paginateListCertificatesByCA");Hx.paginateListCertificatesByCA=fSt});var $ee=h(Wx=>{"use strict";Object.defineProperty(Wx,"__esModule",{value:!0});Wx.paginateListCertificates=void 0;var gSt=NS(),wSt=me(),_St=le(),ySt=r(async(e,t,...i)=>await e.send(new gSt.ListCertificatesCommand(t),...i),"makePagedClientRequest"),SSt=r(async(e,t,...i)=>await e.listCertificates(t,...i),"makePagedRequest");async function*vSt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof wSt.IoT)o=await SSt(e.client,t,...i);else if(e.client instanceof _St.IoTClient)o=await ySt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(vSt,"paginateListCertificates");Wx.paginateListCertificates=vSt});var Hee=h(Kx=>{"use strict";Object.defineProperty(Kx,"__esModule",{value:!0});Kx.paginateListCustomMetrics=void 0;var ESt=kS(),ASt=me(),bSt=le(),CSt=r(async(e,t,...i)=>await e.send(new ESt.ListCustomMetricsCommand(t),...i),"makePagedClientRequest"),TSt=r(async(e,t,...i)=>await e.listCustomMetrics(t,...i),"makePagedRequest");async function*xSt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof ASt.IoT)o=await TSt(e.client,t,...i);else if(e.client instanceof bSt.IoTClient)o=await CSt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(xSt,"paginateListCustomMetrics");Kx.paginateListCustomMetrics=xSt});var Wee=h(Yx=>{"use strict";Object.defineProperty(Yx,"__esModule",{value:!0});Yx.paginateListDetectMitigationActionsExecutions=void 0;var PSt=MS(),ISt=me(),RSt=le(),qSt=r(async(e,t,...i)=>await e.send(new PSt.ListDetectMitigationActionsExecutionsCommand(t),...i),"makePagedClientRequest"),LSt=r(async(e,t,...i)=>await e.listDetectMitigationActionsExecutions(t,...i),"makePagedRequest");async function*zSt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof ISt.IoT)o=await LSt(e.client,t,...i);else if(e.client instanceof RSt.IoTClient)o=await qSt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(zSt,"paginateListDetectMitigationActionsExecutions");Yx.paginateListDetectMitigationActionsExecutions=zSt});var Kee=h(Qx=>{"use strict";Object.defineProperty(Qx,"__esModule",{value:!0});Qx.paginateListDetectMitigationActionsTasks=void 0;var FSt=OS(),NSt=me(),DSt=le(),kSt=r(async(e,t,...i)=>await e.send(new FSt.ListDetectMitigationActionsTasksCommand(t),...i),"makePagedClientRequest"),JSt=r(async(e,t,...i)=>await e.listDetectMitigationActionsTasks(t,...i),"makePagedRequest");async function*MSt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof NSt.IoT)o=await JSt(e.client,t,...i);else if(e.client instanceof DSt.IoTClient)o=await kSt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(MSt,"paginateListDetectMitigationActionsTasks");Qx.paginateListDetectMitigationActionsTasks=MSt});var Yee=h(Xx=>{"use strict";Object.defineProperty(Xx,"__esModule",{value:!0});Xx.paginateListDimensions=void 0;var USt=GS(),OSt=me(),jSt=le(),GSt=r(async(e,t,...i)=>await e.send(new USt.ListDimensionsCommand(t),...i),"makePagedClientRequest"),VSt=r(async(e,t,...i)=>await e.listDimensions(t,...i),"makePagedRequest");async function*BSt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof OSt.IoT)o=await VSt(e.client,t,...i);else if(e.client instanceof jSt.IoTClient)o=await GSt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(BSt,"paginateListDimensions");Xx.paginateListDimensions=BSt});var Qee=h(Zx=>{"use strict";Object.defineProperty(Zx,"__esModule",{value:!0});Zx.paginateListDomainConfigurations=void 0;var $St=BS(),HSt=me(),WSt=le(),KSt=r(async(e,t,...i)=>await e.send(new $St.ListDomainConfigurationsCommand(t),...i),"makePagedClientRequest"),YSt=r(async(e,t,...i)=>await e.listDomainConfigurations(t,...i),"makePagedRequest");async function*QSt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof HSt.IoT)o=await YSt(e.client,t,...i);else if(e.client instanceof WSt.IoTClient)o=await KSt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(QSt,"paginateListDomainConfigurations");Zx.paginateListDomainConfigurations=QSt});var Xee=h(eP=>{"use strict";Object.defineProperty(eP,"__esModule",{value:!0});eP.paginateListFleetMetrics=void 0;var XSt=HS(),ZSt=me(),evt=le(),tvt=r(async(e,t,...i)=>await e.send(new XSt.ListFleetMetricsCommand(t),...i),"makePagedClientRequest"),ivt=r(async(e,t,...i)=>await e.listFleetMetrics(t,...i),"makePagedRequest");async function*svt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof ZSt.IoT)o=await ivt(e.client,t,...i);else if(e.client instanceof evt.IoTClient)o=await tvt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(svt,"paginateListFleetMetrics");eP.paginateListFleetMetrics=svt});var Zee=h(tP=>{"use strict";Object.defineProperty(tP,"__esModule",{value:!0});tP.paginateListIndices=void 0;var nvt=KS(),rvt=me(),ovt=le(),avt=r(async(e,t,...i)=>await e.send(new nvt.ListIndicesCommand(t),...i),"makePagedClientRequest"),cvt=r(async(e,t,...i)=>await e.listIndices(t,...i),"makePagedRequest");async function*lvt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof rvt.IoT)o=await cvt(e.client,t,...i);else if(e.client instanceof ovt.IoTClient)o=await avt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(lvt,"paginateListIndices");tP.paginateListIndices=lvt});var ete=h(iP=>{"use strict";Object.defineProperty(iP,"__esModule",{value:!0});iP.paginateListJobExecutionsForJob=void 0;var dvt=QS(),uvt=me(),mvt=le(),pvt=r(async(e,t,...i)=>await e.send(new dvt.ListJobExecutionsForJobCommand(t),...i),"makePagedClientRequest"),hvt=r(async(e,t,...i)=>await e.listJobExecutionsForJob(t,...i),"makePagedRequest");async function*fvt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof uvt.IoT)o=await hvt(e.client,t,...i);else if(e.client instanceof mvt.IoTClient)o=await pvt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(fvt,"paginateListJobExecutionsForJob");iP.paginateListJobExecutionsForJob=fvt});var tte=h(sP=>{"use strict";Object.defineProperty(sP,"__esModule",{value:!0});sP.paginateListJobExecutionsForThing=void 0;var gvt=ZS(),wvt=me(),_vt=le(),yvt=r(async(e,t,...i)=>await e.send(new gvt.ListJobExecutionsForThingCommand(t),...i),"makePagedClientRequest"),Svt=r(async(e,t,...i)=>await e.listJobExecutionsForThing(t,...i),"makePagedRequest");async function*vvt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof wvt.IoT)o=await Svt(e.client,t,...i);else if(e.client instanceof _vt.IoTClient)o=await yvt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(vvt,"paginateListJobExecutionsForThing");sP.paginateListJobExecutionsForThing=vvt});var ite=h(nP=>{"use strict";Object.defineProperty(nP,"__esModule",{value:!0});nP.paginateListJobTemplates=void 0;var Evt=sv(),Avt=me(),bvt=le(),Cvt=r(async(e,t,...i)=>await e.send(new Evt.ListJobTemplatesCommand(t),...i),"makePagedClientRequest"),Tvt=r(async(e,t,...i)=>await e.listJobTemplates(t,...i),"makePagedRequest");async function*xvt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Avt.IoT)o=await Tvt(e.client,t,...i);else if(e.client instanceof bvt.IoTClient)o=await Cvt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(xvt,"paginateListJobTemplates");nP.paginateListJobTemplates=xvt});var ste=h(rP=>{"use strict";Object.defineProperty(rP,"__esModule",{value:!0});rP.paginateListJobs=void 0;var Pvt=tv(),Ivt=me(),Rvt=le(),qvt=r(async(e,t,...i)=>await e.send(new Pvt.ListJobsCommand(t),...i),"makePagedClientRequest"),Lvt=r(async(e,t,...i)=>await e.listJobs(t,...i),"makePagedRequest");async function*zvt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Ivt.IoT)o=await Lvt(e.client,t,...i);else if(e.client instanceof Rvt.IoTClient)o=await qvt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(zvt,"paginateListJobs");rP.paginateListJobs=zvt});var nte=h(oP=>{"use strict";Object.defineProperty(oP,"__esModule",{value:!0});oP.paginateListMetricValues=void 0;var Fvt=ov(),Nvt=me(),Dvt=le(),kvt=r(async(e,t,...i)=>await e.send(new Fvt.ListMetricValuesCommand(t),...i),"makePagedClientRequest"),Jvt=r(async(e,t,...i)=>await e.listMetricValues(t,...i),"makePagedRequest");async function*Mvt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Nvt.IoT)o=await Jvt(e.client,t,...i);else if(e.client instanceof Dvt.IoTClient)o=await kvt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Mvt,"paginateListMetricValues");oP.paginateListMetricValues=Mvt});var rte=h(aP=>{"use strict";Object.defineProperty(aP,"__esModule",{value:!0});aP.paginateListMitigationActions=void 0;var Uvt=cv(),Ovt=me(),jvt=le(),Gvt=r(async(e,t,...i)=>await e.send(new Uvt.ListMitigationActionsCommand(t),...i),"makePagedClientRequest"),Vvt=r(async(e,t,...i)=>await e.listMitigationActions(t,...i),"makePagedRequest");async function*Bvt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Ovt.IoT)o=await Vvt(e.client,t,...i);else if(e.client instanceof jvt.IoTClient)o=await Gvt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Bvt,"paginateListMitigationActions");aP.paginateListMitigationActions=Bvt});var ote=h(cP=>{"use strict";Object.defineProperty(cP,"__esModule",{value:!0});cP.paginateListOTAUpdates=void 0;var $vt=dv(),Hvt=me(),Wvt=le(),Kvt=r(async(e,t,...i)=>await e.send(new $vt.ListOTAUpdatesCommand(t),...i),"makePagedClientRequest"),Yvt=r(async(e,t,...i)=>await e.listOTAUpdates(t,...i),"makePagedRequest");async function*Qvt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Hvt.IoT)o=await Yvt(e.client,t,...i);else if(e.client instanceof Wvt.IoTClient)o=await Kvt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Qvt,"paginateListOTAUpdates");cP.paginateListOTAUpdates=Qvt});var ate=h(lP=>{"use strict";Object.defineProperty(lP,"__esModule",{value:!0});lP.paginateListOutgoingCertificates=void 0;var Xvt=mv(),Zvt=me(),eEt=le(),tEt=r(async(e,t,...i)=>await e.send(new Xvt.ListOutgoingCertificatesCommand(t),...i),"makePagedClientRequest"),iEt=r(async(e,t,...i)=>await e.listOutgoingCertificates(t,...i),"makePagedRequest");async function*sEt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof Zvt.IoT)o=await iEt(e.client,t,...i);else if(e.client instanceof eEt.IoTClient)o=await tEt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(sEt,"paginateListOutgoingCertificates");lP.paginateListOutgoingCertificates=sEt});var cte=h(dP=>{"use strict";Object.defineProperty(dP,"__esModule",{value:!0});dP.paginateListPolicies=void 0;var nEt=hv(),rEt=me(),oEt=le(),aEt=r(async(e,t,...i)=>await e.send(new nEt.ListPoliciesCommand(t),...i),"makePagedClientRequest"),cEt=r(async(e,t,...i)=>await e.listPolicies(t,...i),"makePagedRequest");async function*lEt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof rEt.IoT)o=await cEt(e.client,t,...i);else if(e.client instanceof oEt.IoTClient)o=await aEt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(lEt,"paginateListPolicies");dP.paginateListPolicies=lEt});var lte=h(uP=>{"use strict";Object.defineProperty(uP,"__esModule",{value:!0});uP.paginateListPolicyPrincipals=void 0;var dEt=gv(),uEt=me(),mEt=le(),pEt=r(async(e,t,...i)=>await e.send(new dEt.ListPolicyPrincipalsCommand(t),...i),"makePagedClientRequest"),hEt=r(async(e,t,...i)=>await e.listPolicyPrincipals(t,...i),"makePagedRequest");async function*fEt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof uEt.IoT)o=await hEt(e.client,t,...i);else if(e.client instanceof mEt.IoTClient)o=await pEt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(fEt,"paginateListPolicyPrincipals");uP.paginateListPolicyPrincipals=fEt});var dte=h(mP=>{"use strict";Object.defineProperty(mP,"__esModule",{value:!0});mP.paginateListPrincipalPolicies=void 0;var gEt=yv(),wEt=me(),_Et=le(),yEt=r(async(e,t,...i)=>await e.send(new gEt.ListPrincipalPoliciesCommand(t),...i),"makePagedClientRequest"),SEt=r(async(e,t,...i)=>await e.listPrincipalPolicies(t,...i),"makePagedRequest");async function*vEt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof wEt.IoT)o=await SEt(e.client,t,...i);else if(e.client instanceof _Et.IoTClient)o=await yEt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(vEt,"paginateListPrincipalPolicies");mP.paginateListPrincipalPolicies=vEt});var ute=h(pP=>{"use strict";Object.defineProperty(pP,"__esModule",{value:!0});pP.paginateListPrincipalThings=void 0;var EEt=vv(),AEt=me(),bEt=le(),CEt=r(async(e,t,...i)=>await e.send(new EEt.ListPrincipalThingsCommand(t),...i),"makePagedClientRequest"),TEt=r(async(e,t,...i)=>await e.listPrincipalThings(t,...i),"makePagedRequest");async function*xEt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof AEt.IoT)o=await TEt(e.client,t,...i);else if(e.client instanceof bEt.IoTClient)o=await CEt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(xEt,"paginateListPrincipalThings");pP.paginateListPrincipalThings=xEt});var mte=h(hP=>{"use strict";Object.defineProperty(hP,"__esModule",{value:!0});hP.paginateListProvisioningTemplateVersions=void 0;var PEt=Cv(),IEt=me(),REt=le(),qEt=r(async(e,t,...i)=>await e.send(new PEt.ListProvisioningTemplateVersionsCommand(t),...i),"makePagedClientRequest"),LEt=r(async(e,t,...i)=>await e.listProvisioningTemplateVersions(t,...i),"makePagedRequest");async function*zEt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof IEt.IoT)o=await LEt(e.client,t,...i);else if(e.client instanceof REt.IoTClient)o=await qEt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(zEt,"paginateListProvisioningTemplateVersions");hP.paginateListProvisioningTemplateVersions=zEt});var pte=h(fP=>{"use strict";Object.defineProperty(fP,"__esModule",{value:!0});fP.paginateListProvisioningTemplates=void 0;var FEt=Av(),NEt=me(),DEt=le(),kEt=r(async(e,t,...i)=>await e.send(new FEt.ListProvisioningTemplatesCommand(t),...i),"makePagedClientRequest"),JEt=r(async(e,t,...i)=>await e.listProvisioningTemplates(t,...i),"makePagedRequest");async function*MEt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof NEt.IoT)o=await JEt(e.client,t,...i);else if(e.client instanceof DEt.IoTClient)o=await kEt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(MEt,"paginateListProvisioningTemplates");fP.paginateListProvisioningTemplates=MEt});var hte=h(gP=>{"use strict";Object.defineProperty(gP,"__esModule",{value:!0});gP.paginateListRoleAliases=void 0;var UEt=Pv(),OEt=me(),jEt=le(),GEt=r(async(e,t,...i)=>await e.send(new UEt.ListRoleAliasesCommand(t),...i),"makePagedClientRequest"),VEt=r(async(e,t,...i)=>await e.listRoleAliases(t,...i),"makePagedRequest");async function*BEt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof OEt.IoT)o=await VEt(e.client,t,...i);else if(e.client instanceof jEt.IoTClient)o=await GEt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(BEt,"paginateListRoleAliases");gP.paginateListRoleAliases=BEt});var fte=h(wP=>{"use strict";Object.defineProperty(wP,"__esModule",{value:!0});wP.paginateListScheduledAudits=void 0;var $Et=Rv(),HEt=me(),WEt=le(),KEt=r(async(e,t,...i)=>await e.send(new $Et.ListScheduledAuditsCommand(t),...i),"makePagedClientRequest"),YEt=r(async(e,t,...i)=>await e.listScheduledAudits(t,...i),"makePagedRequest");async function*QEt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof HEt.IoT)o=await YEt(e.client,t,...i);else if(e.client instanceof WEt.IoTClient)o=await KEt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(QEt,"paginateListScheduledAudits");wP.paginateListScheduledAudits=QEt});var gte=h(_P=>{"use strict";Object.defineProperty(_P,"__esModule",{value:!0});_P.paginateListSecurityProfilesForTarget=void 0;var XEt=Fv(),ZEt=me(),eAt=le(),tAt=r(async(e,t,...i)=>await e.send(new XEt.ListSecurityProfilesForTargetCommand(t),...i),"makePagedClientRequest"),iAt=r(async(e,t,...i)=>await e.listSecurityProfilesForTarget(t,...i),"makePagedRequest");async function*sAt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof ZEt.IoT)o=await iAt(e.client,t,...i);else if(e.client instanceof eAt.IoTClient)o=await tAt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(sAt,"paginateListSecurityProfilesForTarget");_P.paginateListSecurityProfilesForTarget=sAt});var wte=h(yP=>{"use strict";Object.defineProperty(yP,"__esModule",{value:!0});yP.paginateListSecurityProfiles=void 0;var nAt=Lv(),rAt=me(),oAt=le(),aAt=r(async(e,t,...i)=>await e.send(new nAt.ListSecurityProfilesCommand(t),...i),"makePagedClientRequest"),cAt=r(async(e,t,...i)=>await e.listSecurityProfiles(t,...i),"makePagedRequest");async function*lAt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof rAt.IoT)o=await cAt(e.client,t,...i);else if(e.client instanceof oAt.IoTClient)o=await aAt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(lAt,"paginateListSecurityProfiles");yP.paginateListSecurityProfiles=lAt});var _te=h(SP=>{"use strict";Object.defineProperty(SP,"__esModule",{value:!0});SP.paginateListStreams=void 0;var dAt=Dv(),uAt=me(),mAt=le(),pAt=r(async(e,t,...i)=>await e.send(new dAt.ListStreamsCommand(t),...i),"makePagedClientRequest"),hAt=r(async(e,t,...i)=>await e.listStreams(t,...i),"makePagedRequest");async function*fAt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof uAt.IoT)o=await hAt(e.client,t,...i);else if(e.client instanceof mAt.IoTClient)o=await pAt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(fAt,"paginateListStreams");SP.paginateListStreams=fAt});var yte=h(vP=>{"use strict";Object.defineProperty(vP,"__esModule",{value:!0});vP.paginateListTagsForResource=void 0;var gAt=Jv(),wAt=me(),_At=le(),yAt=r(async(e,t,...i)=>await e.send(new gAt.ListTagsForResourceCommand(t),...i),"makePagedClientRequest"),SAt=r(async(e,t,...i)=>await e.listTagsForResource(t,...i),"makePagedRequest");async function*vAt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,e.client instanceof wAt.IoT)o=await SAt(e.client,t,...i);else if(e.client instanceof _At.IoTClient)o=await yAt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(vAt,"paginateListTagsForResource");vP.paginateListTagsForResource=vAt});var Ste=h(EP=>{"use strict";Object.defineProperty(EP,"__esModule",{value:!0});EP.paginateListTargetsForPolicy=void 0;var EAt=Uv(),AAt=me(),bAt=le(),CAt=r(async(e,t,...i)=>await e.send(new EAt.ListTargetsForPolicyCommand(t),...i),"makePagedClientRequest"),TAt=r(async(e,t,...i)=>await e.listTargetsForPolicy(t,...i),"makePagedRequest");async function*xAt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof AAt.IoT)o=await TAt(e.client,t,...i);else if(e.client instanceof bAt.IoTClient)o=await CAt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(xAt,"paginateListTargetsForPolicy");EP.paginateListTargetsForPolicy=xAt});var vte=h(AP=>{"use strict";Object.defineProperty(AP,"__esModule",{value:!0});AP.paginateListTargetsForSecurityProfile=void 0;var PAt=jv(),IAt=me(),RAt=le(),qAt=r(async(e,t,...i)=>await e.send(new PAt.ListTargetsForSecurityProfileCommand(t),...i),"makePagedClientRequest"),LAt=r(async(e,t,...i)=>await e.listTargetsForSecurityProfile(t,...i),"makePagedRequest");async function*zAt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof IAt.IoT)o=await LAt(e.client,t,...i);else if(e.client instanceof RAt.IoTClient)o=await qAt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(zAt,"paginateListTargetsForSecurityProfile");AP.paginateListTargetsForSecurityProfile=zAt});var Ete=h(bP=>{"use strict";Object.defineProperty(bP,"__esModule",{value:!0});bP.paginateListThingGroupsForThing=void 0;var FAt=$v(),NAt=me(),DAt=le(),kAt=r(async(e,t,...i)=>await e.send(new FAt.ListThingGroupsForThingCommand(t),...i),"makePagedClientRequest"),JAt=r(async(e,t,...i)=>await e.listThingGroupsForThing(t,...i),"makePagedRequest");async function*MAt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof NAt.IoT)o=await JAt(e.client,t,...i);else if(e.client instanceof DAt.IoTClient)o=await kAt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(MAt,"paginateListThingGroupsForThing");bP.paginateListThingGroupsForThing=MAt});var Ate=h(CP=>{"use strict";Object.defineProperty(CP,"__esModule",{value:!0});CP.paginateListThingGroups=void 0;var UAt=Vv(),OAt=me(),jAt=le(),GAt=r(async(e,t,...i)=>await e.send(new UAt.ListThingGroupsCommand(t),...i),"makePagedClientRequest"),VAt=r(async(e,t,...i)=>await e.listThingGroups(t,...i),"makePagedRequest");async function*BAt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof OAt.IoT)o=await VAt(e.client,t,...i);else if(e.client instanceof jAt.IoTClient)o=await GAt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(BAt,"paginateListThingGroups");CP.paginateListThingGroups=BAt});var bte=h(TP=>{"use strict";Object.defineProperty(TP,"__esModule",{value:!0});TP.paginateListThingPrincipals=void 0;var $At=Wv(),HAt=me(),WAt=le(),KAt=r(async(e,t,...i)=>await e.send(new $At.ListThingPrincipalsCommand(t),...i),"makePagedClientRequest"),YAt=r(async(e,t,...i)=>await e.listThingPrincipals(t,...i),"makePagedRequest");async function*QAt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof HAt.IoT)o=await YAt(e.client,t,...i);else if(e.client instanceof WAt.IoTClient)o=await KAt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(QAt,"paginateListThingPrincipals");TP.paginateListThingPrincipals=QAt});var Cte=h(xP=>{"use strict";Object.defineProperty(xP,"__esModule",{value:!0});xP.paginateListThingRegistrationTaskReports=void 0;var XAt=Yv(),ZAt=me(),ebt=le(),tbt=r(async(e,t,...i)=>await e.send(new XAt.ListThingRegistrationTaskReportsCommand(t),...i),"makePagedClientRequest"),ibt=r(async(e,t,...i)=>await e.listThingRegistrationTaskReports(t,...i),"makePagedRequest");async function*sbt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof ZAt.IoT)o=await ibt(e.client,t,...i);else if(e.client instanceof ebt.IoTClient)o=await tbt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(sbt,"paginateListThingRegistrationTaskReports");xP.paginateListThingRegistrationTaskReports=sbt});var Tte=h(PP=>{"use strict";Object.defineProperty(PP,"__esModule",{value:!0});PP.paginateListThingRegistrationTasks=void 0;var nbt=Xv(),rbt=me(),obt=le(),abt=r(async(e,t,...i)=>await e.send(new nbt.ListThingRegistrationTasksCommand(t),...i),"makePagedClientRequest"),cbt=r(async(e,t,...i)=>await e.listThingRegistrationTasks(t,...i),"makePagedRequest");async function*lbt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof rbt.IoT)o=await cbt(e.client,t,...i);else if(e.client instanceof obt.IoTClient)o=await abt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(lbt,"paginateListThingRegistrationTasks");PP.paginateListThingRegistrationTasks=lbt});var xte=h(IP=>{"use strict";Object.defineProperty(IP,"__esModule",{value:!0});IP.paginateListThingTypes=void 0;var dbt=oE(),ubt=me(),mbt=le(),pbt=r(async(e,t,...i)=>await e.send(new dbt.ListThingTypesCommand(t),...i),"makePagedClientRequest"),hbt=r(async(e,t,...i)=>await e.listThingTypes(t,...i),"makePagedRequest");async function*fbt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof ubt.IoT)o=await hbt(e.client,t,...i);else if(e.client instanceof mbt.IoTClient)o=await pbt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(fbt,"paginateListThingTypes");IP.paginateListThingTypes=fbt});var Pte=h(RP=>{"use strict";Object.defineProperty(RP,"__esModule",{value:!0});RP.paginateListThingsInBillingGroup=void 0;var gbt=iE(),wbt=me(),_bt=le(),ybt=r(async(e,t,...i)=>await e.send(new gbt.ListThingsInBillingGroupCommand(t),...i),"makePagedClientRequest"),Sbt=r(async(e,t,...i)=>await e.listThingsInBillingGroup(t,...i),"makePagedRequest");async function*vbt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof wbt.IoT)o=await Sbt(e.client,t,...i);else if(e.client instanceof _bt.IoTClient)o=await ybt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(vbt,"paginateListThingsInBillingGroup");RP.paginateListThingsInBillingGroup=vbt});var Ite=h(qP=>{"use strict";Object.defineProperty(qP,"__esModule",{value:!0});qP.paginateListThingsInThingGroup=void 0;var Ebt=nE(),Abt=me(),bbt=le(),Cbt=r(async(e,t,...i)=>await e.send(new Ebt.ListThingsInThingGroupCommand(t),...i),"makePagedClientRequest"),Tbt=r(async(e,t,...i)=>await e.listThingsInThingGroup(t,...i),"makePagedRequest");async function*xbt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Abt.IoT)o=await Tbt(e.client,t,...i);else if(e.client instanceof bbt.IoTClient)o=await Cbt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(xbt,"paginateListThingsInThingGroup");qP.paginateListThingsInThingGroup=xbt});var Rte=h(LP=>{"use strict";Object.defineProperty(LP,"__esModule",{value:!0});LP.paginateListThings=void 0;var Pbt=eE(),Ibt=me(),Rbt=le(),qbt=r(async(e,t,...i)=>await e.send(new Pbt.ListThingsCommand(t),...i),"makePagedClientRequest"),Lbt=r(async(e,t,...i)=>await e.listThings(t,...i),"makePagedRequest");async function*zbt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Ibt.IoT)o=await Lbt(e.client,t,...i);else if(e.client instanceof Rbt.IoTClient)o=await qbt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(zbt,"paginateListThings");LP.paginateListThings=zbt});var qte=h(zP=>{"use strict";Object.defineProperty(zP,"__esModule",{value:!0});zP.paginateListTopicRuleDestinations=void 0;var Fbt=cE(),Nbt=me(),Dbt=le(),kbt=r(async(e,t,...i)=>await e.send(new Fbt.ListTopicRuleDestinationsCommand(t),...i),"makePagedClientRequest"),Jbt=r(async(e,t,...i)=>await e.listTopicRuleDestinations(t,...i),"makePagedRequest");async function*Mbt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Nbt.IoT)o=await Jbt(e.client,t,...i);else if(e.client instanceof Dbt.IoTClient)o=await kbt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Mbt,"paginateListTopicRuleDestinations");zP.paginateListTopicRuleDestinations=Mbt});var Lte=h(FP=>{"use strict";Object.defineProperty(FP,"__esModule",{value:!0});FP.paginateListTopicRules=void 0;var Ubt=dE(),Obt=me(),jbt=le(),Gbt=r(async(e,t,...i)=>await e.send(new Ubt.ListTopicRulesCommand(t),...i),"makePagedClientRequest"),Vbt=r(async(e,t,...i)=>await e.listTopicRules(t,...i),"makePagedRequest");async function*Bbt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Obt.IoT)o=await Vbt(e.client,t,...i);else if(e.client instanceof jbt.IoTClient)o=await Gbt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Bbt,"paginateListTopicRules");FP.paginateListTopicRules=Bbt});var zte=h(NP=>{"use strict";Object.defineProperty(NP,"__esModule",{value:!0});NP.paginateListV2LoggingLevels=void 0;var $bt=mE(),Hbt=me(),Wbt=le(),Kbt=r(async(e,t,...i)=>await e.send(new $bt.ListV2LoggingLevelsCommand(t),...i),"makePagedClientRequest"),Ybt=r(async(e,t,...i)=>await e.listV2LoggingLevels(t,...i),"makePagedRequest");async function*Qbt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Hbt.IoT)o=await Ybt(e.client,t,...i);else if(e.client instanceof Wbt.IoTClient)o=await Kbt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Qbt,"paginateListV2LoggingLevels");NP.paginateListV2LoggingLevels=Qbt});var Fte=h(DP=>{"use strict";Object.defineProperty(DP,"__esModule",{value:!0});DP.paginateListViolationEvents=void 0;var Xbt=hE(),Zbt=me(),e0t=le(),t0t=r(async(e,t,...i)=>await e.send(new Xbt.ListViolationEventsCommand(t),...i),"makePagedClientRequest"),i0t=r(async(e,t,...i)=>await e.listViolationEvents(t,...i),"makePagedRequest");async function*s0t(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Zbt.IoT)o=await i0t(e.client,t,...i);else if(e.client instanceof e0t.IoTClient)o=await t0t(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(s0t,"paginateListViolationEvents");DP.paginateListViolationEvents=s0t});var Nte=h(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});var he=(se(),te(ie));he.__exportStar(Lee(),de);he.__exportStar(Fee(),de);he.__exportStar(Nee(),de);he.__exportStar(Dee(),de);he.__exportStar(kee(),de);he.__exportStar(Jee(),de);he.__exportStar(Mee(),de);he.__exportStar(Uee(),de);he.__exportStar(Oee(),de);he.__exportStar(jee(),de);he.__exportStar(Gee(),de);he.__exportStar(Vee(),de);he.__exportStar(Bee(),de);he.__exportStar($ee(),de);he.__exportStar(Hee(),de);he.__exportStar(Wee(),de);he.__exportStar(Kee(),de);he.__exportStar(Yee(),de);he.__exportStar(Qee(),de);he.__exportStar(Xee(),de);he.__exportStar(Zee(),de);he.__exportStar(ete(),de);he.__exportStar(tte(),de);he.__exportStar(ite(),de);he.__exportStar(ste(),de);he.__exportStar(nte(),de);he.__exportStar(rte(),de);he.__exportStar(ote(),de);he.__exportStar(ate(),de);he.__exportStar(cte(),de);he.__exportStar(lte(),de);he.__exportStar(dte(),de);he.__exportStar(ute(),de);he.__exportStar(mte(),de);he.__exportStar(pte(),de);he.__exportStar(hte(),de);he.__exportStar(fte(),de);he.__exportStar(gte(),de);he.__exportStar(wte(),de);he.__exportStar(_te(),de);he.__exportStar(yte(),de);he.__exportStar(Ste(),de);he.__exportStar(vte(),de);he.__exportStar(Ete(),de);he.__exportStar(Ate(),de);he.__exportStar(bte(),de);he.__exportStar(Cte(),de);he.__exportStar(Tte(),de);he.__exportStar(xte(),de);he.__exportStar(Pte(),de);he.__exportStar(Ite(),de);he.__exportStar(Rte(),de);he.__exportStar(qte(),de);he.__exportStar(Lte(),de);he.__exportStar(zte(),de);he.__exportStar(Fte(),de)});var Dte=h(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.IoTServiceException=void 0;var yf=(se(),te(ie));yf.__exportStar(me(),tn);yf.__exportStar(le(),tn);yf.__exportStar(Ree(),tn);yf.__exportStar(qee(),tn);yf.__exportStar(Nte(),tn);var n0t=yo();Object.defineProperty(tn,"IoTServiceException",{enumerable:!0,get:function(){return n0t.IoTServiceException}})});var kte=XD(wj(),1),JP=XD(Dte(),1);import r0t from"crypto";var o0t=new JP.IoTClient({}),a0t=await o0t.send(new JP.DescribeEndpointCommand({endpointType:"iot:Data-ATS"})),c0t=a0t.endpointAddress,kP=r0t.randomBytes(16).toString("hex"),Jte=`/sst/${process.env.SST_APP}/${process.env.SST_STAGE}`,l0t={SST_DEBUG_ENDPOINT:!0,SST_DEBUG_SRC_HANDLER:!0,SST_DEBUG_SRC_PATH:!0,AWS_LAMBDA_FUNCTION_MEMORY_SIZE:!0,AWS_LAMBDA_LOG_GROUP_NAME:!0,AWS_LAMBDA_LOG_STREAM_NAME:!0,LD_LIBRARY_PATH:!0,LAMBDA_TASK_ROOT:!0,AWS_LAMBDA_RUNTIME_API:!0,AWS_EXECUTION_ENV:!0,AWS_XRAY_DAEMON_ADDRESS:!0,AWS_LAMBDA_INITIALIZATION_TYPE:!0,PATH:!0,PWD:!0,LAMBDA_RUNTIME_DIR:!0,LANG:!0,NODE_PATH:!0,TZ:!0,SHLVL:!0,_AWS_XRAY_DAEMON_ADDRESS:!0,_AWS_XRAY_DAEMON_PORT:!0,AWS_XRAY_CONTEXT_MISSING:!0,_HANDLER:!0,_LAMBDA_CONSOLE_SOCKET:!0,_LAMBDA_CONTROL_SOCKET:!0,_LAMBDA_LOG_FD:!0,_LAMBDA_RUNTIME_LOAD_TIME:!0,_LAMBDA_SB_ID:!0,_LAMBDA_SERVER_PORT:!0,_LAMBDA_SHARED_MEM_FD:!0},Mte=Object.fromEntries(Object.entries(process.env).filter(([e,t])=>l0t[e]!==!0)),Sf=new kte.default.device({protocol:"wss",debug:!0,host:c0t,region:Mte.AWS_REGION});Sf.on("error",console.log);Sf.on("connect",console.log);Sf.subscribe(`${Jte}/events/${kP}`,{qos:1});var KD=new Map,Ute;Sf.on("message",(e,t)=>{let i=JSON.parse(t.toString());console.log("Got fragment",i.id,i.index);let s=KD.get(i.id);if(s||(s=new Map,KD.set(i.id,s)),s.set(i.index,i),s.size===i.count){console.log("Got all fragments",i.id),KD.delete(i.id);let n=[...s.values()].sort((c,d)=>c.index-d.index).map(c=>c.data).join(""),o=JSON.parse(n);Ute(o)}});async function s6t(e,t){let i=await new Promise(s=>{let n=setTimeout(()=>{s({type:"function.timeout"})},5e3);Ute=r(o=>{o.type==="function.ack"&&o.properties.workerID===kP&&clearTimeout(n),["function.success","function.error"].includes(o.type)&&o.properties.workerID===kP&&(clearTimeout(n),s(o))},"onMessage");for(let o of d0t({type:"function.invoked",properties:{workerID:kP,requestID:t.awsRequestId,functionID:process.env.SST_FUNCTION_ID,deadline:t.getRemainingTimeInMillis(),event:e,context:t,env:Mte}}))Sf.publish(`${Jte}/events`,JSON.stringify(o),{qos:1},console.log)});if(console.log("Got result",i.type),i.type==="function.timeout")return{statusCode:500,body:"This function is in live debug mode but did not get a response from your machine. If you do have an `sst dev` session running and this is the first time you have ever run SST in this AWS account, it can take 10 minutes for AWS to provision the underlying infrastructure. Check back shortly."};if(i.type==="function.success")return i.properties.body;if(i.type==="function.error"){let s=new Error(i.properties.errorMessage);throw s.stack=i.properties.trace.join(`
59
59
  `),s}}r(s6t,"handler");function d0t(e){let i=JSON.stringify(e).match(/.{1,100000}/g);if(!i)return[];let s=Math.random().toString();return i.map((n,o)=>({id:s,index:o,count:i?.length,data:n}))}r(d0t,"encode");export{s6t as handler};
60
60
  /*! Bundled license information:
61
61