@beesolve/analytics-processor 0.2.4 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/hourly/hourly.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
/* CommonJS polyfills */import { fileURLToPath } from 'node:url';import { createRequire } from 'node:module';const __filename = fileURLToPath(import.meta.url);const __dirname = fileURLToPath(new URL('.', import.meta.url));const require = createRequire(import.meta.url);/* end of CommonJS polyfills */
|
|
2
|
-
import{a as en}from"./chunk-TZ6TJSKE.mjs";import"./chunk-QPD5NJHJ.mjs";import{a as Xt,c as Jt,h as Yt,i as oo,j as so,k as io,l as ao,m as uo}from"./chunk-REMPUQ6B.mjs";import{b as Rt}from"./chunk-LB33VBGK.mjs";import{a as Zt}from"./chunk-YY2HYMK3.mjs";import{A as $e,B as Pt,C as Ne,D as $t,E as Nt,F as Lt,G as ro,L as Ot,O as Gt,R as Ut,S as Mt,T as Bt,V as Ft,W as Vt,aa as Kt,b as tt,e as le,f as no,h as st,ha as jt,j as it,ja as Wt,k as at,l as ut,m as ct,na as Qt,o as pt,p as lt,r as gt,s as bt,sa as qt,u as Et,w as It,xa as zt,y as Ct,ya as Ht,z as Tt}from"./chunk-PD2XGJQD.mjs";import{i as Dt,j as kt,k as wt}from"./chunk-YMGL4RSC.mjs";import{n as T,o as yt,p as ht,s as vt,t as xt,u as _t,v as St}from"./chunk-KRS5YV2Z.mjs";import{B as At,b as ot,d as Er,e as me,g as de,h as mt,i as fe,j as dt,z as ft}from"./chunk-3UGRDNDZ.mjs";import{e as nt,k as J,l as rt}from"./chunk-OC3UN3OS.mjs";import{a as r,b as Pe,c as Ta}from"./chunk-CFZ5JWD3.mjs";var Es=Pe((Tv,bs)=>{function z(e){Object.defineProperty(this,"_next",{writable:!1,enumerable:!1,value:e}),this.done=!1}r(z,"Iterator");z.prototype.next=function(){if(this.done)return{done:!0};var e=this._next();return e.done&&(this.done=!0),e};typeof Symbol<"u"&&(z.prototype[Symbol.iterator]=function(){return this});z.of=function(){var e=arguments,t=e.length,n=0;return new z(function(){return n>=t?{done:!0}:{done:!1,value:e[n++]}})};z.empty=function(){var e=new z(null);return e.done=!0,e};z.is=function(e){return e instanceof z?!0:typeof e=="object"&&e!==null&&typeof e.next=="function"};bs.exports=z});var Lr=Pe((Rv,As)=>{var Is=typeof ArrayBuffer<"u",Cs=typeof Symbol<"u";function Ts(e,t){var n,o,s,i,a;if(!e)throw new Error("obliterator/forEach: invalid iterable.");if(typeof t!="function")throw new Error("obliterator/forEach: expecting a callback.");if(Array.isArray(e)||Is&&ArrayBuffer.isView(e)||typeof e=="string"||e.toString()==="[object Arguments]"){for(s=0,i=e.length;s<i;s++)t(e[s],s);return}if(typeof e.forEach=="function"){e.forEach(t);return}if(Cs&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(n=e,s=0;a=n.next(),a.done!==!0;)t(a.value,s),s++;return}for(o in e)e.hasOwnProperty(o)&&t(e[o],o)}r(Ts,"forEach");Ts.forEachWithNullKeys=function(e,t){var n,o,s,i,a;if(!e)throw new Error("obliterator/forEachWithNullKeys: invalid iterable.");if(typeof t!="function")throw new Error("obliterator/forEachWithNullKeys: expecting a callback.");if(Array.isArray(e)||Is&&ArrayBuffer.isView(e)||typeof e=="string"||e.toString()==="[object Arguments]"){for(s=0,i=e.length;s<i;s++)t(e[s],null);return}if(e instanceof Set){e.forEach(function(c){t(c,null)});return}if(typeof e.forEach=="function"){e.forEach(t);return}if(Cs&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(n=e,s=0;a=n.next(),a.done!==!0;)t(a.value,null),s++;return}for(o in e)e.hasOwnProperty(o)&&t(e[o],o)};As.exports=Ts});var Or=Pe(F=>{var np=Math.pow(2,8)-1,rp=Math.pow(2,16)-1,op=Math.pow(2,32)-1,sp=Math.pow(2,7)-1,ip=Math.pow(2,15)-1,ap=Math.pow(2,31)-1;F.getPointerArray=function(e){var t=e-1;return t<=np?Uint8Array:t<=rp?Uint16Array:t<=op?Uint32Array:Float64Array};F.getSignedPointerArray=function(e){var t=e-1;return t<=sp?Int8Array:t<=ip?Int16Array:t<=ap?Int32Array:Float64Array};F.getNumberType=function(e){return e===(e|0)?Math.sign(e)===-1?e<=127&&e>=-128?Int8Array:e<=32767&&e>=-32768?Int16Array:Int32Array:e<=255?Uint8Array:e<=65535?Uint16Array:Uint32Array:Float64Array};var up={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};F.getMinimalRepresentation=function(e,t){var n=null,o=0,s,i,a,c,m;for(c=0,m=e.length;c<m;c++)a=t?t(e[c]):e[c],i=F.getNumberType(a),s=up[i.name],s>o&&(o=s,n=i);return n};F.isTypedArray=function(e){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView(e)};F.concat=function(){var e=0,t,n,o;for(t=0,o=arguments.length;t<o;t++)e+=arguments[t].length;var s=new arguments[0].constructor(e);for(t=0,n=0;t<o;t++)s.set(arguments[t],n),n+=arguments[t].length;return s};F.indices=function(e){for(var t=F.getPointerArray(e),n=new t(e),o=0;o<e;o++)n[o]=o;return n}});var ks=Pe(Fe=>{var Rs=Lr(),Ds=Or();function cp(e){return Array.isArray(e)||Ds.isTypedArray(e)}r(cp,"isArrayLike");function Gr(e){if(typeof e.length=="number")return e.length;if(typeof e.size=="number")return e.size}r(Gr,"guessLength");function pp(e){var t=Gr(e),n=typeof t=="number"?new Array(t):[],o=0;return Rs(e,function(s){n[o++]=s}),n}r(pp,"toArray");function lp(e){var t=Gr(e),n=typeof t=="number"?Ds.getPointerArray(t):Array,o=typeof t=="number"?new Array(t):[],s=typeof t=="number"?new n(t):[],i=0;return Rs(e,function(a){o[i]=a,s[i]=i++}),[o,s]}r(lp,"toArrayWithIndices");Fe.isArrayLike=cp;Fe.guessLength=Gr;Fe.toArray=pp;Fe.toArrayWithIndices=lp});var Ps=Pe(($v,ws)=>{var Ur=Es(),mp=Lr(),dp=Or(),fp=ks();function C(e,t,n){if(arguments.length<2&&(n=e,e=null,t=null),this.capacity=n,typeof this.capacity!="number"||this.capacity<=0)throw new Error("mnemonist/lru-cache: capacity should be positive number.");var o=dp.getPointerArray(n);this.forward=new o(n),this.backward=new o(n),this.K=typeof e=="function"?new e(n):new Array(n),this.V=typeof t=="function"?new t(n):new Array(n),this.size=0,this.head=0,this.tail=0,this.items={}}r(C,"LRUCache");C.prototype.clear=function(){this.size=0,this.head=0,this.tail=0,this.items={}};C.prototype.splayOnTop=function(e){var t=this.head;if(this.head===e)return this;var n=this.backward[e],o=this.forward[e];return this.tail===e?this.tail=n:this.backward[o]=n,this.forward[n]=o,this.backward[t]=e,this.head=e,this.forward[e]=t,this};C.prototype.set=function(e,t){var n=this.items[e];if(typeof n<"u"){this.splayOnTop(n),this.V[n]=t;return}this.size<this.capacity?n=this.size++:(n=this.tail,this.tail=this.backward[n],delete this.items[this.K[n]]),this.items[e]=n,this.K[n]=e,this.V[n]=t,this.forward[n]=this.head,this.backward[this.head]=n,this.head=n};C.prototype.setpop=function(e,t){var n=null,o=null,s=this.items[e];return typeof s<"u"?(this.splayOnTop(s),n=this.V[s],this.V[s]=t,{evicted:!1,key:e,value:n}):(this.size<this.capacity?s=this.size++:(s=this.tail,this.tail=this.backward[s],n=this.V[s],o=this.K[s],delete this.items[this.K[s]]),this.items[e]=s,this.K[s]=e,this.V[s]=t,this.forward[s]=this.head,this.backward[this.head]=s,this.head=s,o?{evicted:!0,key:o,value:n}:null)};C.prototype.has=function(e){return e in this.items};C.prototype.get=function(e){var t=this.items[e];if(!(typeof t>"u"))return this.splayOnTop(t),this.V[t]};C.prototype.peek=function(e){var t=this.items[e];if(!(typeof t>"u"))return this.V[t]};C.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var n=0,o=this.size,s=this.head,i=this.K,a=this.V,c=this.forward;n<o;)e.call(t,a[s],i[s],this),s=c[s],n++};C.prototype.keys=function(){var e=0,t=this.size,n=this.head,o=this.K,s=this.forward;return new Ur(function(){if(e>=t)return{done:!0};var i=o[n];return e++,e<t&&(n=s[n]),{done:!1,value:i}})};C.prototype.values=function(){var e=0,t=this.size,n=this.head,o=this.V,s=this.forward;return new Ur(function(){if(e>=t)return{done:!0};var i=o[n];return e++,e<t&&(n=s[n]),{done:!1,value:i}})};C.prototype.entries=function(){var e=0,t=this.size,n=this.head,o=this.K,s=this.V,i=this.forward;return new Ur(function(){if(e>=t)return{done:!0};var a=o[n],c=s[n];return e++,e<t&&(n=i[n]),{done:!1,value:[a,c]}})};typeof Symbol<"u"&&(C.prototype[Symbol.iterator]=C.prototype.entries);C.prototype.inspect=function(){for(var e=new Map,t=this.entries(),n;n=t.next(),!n.done;)e.set(n.value[0],n.value[1]);return Object.defineProperty(e,"constructor",{value:C,enumerable:!1}),e};typeof Symbol<"u"&&(C.prototype[Symbol.for("nodejs.util.inspect.custom")]=C.prototype.inspect);C.from=function(e,t,n,o){if(arguments.length<2){if(o=fp.guessLength(e),typeof o!="number")throw new Error("mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.")}else arguments.length===2&&(o=t,t=null,n=null);var s=new C(t,n,o);return mp(e,function(i,a){s.set(a,i)}),s};ws.exports=C});var co=r(async(e,t,n)=>({operation:nt(t).operation,region:await J(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultAthenaHttpAuthSchemeParametersProvider");function Aa(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"athena",region:e.region},propertiesExtractor:r((t,n)=>({signingProperties:{config:t,context:n}}),"propertiesExtractor")}}r(Aa,"createAwsAuthSigv4HttpAuthOption");var po=r(e=>{let t=[];switch(e.operation){default:t.push(Aa(e))}return t},"defaultAthenaHttpAuthSchemeProvider"),lo=r(e=>{let t=Yt(e);return Object.assign(t,{authSchemePreference:J(e.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig");var mo=r(e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"athena"}),"resolveClientEndpointParameters"),fo={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var yo={name:"@aws-sdk/client-athena",version:"3.1150.0",description:"AWS SDK for JavaScript Athena Client for Node.js, Browser and React Native",homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-athena",license:"Apache-2.0",author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/sdk-for-javascript/"},repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-athena"},files:["dist-*/**"],sideEffects:!1,main:"./dist-cjs/index.js",module:"./dist-es/index.js",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},types:"./dist-types/index.d.ts",typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},scripts:{build:"concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline","build:es":"premove dist-es && tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"premove dist-types && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service","test:index":"tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"},dependencies:{"@aws-sdk/core":"^3.978.3","@aws-sdk/credential-provider-node":"^3.972.86","@aws-sdk/types":"^3.974.6","@smithy/core":"^3.35.2","@smithy/fetch-http-handler":"^5.8.0","@smithy/node-http-handler":"^4.12.1","@smithy/types":"^4.19.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node20":"20.1.8","@types/node":"^20.14.8",concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~7.0.2"},engines:{node:">=20.0.0"}};var Oe="ref",oe=-1,tn=!0,ho="isSet",bo="PartitionResult",nn="booleanEquals",vo="getAttr",xo={[Oe]:"Endpoint"},_o={[Oe]:bo},Le={},So=[{[Oe]:"Region"}],go={conditions:[[ho,[xo]],[ho,So],["aws.partition",So,bo],[nn,[{[Oe]:"UseFIPS"},tn]],[nn,[{[Oe]:"UseDualStack"},tn]],[nn,[{fn:vo,argv:[_o,"supportsDualStack"]},tn]],[nn,[{fn:vo,argv:[_o,"supportsFIPS"]},tn]]],results:[[oe],[oe,"Invalid Configuration: FIPS and custom endpoint are not supported"],[oe,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[xo,Le],["https://athena-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Le],[oe,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://athena-fips.{Region}.{PartitionResult#dnsSuffix}",Le],[oe,"FIPS is enabled but this partition does not support FIPS"],["https://athena.{Region}.{PartitionResult#dualStackDnsSuffix}",Le],[oe,"DualStack is enabled but this partition does not support DualStack"],["https://athena.{Region}.{PartitionResult#dnsSuffix}",Le],[oe,"Invalid Configuration: Missing Region"]]},Da=2,P=1e8,ka=new Int32Array([-1,1,-1,0,12,3,1,4,P+11,2,5,P+11,3,8,6,4,7,P+10,5,P+8,P+9,4,10,9,6,P+6,P+7,5,11,P+5,6,P+4,P+5,3,P+1,13,4,P+2,P+3]),Eo=gt.from(ka,Da,go.conditions,go.results);var wa=new bt({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Io=r((e,t={})=>wa.get(e,()=>It(Eo,{endpointParams:e,logger:t.logger})),"defaultEndpointResolver");Et.aws=qt;var O=class e extends st{static{r(this,"AthenaServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.athena#AthenaServiceException";constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}};var rn=class e extends O{static{r(this,"InternalServerException")}static shapeId="com.amazonaws.athena#InternalServerException";name="InternalServerException";$fault="server";Message;constructor(t){super({name:"InternalServerException",$fault:"server",...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},on=class e extends O{static{r(this,"InvalidRequestException")}static shapeId="com.amazonaws.athena#InvalidRequestException";name="InvalidRequestException";$fault="client";AthenaErrorCode;Message;constructor(t){super({name:"InvalidRequestException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.AthenaErrorCode=t.AthenaErrorCode,this.Message=t.Message}},sn=class e extends O{static{r(this,"TooManyRequestsException")}static shapeId="com.amazonaws.athena#TooManyRequestsException";name="TooManyRequestsException";$fault="client";Message;Reason;constructor(t){super({name:"TooManyRequestsException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message,this.Reason=t.Reason}},an=class e extends O{static{r(this,"ResourceNotFoundException")}static shapeId="com.amazonaws.athena#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";Message;ResourceName;constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message,this.ResourceName=t.ResourceName}},un=class e extends O{static{r(this,"MetadataException")}static shapeId="com.amazonaws.athena#MetadataException";name="MetadataException";$fault="client";Message;constructor(t){super({name:"MetadataException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},cn=class e extends O{static{r(this,"SessionAlreadyExistsException")}static shapeId="com.amazonaws.athena#SessionAlreadyExistsException";name="SessionAlreadyExistsException";$fault="client";Message;constructor(t){super({name:"SessionAlreadyExistsException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}};var Co="AclConfiguration",Pa="AdditionalConfigs";var To="AthenaError",$a="AthenaErrorCode";var Na="AuthenticationType";var La="Classification";var Oa="CoordinatorDpuSize",Ga="CompletionDateTime";var Ao="ColumnInfo",Ua="ColumnInfoList";var Ma="ClassificationList";var Ba="CatalogName";var Fa="ClientRequestToken";var Va="CaseSensitive";var Ka="CreateUserLevelPrefix";var ja="Catalog";var Wa="Classifications";var Qa="DpuCount";var qa="DefaultExecutorDpuSize";var za="DataManifestLocation";var Ha="DataScannedInBytes";var Xa="Database",Ja="Datum",Ya="Data",Ro="Enabled",Za="ExpectedBucketOwner",eu="ErrorCategory",Ir="EncryptionConfiguration",Do="EngineConfiguration";var tu="EngineExecutionTimeInMillis",nu="EffectiveEngineVersion";var ru="ErrorMessage";var ou="EncryptionOption",ko="ExecutionParameters";var su="EnableS3AccessGrants";var iu="ErrorType";var wo="EngineVersion";var au="GetQueryExecution",uu="GetQueryExecutionInput",cu="GetQueryExecutionOutput",pu="GetQueryResults",lu="GetQueryResultsInput",mu="GetQueryResultsOutput";var du="InvalidRequestException";var fu="InternalServerException";var Po="KmsKey",yu="Label";var ye="Message",hu="MaxAgeInMinutes";var vu="MaxConcurrentDpus",xu="MetadataException";var $o="ManagedQueryResultsConfiguration";var _u="ManagedQueryResultsEncryptionConfiguration",Su="MaxResults",No="Name";var Lo="NextToken";var gu="Nullable";var bu="OutputLocation";var Eu="Properties",Iu="Precision",Cu="Query";var Cr="QueryExecutionContext";var pn="QueryExecutionId";var Tu="QueryExecutionStatistics",Au="QueryExecutionStatus",Oo="QueryExecution",Ru="QueryPlanningTimeInMillis",Du="QueryQueueTimeInMillis";var Go="QueryResultsS3AccessGrantsConfiguration";var ku="QueryResultType",wu="QueryString";var Pu="Reason";var Tr="ResultConfiguration";var $u="RowList",Nu="ResourceName",Lu="ResourceNotFoundException";var Ou="ReusedPreviousResult",Uo="ResultReuseByAgeConfiguration",Ar="ResultReuseConfiguration",Mo="ResultReuseInformation",Bo="ResultSet",Fo="ResultSetMetadata";var Gu="Retryable";var Uu="Rows",Mu="Row",Bu="State",Fu="SessionAlreadyExistsException",Vu="S3AclOption";var Ku="StateChangeReason";var ju="SubmissionDateTime";var Wu="SelectedEngineVersion";var Qu="SchemaName";var qu="SparkProperties",zu="ServicePreProcessingTimeInMillis",Hu="ServiceProcessingTimeInMillis",Xu="StartQueryExecution",Ju="StartQueryExecutionInput";var Yu="StartQueryExecutionOutput";var Zu="StatementType",ec="SubstatementType",tc="Scale";var nc="Status",rc="Statistics",oc="Type";var sc="TotalExecutionTimeInMillis";var ic="TooManyRequestsException",ac="TableName";var uc="UpdateCount";var cc="VarCharValue";var Vo="WorkGroup";var Ge="client",pc="datumList",he="error",Ko="smithy.ts.sdk.synthetic.com.amazonaws.athena",lc="server",f="com.amazonaws.athena",jo=new me(Ko),mc=[-3,Ko,"AthenaServiceException",0,[],[]];jo.registerError(mc,O);var se=new me(f),dc=[-3,f,fu,{[he]:lc},[ye],[0]];se.registerError(dc,rn);var fc=[-3,f,du,{[he]:Ge},[$a,ye],[0,0]];se.registerError(fc,on);var yc=[-3,f,xu,{[he]:Ge},[ye],[0]];se.registerError(yc,un);var hc=[-3,f,Lu,{[he]:Ge},[ye,Nu],[0,0]];se.registerError(hc,an);var vc=[-3,f,Fu,{[he]:Ge},[ye],[0]];se.registerError(vc,cn);var xc=[-3,f,ic,{[he]:Ge},[ye,Pu],[0,0]];se.registerError(xc,sn);var Wo=[jo,se],_c=[3,f,Co,0,[Vu],[0],1];var Sc=[3,f,To,0,[eu,iu,Gu,ru],[1,1,2,0]];var gc=[3,f,La,0,[No,Eu],[0,128]];var bc=[3,f,Ao,0,[No,oc,Ba,Qu,ac,yu,Iu,tc,gu,Va],[0,0,0,0,0,0,1,1,0,2],2];var Ec=[3,f,Ja,0,[cc],[0]];var Ic=[3,f,Ir,0,[ou,Po],[0,0],1],Cc=[3,f,Do,0,[Oa,vu,qa,Pa,qu,Wa],[1,1,1,128,128,()=>jc]],Tc=[3,f,wo,0,[Wu,nu],[0,0]];var Ac=[3,f,uu,0,[pn],[0],1],Rc=[3,f,cu,0,[Oo],[()=>$c]],Dc=[3,f,lu,0,[pn,Lo,Su,ku],[0,0,1,0],1],kc=[3,f,mu,0,[uc,Bo,Lo],[1,()=>Mc,0]];var wc=[3,f,$o,0,[Ro,Ir],[2,()=>Pc],1];var Pc=[3,f,_u,0,[Po],[0],1];var $c=[3,f,Oo,0,[pn,Cu,Zu,$o,Tr,Ar,Cr,nc,rc,Vo,wo,ko,ec,Go],[0,0,0,()=>wc,()=>qo,()=>zo,()=>Qo,()=>Lc,()=>Nc,0,()=>Tc,64,0,()=>Oc]],Qo=[3,f,Cr,0,[Xa,ja],[0,0]],Nc=[3,f,Tu,0,[tu,Ha,za,sc,Du,zu,Ru,Hu,Mo,Qa],[1,1,0,1,1,1,1,1,()=>Uc,1]],Lc=[3,f,Au,0,[Bu,Ku,ju,Ga,To],[0,0,4,4,()=>Sc]],Oc=[3,f,Go,0,[su,Na,Ka],[2,0,2],2];var qo=[3,f,Tr,0,[bu,Ir,Za,Co],[0,()=>Ic,0,()=>_c]];var Gc=[3,f,Uo,0,[Ro,hu],[2,1],1],zo=[3,f,Ar,0,[Uo],[()=>Gc]],Uc=[3,f,Mo,0,[Ou],[2],1],Mc=[3,f,Bo,0,[Uu,Fo],[()=>qc,()=>Bc]],Bc=[3,f,Fo,0,[Ao],[()=>Wc]],Fc=[3,f,Mu,0,[Ya],[()=>Qc]];var Vc=[3,f,Ju,0,[wu,Fa,Cr,Tr,Vo,ko,Ar,Do],[0,[0,4],()=>Qo,()=>qo,0,64,()=>zo,()=>Cc],1],Kc=[3,f,Yu,0,[pn],[0]];var jc=[1,f,Ma,0,()=>gc],Wc=[1,f,Ua,0,()=>bc];var Qc=[1,f,pc,0,()=>Ec];var qc=[1,f,$u,0,()=>Fc];var Ho=[9,f,au,0,()=>Ac,()=>Rc],Xo=[9,f,pu,0,()=>Dc,()=>kc];var Jo=[9,f,Xu,2,()=>Vc,()=>Kc];var Yo=r(e=>({apiVersion:"2017-05-18",base64Decoder:e?.base64Decoder??de,base64Encoder:e?.base64Encoder??fe,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Io,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??po,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:r(t=>t.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new Xt}],logger:e?.logger??new pt,protocol:e?.protocol??uo,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.athena",errorTypeRegistries:Wo,version:"2017-05-18",serviceTarget:"AmazonAthena"},serviceId:e?.serviceId??"Athena",sha256:e?.sha256??Rt,urlParser:e?.urlParser??rt,utf8Decoder:e?.utf8Decoder??mt,utf8Encoder:e?.utf8Encoder??dt}),"getRuntimeConfig");var Zo=r(e=>{at(process.version);let t=St(e),n=r(()=>t().then(it),"defaultConfigProvider"),o=Yo(e);tt(process.version);let s={profile:e?.profile,logger:o.logger};return{...o,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??T(Jt,s),bodyLengthChecker:e?.bodyLengthChecker??ft,credentialDefaultProvider:e?.credentialDefaultProvider??en,defaultUserAgentProvider:e?.defaultUserAgentProvider??Wt({serviceId:o.serviceId,clientVersion:yo.version}),maxAttempts:e?.maxAttempts??T(Ne,e),region:e?.region??T(vt,{...xt,...s}),requestHandler:Zt.create(e?.requestHandler??n),retryMode:e?.retryMode??T({...Nt,default:r(async()=>(await n()).retryMode||Pt,"default")},e),streamCollector:e?.streamCollector??At,useDualstackEndpoint:e?.useDualstackEndpoint??T(yt,s),useFipsEndpoint:e?.useFipsEndpoint??T(ht,s),userAgentAppId:e?.userAgentAppId??T(Qt,s)}},"getRuntimeConfig");var es=r(e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,o=e.credentials;return{setHttpAuthScheme(s){let i=t.findIndex(a=>a.schemeId===s.schemeId);i===-1?t.push(s):t.splice(i,1,s)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(s){n=s},httpAuthSchemeProvider(){return n},setCredentials(s){o=s},credentials(){return o}}},"getHttpAuthExtensionConfiguration"),ts=r(e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),"resolveHttpAuthRuntimeConfig");var ns=r((e,t)=>{let n=Object.assign(zt(e),ut(e),Dt(e),es(e));return t.forEach(o=>o.configure(n)),Object.assign(e,Ht(n),ct(n),kt(n),ts(n))},"resolveRuntimeExtensions");var ln=class extends le{static{r(this,"AthenaClient")}config;constructor(...[t]){let n=Zo(t||{});super(n),this.initConfig=n;let o=mo(n),s=Kt(o),i=$t(s),a=_t(i),c=a,m=Ct(c),p=lo(m),g=ns(p,t?.extensions||[]);this.config=g,this.middlewareStack.use(ot(this.config)),this.middlewareStack.use(jt(this.config)),this.middlewareStack.use(Lt(this.config)),this.middlewareStack.use(wt(this.config)),this.middlewareStack.use(Ot(this.config)),this.middlewareStack.use(Gt(this.config)),this.middlewareStack.use(Ut(this.config)),this.middlewareStack.use(Mt(this.config,{httpAuthSchemeParametersProvider:co,identityProviderConfigProvider:r(async re=>new Vt({"aws.auth#sigv4":re.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Bt(this.config))}destroy(){super.destroy()}};var ve=lt(fo,"AmazonAthena","AthenaClient",Tt),xe={},_e=r((e,t,n,o)=>[],"_mw0");var mn=class extends ve(xe,_e,"GetQueryExecution",Ho){static{r(this,"GetQueryExecutionCommand")}};var dn=class extends ve(xe,_e,"GetQueryResults",Xo){static{r(this,"GetQueryResultsCommand")}};var fn=class extends ve(xe,_e,"StartQueryExecution",Jo){static{r(this,"StartQueryExecutionCommand")}};var ie=class e{static{r(this,"NumberValue")}value;constructor(t){typeof t=="object"&&"N"in t?this.value=String(t.N):this.value=String(t);let n=typeof t.valueOf()=="number"?t.valueOf():0;if(n>Number.MAX_SAFE_INTEGER||n<Number.MIN_SAFE_INTEGER||Math.abs(n)===1/0||Number.isNaN(n))throw new Error(`NumberValue should not be initialized with an imprecise number=${n}. Use a string instead.`)}static from(t){return new e(t)}toAttributeValue(){return{N:this.toString()}}toBigInt(){let t=this.toString();return BigInt(t)}toString(){return String(this.value)}valueOf(){return this.toString()}};var Ue=r((e,t)=>{if(e===void 0)throw new Error("Pass options.removeUndefinedValues=true to remove undefined values from map/array/set.");if(e===null&&typeof e=="object")return yn();if(Array.isArray(e))return Hc(e,t);if(e?.constructor?.name==="Set")return Xc(e,t);if(e?.constructor?.name==="Map")return Jc(e,t);if(e?.constructor?.name==="Object"||!e.constructor&&typeof e=="object")return rs(e,t);if(cs(e))return e.length===0&&t?.convertEmptyValues?yn():ss(e);if(typeof e=="boolean"||e?.constructor?.name==="Boolean")return{BOOL:e.valueOf()};if(typeof e=="number"||e?.constructor?.name==="Number")return us(e,t);if(e instanceof ie)return e.toAttributeValue();if(typeof e=="bigint")return as(e);if(typeof e=="string"||e?.constructor?.name==="String")return e.length===0&&t?.convertEmptyValues?yn():is(e);if(t?.convertClassInstanceToMap&&typeof e=="object")return rs(e,t);throw new Error(`Unsupported type passed: ${e}. Pass options.convertClassInstanceToMap=true to marshall typeof object as map attribute.`)},"convertToAttr"),Hc=r((e,t)=>({L:e.filter(n=>typeof n!="function"&&(!t?.removeUndefinedValues||t?.removeUndefinedValues&&n!==void 0)).map(n=>Ue(n,t))}),"convertToListAttr"),Xc=r((e,t)=>{let n=t?.removeUndefinedValues?new Set([...e].filter(s=>s!==void 0)):e;if(!t?.removeUndefinedValues&&n.has(void 0))throw new Error("Pass options.removeUndefinedValues=true to remove undefined values from map/array/set.");if(n.size===0){if(t?.convertEmptyValues)return yn();throw new Error("Pass a non-empty set, or options.convertEmptyValues=true.")}let o=n.values().next().value;if(o instanceof ie)return{NS:Array.from(n).map(s=>s.toString())};if(typeof o=="number")return{NS:Array.from(n).map(s=>us(s,t)).map(s=>s.N)};if(typeof o=="bigint")return{NS:Array.from(n).map(as).map(s=>s.N)};if(typeof o=="string")return{SS:Array.from(n).map(is).map(s=>s.S)};if(cs(o))return{BS:Array.from(n).map(ss).map(s=>s.B)};throw new Error("Only Number Set (NS), Binary Set (BS) or String Set (SS) are allowed.")},"convertToSetAttr"),Jc=r((e,t)=>({M:(n=>{let o={};for(let[s,i]of n)typeof i!="function"&&(i!==void 0||!t?.removeUndefinedValues)&&(o[s]=Ue(i,t));return o})(e)}),"convertToMapAttrFromIterable"),rs=r((e,t)=>({M:(n=>{let o={};for(let s in n){let i=n[s];typeof i!="function"&&(i!==void 0||!t?.removeUndefinedValues)&&(o[s]=Ue(i,t))}return o})(e)}),"convertToMapAttrFromEnumerableProps"),yn=r(()=>({NULL:!0}),"convertToNullAttr"),ss=r(e=>({B:e}),"convertToBinaryAttr"),is=r(e=>({S:e.toString()}),"convertToStringAttr"),as=r(e=>({N:e.toString()}),"convertToBigIntAttr"),os=r(e=>{throw new Error(`${e} Use NumberValue from @aws-sdk/lib-dynamodb.`)},"validateBigIntAndThrow"),us=r((e,t)=>{if([Number.NaN,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY].map(n=>n.toString()).includes(e.toString()))throw new Error(`Special numeric value ${e.toString()} is not allowed`);return t?.allowImpreciseNumbers||(Number(e)>Number.MAX_SAFE_INTEGER?os(`Number ${e.toString()} is greater than Number.MAX_SAFE_INTEGER.`):Number(e)<Number.MIN_SAFE_INTEGER&&os(`Number ${e.toString()} is lesser than Number.MIN_SAFE_INTEGER.`)),{N:e.toString()}},"convertToNumberAttr"),cs=r(e=>{let t=["ArrayBuffer","Blob","Buffer","DataView","File","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];return e?.constructor?t.includes(e.constructor.name):!1},"isBinary");var Me=r((e,t)=>{for(let[n,o]of Object.entries(e))if(o!==void 0)switch(n){case"NULL":return null;case"BOOL":return!!o;case"N":return ps(o,t);case"B":return ms(o);case"S":return ls(o);case"L":return Yc(o,t);case"M":return Zc(o,t);case"NS":return new Set(o.map(s=>ps(s,t)));case"BS":return new Set(o.map(ms));case"SS":return new Set(o.map(ls));default:throw new Error(`Unsupported type passed: ${n}`)}throw new Error(`No value defined: ${JSON.stringify(e)}`)},"convertToNative"),ps=r((e,t)=>{if(typeof t?.wrapNumbers=="function")return t?.wrapNumbers(e);if(t?.wrapNumbers)return ie.from(e);let n=Number(e),o=[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];if((n>Number.MAX_SAFE_INTEGER||n<Number.MIN_SAFE_INTEGER)&&!o.includes(n))if(typeof BigInt=="function")try{return BigInt(e)}catch{throw new Error(`${e} can't be converted to BigInt. Set options.wrapNumbers to get string value.`)}else throw new Error(`${e} is outside SAFE_INTEGER bounds. Set options.wrapNumbers to get string value.`);return n},"convertNumber"),ls=r(e=>e,"convertString"),ms=r(e=>e,"convertBinary"),Yc=r((e,t)=>e.map(n=>Me(n,t)),"convertList"),Zc=r((e,t)=>Object.entries(e).reduce((n,[o,s])=>(n[o]=Me(s,t),n),{}),"convertMap");function Rr(e,t){let n=Ue(e,t),[o,s]=Object.entries(n)[0];switch(o){case"M":case"L":return t?.convertTopLevelContainer?n:s;default:return n}}r(Rr,"marshall");var Dr=r((e,t)=>t?.convertWithoutMapWrapper?Me(e,t):Me({M:e},t),"unmarshall");var ae=null,d={},k=[],ds="*",hn=r((e,t,n)=>{if(e!==void 0){if(n==null)return t(e);{let o=Object.keys(n),s=o.length===1&&o[0]===ds,i=o.length>=1&&!s,a=o.length===0;if(i)return kr(e,t,n);if(a)return ep(e,t,ae);if(s)return Object.entries(e??{}).reduce((c,[m,p])=>(typeof p!="function"&&(c[m]=hn(p,t,n[ds])),c),Array.isArray(e)?[]:{})}}},"processObj"),kr=r((e,t,n)=>{let o;if(Array.isArray(e))o=e.filter(s=>typeof s!="function");else{o={};for(let[s,i]of Object.entries(e))typeof i!="function"&&(o[s]=i)}for(let[s,i]of Object.entries(n)){if(typeof e[s]=="function")continue;let a=hn(e[s],t,i);a!==void 0&&typeof a!="function"&&(o[s]=a)}return o},"processKeysInObj"),ep=r((e,t,n)=>Array.isArray(e)?e.filter(o=>typeof o!="function").map(o=>hn(o,t,n)):Object.entries(e).reduce((o,[s,i])=>{if(typeof i=="function")return o;let a=hn(i,t,n);return a!==void 0&&typeof a!="function"&&(o[s]=a),o},{}),"processAllKeysInObj"),fs=r((e,t,n)=>kr(e,r(s=>Rr(s,n),"marshallFunc"),t),"marshallInput"),ys=r((e,t,n)=>kr(e,r(s=>Dr(s,n),"unmarshallFunc"),t),"unmarshallOutput");var b=class extends no{static{r(this,"DynamoDBDocumentClientCommand")}addMarshallingMiddleware(t){let{marshallOptions:n={},unmarshallOptions:o={}}=t.translateConfig||{};n.convertTopLevelContainer=n.convertTopLevelContainer??!0,o.convertWithoutMapWrapper=o.convertWithoutMapWrapper??!0,this.clientCommand.middlewareStack.addRelativeTo((s,i)=>async a=>(ro(i,"DDB_MAPPER","d"),s({...a,input:fs(a.input,this.inputKeyNodes,n)})),{name:"DocumentMarshall",relation:"before",toMiddleware:"serializerMiddleware",override:!0}),this.clientCommand.middlewareStack.addRelativeTo((s,i)=>async a=>{let c=await s(a);return c.output=ys(c.output,this.outputKeyNodes,o),c},{name:"DocumentUnmarshall",relation:"before",toMiddleware:"deserializerMiddleware",override:!0})}};var vn="preferred",tp=["disabled","preferred","required"];function Be(e){return tp.includes(e)}r(Be,"validateAccountIdEndpointMode");var wr=r(e=>{let{accountIdEndpointMode:t}=e,n=J(t??vn);return Object.assign(e,{accountIdEndpointMode:r(async()=>{let o=await n();if(!Be(o))throw new Error(`Invalid value for accountIdEndpointMode: ${o}. Valid values are: "required", "preferred", "disabled".`);return o},"accountIdEndpointMode")})},"resolveAccountIdEndpointModeConfig");var hs="Invalid AccountIdEndpointMode value",vs=r(e=>{throw new Error(e)},"_throw"),xs="AWS_ACCOUNT_ID_ENDPOINT_MODE",_s="account_id_endpoint_mode",Pr={environmentVariableSelector:r(e=>{let t=e[xs];return t&&!Be(t)&&vs(hs),t},"environmentVariableSelector"),configFileSelector:r(e=>{let t=e[_s];return t&&!Be(t)&&vs(hs),t},"configFileSelector"),default:vn};var Ss=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"],$r="endpoint_discovery_enabled",gs=r(e=>["false","0"].indexOf(e)>=0,"isFalsy"),Nr={environmentVariableSelector:r(e=>{for(let t=0;t<Ss.length;t++){let n=Ss[t];if(n in e){let o=e[n];if(o==="")throw Error(`Environment variable ${n} can't be empty of undefined, got "${o}"`);return!gs(o)}}},"environmentVariableSelector"),configFileSelector:r(e=>{if($r in e){let t=e[$r];if(t===void 0)throw Error(`Shared config entry ${$r} can't be undefined, got "${t}"`);return!gs(t)}},"configFileSelector"),default:void 0};var $s=Ta(Ps());var Ve=class{static{r(this,"EndpointCache")}cache;constructor(t){this.cache=new $s.default(t)}getEndpoint(t){let n=this.get(t);if(!n||n.length===0)return;let o=n.map(s=>s.Address);return o[Math.floor(Math.random()*o.length)]}get(t){if(!this.has(t))return;let n=this.cache.get(t);if(!n)return;let o=Date.now(),s=n.filter(i=>o<i.Expires);if(s.length===0){this.delete(t);return}return s}set(t,n){let o=Date.now();this.cache.set(t,n.map(({Address:s,CachePeriodInMinutes:i})=>({Address:s,Expires:o+i*60*1e3})))}delete(t){this.cache.set(t,[])}has(t){if(!this.cache.has(t))return!1;let n=this.cache.peek(t);return n?n.length>0:!1}clear(){this.cache.clear()}};var Mr=r((e,{endpointDiscoveryCommandCtor:t})=>{let{endpointCacheSize:n,endpointDiscoveryEnabled:o,endpointDiscoveryEnabledProvider:s}=e;return Object.assign(e,{endpointDiscoveryCommandCtor:t,endpointCache:new Ve(n??1e3),endpointDiscoveryEnabled:o!==void 0?()=>Promise.resolve(o):s,isClientEndpointDiscoveryEnabled:o!==void 0})},"resolveEndpointDiscoveryConfig");var Ns=r(async(e,t,n)=>({operation:nt(t).operation,region:await J(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultDynamoDBHttpAuthSchemeParametersProvider");function yp(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"dynamodb",region:e.region},propertiesExtractor:r((t,n)=>({signingProperties:{config:t,context:n}}),"propertiesExtractor")}}r(yp,"createAwsAuthSigv4HttpAuthOption");var Ls=r(e=>{let t=[];switch(e.operation){default:t.push(yp(e))}return t},"defaultDynamoDBHttpAuthSchemeProvider"),Os=r(e=>{let t=Yt(e);return Object.assign(t,{authSchemePreference:J(e.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig");var Gs=r(e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"dynamodb"}),"resolveClientEndpointParameters"),Us={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},AccountId:{type:"builtInParams",name:"accountId"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"},AccountIdEndpointMode:{type:"builtInParams",name:"accountIdEndpointMode"}};var A=lt(Us,"DynamoDB_20120810","DynamoDBClient",Tt),Ms={},Bs={ResourceArnList:{type:"operationContextParams",get:r(e=>Object.keys(e?.RequestItems??{}),"get")}},V={ResourceArn:{type:"contextParams",name:"TableName"}};var Fs={ResourceArnList:{type:"operationContextParams",get:r(e=>e?.TransactItems?.map(t=>[t?.ConditionCheck?.TableName,t?.Put?.TableName,t?.Delete?.TableName,t?.Update?.TableName].filter(n=>n)).flat(),"get")}},R=r((e,t,n,o)=>[],"_mw0");var y=class e extends st{static{r(this,"DynamoDBServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.dynamodb#DynamoDBServiceException";constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}};var xn=class e extends y{static{r(this,"BackupInUseException")}static shapeId="com.amazonaws.dynamodb#BackupInUseException";name="BackupInUseException";$fault="client";constructor(t){super({name:"BackupInUseException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},_n=class e extends y{static{r(this,"BackupNotFoundException")}static shapeId="com.amazonaws.dynamodb#BackupNotFoundException";name="BackupNotFoundException";$fault="client";constructor(t){super({name:"BackupNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Sn=class e extends y{static{r(this,"InternalServerError")}static shapeId="com.amazonaws.dynamodb#InternalServerError";name="InternalServerError";$fault="server";constructor(t){super({name:"InternalServerError",$fault:"server",...t}),Object.setPrototypeOf(this,e.prototype)}},gn=class e extends y{static{r(this,"RequestLimitExceeded")}static shapeId="com.amazonaws.dynamodb#RequestLimitExceeded";name="RequestLimitExceeded";$fault="client";ThrottlingReasons;constructor(t){super({name:"RequestLimitExceeded",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.ThrottlingReasons=t.ThrottlingReasons}},bn=class e extends y{static{r(this,"ThrottlingException")}static shapeId="com.amazonaws.dynamodb#ThrottlingException";name="ThrottlingException";$fault="client";throttlingReasons;constructor(t){super({name:"ThrottlingException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.throttlingReasons=t.throttlingReasons}},En=class e extends y{static{r(this,"InvalidEndpointException")}static shapeId="com.amazonaws.dynamodb#InvalidEndpointException";name="InvalidEndpointException";$fault="client";Message;constructor(t){super({name:"InvalidEndpointException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},In=class e extends y{static{r(this,"ProvisionedThroughputExceededException")}static shapeId="com.amazonaws.dynamodb#ProvisionedThroughputExceededException";name="ProvisionedThroughputExceededException";$fault="client";ThrottlingReasons;constructor(t){super({name:"ProvisionedThroughputExceededException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.ThrottlingReasons=t.ThrottlingReasons}},Cn=class e extends y{static{r(this,"ResourceNotFoundException")}static shapeId="com.amazonaws.dynamodb#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Tn=class e extends y{static{r(this,"ItemCollectionSizeLimitExceededException")}static shapeId="com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException";name="ItemCollectionSizeLimitExceededException";$fault="client";constructor(t){super({name:"ItemCollectionSizeLimitExceededException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},An=class e extends y{static{r(this,"ReplicatedWriteConflictException")}static shapeId="com.amazonaws.dynamodb#ReplicatedWriteConflictException";name="ReplicatedWriteConflictException";$fault="client";$retryable={};constructor(t){super({name:"ReplicatedWriteConflictException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Rn=class e extends y{static{r(this,"ContinuousBackupsUnavailableException")}static shapeId="com.amazonaws.dynamodb#ContinuousBackupsUnavailableException";name="ContinuousBackupsUnavailableException";$fault="client";constructor(t){super({name:"ContinuousBackupsUnavailableException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Dn=class e extends y{static{r(this,"LimitExceededException")}static shapeId="com.amazonaws.dynamodb#LimitExceededException";name="LimitExceededException";$fault="client";constructor(t){super({name:"LimitExceededException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},kn=class e extends y{static{r(this,"TableInUseException")}static shapeId="com.amazonaws.dynamodb#TableInUseException";name="TableInUseException";$fault="client";constructor(t){super({name:"TableInUseException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},wn=class e extends y{static{r(this,"TableNotFoundException")}static shapeId="com.amazonaws.dynamodb#TableNotFoundException";name="TableNotFoundException";$fault="client";constructor(t){super({name:"TableNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Pn=class e extends y{static{r(this,"GlobalTableAlreadyExistsException")}static shapeId="com.amazonaws.dynamodb#GlobalTableAlreadyExistsException";name="GlobalTableAlreadyExistsException";$fault="client";constructor(t){super({name:"GlobalTableAlreadyExistsException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},$n=class e extends y{static{r(this,"ResourceInUseException")}static shapeId="com.amazonaws.dynamodb#ResourceInUseException";name="ResourceInUseException";$fault="client";constructor(t){super({name:"ResourceInUseException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Nn=class e extends y{static{r(this,"TransactionConflictException")}static shapeId="com.amazonaws.dynamodb#TransactionConflictException";name="TransactionConflictException";$fault="client";constructor(t){super({name:"TransactionConflictException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Ln=class e extends y{static{r(this,"PolicyNotFoundException")}static shapeId="com.amazonaws.dynamodb#PolicyNotFoundException";name="PolicyNotFoundException";$fault="client";constructor(t){super({name:"PolicyNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},On=class e extends y{static{r(this,"ExportNotFoundException")}static shapeId="com.amazonaws.dynamodb#ExportNotFoundException";name="ExportNotFoundException";$fault="client";constructor(t){super({name:"ExportNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Gn=class e extends y{static{r(this,"GlobalTableNotFoundException")}static shapeId="com.amazonaws.dynamodb#GlobalTableNotFoundException";name="GlobalTableNotFoundException";$fault="client";constructor(t){super({name:"GlobalTableNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Un=class e extends y{static{r(this,"ImportNotFoundException")}static shapeId="com.amazonaws.dynamodb#ImportNotFoundException";name="ImportNotFoundException";$fault="client";constructor(t){super({name:"ImportNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Mn=class e extends y{static{r(this,"DuplicateItemException")}static shapeId="com.amazonaws.dynamodb#DuplicateItemException";name="DuplicateItemException";$fault="client";constructor(t){super({name:"DuplicateItemException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Bn=class e extends y{static{r(this,"IdempotentParameterMismatchException")}static shapeId="com.amazonaws.dynamodb#IdempotentParameterMismatchException";name="IdempotentParameterMismatchException";$fault="client";Message;constructor(t){super({name:"IdempotentParameterMismatchException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Fn=class e extends y{static{r(this,"TransactionInProgressException")}static shapeId="com.amazonaws.dynamodb#TransactionInProgressException";name="TransactionInProgressException";$fault="client";Message;constructor(t){super({name:"TransactionInProgressException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Vn=class e extends y{static{r(this,"ExportConflictException")}static shapeId="com.amazonaws.dynamodb#ExportConflictException";name="ExportConflictException";$fault="client";constructor(t){super({name:"ExportConflictException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Kn=class e extends y{static{r(this,"InvalidExportTimeException")}static shapeId="com.amazonaws.dynamodb#InvalidExportTimeException";name="InvalidExportTimeException";$fault="client";constructor(t){super({name:"InvalidExportTimeException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},jn=class e extends y{static{r(this,"PointInTimeRecoveryUnavailableException")}static shapeId="com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException";name="PointInTimeRecoveryUnavailableException";$fault="client";constructor(t){super({name:"PointInTimeRecoveryUnavailableException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Wn=class e extends y{static{r(this,"ImportConflictException")}static shapeId="com.amazonaws.dynamodb#ImportConflictException";name="ImportConflictException";$fault="client";constructor(t){super({name:"ImportConflictException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Qn=class e extends y{static{r(this,"TableAlreadyExistsException")}static shapeId="com.amazonaws.dynamodb#TableAlreadyExistsException";name="TableAlreadyExistsException";$fault="client";constructor(t){super({name:"TableAlreadyExistsException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},qn=class e extends y{static{r(this,"InvalidRestoreTimeException")}static shapeId="com.amazonaws.dynamodb#InvalidRestoreTimeException";name="InvalidRestoreTimeException";$fault="client";constructor(t){super({name:"InvalidRestoreTimeException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},zn=class e extends y{static{r(this,"ReplicaAlreadyExistsException")}static shapeId="com.amazonaws.dynamodb#ReplicaAlreadyExistsException";name="ReplicaAlreadyExistsException";$fault="client";constructor(t){super({name:"ReplicaAlreadyExistsException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Hn=class e extends y{static{r(this,"ReplicaNotFoundException")}static shapeId="com.amazonaws.dynamodb#ReplicaNotFoundException";name="ReplicaNotFoundException";$fault="client";constructor(t){super({name:"ReplicaNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Xn=class e extends y{static{r(this,"IndexNotFoundException")}static shapeId="com.amazonaws.dynamodb#IndexNotFoundException";name="IndexNotFoundException";$fault="client";constructor(t){super({name:"IndexNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Jn=class e extends y{static{r(this,"ConditionalCheckFailedException")}static shapeId="com.amazonaws.dynamodb#ConditionalCheckFailedException";name="ConditionalCheckFailedException";$fault="client";Item;constructor(t){super({name:"ConditionalCheckFailedException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Item=t.Item}},Yn=class e extends y{static{r(this,"TransactionCanceledException")}static shapeId="com.amazonaws.dynamodb#TransactionCanceledException";name="TransactionCanceledException";$fault="client";Message;CancellationReasons;constructor(t){super({name:"TransactionCanceledException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message,this.CancellationReasons=t.CancellationReasons}};var hp="Action";var vp="AttributeMap";var Zn="AttributesToGet",Ks="AttributeUpdates",xp="AttributeValue",Br="AttributeValueList",_p="AttributeValueUpdate",Sp="Address",js="Attributes";var gp="BatchGetItem",bp="BatchGetItemInput",Ep="BatchGetItemOutput",Ip="BatchGetResponseMap",Cp="BatchGetRequestMap",Tp="BackupInUseException";var Ap="BackupNotFoundException",Rp="BOOL";var Dp="BS";var kp="B",wp="Code";var Pp="ContinuousBackupsUnavailableException",Y="ConsumedCapacity",$p="ConditionalCheckFailedException",Np="ConsumedCapacityMultiple",Ws="ConditionCheck";var Se="ConditionExpression";var Qs="ComparisonOperator",er="ConditionalOperator";var Lp="CachePeriodInMinutes",Op="CancellationReasons";var Gp="CancellationReasonList",Up="ConfirmRemoveSelfResourceAccess",Mp="ClientRequestToken",Bp="CancellationReason",tr="ConsistentRead";var qs="CapacityUnits";var Fp="Capacity",Vp="Condition",zs="Count";var Kp="DescribeEndpoints";var jp="DescribeEndpointsRequest",Wp="DescribeEndpointsResponse";var Qp="DuplicateItemException";var Hs="Delete";var qp="ExpectedAttributeMap",K="ExpressionAttributeNames",Z="ExpressionAttributeValues",zp="ExpressionAttributeValueMap",Hp="ExpectedAttributeValue";var Xp="ExportConflictException";var Jp="ExportNotFoundException";var Yp="ExpectedRevisionId";var Xs="ExclusiveStartKey";var Js="Endpoints";var Zp="Endpoint",Ys="Expected",el="Exists";var tl="FilterConditionMap";var Zs="FilterExpression";var nl="GetItem",rl="GetItemInput",ol="GetItemOutput";var sl="GlobalSecondaryIndexes";var il="GlobalTableAlreadyExistsException";var al="GlobalTableNotFoundException";var Ke="Item";var ul="ImportConflictException",cl="ItemCollectionKey",pl="ItemCollectionKeyAttributeMap",nr="ItemCollectionMetrics",ll="ItemCollectionMetricsMultiple",ml="ItemCollectionMetricsPerTable",dl="ItemCollectionSizeLimitExceededException";var fl="InvalidEndpointException";var yl="InvalidExportTimeException";var hl="ItemList",ei="IndexName",vl="ImportNotFoundException",xl="IndexNotFoundException",_l="IdempotentParameterMismatchException";var Sl="InvalidRestoreTimeException";var gl="InternalServerError";var ti="Items",ge="Key",bl="KeysAndAttributes",ni="KeyConditions",El="KeyConditionExpression";var Il="KeyList";var Cl="Keys",ri="Limit",Tl="ListAttributeValue";var Al="LimitExceededException";var oi="LastEvaluatedKey";var Rl="LocalSecondaryIndexes";var Dl="L",je="Message",kl="MapAttributeValue";var wl="M",Pl="N";var $l="NS";var Nl="NULL";var rr="ProjectionExpression",Ll="PutItem";var Ol="PutItemInput",Gl="PutItemInputAttributeMap",Ul="PutItemOutput";var Ml="PointInTimeRecoveryUnavailableException";var Bl="PolicyNotFoundException";var Fl="PutResourcePolicyInput";var Vl="ProvisionedThroughputExceededException";var Kl="Policy";var si="Put",jl="Query",Wl="QueryFilter",Ql="QueryInput",ql="QueryOutput",zl="Responses",Hl="ResourceArn",Xl="ReplicaAlreadyExistsException";var ue="ReturnConsumedCapacity",ii="ReadCapacityUnits";var Jl="RequestItems",Fr="ReturnItemCollectionMetrics";var Yl="ResourceInUseException";var Zl="RequestLimitExceeded";var em="ReplicaNotFoundException",tm="ResourceNotFoundException";var ai="ReturnValues",be="ReturnValuesOnConditionCheckFailure",nm="ReplicatedWriteConflictException";var ui="ScannedCount";var rm="SizeEstimateRangeGB",om="ScanFilter",sm="ScanInput";var im="SecondaryIndexesCapacityMap",am="ScanIndexForward";var um="ScanOutput";var cm="SS";var pm="S";var lm="Scan",ci="Select",mm="Segment";var dm="Table";var fm="TableAlreadyExistsException";var ym="TransactionCanceledException",hm="TransactionConflictException";var vm="ThrottlingException";var xm="TransactionInProgressException",_m="TableInUseException",Sm="TransactItems";var j="TableName",gm="TableNotFoundException";var pi="ThrottlingReasons";var bm="ThrottlingReasonList";var Em="ThrottlingReason";var Im="TotalSegments";var Cm="TransactWriteItem",Tm="TransactWriteItemsInput",Am="TransactWriteItemList",Rm="TransactWriteItemsOutput",Dm="TransactWriteItems";var li="Update";var mi="UpdateExpression";var km="UpdateItemInput",wm="UpdateItemOutput",Pm="UpdateItem",$m="UnprocessedKeys";var di="Value";var Nm="VectorCapacity",Lm="VectorIndexes",Om="VectorIndexesCapacityMap";var Gm="VectorSearchRequestBytes",Um="VectorWriteRequestBytes",fi="WriteCapacityUnits";var Mm="awsQueryError",_="client",x="error",yi="httpError",Bm="httpHeader",S="message",Fm="reason",Vm="resource",hi="smithy.ts.sdk.synthetic.com.amazonaws.dynamodb",Km="server",jm="throttlingReasons",Wm="x-amz-confirm-remove-self-resource-access",u="com.amazonaws.dynamodb",vi=new me(hi),Qm=[-3,hi,"DynamoDBServiceException",0,[],[]];vi.registerError(Qm,y);var v=new me(u),qm=[-3,u,Tp,{[x]:_},[S],[0]];v.registerError(qm,xn);var zm=[-3,u,Ap,{[x]:_},[S],[0]];v.registerError(zm,_n);var Hm=[-3,u,$p,{[x]:_},[S,Ke],[0,()=>Ie]];v.registerError(Hm,Jn);var Xm=[-3,u,Pp,{[x]:_},[S],[0]];v.registerError(Xm,Rn);var Jm=[-3,u,Qp,{[x]:_},[S],[0]];v.registerError(Jm,Mn);var Ym=[-3,u,Xp,{[x]:_},[S],[0]];v.registerError(Ym,Vn);var Zm=[-3,u,Jp,{[x]:_},[S],[0]];v.registerError(Zm,On);var ed=[-3,u,il,{[x]:_},[S],[0]];v.registerError(ed,Pn);var td=[-3,u,al,{[x]:_},[S],[0]];v.registerError(td,Gn);var nd=[-3,u,_l,{[x]:_},[je],[0]];v.registerError(nd,Bn);var rd=[-3,u,ul,{[x]:_},[S],[0]];v.registerError(rd,Wn);var od=[-3,u,vl,{[x]:_},[S],[0]];v.registerError(od,Un);var sd=[-3,u,xl,{[x]:_},[S],[0]];v.registerError(sd,Xn);var id=[-3,u,gl,{[x]:Km},[S],[0]];v.registerError(id,Sn);var ad=[-3,u,fl,{[x]:_,[yi]:421},[je],[0]];v.registerError(ad,En);var ud=[-3,u,yl,{[x]:_},[S],[0]];v.registerError(ud,Kn);var cd=[-3,u,Sl,{[x]:_},[S],[0]];v.registerError(cd,qn);var pd=[-3,u,dl,{[x]:_},[S],[0]];v.registerError(pd,Tn);var ld=[-3,u,Al,{[x]:_},[S],[0]];v.registerError(ld,Dn);var md=[-3,u,Ml,{[x]:_},[S],[0]];v.registerError(md,jn);var dd=[-3,u,Bl,{[x]:_},[S],[0]];v.registerError(dd,Ln);var fd=[-3,u,Vl,{[x]:_},[S,pi],[0,()=>jr]];v.registerError(fd,In);var yd=[-3,u,Xl,{[x]:_},[S],[0]];v.registerError(yd,zn);var hd=[-3,u,em,{[x]:_},[S],[0]];v.registerError(hd,Hn);var vd=[-3,u,nm,{[x]:_},[S],[0]];v.registerError(vd,An);var xd=[-3,u,Zl,{[x]:_},[S,pi],[0,()=>jr]];v.registerError(xd,gn);var _d=[-3,u,Yl,{[x]:_},[S],[0]];v.registerError(_d,$n);var Sd=[-3,u,tm,{[x]:_},[S],[0]];v.registerError(Sd,Cn);var gd=[-3,u,fm,{[x]:_},[S],[0]];v.registerError(gd,Qn);var bd=[-3,u,_m,{[x]:_},[S],[0]];v.registerError(bd,kn);var Ed=[-3,u,gm,{[x]:_},[S],[0]];v.registerError(Ed,wn);var Id=[-3,u,vm,{[Mm]:["Throttling",400],[x]:_,[yi]:400},[S,jm],[0,()=>jr]];v.registerError(Id,bn);var Cd=[-3,u,ym,{[x]:_},[je,Op],[0,()=>nf]];v.registerError(Cd,Yn);var Td=[-3,u,hm,{[x]:_},[S],[0]];v.registerError(Td,Nn);var Ad=[-3,u,xm,{[x]:_},[je],[0]];v.registerError(Ad,Fn);var xi=[vi,v];var Rd=[3,u,_p,0,[di,hp],[()=>Q,0]];var Dd=[3,u,bp,0,[Jl,ue],[()=>Ei,0],1],kd=[3,u,Ep,0,[zl,$m,Y],[()=>pf,()=>Ei,()=>bi]];var wd=[3,u,Bp,0,[Ke,wp,je],[()=>Ie,0,0]],_i=[3,u,Fp,0,[ii,fi,qs],[1,1,1]],Si=[3,u,Vp,0,[Qs,Br],[0,()=>gi],1],Pd=[3,u,Ws,0,[ge,j,Se,K,Z,be],[()=>W,0,0,128,()=>ee,0],3],Ee=[3,u,Y,0,[j,qs,ii,fi,dm,Rl,sl,Lm],[0,1,1,1,()=>_i,()=>Vs,()=>Vs,()=>yf]];var $d=[3,u,Hs,0,[ge,j,Se,K,Z,be],[()=>W,0,0,128,()=>ee,0],2];var Nd=[3,u,jp,0,[],[]],Ld=[3,u,Wp,0,[Js],[()=>rf],1];var Od=[3,u,Zp,0,[Sp,Lp],[0,1],2];var Gd=[3,u,Hp,0,[di,el,Qs,Br],[()=>Q,2,0,()=>gi]];var Ud=[3,u,rl,0,[j,ge,Zn,tr,ue,rr,K],[0,()=>W,64,2,0,0,128],2],Md=[3,u,ol,0,[Ke,Y],[()=>Ie,()=>Ee]];var Vr=[3,u,nr,0,[cl,rm],[()=>lf,65]];var Bd=[3,u,bl,0,[Cl,Zn,tr,rr,K],[()=>sf,64,2,0,128],1];var Fd=[3,u,si,0,[Ke,j,Se,K,Z,be],[()=>Ti,0,0,128,()=>ee,0],2],Vd=[3,u,Ol,0,[j,Ke,Ys,ai,ue,Fr,er,Se,K,Z,be],[0,()=>Ti,()=>Ii,0,0,0,0,0,128,()=>ee,0],2],Kd=[3,u,Ul,0,[js,Y,nr],[()=>Ie,()=>Ee,()=>Vr]];var lx=[3,u,Fl,0,[Hl,Kl,Yp,Up],[0,0,0,[2,{[Bm]:Wm}]],2];var jd=[3,u,Ql,0,[j,ei,ci,Zn,ri,tr,ni,Wl,er,am,Xs,ue,rr,Zs,El,K,Z],[0,0,0,64,1,2,()=>df,()=>Ci,0,2,()=>W,0,0,0,0,128,()=>ee],1],Wd=[3,u,ql,0,[ti,zs,ui,oi,Y],[()=>Kr,1,1,()=>W,()=>Ee]];var Qd=[3,u,sm,0,[j,ei,Zn,ri,ci,om,er,Xs,ue,Im,mm,rr,Zs,K,Z,tr],[0,0,64,1,0,()=>Ci,0,()=>W,0,1,1,0,0,128,()=>ee,2],1],qd=[3,u,um,0,[ti,zs,ui,oi,Y],[()=>Kr,1,1,()=>W,()=>Ee]];var zd=[3,u,Em,0,[Fm,Vm],[0,0]];var Hd=[3,u,Cm,0,[Ws,si,Hs,li],[()=>Pd,()=>Fd,()=>$d,()=>Yd]],Xd=[3,u,Tm,0,[Sm,ue,Fr,Mp],[()=>uf,0,0,[0,4]],1],Jd=[3,u,Rm,0,[Y,nr],[()=>bi,()=>mf]];var Yd=[3,u,li,0,[ge,mi,j,Se,K,Z,be],[()=>W,0,0,0,128,()=>ee,0],3];var Zd=[3,u,km,0,[j,ge,Ks,Ys,er,ai,ue,Fr,mi,Se,K,Z,be],[0,()=>W,()=>cf,()=>Ii,0,0,0,0,0,0,128,()=>ee,0],2],ef=[3,u,wm,0,[js,Y,nr],[()=>Ie,()=>Ee,()=>Vr]];var tf=[3,u,Nm,0,[Gm,Um],[1,1]];var gi=[1,u,Br,0,()=>Q];var nf=[1,u,Gp,0,()=>wd],bi=[1,u,Np,0,()=>Ee];var rf=[1,u,Js,0,()=>Od];var of=[1,u,ll,0,()=>Vr];var Kr=[1,u,hl,0,()=>Ie];var sf=[1,u,Il,0,()=>W];var af=[1,u,Tl,0,()=>Q];var jr=[1,u,bm,0,()=>zd];var uf=[1,u,Am,0,()=>Hd];var Ie=[2,u,vp,0,0,()=>Q],cf=[2,u,Ks,0,0,()=>Rd],Ei=[2,u,Cp,0,0,()=>Bd],pf=[2,u,Ip,0,0,()=>Kr];var Ii=[2,u,qp,0,0,()=>Gd];var ee=[2,u,zp,0,0,()=>Q],Ci=[2,u,tl,0,0,()=>Si],lf=[2,u,pl,0,0,()=>Q],mf=[2,u,ml,0,0,()=>of],W=[2,u,ge,0,0,()=>Q],df=[2,u,ni,0,0,()=>Si],ff=[2,u,kl,0,0,()=>Q],Ti=[2,u,Gl,0,0,()=>Q],Vs=[2,u,im,0,0,()=>_i],yf=[2,u,Om,0,0,()=>tf],Q=[4,u,xp,0,[pm,Pl,kp,cm,$l,Dp,wl,Dl,Nl,Rp],[0,0,21,64,64,85,()=>ff,()=>af,2,2]];var Ai=[9,u,gp,0,()=>Dd,()=>kd];var Ri=[9,u,Kp,0,()=>Nd,()=>Ld];var Di=[9,u,nl,0,()=>Ud,()=>Md];var ki=[9,u,Ll,0,()=>Vd,()=>Kd];var wi=[9,u,jl,0,()=>jd,()=>Wd];var Pi=[9,u,lm,0,()=>Qd,()=>qd];var $i=[9,u,Dm,0,()=>Xd,()=>Jd];var Ni=[9,u,Pm,0,()=>Zd,()=>ef];var or=class extends A(Ms,R,"DescribeEndpoints",Ri){static{r(this,"DescribeEndpointsCommand")}};var Li={name:"@aws-sdk/client-dynamodb",version:"3.1150.0",description:"AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native",homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-dynamodb",license:"Apache-2.0",author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/sdk-for-javascript/"},repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-dynamodb"},files:["dist-*/**"],sideEffects:!1,main:"./dist-cjs/index.js",module:"./dist-es/index.js",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},types:"./dist-types/index.d.ts",typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},scripts:{build:"concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline","build:es":"premove dist-es && tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"premove dist-types && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service",test:"yarn g:vitest run --passWithNoTests","test:watch":"yarn g:vitest watch --passWithNoTests","test:integration":"yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts","test:integration:watch":"yarn g:vitest watch --passWithNoTests -c vitest.config.integ.mts","test:e2e":"yarn g:vitest run -c vitest.config.e2e.mts","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.mts","test:index":"tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"},dependencies:{"@aws-sdk/core":"^3.978.3","@aws-sdk/credential-provider-node":"^3.972.86","@aws-sdk/dynamodb-codec":"^3.973.48","@aws-sdk/middleware-endpoint-discovery":"^3.972.32","@aws-sdk/types":"^3.974.6","@smithy/core":"^3.35.2","@smithy/fetch-http-handler":"^5.8.0","@smithy/node-http-handler":"^4.12.1","@smithy/types":"^4.19.0",tslib:"^2.6.2"},devDependencies:{"@smithy/snapshot-testing":"^2.3.2","@tsconfig/node20":"20.1.8","@types/node":"^20.14.8",concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~7.0.2",vitest:"^4.0.17"},engines:{node:">=20.0.0"}};var Oi="com.amazonaws.dynamodb#AttributeValue",Wr=class extends so{static{r(this,"DynamoDBJsonShapeSerializer2")}writeValue(t,n,o){if(n!=null&&typeof n=="object"){let s=Er.of(t);if(s.isStructSchema()&&s.getName(!0)===Oi){this.writeAttributeValue(n);return}}super.writeValue(t,n,o)}writeAttributeValue(t){let n=this.serdeContext?.base64Encoder??fe;this.writeAscii("{");let o=!0;for(let s in t){let i=t[s];if(i!=null)switch(o||this.writeAscii(","),o=!1,this.writeAsciiQuoted(s),this.writeAscii(":"),s){case"B":i instanceof Uint8Array?this.writeBase64(i):this.writeJsonString(i);break;case"BS":this.writeAscii("[");{let a=i;for(let c=0;c<a.length;c++){c>0&&this.writeAscii(",");let m=a[c];m instanceof Uint8Array?this.writeBase64(m):this.writeJsonString(n(m))}}this.writeAscii("]");break;case"L":this.writeAscii("[");{let a=i;for(let c=0;c<a.length;c++)c>0&&this.writeAscii(","),a[c]!=null?this.writeAttributeValue(a[c]):this.writeAscii("null")}this.writeAscii("]");break;case"M":this.writeAscii("{");{let a=i,c=!0;for(let m in a)a[m]!=null&&(c||this.writeAscii(","),c=!1,this.writeJsonString(m),this.writeAscii(":"),this.writeAttributeValue(a[m]))}this.writeAscii("}");break;case"SS":case"NS":this.writeAscii("[");{let a=i;for(let c=0;c<a.length;c++)c>0&&this.writeAscii(","),this.writeJsonString(a[c])}this.writeAscii("]");break;case"S":case"N":this.writeJsonString(i);break;case"BOOL":this.writeAscii(i?"true":"false");break;case"NULL":this.writeAscii(i?"true":"false");break;default:this.writeAscii(JSON.stringify(i));break}}this.writeAscii("}")}},Qr=class extends oo{static{r(this,"DynamoDBJsonShapeDeserializer2")}_read(t,n){let o=Er.of(t);return o.isStructSchema()&&o.getName(!0)===Oi&&n&&typeof n=="object"?this.readAttributeValue(n):super._read(o,n)}readAttributeValue(t){let n=this.serdeContext?.base64Decoder??de,o=t;if(typeof t.B=="string"&&(o.B=n(t.B)),Array.isArray(t.BS)&&(o.BS=t.BS.map(n)),Array.isArray(t.L)&&(o.L=t.L.map(s=>this.readAttributeValue(s))),t.M&&typeof t.M=="object"){let s=t.M;for(let i in s)s[i]=this.readAttributeValue(s[i])}return o}},We=class extends io{static{r(this,"DynamoDBJsonCodec2")}constructor(){super({timestampFormat:{useTrait:!0,default:7},jsonName:!1})}createSerializer(){let t=new Wr(this.settings);return t.setSerdeContext(this.serdeContext),t}createDeserializer(){let t=new Qr(this.settings);return t.setSerdeContext(this.serdeContext),t}};var D="ref",U="argv",w=-1,Qe=!0,Ce=!1,Te="isSet",qe="booleanEquals",oa="PartitionResult",G="stringEquals",M="getAttr",sa="parsedEndpoint",Gi="aws.parseArn",Ui=r(e=>"ParsedArn_ssa_"+e,"k"),Mi="service",qr="dynamodb",ze="isValidHostLabel",Bi="accountId",Fi="FirstArn",Vi=r(e=>"https://{ParsedArn_ssa_"+e+"#accountId}.search-ddb.{Region}.{PartitionResult#dualStackDnsSuffix}","q"),Ki=r(e=>"https://{ParsedArn_ssa_"+e+"#accountId}.ddb.{Region}.{PartitionResult#dualStackDnsSuffix}","s"),ji=r(e=>"https://{ParsedArn_ssa_"+e+"#accountId}.search-ddb.{Region}.{PartitionResult#dnsSuffix}","t"),Wi=r(e=>"https://{ParsedArn_ssa_"+e+"#accountId}.ddb.{Region}.{PartitionResult#dnsSuffix}","u"),sr={[D]:"Region"},Hr={[D]:oa},Qi={fn:M,[U]:[{[D]:sa},"authority"]},zr={[D]:"AccountIdEndpointMode"},qi={fn:M,[U]:[Hr,"name"]},zi={fn:M,[U]:[{[D]:"ParsedArn_ssa_2"},"region"]},Hi={[D]:"ParsedArn_ssa_2"},Xi={[D]:"ResourceArnList"},Ji={fn:M,[U]:[{[D]:"ParsedArn_ssa_1"},"region"]},Yi={[D]:"ParsedArn_ssa_1"},Zi={[D]:"AccountId"},H={},N={metricValues:["O"]},ea=[sr],ta=[{[D]:"Endpoint"}],na=[{[D]:"ResourceArn"}],ra={conditions:[[Te,ea],[Te,ta],[qe,[{[D]:"UseFIPS"},Qe]],[qe,[{[D]:"UseDualStack"},Qe]],["aws.partition",ea,oa],[G,[sr,"local"]],[qe,[{fn:M,[U]:[Hr,"supportsFIPS"]},Qe]],["parseURL",ta,sa],[G,["dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}",Qi]],[qe,[{fn:M,[U]:[Hr,"supportsDualStack"]},Qe]],[G,["search-dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}",Qi]],[Te,[zr]],[G,[qi,"aws"]],[G,[zr,"disabled"]],[Te,na],[Gi,na,Ui(2)],[G,[zi,sr]],[G,[{fn:M,[U]:[Hi,Mi]},qr]],[ze,[zi,Ce]],[ze,[{fn:M,[U]:[Hi,Bi]},Ce]],[Te,[Xi]],[M,[Xi,"[0]"],Fi],[Gi,[{[D]:Fi}],Ui(1)],[G,[Ji,sr]],[G,[{fn:M,[U]:[Yi,Mi]},qr]],[ze,[{fn:M,[U]:[Yi,Bi]},Ce]],[ze,[Ji,Ce]],[Te,[Zi]],[G,[zr,"required"]],[ze,[Zi,Ce]],[G,[qi,"aws-us-gov"]],[qe,[{fn:"coalesce",[U]:[{[D]:"IsSearchOperation"},Ce]},Qe]]],results:[[w],[w,"Invalid Configuration: FIPS and custom endpoint are not supported"],[w,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[w,"Endpoint override is not supported for dual-stack endpoints. Please enable dual-stack functionality by enabling the configuration. For more details, see: https://docs.aws.amazon.com/sdkref/latest/guide/feature-endpoints.html"],["{Endpoint}",H],[w,"Invalid Configuration: FIPS and local endpoint are not supported"],[w,"Invalid Configuration: Dualstack and local endpoint are not supported"],["http://localhost:8000",{authSchemes:[{signingRegion:"us-east-1",signingName:qr,name:"sigv4"}]}],[w,"Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported"],["https://search-dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",H],["https://dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",H],[w,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://search-dynamodb.{Region}.{PartitionResult#dnsSuffix}",H],["https://dynamodb.{Region}.{PartitionResult#dnsSuffix}",H],["https://search-dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}",H],["https://dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}",H],[w,"FIPS is enabled but this partition does not support FIPS"],[Vi(2),N],[Ki(2),N],[Vi(1),N],[Ki(1),N],["https://{AccountId}.search-ddb.{Region}.{PartitionResult#dualStackDnsSuffix}",N],["https://{AccountId}.ddb.{Region}.{PartitionResult#dualStackDnsSuffix}",N],[w,"Credentials-sourced account ID parameter is invalid"],[w,"AccountIdEndpointMode is required but no AccountID was provided or able to be loaded"],[w,"Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition"],["https://search-dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}",H],["https://dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}",H],[w,"DualStack is enabled but this partition does not support DualStack"],[ji(2),N],[Wi(2),N],[ji(1),N],[Wi(1),N],["https://{AccountId}.search-ddb.{Region}.{PartitionResult#dnsSuffix}",N],["https://{AccountId}.ddb.{Region}.{PartitionResult#dnsSuffix}",N],[w,"Invalid Configuration: Missing Region"]]},vf=2,l=1e8,xf=new Int32Array([-1,1,-1,0,6,3,1,4,l+35,2,l+1,5,3,l+2,l+4,1,77,7,2,61,8,3,34,9,4,10,l+35,5,l+7,11,11,12,69,12,14,13,28,l+25,69,13,33,15,14,16,21,15,17,21,16,18,21,17,19,21,18,20,21,19,32,21,20,22,28,21,23,28,22,24,28,23,25,28,24,26,28,25,27,28,26,31,28,27,29,33,29,30,l+23,31,l+33,l+34,31,l+31,l+32,31,l+29,l+30,28,l+24,69,4,35,l+35,5,l+6,36,9,37,l+28,11,38,60,12,40,39,28,l+25,60,13,59,41,14,42,47,15,43,47,16,44,47,17,45,47,18,46,47,19,58,47,20,48,54,21,49,54,22,50,54,23,51,54,24,52,54,25,53,54,26,57,54,27,55,59,29,56,l+23,31,l+21,l+22,31,l+19,l+20,31,l+17,l+18,28,l+24,60,31,l+26,l+27,3,70,62,4,63,l+35,5,l+5,64,6,65,l+16,11,66,67,28,l+8,67,30,69,68,31,l+14,l+15,31,l+12,l+13,4,71,l+35,5,l+5,72,6,73,l+11,9,74,l+11,11,75,76,28,l+8,76,31,l+9,l+10,2,l+1,78,3,l+2,79,4,80,l+4,7,81,l+4,8,l+3,82,10,l+3,l+4]),ia=gt.from(xf,vf,ra.conditions,ra.results);var _f=new bt({size:50,params:["AccountId","AccountIdEndpointMode","Endpoint","IsSearchOperation","Region","ResourceArn","ResourceArnList","UseDualStack","UseFIPS"]}),aa=r((e,t={})=>_f.get(e,()=>It(ia,{endpointParams:e,logger:t.logger})),"defaultEndpointResolver");Et.aws=qt;var ua=r(e=>({apiVersion:"2012-08-10",base64Decoder:e?.base64Decoder??de,base64Encoder:e?.base64Encoder??fe,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??aa,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Ls,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:r(t=>t.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new Xt}],logger:e?.logger??new pt,protocol:e?.protocol??ao,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.dynamodb",errorTypeRegistries:xi,xmlNamespace:"http://dynamodb.amazonaws.com/doc/2012-08-10/",version:"2012-08-10",serviceTarget:"DynamoDB_20120810",jsonCodec:new We},serviceId:e?.serviceId??"DynamoDB",sha256:e?.sha256??Rt,urlParser:e?.urlParser??rt,utf8Decoder:e?.utf8Decoder??mt,utf8Encoder:e?.utf8Encoder??dt}),"getRuntimeConfig");var ca=r(e=>{at(process.version);let t=St(e),n=r(()=>t().then(it),"defaultConfigProvider"),o=ua(e);tt(process.version);let s={profile:e?.profile,logger:o.logger};return{...o,...e,runtime:"node",defaultsMode:t,accountIdEndpointMode:e?.accountIdEndpointMode??T(Pr,s),authSchemePreference:e?.authSchemePreference??T(Jt,s),bodyLengthChecker:e?.bodyLengthChecker??ft,credentialDefaultProvider:e?.credentialDefaultProvider??en,defaultUserAgentProvider:e?.defaultUserAgentProvider??Wt({serviceId:o.serviceId,clientVersion:Li.version}),endpointDiscoveryEnabledProvider:e?.endpointDiscoveryEnabledProvider??T(Nr,s),maxAttempts:e?.maxAttempts??T($e.v2026?{...Ne,default:4}:Ne,e),region:e?.region??T(vt,{...xt,...s}),requestHandler:Zt.create(e?.requestHandler??n),retryMode:e?.retryMode??T({...Nt,default:r(async()=>(await n()).retryMode||Pt,"default")},e),streamCollector:e?.streamCollector??At,useDualstackEndpoint:e?.useDualstackEndpoint??T(yt,s),useFipsEndpoint:e?.useFipsEndpoint??T(ht,s),userAgentAppId:e?.userAgentAppId??T(Qt,s)}},"getRuntimeConfig");var pa=r(e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,o=e.credentials;return{setHttpAuthScheme(s){let i=t.findIndex(a=>a.schemeId===s.schemeId);i===-1?t.push(s):t.splice(i,1,s)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(s){n=s},httpAuthSchemeProvider(){return n},setCredentials(s){o=s},credentials(){return o}}},"getHttpAuthExtensionConfiguration"),la=r(e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),"resolveHttpAuthRuntimeConfig");var ma=r((e,t)=>{let n=Object.assign(zt(e),ut(e),Dt(e),pa(e));return t.forEach(o=>o.configure(n)),Object.assign(e,Ht(n),ct(n),kt(n),la(n))},"resolveRuntimeExtensions");var Ae=class extends le{static{r(this,"DynamoDBClient")}config;constructor(...[t]){let n=ca(t||{});super(n),this.initConfig=n;let o=Gs(n),s=wr(o),i=Kt(s),a=$t(i,{defaultBaseDelay:$e.v2026?25:void 0,defaultMaxAttempts:$e.v2026?4:void 0}),c=_t(a),m=c,p=Ct(m),g=Os(p),re=Mr(g,{endpointDiscoveryCommandCtor:or}),br=ma(re,t?.extensions||[]);this.config=br,this.middlewareStack.use(ot(this.config)),this.middlewareStack.use(jt(this.config)),this.middlewareStack.use(Lt(this.config)),this.middlewareStack.use(wt(this.config)),this.middlewareStack.use(Ot(this.config)),this.middlewareStack.use(Gt(this.config)),this.middlewareStack.use(Ut(this.config)),this.middlewareStack.use(Mt(this.config,{httpAuthSchemeParametersProvider:Ns,identityProviderConfigProvider:r(async Ca=>new Vt({"aws.auth#sigv4":Ca.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Bt(this.config))}destroy(){super.destroy()}};var ir=class extends A(Bs,R,"BatchGetItem",Ai){static{r(this,"BatchGetItemCommand")}};var ar=class extends A(V,R,"GetItem",Di){static{r(this,"GetItemCommand")}};var ur=class extends A(V,R,"PutItem",ki){static{r(this,"PutItemCommand")}};var cr=class extends A(V,R,"Query",wi){static{r(this,"QueryCommand")}};var pr=class extends A(V,R,"Scan",Pi){static{r(this,"ScanCommand")}};var lr=class extends A(Fs,R,"TransactWriteItems",$i){static{r(this,"TransactWriteItemsCommand")}};var mr=class extends A(V,R,"UpdateItem",Ni){static{r(this,"UpdateItemCommand")}};var Re=class extends b{static{r(this,"BatchGetCommand")}input;inputKeyNodes={RequestItems:{"*":{Keys:{"*":d}}}};outputKeyNodes={Responses:{"*":{"*":d}},UnprocessedKeys:{"*":{Keys:{"*":d}}}};clientCommand;middlewareStack;constructor(t){super(),this.input=t,this.clientCommand=new ir(this.input),this.middlewareStack=this.clientCommand.middlewareStack}resolveMiddleware(t,n,o){this.addMarshallingMiddleware(n);let s=t.concat(this.middlewareStack),i=this.clientCommand.resolveMiddleware(s,n,o);return async()=>i(this.clientCommand)}};var X=class extends b{static{r(this,"GetCommand")}input;inputKeyNodes={Key:d};outputKeyNodes={Item:d};clientCommand;middlewareStack;constructor(t){super(),this.input=t,this.clientCommand=new ar(this.input),this.middlewareStack=this.clientCommand.middlewareStack}resolveMiddleware(t,n,o){this.addMarshallingMiddleware(n);let s=t.concat(this.middlewareStack),i=this.clientCommand.resolveMiddleware(s,n,o);return async()=>i(this.clientCommand)}};var He=class extends b{static{r(this,"PutCommand")}input;inputKeyNodes={Item:d,Expected:{"*":{Value:ae,AttributeValueList:k}},ExpressionAttributeValues:d};outputKeyNodes={Attributes:d,ItemCollectionMetrics:{ItemCollectionKey:d}};clientCommand;middlewareStack;constructor(t){super(),this.input=t,this.clientCommand=new ur(this.input),this.middlewareStack=this.clientCommand.middlewareStack}resolveMiddleware(t,n,o){this.addMarshallingMiddleware(n);let s=t.concat(this.middlewareStack),i=this.clientCommand.resolveMiddleware(s,n,o);return async()=>i(this.clientCommand)}};var ce=class extends b{static{r(this,"QueryCommand")}input;inputKeyNodes={KeyConditions:{"*":{AttributeValueList:k}},QueryFilter:{"*":{AttributeValueList:k}},ExclusiveStartKey:d,ExpressionAttributeValues:d};outputKeyNodes={Items:{"*":d},LastEvaluatedKey:d};clientCommand;middlewareStack;constructor(t){super(),this.input=t,this.clientCommand=new cr(this.input),this.middlewareStack=this.clientCommand.middlewareStack}resolveMiddleware(t,n,o){this.addMarshallingMiddleware(n);let s=t.concat(this.middlewareStack),i=this.clientCommand.resolveMiddleware(s,n,o);return async()=>i(this.clientCommand)}};var Xe=class extends b{static{r(this,"ScanCommand")}input;inputKeyNodes={ScanFilter:{"*":{AttributeValueList:k}},ExclusiveStartKey:d,ExpressionAttributeValues:d};outputKeyNodes={Items:{"*":d},LastEvaluatedKey:d};clientCommand;middlewareStack;constructor(t){super(),this.input=t,this.clientCommand=new pr(this.input),this.middlewareStack=this.clientCommand.middlewareStack}resolveMiddleware(t,n,o){this.addMarshallingMiddleware(n);let s=t.concat(this.middlewareStack),i=this.clientCommand.resolveMiddleware(s,n,o);return async()=>i(this.clientCommand)}};var Je=class extends b{static{r(this,"TransactWriteCommand")}input;inputKeyNodes={TransactItems:{"*":{ConditionCheck:{Key:d,ExpressionAttributeValues:d},Put:{Item:d,ExpressionAttributeValues:d},Delete:{Key:d,ExpressionAttributeValues:d},Update:{Key:d,ExpressionAttributeValues:d}}}};outputKeyNodes={ItemCollectionMetrics:{"*":{"*":{ItemCollectionKey:d}}}};clientCommand;middlewareStack;constructor(t){super(),this.input=t,this.clientCommand=new lr(this.input),this.middlewareStack=this.clientCommand.middlewareStack}resolveMiddleware(t,n,o){this.addMarshallingMiddleware(n);let s=t.concat(this.middlewareStack),i=this.clientCommand.resolveMiddleware(s,n,o);return async()=>i(this.clientCommand)}};var te=class extends b{static{r(this,"UpdateCommand")}input;inputKeyNodes={Key:d,AttributeUpdates:{"*":{Value:ae}},Expected:{"*":{Value:ae,AttributeValueList:k}},ExpressionAttributeValues:d};outputKeyNodes={Attributes:d,ItemCollectionMetrics:{ItemCollectionKey:d}};clientCommand;middlewareStack;constructor(t){super(),this.input=t,this.clientCommand=new mr(this.input),this.middlewareStack=this.clientCommand.middlewareStack}resolveMiddleware(t,n,o){this.addMarshallingMiddleware(n);let s=t.concat(this.middlewareStack),i=this.clientCommand.resolveMiddleware(s,n,o);return async()=>i(this.clientCommand)}};var q=class e extends le{static{r(this,"DynamoDBDocumentClient")}config;constructor(t,n){if(super(t.config),this.config=t.config,this.config.translateConfig=n,this.middlewareStack=t.middlewareStack,this.config?.cacheMiddleware)throw new Error("@aws-sdk/lib-dynamodb - cacheMiddleware=true is not compatible with the DynamoDBDocumentClient. This option must be set to false.");if(!(t.middlewareStack.identify?.()??[]).some(i=>i.includes?.("serializerMiddleware"))){let i=this.config.logger,a=i&&!i.constructor?.name.includes("NoOp")?i:console,c=new Ae(Object.assign({},this.config,{defaultUserAgentProvider:void 0,retryStrategy:void 0,extensions:void 0}));if(c.middlewareStack.identify?.().some(p=>p.includes?.("serializerMiddleware")))this.middlewareStack=c.middlewareStack,this.config=c.config,this.config.translateConfig=n,a.warn("@aws-sdk/lib-dynamodb - WARN: incompatible version of DynamoDBClient given to DynamoDBDocumentClient. We have forwarded your client's configuration to a newer version of DynamoDBClient in the dependency closure to instantiate DynamoDBDocumentClient.");else throw new Error("@aws-sdk/lib-dynamodb - ERROR: incompatible version of DynamoDBClient given to DynamoDBDocumentClient. Check @aws-sdk/lib-dynamodb package.json requirements.")}}static from(t,n){return new e(t,n)}destroy(){}};var WS=Ft(q,ce,"ExclusiveStartKey","LastEvaluatedKey","Limit");var XS=Ft(q,Xe,"ExclusiveStartKey","LastEvaluatedKey","Limit");function Ye(e,t=100){let n=[],o=Math.ceil(e.length/t),s=0,i=t;for(let a=0;a<o;a++)n.push(e.slice(s,i)),s+=t,i+=t;return n}r(Ye,"splitArrayToChunks");var dr,Sf={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0};function Xr(e){return!e&&!dr?Sf:{lang:e?.lang??dr?.lang,message:e?.message,abortEarly:e?.abortEarly??dr?.abortEarly,abortPipeEarly:e?.abortPipeEarly??dr?.abortPipeEarly}}r(Xr,"getGlobalConfig");var gf;function bf(e){return gf?.get(e)}r(bf,"getGlobalMessage");var Ef;function If(e){return Ef?.get(e)}r(If,"getSchemaMessage");var Cf;function Tf(e,t){return Cf?.get(e)?.get(t)}r(Tf,"getSpecificMessage");function Jr(e){let t=typeof e;return t==="string"?`"${e}"`:t==="number"||t==="bigint"||t==="boolean"?`${e}`:t==="object"||t==="function"?(e&&Object.getPrototypeOf(e)?.constructor?.name)??"null":t}r(Jr,"_stringify");function De(e,t,n,o,s){let i=s&&"input"in s?s.input:n.value,a=s?.expected??e.expects??null,c=s?.received??Jr(i),m={kind:e.kind,type:e.type,input:i,expected:a,received:c,message:`Invalid ${t}: ${a?`Expected ${a} but r`:"R"}eceived ${c}`,requirement:e.requirement,path:s?.path,issues:s?.issues,lang:o.lang,abortEarly:o.abortEarly,abortPipeEarly:o.abortPipeEarly},p=e.kind==="schema",g=s?.message??e.message??Tf(e.reference,m.lang)??(p?If(m.lang):null)??o.message??bf(m.lang);g!==void 0&&(m.message=typeof g=="function"?g(m):g),p&&(n.typed=!1),n.issues?n.issues.push(m):n.issues=[m]}r(De,"_addIssue");function Af(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}r(Af,"_isSameValueZero");function Rf(e,t){let n=[...new Set(e)];return n.length>1?`(${n.join(` ${t} `)})`:n[0]??"never"}r(Rf,"_joinExpects");function ke(e){return e["~standard"]={version:1,vendor:"valibot",validate:r(t=>e["~run"]({value:t},Xr()),"validate")},e}r(ke,"_standardSchema");function Df(e){if(e.path){let t="";for(let n of e.path)if(typeof n.key=="string"||typeof n.key=="number")t?t+=`.${n.key}`:t+=n.key;else return null;return t}return null}r(Df,"getDotPath");var kf=class extends Error{static{r(this,"ValiError")}constructor(e){super(e[0].message),this.name="ValiError",this.issues=e}};var Gg=new RegExp("^(?:[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|(?![\\p{Emoji_Modifier_Base}\\u{1F1E6}-\\u{1F1FF}])\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|(?![\\p{Emoji_Modifier_Base}\\u{1F1E6}-\\u{1F1FF}])\\p{Emoji_Presentation}))*)+$","u");function wf(e,t,n){return typeof e.fallback=="function"?e.fallback(t,n):e.fallback}r(wf,"getFallback");function we(e){let t={};for(let n of e)if(n.path){let o=Df(n);o?(t.nested||(t.nested={}),Object.prototype.hasOwnProperty.call(t.nested,o)?t.nested[o].push(n.message):t.nested[o]=[n.message]):t.other?t.other.push(n.message):t.other=[n.message]}else t.root?t.root.push(n.message):t.root=[n.message];return t}r(we,"flatten");function da(e,t,n){return typeof e.default=="function"?e.default(t,n):e.default}r(da,"getDefault");function Yr(e,t){return ke({kind:"schema",type:"literal",reference:Yr,expects:Jr(e),async:!1,literal:e,message:t,"~run"(n,o){return Af(n.value,this.literal)?n.typed=!0:De(this,"type",n,o),n}})}r(Yr,"literal");function I(e){return ke({kind:"schema",type:"number",reference:I,expects:"number",async:!1,message:e,"~run"(t,n){return typeof t.value=="number"&&!isNaN(t.value)?t.typed=!0:De(this,"type",t,n),t}})}r(I,"number");function L(e,t){return ke({kind:"schema",type:"object",reference:L,expects:"Object",async:!1,entries:e,message:t,"~run"(n,o){let s=n.value;if(s&&typeof s=="object"){n.typed=!0,n.value={};for(let i in this.entries){let a=this.entries[i];if(i in s||(a.type==="exact_optional"||a.type==="optional"||a.type==="nullish")&&a.default!==void 0){let c=i in s?s[i]:da(a),m=a["~run"]({value:c},o);if(m.issues){let p={type:"object",origin:"value",input:s,key:i,value:c};for(let g of m.issues)g.path?g.path.unshift(p):g.path=[p],n.issues?.push(g);if(n.issues||(n.issues=m.issues),o.abortEarly){n.typed=!1;break}}m.typed||(n.typed=!1),n.value[i]=m.value}else if(a.fallback!==void 0)n.value[i]=wf(a);else if(a.type!=="exact_optional"&&a.type!=="optional"&&a.type!=="nullish"&&(De(this,"key",n,o,{input:void 0,expected:`"${i}"`,path:[{type:"object",origin:"key",input:s,key:i,value:s[i]}]}),o.abortEarly))break}}else De(this,"type",n,o);return n}})}r(L,"object");function E(e,t){return ke({kind:"schema",type:"optional",reference:E,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,"~run"(n,o){return n.value===void 0&&(this.default!==void 0&&(n.value=da(this,n,o)),n.value===void 0)?(n.typed=!0,n):this.wrapped["~run"](n,o)}})}r(E,"optional");function ne(e,t){return ke({kind:"schema",type:"picklist",reference:ne,expects:Rf(e.map(Jr),"|"),async:!1,options:e,message:t,"~run"(n,o){return this.options.includes(n.value)?n.typed=!0:De(this,"type",n,o),n}})}r(ne,"picklist");function h(e){return ke({kind:"schema",type:"string",reference:h,expects:"string",async:!1,message:e,"~run"(t,n){return typeof t.value=="string"?t.typed=!0:De(this,"type",t,n),t}})}r(h,"string");function fr(e,t,n){let o=e["~run"]({value:t},Xr(n));if(o.issues)throw new kf(o.issues);return o.value}r(fr,"parse");function pe(e,t,n){let o=e["~run"]({value:t},Xr(n));return{typed:o.typed,success:!o.issues,output:o.value,issues:o.issues}}r(pe,"safeParse");var fa=L({pk:h(),sk:Yr("ipinfo"),ip:h(),asn:E(h()),asName:E(h()),asDomain:E(h()),countryCode:E(h()),country:E(h()),fetchedAt:h()}),Pf=L({ip:h(),asn:E(h()),as_name:E(h()),as_domain:E(h()),country_code:E(h()),country:E(h())});async function ya(e){let t=await fetch(`https://api.ipinfo.io/lite/${encodeURIComponent(e.ip)}`,{headers:{Authorization:`Bearer ${e.apiKey}`}});if(!t.ok)throw new Error(`ipinfo lookup failed for ${e.ip}: ${String(t.status)}`);let n=fr(Pf,await t.json());return{ip:n.ip,asn:n.asn,asName:n.as_name,asDomain:n.as_domain,countryCode:n.country_code,country:n.country}}r(ya,"lookupIpInfo");var yr=class{static{r(this,"IpInfoCache")}props;constructor(t){this.props=t}get=r(async t=>{let{Item:n}=await this.props.dynamo.send(new X({TableName:this.props.tableName,Key:{pk:Zr(t.ip),sk:"ipinfo"}}));return n==null?null:this.parseOne(n)},"get");getMany=r(async t=>{let n=Array.from(new Set(t.ips)),o={};for(let s of Ye(n,100)){let{Responses:i}=await this.props.dynamo.send(new Re({RequestItems:{[this.props.tableName]:{Keys:s.map(a=>({pk:Zr(a),sk:"ipinfo"}))}}}));for(let a of i?.[this.props.tableName]??[]){let c=pe(fa,a);c.success&&(o[c.output.ip]=c.output)}}return o},"getMany");put=r(async t=>{let n={pk:Zr(t.info.ip),sk:"ipinfo",ip:t.info.ip,asn:t.info.asn,asName:t.info.asName,asDomain:t.info.asDomain,countryCode:t.info.countryCode,country:t.info.country,fetchedAt:new Date().toISOString()};return await this.props.dynamo.send(new He({TableName:this.props.tableName,Item:n})),n},"put");enrich=r(async t=>{if(this.props.apiKey==null)return null;let n=await this.get({ip:t.ip});if(n!=null)return n;let o=await ya({ip:t.ip,apiKey:this.props.apiKey});return this.put({info:o})},"enrich");enrichMany=r(async t=>{if(this.props.apiKey==null)return{};let n=Array.from(new Set(t.ips)),o=await this.getMany({ips:n}),s={...o},i=n.filter(a=>o[a]==null);for(let a of i){let c=await ya({ip:a,apiKey:this.props.apiKey});s[a]=await this.put({info:c})}return s},"enrichMany");parseOne=r(t=>{let n=pe(fa,t);if(!n.success)throw console.error(we(n.issues)),new Error("Malformed stored ipinfo cache record");return n.output},"parseOne")};function Zr(e){return`ipinfo#${e}`}r(Zr,"keyFor");var hr=["hour","day","month"],ha=["status","country","device","path"],va=["v1","v2"];var qg=L({pk:h(),sk:h(),source:ne(va),appliedAt:I(),ttl:E(I())}),vr=class{constructor(t){this.props=t}props;static{r(this,"AppliedMarkers")}isApplied=r(async t=>{let{Item:n}=await this.props.dynamo.send(new X({TableName:this.props.tableName,Key:{pk:xa(t),sk:"applied"}}));return n!=null},"isApplied");buildMarkerPut=r(t=>{let n={pk:xa(t),sk:"applied",source:t.source,appliedAt:Date.now()};return t.ttl!=null&&(n.ttl=t.ttl),{Put:{TableName:this.props.tableName,Item:n,ConditionExpression:"attribute_not_exists(pk) AND attribute_not_exists(sk)"}}},"buildMarkerPut")};function xa(e){return`applied#${e.grain}#${e.periodKey}`}r(xa,"partitionKey");async function xr(e){let t=[],n;do{let{Items:o=[],LastEvaluatedKey:s}=await e.dynamo.send(new ce({...e.input,ExclusiveStartKey:n}));n=s,t.push(...o)}while(n!=null);return t}r(xr,"queryAll");var $f=L({pk:h(),sk:h(),dimension:ne(ha),grain:ne(hr),periodKey:h(),value:h(),hits:I(),bytes:I(),ttl:E(I())}),_r=class{constructor(t){this.props=t}props;static{r(this,"Breakdowns")}addMany=r(async t=>{let n=this.buildUpdates(t);for(let o of n)await this.props.dynamo.send(new te(o.Update))},"addMany");buildUpdates=r(t=>t.items.map(n=>({Update:this.buildUpdateMembers({dimension:t.dimension,grain:t.grain,periodKey:t.periodKey,item:n,ttl:t.ttl})})),"buildUpdates");getForPeriod=r(async t=>(await xr({dynamo:this.props.dynamo,input:{TableName:this.props.tableName,KeyConditionExpression:"#pk = :pk",ExpressionAttributeNames:{"#pk":"pk"},ExpressionAttributeValues:{":pk":_a({dimension:t.dimension,grain:t.grain,periodKey:t.periodKey})}}})).map(o=>this.parseOne(o)),"getForPeriod");buildUpdateMembers=r(t=>{let n={"#dimension":"dimension","#grain":"grain","#periodKey":"periodKey","#value":"value","#hits":"hits","#bytes":"bytes"},o={":dimension":t.dimension,":grain":t.grain,":periodKey":t.periodKey,":value":t.item.value,":hits":t.item.hits,":bytes":t.item.bytes},s=["#dimension = :dimension","#grain = :grain","#periodKey = :periodKey","#value = :value"];return t.ttl!=null&&(n["#ttl"]="ttl",o[":ttl"]=t.ttl,s.push("#ttl = :ttl")),{TableName:this.props.tableName,Key:{pk:_a({dimension:t.dimension,grain:t.grain,periodKey:t.periodKey}),sk:t.item.value},UpdateExpression:`SET ${s.join(", ")} ADD #hits :hits, #bytes :bytes`,ExpressionAttributeNames:n,ExpressionAttributeValues:o}},"buildUpdateMembers");parseOne=r(t=>{let n=pe($f,t);if(!n.success)throw console.error(we(n.issues)),new Error("Malformed stored breakdown record");return n.output},"parseOne")};function _a(e){return`breakdown#${e.dimension}#${e.grain}#${e.periodKey}`}r(_a,"partitionKey");function Sa(){return q.from(new Ae,{marshallOptions:{removeUndefinedValues:!0,convertEmptyValues:!1}})}r(Sa,"toDynamoClient");function ga({items:e,n:t,otherValue:n}){let o=[...e].sort((c,m)=>m.hits-c.hits),s=o.slice(0,t),i=o.slice(t);if(i.length===0)return s;let a=i.reduce((c,m)=>({value:n,hits:c.hits+m.hits,bytes:c.bytes+m.bytes}),{value:n,hits:0,bytes:0});return[...s,a]}r(ga,"topNWithOther");var Nf={v2:{status:"sc_status",bytesSent:"sc_bytes",bytesReceived:"cs_bytes",timeTaken:"time_taken",resultType:"x_edge_result_type",detailedResultType:"x_edge_detailed_result_type",uriStem:"cs_uri_stem",clientIp:"c_ip",userAgent:"cs_user_agent",timestamp:"timestamp"},v1:{status:'CAST("sc-status" AS integer)',bytesSent:'CAST("sc-bytes" AS bigint)',bytesReceived:'CAST("cs-bytes" AS bigint)',timeTaken:'CAST("time-taken" AS double)',resultType:'"x-edge-result-type"',detailedResultType:'"x-edge-detailed-result-type"',uriStem:'"cs-uri-stem"',clientIp:'"c-ip"',userAgent:'"cs(User-Agent)"',timestamp:'"time"'}};function Lf(e){let t=/^(\d{4})-(\d{2})-(\d{2})-(\d{2})$/.exec(e);if(t==null)throw new Error(`Invalid hourKey: ${e}`);let[,n,o,s,i]=t;if(n==null||o==null||s==null||i==null)throw new Error(`Invalid hourKey: ${e}`);return{year:n,month:o,day:s,hour:i}}r(Lf,"hourKeyParts");function Of(e){return["CASE",`WHEN lower(${e}) LIKE '%bot%' OR lower(${e}) LIKE '%crawler%' OR lower(${e}) LIKE '%spider%' OR lower(${e}) LIKE '%slurp%' THEN 'bot'`,`WHEN lower(${e}) LIKE '%mobi%' OR lower(${e}) LIKE '%android%' OR lower(${e}) LIKE '%iphone%' OR lower(${e}) LIKE '%ipad%' THEN 'mobile'`,`WHEN lower(${e}) LIKE '%windows nt%' OR lower(${e}) LIKE '%macintosh%' OR lower(${e}) LIKE '%x11%' OR lower(${e}) LIKE '%linux%' THEN 'desktop'`,"ELSE 'other'","END"].join(" ")}r(Of,"deviceCaseExpression");function Gf({source:e,hourKey:t,columns:n}){let o=Lf(t);return e==="v2"?[`year = '${o.year}'`,`month = '${o.month}'`,`day = '${o.day}'`,`hour = '${o.hour}'`].join(" AND "):[`"date" = DATE '${o.year}-${o.month}-${o.day}'`,`substr(${n.timestamp}, 1, 2) = '${o.hour}'`].join(" AND ")}r(Gf,"predicateFor");function Uf({table:e,source:t,hourKey:n,topPaths:o}){let s=Nf[t],i=Gf({source:t,hourKey:n,columns:s}),a=Of(s.userAgent),c=["()",`(${s.status})`,"(device)",`(${s.uriStem})`,`(${s.clientIp})`].join(", ");return["SELECT",` ${s.status} AS status_value,`,` ${a} AS device,`,` ${s.uriStem} AS path_value,`,` ${s.clientIp} AS ip_value,`," count(*) AS hits,",` sum(CASE WHEN ${s.status} BETWEEN 200 AND 399 THEN 1 ELSE 0 END) AS success,`,` sum(CASE WHEN ${s.status} BETWEEN 400 AND 599 THEN 1 ELSE 0 END) AS errors,`,` sum(CASE WHEN ${s.status} BETWEEN 400 AND 499 THEN 1 ELSE 0 END) AS errors4xx,`,` sum(CASE WHEN ${s.status} BETWEEN 500 AND 599 THEN 1 ELSE 0 END) AS errors5xx,`,` sum(${s.bytesSent}) AS bytes_sent,`,` sum(${s.bytesReceived}) AS bytes_received,`,` approx_percentile(${s.timeTaken}, 0.5) AS p50_time_taken,`,` approx_percentile(${s.timeTaken}, 0.95) AS p95_time_taken,`,` sum(CASE WHEN ${s.resultType} = 'Hit' THEN 1 ELSE 0 END) AS cache_hits,`,` count(DISTINCT ${s.clientIp}) AS unique_ip_count`,`FROM "${e}"`,`WHERE ${i}`,`GROUP BY GROUPING SETS (${c})`].join(`
|
|
2
|
+
import{a as en}from"./chunk-TZ6TJSKE.mjs";import"./chunk-QPD5NJHJ.mjs";import{a as Xt,c as Jt,h as Yt,i as oo,j as so,k as io,l as ao,m as uo}from"./chunk-REMPUQ6B.mjs";import{b as Rt}from"./chunk-LB33VBGK.mjs";import{a as Zt}from"./chunk-YY2HYMK3.mjs";import{A as $e,B as Pt,C as Ne,D as $t,E as Nt,F as Lt,G as ro,L as Ot,O as Gt,R as Ut,S as Mt,T as Bt,V as Ft,W as Vt,aa as Kt,b as tt,e as le,f as no,h as st,ha as jt,j as it,ja as Wt,k as at,l as ut,m as ct,na as Qt,o as pt,p as lt,r as gt,s as bt,sa as qt,u as Et,w as It,xa as zt,y as Ct,ya as Ht,z as Tt}from"./chunk-PD2XGJQD.mjs";import{i as Dt,j as kt,k as wt}from"./chunk-YMGL4RSC.mjs";import{n as T,o as yt,p as ht,s as vt,t as xt,u as _t,v as St}from"./chunk-KRS5YV2Z.mjs";import{B as At,b as ot,d as Er,e as me,g as de,h as mt,i as fe,j as dt,z as ft}from"./chunk-3UGRDNDZ.mjs";import{e as nt,k as J,l as rt}from"./chunk-OC3UN3OS.mjs";import{a as r,b as Pe,c as Ta}from"./chunk-CFZ5JWD3.mjs";var Es=Pe((Tv,bs)=>{function z(e){Object.defineProperty(this,"_next",{writable:!1,enumerable:!1,value:e}),this.done=!1}r(z,"Iterator");z.prototype.next=function(){if(this.done)return{done:!0};var e=this._next();return e.done&&(this.done=!0),e};typeof Symbol<"u"&&(z.prototype[Symbol.iterator]=function(){return this});z.of=function(){var e=arguments,t=e.length,n=0;return new z(function(){return n>=t?{done:!0}:{done:!1,value:e[n++]}})};z.empty=function(){var e=new z(null);return e.done=!0,e};z.is=function(e){return e instanceof z?!0:typeof e=="object"&&e!==null&&typeof e.next=="function"};bs.exports=z});var Lr=Pe((Rv,As)=>{var Is=typeof ArrayBuffer<"u",Cs=typeof Symbol<"u";function Ts(e,t){var n,o,s,i,a;if(!e)throw new Error("obliterator/forEach: invalid iterable.");if(typeof t!="function")throw new Error("obliterator/forEach: expecting a callback.");if(Array.isArray(e)||Is&&ArrayBuffer.isView(e)||typeof e=="string"||e.toString()==="[object Arguments]"){for(s=0,i=e.length;s<i;s++)t(e[s],s);return}if(typeof e.forEach=="function"){e.forEach(t);return}if(Cs&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(n=e,s=0;a=n.next(),a.done!==!0;)t(a.value,s),s++;return}for(o in e)e.hasOwnProperty(o)&&t(e[o],o)}r(Ts,"forEach");Ts.forEachWithNullKeys=function(e,t){var n,o,s,i,a;if(!e)throw new Error("obliterator/forEachWithNullKeys: invalid iterable.");if(typeof t!="function")throw new Error("obliterator/forEachWithNullKeys: expecting a callback.");if(Array.isArray(e)||Is&&ArrayBuffer.isView(e)||typeof e=="string"||e.toString()==="[object Arguments]"){for(s=0,i=e.length;s<i;s++)t(e[s],null);return}if(e instanceof Set){e.forEach(function(c){t(c,null)});return}if(typeof e.forEach=="function"){e.forEach(t);return}if(Cs&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(n=e,s=0;a=n.next(),a.done!==!0;)t(a.value,null),s++;return}for(o in e)e.hasOwnProperty(o)&&t(e[o],o)};As.exports=Ts});var Or=Pe(F=>{var np=Math.pow(2,8)-1,rp=Math.pow(2,16)-1,op=Math.pow(2,32)-1,sp=Math.pow(2,7)-1,ip=Math.pow(2,15)-1,ap=Math.pow(2,31)-1;F.getPointerArray=function(e){var t=e-1;return t<=np?Uint8Array:t<=rp?Uint16Array:t<=op?Uint32Array:Float64Array};F.getSignedPointerArray=function(e){var t=e-1;return t<=sp?Int8Array:t<=ip?Int16Array:t<=ap?Int32Array:Float64Array};F.getNumberType=function(e){return e===(e|0)?Math.sign(e)===-1?e<=127&&e>=-128?Int8Array:e<=32767&&e>=-32768?Int16Array:Int32Array:e<=255?Uint8Array:e<=65535?Uint16Array:Uint32Array:Float64Array};var up={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};F.getMinimalRepresentation=function(e,t){var n=null,o=0,s,i,a,c,m;for(c=0,m=e.length;c<m;c++)a=t?t(e[c]):e[c],i=F.getNumberType(a),s=up[i.name],s>o&&(o=s,n=i);return n};F.isTypedArray=function(e){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView(e)};F.concat=function(){var e=0,t,n,o;for(t=0,o=arguments.length;t<o;t++)e+=arguments[t].length;var s=new arguments[0].constructor(e);for(t=0,n=0;t<o;t++)s.set(arguments[t],n),n+=arguments[t].length;return s};F.indices=function(e){for(var t=F.getPointerArray(e),n=new t(e),o=0;o<e;o++)n[o]=o;return n}});var ks=Pe(Fe=>{var Rs=Lr(),Ds=Or();function cp(e){return Array.isArray(e)||Ds.isTypedArray(e)}r(cp,"isArrayLike");function Gr(e){if(typeof e.length=="number")return e.length;if(typeof e.size=="number")return e.size}r(Gr,"guessLength");function pp(e){var t=Gr(e),n=typeof t=="number"?new Array(t):[],o=0;return Rs(e,function(s){n[o++]=s}),n}r(pp,"toArray");function lp(e){var t=Gr(e),n=typeof t=="number"?Ds.getPointerArray(t):Array,o=typeof t=="number"?new Array(t):[],s=typeof t=="number"?new n(t):[],i=0;return Rs(e,function(a){o[i]=a,s[i]=i++}),[o,s]}r(lp,"toArrayWithIndices");Fe.isArrayLike=cp;Fe.guessLength=Gr;Fe.toArray=pp;Fe.toArrayWithIndices=lp});var Ps=Pe(($v,ws)=>{var Ur=Es(),mp=Lr(),dp=Or(),fp=ks();function C(e,t,n){if(arguments.length<2&&(n=e,e=null,t=null),this.capacity=n,typeof this.capacity!="number"||this.capacity<=0)throw new Error("mnemonist/lru-cache: capacity should be positive number.");var o=dp.getPointerArray(n);this.forward=new o(n),this.backward=new o(n),this.K=typeof e=="function"?new e(n):new Array(n),this.V=typeof t=="function"?new t(n):new Array(n),this.size=0,this.head=0,this.tail=0,this.items={}}r(C,"LRUCache");C.prototype.clear=function(){this.size=0,this.head=0,this.tail=0,this.items={}};C.prototype.splayOnTop=function(e){var t=this.head;if(this.head===e)return this;var n=this.backward[e],o=this.forward[e];return this.tail===e?this.tail=n:this.backward[o]=n,this.forward[n]=o,this.backward[t]=e,this.head=e,this.forward[e]=t,this};C.prototype.set=function(e,t){var n=this.items[e];if(typeof n<"u"){this.splayOnTop(n),this.V[n]=t;return}this.size<this.capacity?n=this.size++:(n=this.tail,this.tail=this.backward[n],delete this.items[this.K[n]]),this.items[e]=n,this.K[n]=e,this.V[n]=t,this.forward[n]=this.head,this.backward[this.head]=n,this.head=n};C.prototype.setpop=function(e,t){var n=null,o=null,s=this.items[e];return typeof s<"u"?(this.splayOnTop(s),n=this.V[s],this.V[s]=t,{evicted:!1,key:e,value:n}):(this.size<this.capacity?s=this.size++:(s=this.tail,this.tail=this.backward[s],n=this.V[s],o=this.K[s],delete this.items[this.K[s]]),this.items[e]=s,this.K[s]=e,this.V[s]=t,this.forward[s]=this.head,this.backward[this.head]=s,this.head=s,o?{evicted:!0,key:o,value:n}:null)};C.prototype.has=function(e){return e in this.items};C.prototype.get=function(e){var t=this.items[e];if(!(typeof t>"u"))return this.splayOnTop(t),this.V[t]};C.prototype.peek=function(e){var t=this.items[e];if(!(typeof t>"u"))return this.V[t]};C.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var n=0,o=this.size,s=this.head,i=this.K,a=this.V,c=this.forward;n<o;)e.call(t,a[s],i[s],this),s=c[s],n++};C.prototype.keys=function(){var e=0,t=this.size,n=this.head,o=this.K,s=this.forward;return new Ur(function(){if(e>=t)return{done:!0};var i=o[n];return e++,e<t&&(n=s[n]),{done:!1,value:i}})};C.prototype.values=function(){var e=0,t=this.size,n=this.head,o=this.V,s=this.forward;return new Ur(function(){if(e>=t)return{done:!0};var i=o[n];return e++,e<t&&(n=s[n]),{done:!1,value:i}})};C.prototype.entries=function(){var e=0,t=this.size,n=this.head,o=this.K,s=this.V,i=this.forward;return new Ur(function(){if(e>=t)return{done:!0};var a=o[n],c=s[n];return e++,e<t&&(n=i[n]),{done:!1,value:[a,c]}})};typeof Symbol<"u"&&(C.prototype[Symbol.iterator]=C.prototype.entries);C.prototype.inspect=function(){for(var e=new Map,t=this.entries(),n;n=t.next(),!n.done;)e.set(n.value[0],n.value[1]);return Object.defineProperty(e,"constructor",{value:C,enumerable:!1}),e};typeof Symbol<"u"&&(C.prototype[Symbol.for("nodejs.util.inspect.custom")]=C.prototype.inspect);C.from=function(e,t,n,o){if(arguments.length<2){if(o=fp.guessLength(e),typeof o!="number")throw new Error("mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.")}else arguments.length===2&&(o=t,t=null,n=null);var s=new C(t,n,o);return mp(e,function(i,a){s.set(a,i)}),s};ws.exports=C});var co=r(async(e,t,n)=>({operation:nt(t).operation,region:await J(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultAthenaHttpAuthSchemeParametersProvider");function Aa(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"athena",region:e.region},propertiesExtractor:r((t,n)=>({signingProperties:{config:t,context:n}}),"propertiesExtractor")}}r(Aa,"createAwsAuthSigv4HttpAuthOption");var po=r(e=>{let t=[];switch(e.operation){default:t.push(Aa(e))}return t},"defaultAthenaHttpAuthSchemeProvider"),lo=r(e=>{let t=Yt(e);return Object.assign(t,{authSchemePreference:J(e.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig");var mo=r(e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"athena"}),"resolveClientEndpointParameters"),fo={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var yo={name:"@aws-sdk/client-athena",version:"3.1150.0",description:"AWS SDK for JavaScript Athena Client for Node.js, Browser and React Native",homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-athena",license:"Apache-2.0",author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/sdk-for-javascript/"},repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-athena"},files:["dist-*/**"],sideEffects:!1,main:"./dist-cjs/index.js",module:"./dist-es/index.js",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},types:"./dist-types/index.d.ts",typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},scripts:{build:"concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline","build:es":"premove dist-es && tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"premove dist-types && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service","test:index":"tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"},dependencies:{"@aws-sdk/core":"^3.978.3","@aws-sdk/credential-provider-node":"^3.972.86","@aws-sdk/types":"^3.974.6","@smithy/core":"^3.35.2","@smithy/fetch-http-handler":"^5.8.0","@smithy/node-http-handler":"^4.12.1","@smithy/types":"^4.19.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node20":"20.1.8","@types/node":"^20.14.8",concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~7.0.2"},engines:{node:">=20.0.0"}};var Oe="ref",oe=-1,tn=!0,ho="isSet",bo="PartitionResult",nn="booleanEquals",vo="getAttr",xo={[Oe]:"Endpoint"},_o={[Oe]:bo},Le={},So=[{[Oe]:"Region"}],go={conditions:[[ho,[xo]],[ho,So],["aws.partition",So,bo],[nn,[{[Oe]:"UseFIPS"},tn]],[nn,[{[Oe]:"UseDualStack"},tn]],[nn,[{fn:vo,argv:[_o,"supportsDualStack"]},tn]],[nn,[{fn:vo,argv:[_o,"supportsFIPS"]},tn]]],results:[[oe],[oe,"Invalid Configuration: FIPS and custom endpoint are not supported"],[oe,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[xo,Le],["https://athena-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Le],[oe,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://athena-fips.{Region}.{PartitionResult#dnsSuffix}",Le],[oe,"FIPS is enabled but this partition does not support FIPS"],["https://athena.{Region}.{PartitionResult#dualStackDnsSuffix}",Le],[oe,"DualStack is enabled but this partition does not support DualStack"],["https://athena.{Region}.{PartitionResult#dnsSuffix}",Le],[oe,"Invalid Configuration: Missing Region"]]},Da=2,P=1e8,ka=new Int32Array([-1,1,-1,0,12,3,1,4,P+11,2,5,P+11,3,8,6,4,7,P+10,5,P+8,P+9,4,10,9,6,P+6,P+7,5,11,P+5,6,P+4,P+5,3,P+1,13,4,P+2,P+3]),Eo=gt.from(ka,Da,go.conditions,go.results);var wa=new bt({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Io=r((e,t={})=>wa.get(e,()=>It(Eo,{endpointParams:e,logger:t.logger})),"defaultEndpointResolver");Et.aws=qt;var O=class e extends st{static{r(this,"AthenaServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.athena#AthenaServiceException";constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}};var rn=class e extends O{static{r(this,"InternalServerException")}static shapeId="com.amazonaws.athena#InternalServerException";name="InternalServerException";$fault="server";Message;constructor(t){super({name:"InternalServerException",$fault:"server",...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},on=class e extends O{static{r(this,"InvalidRequestException")}static shapeId="com.amazonaws.athena#InvalidRequestException";name="InvalidRequestException";$fault="client";AthenaErrorCode;Message;constructor(t){super({name:"InvalidRequestException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.AthenaErrorCode=t.AthenaErrorCode,this.Message=t.Message}},sn=class e extends O{static{r(this,"TooManyRequestsException")}static shapeId="com.amazonaws.athena#TooManyRequestsException";name="TooManyRequestsException";$fault="client";Message;Reason;constructor(t){super({name:"TooManyRequestsException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message,this.Reason=t.Reason}},an=class e extends O{static{r(this,"ResourceNotFoundException")}static shapeId="com.amazonaws.athena#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";Message;ResourceName;constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message,this.ResourceName=t.ResourceName}},un=class e extends O{static{r(this,"MetadataException")}static shapeId="com.amazonaws.athena#MetadataException";name="MetadataException";$fault="client";Message;constructor(t){super({name:"MetadataException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},cn=class e extends O{static{r(this,"SessionAlreadyExistsException")}static shapeId="com.amazonaws.athena#SessionAlreadyExistsException";name="SessionAlreadyExistsException";$fault="client";Message;constructor(t){super({name:"SessionAlreadyExistsException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}};var Co="AclConfiguration",Pa="AdditionalConfigs";var To="AthenaError",$a="AthenaErrorCode";var Na="AuthenticationType";var La="Classification";var Oa="CoordinatorDpuSize",Ga="CompletionDateTime";var Ao="ColumnInfo",Ua="ColumnInfoList";var Ma="ClassificationList";var Ba="CatalogName";var Fa="ClientRequestToken";var Va="CaseSensitive";var Ka="CreateUserLevelPrefix";var ja="Catalog";var Wa="Classifications";var Qa="DpuCount";var qa="DefaultExecutorDpuSize";var za="DataManifestLocation";var Ha="DataScannedInBytes";var Xa="Database",Ja="Datum",Ya="Data",Ro="Enabled",Za="ExpectedBucketOwner",eu="ErrorCategory",Ir="EncryptionConfiguration",Do="EngineConfiguration";var tu="EngineExecutionTimeInMillis",nu="EffectiveEngineVersion";var ru="ErrorMessage";var ou="EncryptionOption",ko="ExecutionParameters";var su="EnableS3AccessGrants";var iu="ErrorType";var wo="EngineVersion";var au="GetQueryExecution",uu="GetQueryExecutionInput",cu="GetQueryExecutionOutput",pu="GetQueryResults",lu="GetQueryResultsInput",mu="GetQueryResultsOutput";var du="InvalidRequestException";var fu="InternalServerException";var Po="KmsKey",yu="Label";var ye="Message",hu="MaxAgeInMinutes";var vu="MaxConcurrentDpus",xu="MetadataException";var $o="ManagedQueryResultsConfiguration";var _u="ManagedQueryResultsEncryptionConfiguration",Su="MaxResults",No="Name";var Lo="NextToken";var gu="Nullable";var bu="OutputLocation";var Eu="Properties",Iu="Precision",Cu="Query";var Cr="QueryExecutionContext";var pn="QueryExecutionId";var Tu="QueryExecutionStatistics",Au="QueryExecutionStatus",Oo="QueryExecution",Ru="QueryPlanningTimeInMillis",Du="QueryQueueTimeInMillis";var Go="QueryResultsS3AccessGrantsConfiguration";var ku="QueryResultType",wu="QueryString";var Pu="Reason";var Tr="ResultConfiguration";var $u="RowList",Nu="ResourceName",Lu="ResourceNotFoundException";var Ou="ReusedPreviousResult",Uo="ResultReuseByAgeConfiguration",Ar="ResultReuseConfiguration",Mo="ResultReuseInformation",Bo="ResultSet",Fo="ResultSetMetadata";var Gu="Retryable";var Uu="Rows",Mu="Row",Bu="State",Fu="SessionAlreadyExistsException",Vu="S3AclOption";var Ku="StateChangeReason";var ju="SubmissionDateTime";var Wu="SelectedEngineVersion";var Qu="SchemaName";var qu="SparkProperties",zu="ServicePreProcessingTimeInMillis",Hu="ServiceProcessingTimeInMillis",Xu="StartQueryExecution",Ju="StartQueryExecutionInput";var Yu="StartQueryExecutionOutput";var Zu="StatementType",ec="SubstatementType",tc="Scale";var nc="Status",rc="Statistics",oc="Type";var sc="TotalExecutionTimeInMillis";var ic="TooManyRequestsException",ac="TableName";var uc="UpdateCount";var cc="VarCharValue";var Vo="WorkGroup";var Ge="client",pc="datumList",he="error",Ko="smithy.ts.sdk.synthetic.com.amazonaws.athena",lc="server",f="com.amazonaws.athena",jo=new me(Ko),mc=[-3,Ko,"AthenaServiceException",0,[],[]];jo.registerError(mc,O);var se=new me(f),dc=[-3,f,fu,{[he]:lc},[ye],[0]];se.registerError(dc,rn);var fc=[-3,f,du,{[he]:Ge},[$a,ye],[0,0]];se.registerError(fc,on);var yc=[-3,f,xu,{[he]:Ge},[ye],[0]];se.registerError(yc,un);var hc=[-3,f,Lu,{[he]:Ge},[ye,Nu],[0,0]];se.registerError(hc,an);var vc=[-3,f,Fu,{[he]:Ge},[ye],[0]];se.registerError(vc,cn);var xc=[-3,f,ic,{[he]:Ge},[ye,Pu],[0,0]];se.registerError(xc,sn);var Wo=[jo,se],_c=[3,f,Co,0,[Vu],[0],1];var Sc=[3,f,To,0,[eu,iu,Gu,ru],[1,1,2,0]];var gc=[3,f,La,0,[No,Eu],[0,128]];var bc=[3,f,Ao,0,[No,oc,Ba,Qu,ac,yu,Iu,tc,gu,Va],[0,0,0,0,0,0,1,1,0,2],2];var Ec=[3,f,Ja,0,[cc],[0]];var Ic=[3,f,Ir,0,[ou,Po],[0,0],1],Cc=[3,f,Do,0,[Oa,vu,qa,Pa,qu,Wa],[1,1,1,128,128,()=>jc]],Tc=[3,f,wo,0,[Wu,nu],[0,0]];var Ac=[3,f,uu,0,[pn],[0],1],Rc=[3,f,cu,0,[Oo],[()=>$c]],Dc=[3,f,lu,0,[pn,Lo,Su,ku],[0,0,1,0],1],kc=[3,f,mu,0,[uc,Bo,Lo],[1,()=>Mc,0]];var wc=[3,f,$o,0,[Ro,Ir],[2,()=>Pc],1];var Pc=[3,f,_u,0,[Po],[0],1];var $c=[3,f,Oo,0,[pn,Cu,Zu,$o,Tr,Ar,Cr,nc,rc,Vo,wo,ko,ec,Go],[0,0,0,()=>wc,()=>qo,()=>zo,()=>Qo,()=>Lc,()=>Nc,0,()=>Tc,64,0,()=>Oc]],Qo=[3,f,Cr,0,[Xa,ja],[0,0]],Nc=[3,f,Tu,0,[tu,Ha,za,sc,Du,zu,Ru,Hu,Mo,Qa],[1,1,0,1,1,1,1,1,()=>Uc,1]],Lc=[3,f,Au,0,[Bu,Ku,ju,Ga,To],[0,0,4,4,()=>Sc]],Oc=[3,f,Go,0,[su,Na,Ka],[2,0,2],2];var qo=[3,f,Tr,0,[bu,Ir,Za,Co],[0,()=>Ic,0,()=>_c]];var Gc=[3,f,Uo,0,[Ro,hu],[2,1],1],zo=[3,f,Ar,0,[Uo],[()=>Gc]],Uc=[3,f,Mo,0,[Ou],[2],1],Mc=[3,f,Bo,0,[Uu,Fo],[()=>qc,()=>Bc]],Bc=[3,f,Fo,0,[Ao],[()=>Wc]],Fc=[3,f,Mu,0,[Ya],[()=>Qc]];var Vc=[3,f,Ju,0,[wu,Fa,Cr,Tr,Vo,ko,Ar,Do],[0,[0,4],()=>Qo,()=>qo,0,64,()=>zo,()=>Cc],1],Kc=[3,f,Yu,0,[pn],[0]];var jc=[1,f,Ma,0,()=>gc],Wc=[1,f,Ua,0,()=>bc];var Qc=[1,f,pc,0,()=>Ec];var qc=[1,f,$u,0,()=>Fc];var Ho=[9,f,au,0,()=>Ac,()=>Rc],Xo=[9,f,pu,0,()=>Dc,()=>kc];var Jo=[9,f,Xu,2,()=>Vc,()=>Kc];var Yo=r(e=>({apiVersion:"2017-05-18",base64Decoder:e?.base64Decoder??de,base64Encoder:e?.base64Encoder??fe,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Io,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??po,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:r(t=>t.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new Xt}],logger:e?.logger??new pt,protocol:e?.protocol??uo,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.athena",errorTypeRegistries:Wo,version:"2017-05-18",serviceTarget:"AmazonAthena"},serviceId:e?.serviceId??"Athena",sha256:e?.sha256??Rt,urlParser:e?.urlParser??rt,utf8Decoder:e?.utf8Decoder??mt,utf8Encoder:e?.utf8Encoder??dt}),"getRuntimeConfig");var Zo=r(e=>{at(process.version);let t=St(e),n=r(()=>t().then(it),"defaultConfigProvider"),o=Yo(e);tt(process.version);let s={profile:e?.profile,logger:o.logger};return{...o,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??T(Jt,s),bodyLengthChecker:e?.bodyLengthChecker??ft,credentialDefaultProvider:e?.credentialDefaultProvider??en,defaultUserAgentProvider:e?.defaultUserAgentProvider??Wt({serviceId:o.serviceId,clientVersion:yo.version}),maxAttempts:e?.maxAttempts??T(Ne,e),region:e?.region??T(vt,{...xt,...s}),requestHandler:Zt.create(e?.requestHandler??n),retryMode:e?.retryMode??T({...Nt,default:r(async()=>(await n()).retryMode||Pt,"default")},e),streamCollector:e?.streamCollector??At,useDualstackEndpoint:e?.useDualstackEndpoint??T(yt,s),useFipsEndpoint:e?.useFipsEndpoint??T(ht,s),userAgentAppId:e?.userAgentAppId??T(Qt,s)}},"getRuntimeConfig");var es=r(e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,o=e.credentials;return{setHttpAuthScheme(s){let i=t.findIndex(a=>a.schemeId===s.schemeId);i===-1?t.push(s):t.splice(i,1,s)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(s){n=s},httpAuthSchemeProvider(){return n},setCredentials(s){o=s},credentials(){return o}}},"getHttpAuthExtensionConfiguration"),ts=r(e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),"resolveHttpAuthRuntimeConfig");var ns=r((e,t)=>{let n=Object.assign(zt(e),ut(e),Dt(e),es(e));return t.forEach(o=>o.configure(n)),Object.assign(e,Ht(n),ct(n),kt(n),ts(n))},"resolveRuntimeExtensions");var ln=class extends le{static{r(this,"AthenaClient")}config;constructor(...[t]){let n=Zo(t||{});super(n),this.initConfig=n;let o=mo(n),s=Kt(o),i=$t(s),a=_t(i),c=a,m=Ct(c),p=lo(m),g=ns(p,t?.extensions||[]);this.config=g,this.middlewareStack.use(ot(this.config)),this.middlewareStack.use(jt(this.config)),this.middlewareStack.use(Lt(this.config)),this.middlewareStack.use(wt(this.config)),this.middlewareStack.use(Ot(this.config)),this.middlewareStack.use(Gt(this.config)),this.middlewareStack.use(Ut(this.config)),this.middlewareStack.use(Mt(this.config,{httpAuthSchemeParametersProvider:co,identityProviderConfigProvider:r(async re=>new Vt({"aws.auth#sigv4":re.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Bt(this.config))}destroy(){super.destroy()}};var ve=lt(fo,"AmazonAthena","AthenaClient",Tt),xe={},_e=r((e,t,n,o)=>[],"_mw0");var mn=class extends ve(xe,_e,"GetQueryExecution",Ho){static{r(this,"GetQueryExecutionCommand")}};var dn=class extends ve(xe,_e,"GetQueryResults",Xo){static{r(this,"GetQueryResultsCommand")}};var fn=class extends ve(xe,_e,"StartQueryExecution",Jo){static{r(this,"StartQueryExecutionCommand")}};var ie=class e{static{r(this,"NumberValue")}value;constructor(t){typeof t=="object"&&"N"in t?this.value=String(t.N):this.value=String(t);let n=typeof t.valueOf()=="number"?t.valueOf():0;if(n>Number.MAX_SAFE_INTEGER||n<Number.MIN_SAFE_INTEGER||Math.abs(n)===1/0||Number.isNaN(n))throw new Error(`NumberValue should not be initialized with an imprecise number=${n}. Use a string instead.`)}static from(t){return new e(t)}toAttributeValue(){return{N:this.toString()}}toBigInt(){let t=this.toString();return BigInt(t)}toString(){return String(this.value)}valueOf(){return this.toString()}};var Ue=r((e,t)=>{if(e===void 0)throw new Error("Pass options.removeUndefinedValues=true to remove undefined values from map/array/set.");if(e===null&&typeof e=="object")return yn();if(Array.isArray(e))return Hc(e,t);if(e?.constructor?.name==="Set")return Xc(e,t);if(e?.constructor?.name==="Map")return Jc(e,t);if(e?.constructor?.name==="Object"||!e.constructor&&typeof e=="object")return rs(e,t);if(cs(e))return e.length===0&&t?.convertEmptyValues?yn():ss(e);if(typeof e=="boolean"||e?.constructor?.name==="Boolean")return{BOOL:e.valueOf()};if(typeof e=="number"||e?.constructor?.name==="Number")return us(e,t);if(e instanceof ie)return e.toAttributeValue();if(typeof e=="bigint")return as(e);if(typeof e=="string"||e?.constructor?.name==="String")return e.length===0&&t?.convertEmptyValues?yn():is(e);if(t?.convertClassInstanceToMap&&typeof e=="object")return rs(e,t);throw new Error(`Unsupported type passed: ${e}. Pass options.convertClassInstanceToMap=true to marshall typeof object as map attribute.`)},"convertToAttr"),Hc=r((e,t)=>({L:e.filter(n=>typeof n!="function"&&(!t?.removeUndefinedValues||t?.removeUndefinedValues&&n!==void 0)).map(n=>Ue(n,t))}),"convertToListAttr"),Xc=r((e,t)=>{let n=t?.removeUndefinedValues?new Set([...e].filter(s=>s!==void 0)):e;if(!t?.removeUndefinedValues&&n.has(void 0))throw new Error("Pass options.removeUndefinedValues=true to remove undefined values from map/array/set.");if(n.size===0){if(t?.convertEmptyValues)return yn();throw new Error("Pass a non-empty set, or options.convertEmptyValues=true.")}let o=n.values().next().value;if(o instanceof ie)return{NS:Array.from(n).map(s=>s.toString())};if(typeof o=="number")return{NS:Array.from(n).map(s=>us(s,t)).map(s=>s.N)};if(typeof o=="bigint")return{NS:Array.from(n).map(as).map(s=>s.N)};if(typeof o=="string")return{SS:Array.from(n).map(is).map(s=>s.S)};if(cs(o))return{BS:Array.from(n).map(ss).map(s=>s.B)};throw new Error("Only Number Set (NS), Binary Set (BS) or String Set (SS) are allowed.")},"convertToSetAttr"),Jc=r((e,t)=>({M:(n=>{let o={};for(let[s,i]of n)typeof i!="function"&&(i!==void 0||!t?.removeUndefinedValues)&&(o[s]=Ue(i,t));return o})(e)}),"convertToMapAttrFromIterable"),rs=r((e,t)=>({M:(n=>{let o={};for(let s in n){let i=n[s];typeof i!="function"&&(i!==void 0||!t?.removeUndefinedValues)&&(o[s]=Ue(i,t))}return o})(e)}),"convertToMapAttrFromEnumerableProps"),yn=r(()=>({NULL:!0}),"convertToNullAttr"),ss=r(e=>({B:e}),"convertToBinaryAttr"),is=r(e=>({S:e.toString()}),"convertToStringAttr"),as=r(e=>({N:e.toString()}),"convertToBigIntAttr"),os=r(e=>{throw new Error(`${e} Use NumberValue from @aws-sdk/lib-dynamodb.`)},"validateBigIntAndThrow"),us=r((e,t)=>{if([Number.NaN,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY].map(n=>n.toString()).includes(e.toString()))throw new Error(`Special numeric value ${e.toString()} is not allowed`);return t?.allowImpreciseNumbers||(Number(e)>Number.MAX_SAFE_INTEGER?os(`Number ${e.toString()} is greater than Number.MAX_SAFE_INTEGER.`):Number(e)<Number.MIN_SAFE_INTEGER&&os(`Number ${e.toString()} is lesser than Number.MIN_SAFE_INTEGER.`)),{N:e.toString()}},"convertToNumberAttr"),cs=r(e=>{let t=["ArrayBuffer","Blob","Buffer","DataView","File","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];return e?.constructor?t.includes(e.constructor.name):!1},"isBinary");var Me=r((e,t)=>{for(let[n,o]of Object.entries(e))if(o!==void 0)switch(n){case"NULL":return null;case"BOOL":return!!o;case"N":return ps(o,t);case"B":return ms(o);case"S":return ls(o);case"L":return Yc(o,t);case"M":return Zc(o,t);case"NS":return new Set(o.map(s=>ps(s,t)));case"BS":return new Set(o.map(ms));case"SS":return new Set(o.map(ls));default:throw new Error(`Unsupported type passed: ${n}`)}throw new Error(`No value defined: ${JSON.stringify(e)}`)},"convertToNative"),ps=r((e,t)=>{if(typeof t?.wrapNumbers=="function")return t?.wrapNumbers(e);if(t?.wrapNumbers)return ie.from(e);let n=Number(e),o=[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];if((n>Number.MAX_SAFE_INTEGER||n<Number.MIN_SAFE_INTEGER)&&!o.includes(n))if(typeof BigInt=="function")try{return BigInt(e)}catch{throw new Error(`${e} can't be converted to BigInt. Set options.wrapNumbers to get string value.`)}else throw new Error(`${e} is outside SAFE_INTEGER bounds. Set options.wrapNumbers to get string value.`);return n},"convertNumber"),ls=r(e=>e,"convertString"),ms=r(e=>e,"convertBinary"),Yc=r((e,t)=>e.map(n=>Me(n,t)),"convertList"),Zc=r((e,t)=>Object.entries(e).reduce((n,[o,s])=>(n[o]=Me(s,t),n),{}),"convertMap");function Rr(e,t){let n=Ue(e,t),[o,s]=Object.entries(n)[0];switch(o){case"M":case"L":return t?.convertTopLevelContainer?n:s;default:return n}}r(Rr,"marshall");var Dr=r((e,t)=>t?.convertWithoutMapWrapper?Me(e,t):Me({M:e},t),"unmarshall");var ae=null,d={},k=[],ds="*",hn=r((e,t,n)=>{if(e!==void 0){if(n==null)return t(e);{let o=Object.keys(n),s=o.length===1&&o[0]===ds,i=o.length>=1&&!s,a=o.length===0;if(i)return kr(e,t,n);if(a)return ep(e,t,ae);if(s)return Object.entries(e??{}).reduce((c,[m,p])=>(typeof p!="function"&&(c[m]=hn(p,t,n[ds])),c),Array.isArray(e)?[]:{})}}},"processObj"),kr=r((e,t,n)=>{let o;if(Array.isArray(e))o=e.filter(s=>typeof s!="function");else{o={};for(let[s,i]of Object.entries(e))typeof i!="function"&&(o[s]=i)}for(let[s,i]of Object.entries(n)){if(typeof e[s]=="function")continue;let a=hn(e[s],t,i);a!==void 0&&typeof a!="function"&&(o[s]=a)}return o},"processKeysInObj"),ep=r((e,t,n)=>Array.isArray(e)?e.filter(o=>typeof o!="function").map(o=>hn(o,t,n)):Object.entries(e).reduce((o,[s,i])=>{if(typeof i=="function")return o;let a=hn(i,t,n);return a!==void 0&&typeof a!="function"&&(o[s]=a),o},{}),"processAllKeysInObj"),fs=r((e,t,n)=>kr(e,r(s=>Rr(s,n),"marshallFunc"),t),"marshallInput"),ys=r((e,t,n)=>kr(e,r(s=>Dr(s,n),"unmarshallFunc"),t),"unmarshallOutput");var b=class extends no{static{r(this,"DynamoDBDocumentClientCommand")}addMarshallingMiddleware(t){let{marshallOptions:n={},unmarshallOptions:o={}}=t.translateConfig||{};n.convertTopLevelContainer=n.convertTopLevelContainer??!0,o.convertWithoutMapWrapper=o.convertWithoutMapWrapper??!0,this.clientCommand.middlewareStack.addRelativeTo((s,i)=>async a=>(ro(i,"DDB_MAPPER","d"),s({...a,input:fs(a.input,this.inputKeyNodes,n)})),{name:"DocumentMarshall",relation:"before",toMiddleware:"serializerMiddleware",override:!0}),this.clientCommand.middlewareStack.addRelativeTo((s,i)=>async a=>{let c=await s(a);return c.output=ys(c.output,this.outputKeyNodes,o),c},{name:"DocumentUnmarshall",relation:"before",toMiddleware:"deserializerMiddleware",override:!0})}};var vn="preferred",tp=["disabled","preferred","required"];function Be(e){return tp.includes(e)}r(Be,"validateAccountIdEndpointMode");var wr=r(e=>{let{accountIdEndpointMode:t}=e,n=J(t??vn);return Object.assign(e,{accountIdEndpointMode:r(async()=>{let o=await n();if(!Be(o))throw new Error(`Invalid value for accountIdEndpointMode: ${o}. Valid values are: "required", "preferred", "disabled".`);return o},"accountIdEndpointMode")})},"resolveAccountIdEndpointModeConfig");var hs="Invalid AccountIdEndpointMode value",vs=r(e=>{throw new Error(e)},"_throw"),xs="AWS_ACCOUNT_ID_ENDPOINT_MODE",_s="account_id_endpoint_mode",Pr={environmentVariableSelector:r(e=>{let t=e[xs];return t&&!Be(t)&&vs(hs),t},"environmentVariableSelector"),configFileSelector:r(e=>{let t=e[_s];return t&&!Be(t)&&vs(hs),t},"configFileSelector"),default:vn};var Ss=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"],$r="endpoint_discovery_enabled",gs=r(e=>["false","0"].indexOf(e)>=0,"isFalsy"),Nr={environmentVariableSelector:r(e=>{for(let t=0;t<Ss.length;t++){let n=Ss[t];if(n in e){let o=e[n];if(o==="")throw Error(`Environment variable ${n} can't be empty of undefined, got "${o}"`);return!gs(o)}}},"environmentVariableSelector"),configFileSelector:r(e=>{if($r in e){let t=e[$r];if(t===void 0)throw Error(`Shared config entry ${$r} can't be undefined, got "${t}"`);return!gs(t)}},"configFileSelector"),default:void 0};var $s=Ta(Ps());var Ve=class{static{r(this,"EndpointCache")}cache;constructor(t){this.cache=new $s.default(t)}getEndpoint(t){let n=this.get(t);if(!n||n.length===0)return;let o=n.map(s=>s.Address);return o[Math.floor(Math.random()*o.length)]}get(t){if(!this.has(t))return;let n=this.cache.get(t);if(!n)return;let o=Date.now(),s=n.filter(i=>o<i.Expires);if(s.length===0){this.delete(t);return}return s}set(t,n){let o=Date.now();this.cache.set(t,n.map(({Address:s,CachePeriodInMinutes:i})=>({Address:s,Expires:o+i*60*1e3})))}delete(t){this.cache.set(t,[])}has(t){if(!this.cache.has(t))return!1;let n=this.cache.peek(t);return n?n.length>0:!1}clear(){this.cache.clear()}};var Mr=r((e,{endpointDiscoveryCommandCtor:t})=>{let{endpointCacheSize:n,endpointDiscoveryEnabled:o,endpointDiscoveryEnabledProvider:s}=e;return Object.assign(e,{endpointDiscoveryCommandCtor:t,endpointCache:new Ve(n??1e3),endpointDiscoveryEnabled:o!==void 0?()=>Promise.resolve(o):s,isClientEndpointDiscoveryEnabled:o!==void 0})},"resolveEndpointDiscoveryConfig");var Ns=r(async(e,t,n)=>({operation:nt(t).operation,region:await J(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultDynamoDBHttpAuthSchemeParametersProvider");function yp(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"dynamodb",region:e.region},propertiesExtractor:r((t,n)=>({signingProperties:{config:t,context:n}}),"propertiesExtractor")}}r(yp,"createAwsAuthSigv4HttpAuthOption");var Ls=r(e=>{let t=[];switch(e.operation){default:t.push(yp(e))}return t},"defaultDynamoDBHttpAuthSchemeProvider"),Os=r(e=>{let t=Yt(e);return Object.assign(t,{authSchemePreference:J(e.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig");var Gs=r(e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"dynamodb"}),"resolveClientEndpointParameters"),Us={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},AccountId:{type:"builtInParams",name:"accountId"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"},AccountIdEndpointMode:{type:"builtInParams",name:"accountIdEndpointMode"}};var A=lt(Us,"DynamoDB_20120810","DynamoDBClient",Tt),Ms={},Bs={ResourceArnList:{type:"operationContextParams",get:r(e=>Object.keys(e?.RequestItems??{}),"get")}},V={ResourceArn:{type:"contextParams",name:"TableName"}};var Fs={ResourceArnList:{type:"operationContextParams",get:r(e=>e?.TransactItems?.map(t=>[t?.ConditionCheck?.TableName,t?.Put?.TableName,t?.Delete?.TableName,t?.Update?.TableName].filter(n=>n)).flat(),"get")}},R=r((e,t,n,o)=>[],"_mw0");var y=class e extends st{static{r(this,"DynamoDBServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.dynamodb#DynamoDBServiceException";constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}};var xn=class e extends y{static{r(this,"BackupInUseException")}static shapeId="com.amazonaws.dynamodb#BackupInUseException";name="BackupInUseException";$fault="client";constructor(t){super({name:"BackupInUseException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},_n=class e extends y{static{r(this,"BackupNotFoundException")}static shapeId="com.amazonaws.dynamodb#BackupNotFoundException";name="BackupNotFoundException";$fault="client";constructor(t){super({name:"BackupNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Sn=class e extends y{static{r(this,"InternalServerError")}static shapeId="com.amazonaws.dynamodb#InternalServerError";name="InternalServerError";$fault="server";constructor(t){super({name:"InternalServerError",$fault:"server",...t}),Object.setPrototypeOf(this,e.prototype)}},gn=class e extends y{static{r(this,"RequestLimitExceeded")}static shapeId="com.amazonaws.dynamodb#RequestLimitExceeded";name="RequestLimitExceeded";$fault="client";ThrottlingReasons;constructor(t){super({name:"RequestLimitExceeded",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.ThrottlingReasons=t.ThrottlingReasons}},bn=class e extends y{static{r(this,"ThrottlingException")}static shapeId="com.amazonaws.dynamodb#ThrottlingException";name="ThrottlingException";$fault="client";throttlingReasons;constructor(t){super({name:"ThrottlingException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.throttlingReasons=t.throttlingReasons}},En=class e extends y{static{r(this,"InvalidEndpointException")}static shapeId="com.amazonaws.dynamodb#InvalidEndpointException";name="InvalidEndpointException";$fault="client";Message;constructor(t){super({name:"InvalidEndpointException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},In=class e extends y{static{r(this,"ProvisionedThroughputExceededException")}static shapeId="com.amazonaws.dynamodb#ProvisionedThroughputExceededException";name="ProvisionedThroughputExceededException";$fault="client";ThrottlingReasons;constructor(t){super({name:"ProvisionedThroughputExceededException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.ThrottlingReasons=t.ThrottlingReasons}},Cn=class e extends y{static{r(this,"ResourceNotFoundException")}static shapeId="com.amazonaws.dynamodb#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Tn=class e extends y{static{r(this,"ItemCollectionSizeLimitExceededException")}static shapeId="com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException";name="ItemCollectionSizeLimitExceededException";$fault="client";constructor(t){super({name:"ItemCollectionSizeLimitExceededException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},An=class e extends y{static{r(this,"ReplicatedWriteConflictException")}static shapeId="com.amazonaws.dynamodb#ReplicatedWriteConflictException";name="ReplicatedWriteConflictException";$fault="client";$retryable={};constructor(t){super({name:"ReplicatedWriteConflictException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Rn=class e extends y{static{r(this,"ContinuousBackupsUnavailableException")}static shapeId="com.amazonaws.dynamodb#ContinuousBackupsUnavailableException";name="ContinuousBackupsUnavailableException";$fault="client";constructor(t){super({name:"ContinuousBackupsUnavailableException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Dn=class e extends y{static{r(this,"LimitExceededException")}static shapeId="com.amazonaws.dynamodb#LimitExceededException";name="LimitExceededException";$fault="client";constructor(t){super({name:"LimitExceededException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},kn=class e extends y{static{r(this,"TableInUseException")}static shapeId="com.amazonaws.dynamodb#TableInUseException";name="TableInUseException";$fault="client";constructor(t){super({name:"TableInUseException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},wn=class e extends y{static{r(this,"TableNotFoundException")}static shapeId="com.amazonaws.dynamodb#TableNotFoundException";name="TableNotFoundException";$fault="client";constructor(t){super({name:"TableNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Pn=class e extends y{static{r(this,"GlobalTableAlreadyExistsException")}static shapeId="com.amazonaws.dynamodb#GlobalTableAlreadyExistsException";name="GlobalTableAlreadyExistsException";$fault="client";constructor(t){super({name:"GlobalTableAlreadyExistsException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},$n=class e extends y{static{r(this,"ResourceInUseException")}static shapeId="com.amazonaws.dynamodb#ResourceInUseException";name="ResourceInUseException";$fault="client";constructor(t){super({name:"ResourceInUseException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Nn=class e extends y{static{r(this,"TransactionConflictException")}static shapeId="com.amazonaws.dynamodb#TransactionConflictException";name="TransactionConflictException";$fault="client";constructor(t){super({name:"TransactionConflictException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Ln=class e extends y{static{r(this,"PolicyNotFoundException")}static shapeId="com.amazonaws.dynamodb#PolicyNotFoundException";name="PolicyNotFoundException";$fault="client";constructor(t){super({name:"PolicyNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},On=class e extends y{static{r(this,"ExportNotFoundException")}static shapeId="com.amazonaws.dynamodb#ExportNotFoundException";name="ExportNotFoundException";$fault="client";constructor(t){super({name:"ExportNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Gn=class e extends y{static{r(this,"GlobalTableNotFoundException")}static shapeId="com.amazonaws.dynamodb#GlobalTableNotFoundException";name="GlobalTableNotFoundException";$fault="client";constructor(t){super({name:"GlobalTableNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Un=class e extends y{static{r(this,"ImportNotFoundException")}static shapeId="com.amazonaws.dynamodb#ImportNotFoundException";name="ImportNotFoundException";$fault="client";constructor(t){super({name:"ImportNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Mn=class e extends y{static{r(this,"DuplicateItemException")}static shapeId="com.amazonaws.dynamodb#DuplicateItemException";name="DuplicateItemException";$fault="client";constructor(t){super({name:"DuplicateItemException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Bn=class e extends y{static{r(this,"IdempotentParameterMismatchException")}static shapeId="com.amazonaws.dynamodb#IdempotentParameterMismatchException";name="IdempotentParameterMismatchException";$fault="client";Message;constructor(t){super({name:"IdempotentParameterMismatchException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Fn=class e extends y{static{r(this,"TransactionInProgressException")}static shapeId="com.amazonaws.dynamodb#TransactionInProgressException";name="TransactionInProgressException";$fault="client";Message;constructor(t){super({name:"TransactionInProgressException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Vn=class e extends y{static{r(this,"ExportConflictException")}static shapeId="com.amazonaws.dynamodb#ExportConflictException";name="ExportConflictException";$fault="client";constructor(t){super({name:"ExportConflictException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Kn=class e extends y{static{r(this,"InvalidExportTimeException")}static shapeId="com.amazonaws.dynamodb#InvalidExportTimeException";name="InvalidExportTimeException";$fault="client";constructor(t){super({name:"InvalidExportTimeException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},jn=class e extends y{static{r(this,"PointInTimeRecoveryUnavailableException")}static shapeId="com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException";name="PointInTimeRecoveryUnavailableException";$fault="client";constructor(t){super({name:"PointInTimeRecoveryUnavailableException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Wn=class e extends y{static{r(this,"ImportConflictException")}static shapeId="com.amazonaws.dynamodb#ImportConflictException";name="ImportConflictException";$fault="client";constructor(t){super({name:"ImportConflictException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Qn=class e extends y{static{r(this,"TableAlreadyExistsException")}static shapeId="com.amazonaws.dynamodb#TableAlreadyExistsException";name="TableAlreadyExistsException";$fault="client";constructor(t){super({name:"TableAlreadyExistsException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},qn=class e extends y{static{r(this,"InvalidRestoreTimeException")}static shapeId="com.amazonaws.dynamodb#InvalidRestoreTimeException";name="InvalidRestoreTimeException";$fault="client";constructor(t){super({name:"InvalidRestoreTimeException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},zn=class e extends y{static{r(this,"ReplicaAlreadyExistsException")}static shapeId="com.amazonaws.dynamodb#ReplicaAlreadyExistsException";name="ReplicaAlreadyExistsException";$fault="client";constructor(t){super({name:"ReplicaAlreadyExistsException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Hn=class e extends y{static{r(this,"ReplicaNotFoundException")}static shapeId="com.amazonaws.dynamodb#ReplicaNotFoundException";name="ReplicaNotFoundException";$fault="client";constructor(t){super({name:"ReplicaNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Xn=class e extends y{static{r(this,"IndexNotFoundException")}static shapeId="com.amazonaws.dynamodb#IndexNotFoundException";name="IndexNotFoundException";$fault="client";constructor(t){super({name:"IndexNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Jn=class e extends y{static{r(this,"ConditionalCheckFailedException")}static shapeId="com.amazonaws.dynamodb#ConditionalCheckFailedException";name="ConditionalCheckFailedException";$fault="client";Item;constructor(t){super({name:"ConditionalCheckFailedException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Item=t.Item}},Yn=class e extends y{static{r(this,"TransactionCanceledException")}static shapeId="com.amazonaws.dynamodb#TransactionCanceledException";name="TransactionCanceledException";$fault="client";Message;CancellationReasons;constructor(t){super({name:"TransactionCanceledException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message,this.CancellationReasons=t.CancellationReasons}};var hp="Action";var vp="AttributeMap";var Zn="AttributesToGet",Ks="AttributeUpdates",xp="AttributeValue",Br="AttributeValueList",_p="AttributeValueUpdate",Sp="Address",js="Attributes";var gp="BatchGetItem",bp="BatchGetItemInput",Ep="BatchGetItemOutput",Ip="BatchGetResponseMap",Cp="BatchGetRequestMap",Tp="BackupInUseException";var Ap="BackupNotFoundException",Rp="BOOL";var Dp="BS";var kp="B",wp="Code";var Pp="ContinuousBackupsUnavailableException",Y="ConsumedCapacity",$p="ConditionalCheckFailedException",Np="ConsumedCapacityMultiple",Ws="ConditionCheck";var Se="ConditionExpression";var Qs="ComparisonOperator",er="ConditionalOperator";var Lp="CachePeriodInMinutes",Op="CancellationReasons";var Gp="CancellationReasonList",Up="ConfirmRemoveSelfResourceAccess",Mp="ClientRequestToken",Bp="CancellationReason",tr="ConsistentRead";var qs="CapacityUnits";var Fp="Capacity",Vp="Condition",zs="Count";var Kp="DescribeEndpoints";var jp="DescribeEndpointsRequest",Wp="DescribeEndpointsResponse";var Qp="DuplicateItemException";var Hs="Delete";var qp="ExpectedAttributeMap",K="ExpressionAttributeNames",Z="ExpressionAttributeValues",zp="ExpressionAttributeValueMap",Hp="ExpectedAttributeValue";var Xp="ExportConflictException";var Jp="ExportNotFoundException";var Yp="ExpectedRevisionId";var Xs="ExclusiveStartKey";var Js="Endpoints";var Zp="Endpoint",Ys="Expected",el="Exists";var tl="FilterConditionMap";var Zs="FilterExpression";var nl="GetItem",rl="GetItemInput",ol="GetItemOutput";var sl="GlobalSecondaryIndexes";var il="GlobalTableAlreadyExistsException";var al="GlobalTableNotFoundException";var Ke="Item";var ul="ImportConflictException",cl="ItemCollectionKey",pl="ItemCollectionKeyAttributeMap",nr="ItemCollectionMetrics",ll="ItemCollectionMetricsMultiple",ml="ItemCollectionMetricsPerTable",dl="ItemCollectionSizeLimitExceededException";var fl="InvalidEndpointException";var yl="InvalidExportTimeException";var hl="ItemList",ei="IndexName",vl="ImportNotFoundException",xl="IndexNotFoundException",_l="IdempotentParameterMismatchException";var Sl="InvalidRestoreTimeException";var gl="InternalServerError";var ti="Items",ge="Key",bl="KeysAndAttributes",ni="KeyConditions",El="KeyConditionExpression";var Il="KeyList";var Cl="Keys",ri="Limit",Tl="ListAttributeValue";var Al="LimitExceededException";var oi="LastEvaluatedKey";var Rl="LocalSecondaryIndexes";var Dl="L",je="Message",kl="MapAttributeValue";var wl="M",Pl="N";var $l="NS";var Nl="NULL";var rr="ProjectionExpression",Ll="PutItem";var Ol="PutItemInput",Gl="PutItemInputAttributeMap",Ul="PutItemOutput";var Ml="PointInTimeRecoveryUnavailableException";var Bl="PolicyNotFoundException";var Fl="PutResourcePolicyInput";var Vl="ProvisionedThroughputExceededException";var Kl="Policy";var si="Put",jl="Query",Wl="QueryFilter",Ql="QueryInput",ql="QueryOutput",zl="Responses",Hl="ResourceArn",Xl="ReplicaAlreadyExistsException";var ue="ReturnConsumedCapacity",ii="ReadCapacityUnits";var Jl="RequestItems",Fr="ReturnItemCollectionMetrics";var Yl="ResourceInUseException";var Zl="RequestLimitExceeded";var em="ReplicaNotFoundException",tm="ResourceNotFoundException";var ai="ReturnValues",be="ReturnValuesOnConditionCheckFailure",nm="ReplicatedWriteConflictException";var ui="ScannedCount";var rm="SizeEstimateRangeGB",om="ScanFilter",sm="ScanInput";var im="SecondaryIndexesCapacityMap",am="ScanIndexForward";var um="ScanOutput";var cm="SS";var pm="S";var lm="Scan",ci="Select",mm="Segment";var dm="Table";var fm="TableAlreadyExistsException";var ym="TransactionCanceledException",hm="TransactionConflictException";var vm="ThrottlingException";var xm="TransactionInProgressException",_m="TableInUseException",Sm="TransactItems";var j="TableName",gm="TableNotFoundException";var pi="ThrottlingReasons";var bm="ThrottlingReasonList";var Em="ThrottlingReason";var Im="TotalSegments";var Cm="TransactWriteItem",Tm="TransactWriteItemsInput",Am="TransactWriteItemList",Rm="TransactWriteItemsOutput",Dm="TransactWriteItems";var li="Update";var mi="UpdateExpression";var km="UpdateItemInput",wm="UpdateItemOutput",Pm="UpdateItem",$m="UnprocessedKeys";var di="Value";var Nm="VectorCapacity",Lm="VectorIndexes",Om="VectorIndexesCapacityMap";var Gm="VectorSearchRequestBytes",Um="VectorWriteRequestBytes",fi="WriteCapacityUnits";var Mm="awsQueryError",_="client",x="error",yi="httpError",Bm="httpHeader",S="message",Fm="reason",Vm="resource",hi="smithy.ts.sdk.synthetic.com.amazonaws.dynamodb",Km="server",jm="throttlingReasons",Wm="x-amz-confirm-remove-self-resource-access",u="com.amazonaws.dynamodb",vi=new me(hi),Qm=[-3,hi,"DynamoDBServiceException",0,[],[]];vi.registerError(Qm,y);var v=new me(u),qm=[-3,u,Tp,{[x]:_},[S],[0]];v.registerError(qm,xn);var zm=[-3,u,Ap,{[x]:_},[S],[0]];v.registerError(zm,_n);var Hm=[-3,u,$p,{[x]:_},[S,Ke],[0,()=>Ie]];v.registerError(Hm,Jn);var Xm=[-3,u,Pp,{[x]:_},[S],[0]];v.registerError(Xm,Rn);var Jm=[-3,u,Qp,{[x]:_},[S],[0]];v.registerError(Jm,Mn);var Ym=[-3,u,Xp,{[x]:_},[S],[0]];v.registerError(Ym,Vn);var Zm=[-3,u,Jp,{[x]:_},[S],[0]];v.registerError(Zm,On);var ed=[-3,u,il,{[x]:_},[S],[0]];v.registerError(ed,Pn);var td=[-3,u,al,{[x]:_},[S],[0]];v.registerError(td,Gn);var nd=[-3,u,_l,{[x]:_},[je],[0]];v.registerError(nd,Bn);var rd=[-3,u,ul,{[x]:_},[S],[0]];v.registerError(rd,Wn);var od=[-3,u,vl,{[x]:_},[S],[0]];v.registerError(od,Un);var sd=[-3,u,xl,{[x]:_},[S],[0]];v.registerError(sd,Xn);var id=[-3,u,gl,{[x]:Km},[S],[0]];v.registerError(id,Sn);var ad=[-3,u,fl,{[x]:_,[yi]:421},[je],[0]];v.registerError(ad,En);var ud=[-3,u,yl,{[x]:_},[S],[0]];v.registerError(ud,Kn);var cd=[-3,u,Sl,{[x]:_},[S],[0]];v.registerError(cd,qn);var pd=[-3,u,dl,{[x]:_},[S],[0]];v.registerError(pd,Tn);var ld=[-3,u,Al,{[x]:_},[S],[0]];v.registerError(ld,Dn);var md=[-3,u,Ml,{[x]:_},[S],[0]];v.registerError(md,jn);var dd=[-3,u,Bl,{[x]:_},[S],[0]];v.registerError(dd,Ln);var fd=[-3,u,Vl,{[x]:_},[S,pi],[0,()=>jr]];v.registerError(fd,In);var yd=[-3,u,Xl,{[x]:_},[S],[0]];v.registerError(yd,zn);var hd=[-3,u,em,{[x]:_},[S],[0]];v.registerError(hd,Hn);var vd=[-3,u,nm,{[x]:_},[S],[0]];v.registerError(vd,An);var xd=[-3,u,Zl,{[x]:_},[S,pi],[0,()=>jr]];v.registerError(xd,gn);var _d=[-3,u,Yl,{[x]:_},[S],[0]];v.registerError(_d,$n);var Sd=[-3,u,tm,{[x]:_},[S],[0]];v.registerError(Sd,Cn);var gd=[-3,u,fm,{[x]:_},[S],[0]];v.registerError(gd,Qn);var bd=[-3,u,_m,{[x]:_},[S],[0]];v.registerError(bd,kn);var Ed=[-3,u,gm,{[x]:_},[S],[0]];v.registerError(Ed,wn);var Id=[-3,u,vm,{[Mm]:["Throttling",400],[x]:_,[yi]:400},[S,jm],[0,()=>jr]];v.registerError(Id,bn);var Cd=[-3,u,ym,{[x]:_},[je,Op],[0,()=>nf]];v.registerError(Cd,Yn);var Td=[-3,u,hm,{[x]:_},[S],[0]];v.registerError(Td,Nn);var Ad=[-3,u,xm,{[x]:_},[je],[0]];v.registerError(Ad,Fn);var xi=[vi,v];var Rd=[3,u,_p,0,[di,hp],[()=>Q,0]];var Dd=[3,u,bp,0,[Jl,ue],[()=>Ei,0],1],kd=[3,u,Ep,0,[zl,$m,Y],[()=>pf,()=>Ei,()=>bi]];var wd=[3,u,Bp,0,[Ke,wp,je],[()=>Ie,0,0]],_i=[3,u,Fp,0,[ii,fi,qs],[1,1,1]],Si=[3,u,Vp,0,[Qs,Br],[0,()=>gi],1],Pd=[3,u,Ws,0,[ge,j,Se,K,Z,be],[()=>W,0,0,128,()=>ee,0],3],Ee=[3,u,Y,0,[j,qs,ii,fi,dm,Rl,sl,Lm],[0,1,1,1,()=>_i,()=>Vs,()=>Vs,()=>yf]];var $d=[3,u,Hs,0,[ge,j,Se,K,Z,be],[()=>W,0,0,128,()=>ee,0],2];var Nd=[3,u,jp,0,[],[]],Ld=[3,u,Wp,0,[Js],[()=>rf],1];var Od=[3,u,Zp,0,[Sp,Lp],[0,1],2];var Gd=[3,u,Hp,0,[di,el,Qs,Br],[()=>Q,2,0,()=>gi]];var Ud=[3,u,rl,0,[j,ge,Zn,tr,ue,rr,K],[0,()=>W,64,2,0,0,128],2],Md=[3,u,ol,0,[Ke,Y],[()=>Ie,()=>Ee]];var Vr=[3,u,nr,0,[cl,rm],[()=>lf,65]];var Bd=[3,u,bl,0,[Cl,Zn,tr,rr,K],[()=>sf,64,2,0,128],1];var Fd=[3,u,si,0,[Ke,j,Se,K,Z,be],[()=>Ti,0,0,128,()=>ee,0],2],Vd=[3,u,Ol,0,[j,Ke,Ys,ai,ue,Fr,er,Se,K,Z,be],[0,()=>Ti,()=>Ii,0,0,0,0,0,128,()=>ee,0],2],Kd=[3,u,Ul,0,[js,Y,nr],[()=>Ie,()=>Ee,()=>Vr]];var lx=[3,u,Fl,0,[Hl,Kl,Yp,Up],[0,0,0,[2,{[Bm]:Wm}]],2];var jd=[3,u,Ql,0,[j,ei,ci,Zn,ri,tr,ni,Wl,er,am,Xs,ue,rr,Zs,El,K,Z],[0,0,0,64,1,2,()=>df,()=>Ci,0,2,()=>W,0,0,0,0,128,()=>ee],1],Wd=[3,u,ql,0,[ti,zs,ui,oi,Y],[()=>Kr,1,1,()=>W,()=>Ee]];var Qd=[3,u,sm,0,[j,ei,Zn,ri,ci,om,er,Xs,ue,Im,mm,rr,Zs,K,Z,tr],[0,0,64,1,0,()=>Ci,0,()=>W,0,1,1,0,0,128,()=>ee,2],1],qd=[3,u,um,0,[ti,zs,ui,oi,Y],[()=>Kr,1,1,()=>W,()=>Ee]];var zd=[3,u,Em,0,[Fm,Vm],[0,0]];var Hd=[3,u,Cm,0,[Ws,si,Hs,li],[()=>Pd,()=>Fd,()=>$d,()=>Yd]],Xd=[3,u,Tm,0,[Sm,ue,Fr,Mp],[()=>uf,0,0,[0,4]],1],Jd=[3,u,Rm,0,[Y,nr],[()=>bi,()=>mf]];var Yd=[3,u,li,0,[ge,mi,j,Se,K,Z,be],[()=>W,0,0,0,128,()=>ee,0],3];var Zd=[3,u,km,0,[j,ge,Ks,Ys,er,ai,ue,Fr,mi,Se,K,Z,be],[0,()=>W,()=>cf,()=>Ii,0,0,0,0,0,0,128,()=>ee,0],2],ef=[3,u,wm,0,[js,Y,nr],[()=>Ie,()=>Ee,()=>Vr]];var tf=[3,u,Nm,0,[Gm,Um],[1,1]];var gi=[1,u,Br,0,()=>Q];var nf=[1,u,Gp,0,()=>wd],bi=[1,u,Np,0,()=>Ee];var rf=[1,u,Js,0,()=>Od];var of=[1,u,ll,0,()=>Vr];var Kr=[1,u,hl,0,()=>Ie];var sf=[1,u,Il,0,()=>W];var af=[1,u,Tl,0,()=>Q];var jr=[1,u,bm,0,()=>zd];var uf=[1,u,Am,0,()=>Hd];var Ie=[2,u,vp,0,0,()=>Q],cf=[2,u,Ks,0,0,()=>Rd],Ei=[2,u,Cp,0,0,()=>Bd],pf=[2,u,Ip,0,0,()=>Kr];var Ii=[2,u,qp,0,0,()=>Gd];var ee=[2,u,zp,0,0,()=>Q],Ci=[2,u,tl,0,0,()=>Si],lf=[2,u,pl,0,0,()=>Q],mf=[2,u,ml,0,0,()=>of],W=[2,u,ge,0,0,()=>Q],df=[2,u,ni,0,0,()=>Si],ff=[2,u,kl,0,0,()=>Q],Ti=[2,u,Gl,0,0,()=>Q],Vs=[2,u,im,0,0,()=>_i],yf=[2,u,Om,0,0,()=>tf],Q=[4,u,xp,0,[pm,Pl,kp,cm,$l,Dp,wl,Dl,Nl,Rp],[0,0,21,64,64,85,()=>ff,()=>af,2,2]];var Ai=[9,u,gp,0,()=>Dd,()=>kd];var Ri=[9,u,Kp,0,()=>Nd,()=>Ld];var Di=[9,u,nl,0,()=>Ud,()=>Md];var ki=[9,u,Ll,0,()=>Vd,()=>Kd];var wi=[9,u,jl,0,()=>jd,()=>Wd];var Pi=[9,u,lm,0,()=>Qd,()=>qd];var $i=[9,u,Dm,0,()=>Xd,()=>Jd];var Ni=[9,u,Pm,0,()=>Zd,()=>ef];var or=class extends A(Ms,R,"DescribeEndpoints",Ri){static{r(this,"DescribeEndpointsCommand")}};var Li={name:"@aws-sdk/client-dynamodb",version:"3.1150.0",description:"AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native",homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-dynamodb",license:"Apache-2.0",author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/sdk-for-javascript/"},repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-dynamodb"},files:["dist-*/**"],sideEffects:!1,main:"./dist-cjs/index.js",module:"./dist-es/index.js",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},types:"./dist-types/index.d.ts",typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},scripts:{build:"concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline","build:es":"premove dist-es && tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"premove dist-types && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service",test:"yarn g:vitest run --passWithNoTests","test:watch":"yarn g:vitest watch --passWithNoTests","test:integration":"yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts","test:integration:watch":"yarn g:vitest watch --passWithNoTests -c vitest.config.integ.mts","test:e2e":"yarn g:vitest run -c vitest.config.e2e.mts","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.mts","test:index":"tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"},dependencies:{"@aws-sdk/core":"^3.978.3","@aws-sdk/credential-provider-node":"^3.972.86","@aws-sdk/dynamodb-codec":"^3.973.48","@aws-sdk/middleware-endpoint-discovery":"^3.972.32","@aws-sdk/types":"^3.974.6","@smithy/core":"^3.35.2","@smithy/fetch-http-handler":"^5.8.0","@smithy/node-http-handler":"^4.12.1","@smithy/types":"^4.19.0",tslib:"^2.6.2"},devDependencies:{"@smithy/snapshot-testing":"^2.3.2","@tsconfig/node20":"20.1.8","@types/node":"^20.14.8",concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~7.0.2",vitest:"^4.0.17"},engines:{node:">=20.0.0"}};var Oi="com.amazonaws.dynamodb#AttributeValue",Wr=class extends so{static{r(this,"DynamoDBJsonShapeSerializer2")}writeValue(t,n,o){if(n!=null&&typeof n=="object"){let s=Er.of(t);if(s.isStructSchema()&&s.getName(!0)===Oi){this.writeAttributeValue(n);return}}super.writeValue(t,n,o)}writeAttributeValue(t){let n=this.serdeContext?.base64Encoder??fe;this.writeAscii("{");let o=!0;for(let s in t){let i=t[s];if(i!=null)switch(o||this.writeAscii(","),o=!1,this.writeAsciiQuoted(s),this.writeAscii(":"),s){case"B":i instanceof Uint8Array?this.writeBase64(i):this.writeJsonString(i);break;case"BS":this.writeAscii("[");{let a=i;for(let c=0;c<a.length;c++){c>0&&this.writeAscii(",");let m=a[c];m instanceof Uint8Array?this.writeBase64(m):this.writeJsonString(n(m))}}this.writeAscii("]");break;case"L":this.writeAscii("[");{let a=i;for(let c=0;c<a.length;c++)c>0&&this.writeAscii(","),a[c]!=null?this.writeAttributeValue(a[c]):this.writeAscii("null")}this.writeAscii("]");break;case"M":this.writeAscii("{");{let a=i,c=!0;for(let m in a)a[m]!=null&&(c||this.writeAscii(","),c=!1,this.writeJsonString(m),this.writeAscii(":"),this.writeAttributeValue(a[m]))}this.writeAscii("}");break;case"SS":case"NS":this.writeAscii("[");{let a=i;for(let c=0;c<a.length;c++)c>0&&this.writeAscii(","),this.writeJsonString(a[c])}this.writeAscii("]");break;case"S":case"N":this.writeJsonString(i);break;case"BOOL":this.writeAscii(i?"true":"false");break;case"NULL":this.writeAscii(i?"true":"false");break;default:this.writeAscii(JSON.stringify(i));break}}this.writeAscii("}")}},Qr=class extends oo{static{r(this,"DynamoDBJsonShapeDeserializer2")}_read(t,n){let o=Er.of(t);return o.isStructSchema()&&o.getName(!0)===Oi&&n&&typeof n=="object"?this.readAttributeValue(n):super._read(o,n)}readAttributeValue(t){let n=this.serdeContext?.base64Decoder??de,o=t;if(typeof t.B=="string"&&(o.B=n(t.B)),Array.isArray(t.BS)&&(o.BS=t.BS.map(n)),Array.isArray(t.L)&&(o.L=t.L.map(s=>this.readAttributeValue(s))),t.M&&typeof t.M=="object"){let s=t.M;for(let i in s)s[i]=this.readAttributeValue(s[i])}return o}},We=class extends io{static{r(this,"DynamoDBJsonCodec2")}constructor(){super({timestampFormat:{useTrait:!0,default:7},jsonName:!1})}createSerializer(){let t=new Wr(this.settings);return t.setSerdeContext(this.serdeContext),t}createDeserializer(){let t=new Qr(this.settings);return t.setSerdeContext(this.serdeContext),t}};var D="ref",U="argv",w=-1,Qe=!0,Ce=!1,Te="isSet",qe="booleanEquals",oa="PartitionResult",G="stringEquals",M="getAttr",sa="parsedEndpoint",Gi="aws.parseArn",Ui=r(e=>"ParsedArn_ssa_"+e,"k"),Mi="service",qr="dynamodb",ze="isValidHostLabel",Bi="accountId",Fi="FirstArn",Vi=r(e=>"https://{ParsedArn_ssa_"+e+"#accountId}.search-ddb.{Region}.{PartitionResult#dualStackDnsSuffix}","q"),Ki=r(e=>"https://{ParsedArn_ssa_"+e+"#accountId}.ddb.{Region}.{PartitionResult#dualStackDnsSuffix}","s"),ji=r(e=>"https://{ParsedArn_ssa_"+e+"#accountId}.search-ddb.{Region}.{PartitionResult#dnsSuffix}","t"),Wi=r(e=>"https://{ParsedArn_ssa_"+e+"#accountId}.ddb.{Region}.{PartitionResult#dnsSuffix}","u"),sr={[D]:"Region"},Hr={[D]:oa},Qi={fn:M,[U]:[{[D]:sa},"authority"]},zr={[D]:"AccountIdEndpointMode"},qi={fn:M,[U]:[Hr,"name"]},zi={fn:M,[U]:[{[D]:"ParsedArn_ssa_2"},"region"]},Hi={[D]:"ParsedArn_ssa_2"},Xi={[D]:"ResourceArnList"},Ji={fn:M,[U]:[{[D]:"ParsedArn_ssa_1"},"region"]},Yi={[D]:"ParsedArn_ssa_1"},Zi={[D]:"AccountId"},H={},N={metricValues:["O"]},ea=[sr],ta=[{[D]:"Endpoint"}],na=[{[D]:"ResourceArn"}],ra={conditions:[[Te,ea],[Te,ta],[qe,[{[D]:"UseFIPS"},Qe]],[qe,[{[D]:"UseDualStack"},Qe]],["aws.partition",ea,oa],[G,[sr,"local"]],[qe,[{fn:M,[U]:[Hr,"supportsFIPS"]},Qe]],["parseURL",ta,sa],[G,["dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}",Qi]],[qe,[{fn:M,[U]:[Hr,"supportsDualStack"]},Qe]],[G,["search-dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}",Qi]],[Te,[zr]],[G,[qi,"aws"]],[G,[zr,"disabled"]],[Te,na],[Gi,na,Ui(2)],[G,[zi,sr]],[G,[{fn:M,[U]:[Hi,Mi]},qr]],[ze,[zi,Ce]],[ze,[{fn:M,[U]:[Hi,Bi]},Ce]],[Te,[Xi]],[M,[Xi,"[0]"],Fi],[Gi,[{[D]:Fi}],Ui(1)],[G,[Ji,sr]],[G,[{fn:M,[U]:[Yi,Mi]},qr]],[ze,[{fn:M,[U]:[Yi,Bi]},Ce]],[ze,[Ji,Ce]],[Te,[Zi]],[G,[zr,"required"]],[ze,[Zi,Ce]],[G,[qi,"aws-us-gov"]],[qe,[{fn:"coalesce",[U]:[{[D]:"IsSearchOperation"},Ce]},Qe]]],results:[[w],[w,"Invalid Configuration: FIPS and custom endpoint are not supported"],[w,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[w,"Endpoint override is not supported for dual-stack endpoints. Please enable dual-stack functionality by enabling the configuration. For more details, see: https://docs.aws.amazon.com/sdkref/latest/guide/feature-endpoints.html"],["{Endpoint}",H],[w,"Invalid Configuration: FIPS and local endpoint are not supported"],[w,"Invalid Configuration: Dualstack and local endpoint are not supported"],["http://localhost:8000",{authSchemes:[{signingRegion:"us-east-1",signingName:qr,name:"sigv4"}]}],[w,"Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported"],["https://search-dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",H],["https://dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",H],[w,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://search-dynamodb.{Region}.{PartitionResult#dnsSuffix}",H],["https://dynamodb.{Region}.{PartitionResult#dnsSuffix}",H],["https://search-dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}",H],["https://dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}",H],[w,"FIPS is enabled but this partition does not support FIPS"],[Vi(2),N],[Ki(2),N],[Vi(1),N],[Ki(1),N],["https://{AccountId}.search-ddb.{Region}.{PartitionResult#dualStackDnsSuffix}",N],["https://{AccountId}.ddb.{Region}.{PartitionResult#dualStackDnsSuffix}",N],[w,"Credentials-sourced account ID parameter is invalid"],[w,"AccountIdEndpointMode is required but no AccountID was provided or able to be loaded"],[w,"Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition"],["https://search-dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}",H],["https://dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}",H],[w,"DualStack is enabled but this partition does not support DualStack"],[ji(2),N],[Wi(2),N],[ji(1),N],[Wi(1),N],["https://{AccountId}.search-ddb.{Region}.{PartitionResult#dnsSuffix}",N],["https://{AccountId}.ddb.{Region}.{PartitionResult#dnsSuffix}",N],[w,"Invalid Configuration: Missing Region"]]},vf=2,l=1e8,xf=new Int32Array([-1,1,-1,0,6,3,1,4,l+35,2,l+1,5,3,l+2,l+4,1,77,7,2,61,8,3,34,9,4,10,l+35,5,l+7,11,11,12,69,12,14,13,28,l+25,69,13,33,15,14,16,21,15,17,21,16,18,21,17,19,21,18,20,21,19,32,21,20,22,28,21,23,28,22,24,28,23,25,28,24,26,28,25,27,28,26,31,28,27,29,33,29,30,l+23,31,l+33,l+34,31,l+31,l+32,31,l+29,l+30,28,l+24,69,4,35,l+35,5,l+6,36,9,37,l+28,11,38,60,12,40,39,28,l+25,60,13,59,41,14,42,47,15,43,47,16,44,47,17,45,47,18,46,47,19,58,47,20,48,54,21,49,54,22,50,54,23,51,54,24,52,54,25,53,54,26,57,54,27,55,59,29,56,l+23,31,l+21,l+22,31,l+19,l+20,31,l+17,l+18,28,l+24,60,31,l+26,l+27,3,70,62,4,63,l+35,5,l+5,64,6,65,l+16,11,66,67,28,l+8,67,30,69,68,31,l+14,l+15,31,l+12,l+13,4,71,l+35,5,l+5,72,6,73,l+11,9,74,l+11,11,75,76,28,l+8,76,31,l+9,l+10,2,l+1,78,3,l+2,79,4,80,l+4,7,81,l+4,8,l+3,82,10,l+3,l+4]),ia=gt.from(xf,vf,ra.conditions,ra.results);var _f=new bt({size:50,params:["AccountId","AccountIdEndpointMode","Endpoint","IsSearchOperation","Region","ResourceArn","ResourceArnList","UseDualStack","UseFIPS"]}),aa=r((e,t={})=>_f.get(e,()=>It(ia,{endpointParams:e,logger:t.logger})),"defaultEndpointResolver");Et.aws=qt;var ua=r(e=>({apiVersion:"2012-08-10",base64Decoder:e?.base64Decoder??de,base64Encoder:e?.base64Encoder??fe,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??aa,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Ls,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:r(t=>t.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new Xt}],logger:e?.logger??new pt,protocol:e?.protocol??ao,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.dynamodb",errorTypeRegistries:xi,xmlNamespace:"http://dynamodb.amazonaws.com/doc/2012-08-10/",version:"2012-08-10",serviceTarget:"DynamoDB_20120810",jsonCodec:new We},serviceId:e?.serviceId??"DynamoDB",sha256:e?.sha256??Rt,urlParser:e?.urlParser??rt,utf8Decoder:e?.utf8Decoder??mt,utf8Encoder:e?.utf8Encoder??dt}),"getRuntimeConfig");var ca=r(e=>{at(process.version);let t=St(e),n=r(()=>t().then(it),"defaultConfigProvider"),o=ua(e);tt(process.version);let s={profile:e?.profile,logger:o.logger};return{...o,...e,runtime:"node",defaultsMode:t,accountIdEndpointMode:e?.accountIdEndpointMode??T(Pr,s),authSchemePreference:e?.authSchemePreference??T(Jt,s),bodyLengthChecker:e?.bodyLengthChecker??ft,credentialDefaultProvider:e?.credentialDefaultProvider??en,defaultUserAgentProvider:e?.defaultUserAgentProvider??Wt({serviceId:o.serviceId,clientVersion:Li.version}),endpointDiscoveryEnabledProvider:e?.endpointDiscoveryEnabledProvider??T(Nr,s),maxAttempts:e?.maxAttempts??T($e.v2026?{...Ne,default:4}:Ne,e),region:e?.region??T(vt,{...xt,...s}),requestHandler:Zt.create(e?.requestHandler??n),retryMode:e?.retryMode??T({...Nt,default:r(async()=>(await n()).retryMode||Pt,"default")},e),streamCollector:e?.streamCollector??At,useDualstackEndpoint:e?.useDualstackEndpoint??T(yt,s),useFipsEndpoint:e?.useFipsEndpoint??T(ht,s),userAgentAppId:e?.userAgentAppId??T(Qt,s)}},"getRuntimeConfig");var pa=r(e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,o=e.credentials;return{setHttpAuthScheme(s){let i=t.findIndex(a=>a.schemeId===s.schemeId);i===-1?t.push(s):t.splice(i,1,s)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(s){n=s},httpAuthSchemeProvider(){return n},setCredentials(s){o=s},credentials(){return o}}},"getHttpAuthExtensionConfiguration"),la=r(e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),"resolveHttpAuthRuntimeConfig");var ma=r((e,t)=>{let n=Object.assign(zt(e),ut(e),Dt(e),pa(e));return t.forEach(o=>o.configure(n)),Object.assign(e,Ht(n),ct(n),kt(n),la(n))},"resolveRuntimeExtensions");var Ae=class extends le{static{r(this,"DynamoDBClient")}config;constructor(...[t]){let n=ca(t||{});super(n),this.initConfig=n;let o=Gs(n),s=wr(o),i=Kt(s),a=$t(i,{defaultBaseDelay:$e.v2026?25:void 0,defaultMaxAttempts:$e.v2026?4:void 0}),c=_t(a),m=c,p=Ct(m),g=Os(p),re=Mr(g,{endpointDiscoveryCommandCtor:or}),br=ma(re,t?.extensions||[]);this.config=br,this.middlewareStack.use(ot(this.config)),this.middlewareStack.use(jt(this.config)),this.middlewareStack.use(Lt(this.config)),this.middlewareStack.use(wt(this.config)),this.middlewareStack.use(Ot(this.config)),this.middlewareStack.use(Gt(this.config)),this.middlewareStack.use(Ut(this.config)),this.middlewareStack.use(Mt(this.config,{httpAuthSchemeParametersProvider:Ns,identityProviderConfigProvider:r(async Ca=>new Vt({"aws.auth#sigv4":Ca.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Bt(this.config))}destroy(){super.destroy()}};var ir=class extends A(Bs,R,"BatchGetItem",Ai){static{r(this,"BatchGetItemCommand")}};var ar=class extends A(V,R,"GetItem",Di){static{r(this,"GetItemCommand")}};var ur=class extends A(V,R,"PutItem",ki){static{r(this,"PutItemCommand")}};var cr=class extends A(V,R,"Query",wi){static{r(this,"QueryCommand")}};var pr=class extends A(V,R,"Scan",Pi){static{r(this,"ScanCommand")}};var lr=class extends A(Fs,R,"TransactWriteItems",$i){static{r(this,"TransactWriteItemsCommand")}};var mr=class extends A(V,R,"UpdateItem",Ni){static{r(this,"UpdateItemCommand")}};var Re=class extends b{static{r(this,"BatchGetCommand")}input;inputKeyNodes={RequestItems:{"*":{Keys:{"*":d}}}};outputKeyNodes={Responses:{"*":{"*":d}},UnprocessedKeys:{"*":{Keys:{"*":d}}}};clientCommand;middlewareStack;constructor(t){super(),this.input=t,this.clientCommand=new ir(this.input),this.middlewareStack=this.clientCommand.middlewareStack}resolveMiddleware(t,n,o){this.addMarshallingMiddleware(n);let s=t.concat(this.middlewareStack),i=this.clientCommand.resolveMiddleware(s,n,o);return async()=>i(this.clientCommand)}};var X=class extends b{static{r(this,"GetCommand")}input;inputKeyNodes={Key:d};outputKeyNodes={Item:d};clientCommand;middlewareStack;constructor(t){super(),this.input=t,this.clientCommand=new ar(this.input),this.middlewareStack=this.clientCommand.middlewareStack}resolveMiddleware(t,n,o){this.addMarshallingMiddleware(n);let s=t.concat(this.middlewareStack),i=this.clientCommand.resolveMiddleware(s,n,o);return async()=>i(this.clientCommand)}};var He=class extends b{static{r(this,"PutCommand")}input;inputKeyNodes={Item:d,Expected:{"*":{Value:ae,AttributeValueList:k}},ExpressionAttributeValues:d};outputKeyNodes={Attributes:d,ItemCollectionMetrics:{ItemCollectionKey:d}};clientCommand;middlewareStack;constructor(t){super(),this.input=t,this.clientCommand=new ur(this.input),this.middlewareStack=this.clientCommand.middlewareStack}resolveMiddleware(t,n,o){this.addMarshallingMiddleware(n);let s=t.concat(this.middlewareStack),i=this.clientCommand.resolveMiddleware(s,n,o);return async()=>i(this.clientCommand)}};var ce=class extends b{static{r(this,"QueryCommand")}input;inputKeyNodes={KeyConditions:{"*":{AttributeValueList:k}},QueryFilter:{"*":{AttributeValueList:k}},ExclusiveStartKey:d,ExpressionAttributeValues:d};outputKeyNodes={Items:{"*":d},LastEvaluatedKey:d};clientCommand;middlewareStack;constructor(t){super(),this.input=t,this.clientCommand=new cr(this.input),this.middlewareStack=this.clientCommand.middlewareStack}resolveMiddleware(t,n,o){this.addMarshallingMiddleware(n);let s=t.concat(this.middlewareStack),i=this.clientCommand.resolveMiddleware(s,n,o);return async()=>i(this.clientCommand)}};var Xe=class extends b{static{r(this,"ScanCommand")}input;inputKeyNodes={ScanFilter:{"*":{AttributeValueList:k}},ExclusiveStartKey:d,ExpressionAttributeValues:d};outputKeyNodes={Items:{"*":d},LastEvaluatedKey:d};clientCommand;middlewareStack;constructor(t){super(),this.input=t,this.clientCommand=new pr(this.input),this.middlewareStack=this.clientCommand.middlewareStack}resolveMiddleware(t,n,o){this.addMarshallingMiddleware(n);let s=t.concat(this.middlewareStack),i=this.clientCommand.resolveMiddleware(s,n,o);return async()=>i(this.clientCommand)}};var Je=class extends b{static{r(this,"TransactWriteCommand")}input;inputKeyNodes={TransactItems:{"*":{ConditionCheck:{Key:d,ExpressionAttributeValues:d},Put:{Item:d,ExpressionAttributeValues:d},Delete:{Key:d,ExpressionAttributeValues:d},Update:{Key:d,ExpressionAttributeValues:d}}}};outputKeyNodes={ItemCollectionMetrics:{"*":{"*":{ItemCollectionKey:d}}}};clientCommand;middlewareStack;constructor(t){super(),this.input=t,this.clientCommand=new lr(this.input),this.middlewareStack=this.clientCommand.middlewareStack}resolveMiddleware(t,n,o){this.addMarshallingMiddleware(n);let s=t.concat(this.middlewareStack),i=this.clientCommand.resolveMiddleware(s,n,o);return async()=>i(this.clientCommand)}};var te=class extends b{static{r(this,"UpdateCommand")}input;inputKeyNodes={Key:d,AttributeUpdates:{"*":{Value:ae}},Expected:{"*":{Value:ae,AttributeValueList:k}},ExpressionAttributeValues:d};outputKeyNodes={Attributes:d,ItemCollectionMetrics:{ItemCollectionKey:d}};clientCommand;middlewareStack;constructor(t){super(),this.input=t,this.clientCommand=new mr(this.input),this.middlewareStack=this.clientCommand.middlewareStack}resolveMiddleware(t,n,o){this.addMarshallingMiddleware(n);let s=t.concat(this.middlewareStack),i=this.clientCommand.resolveMiddleware(s,n,o);return async()=>i(this.clientCommand)}};var q=class e extends le{static{r(this,"DynamoDBDocumentClient")}config;constructor(t,n){if(super(t.config),this.config=t.config,this.config.translateConfig=n,this.middlewareStack=t.middlewareStack,this.config?.cacheMiddleware)throw new Error("@aws-sdk/lib-dynamodb - cacheMiddleware=true is not compatible with the DynamoDBDocumentClient. This option must be set to false.");if(!(t.middlewareStack.identify?.()??[]).some(i=>i.includes?.("serializerMiddleware"))){let i=this.config.logger,a=i&&!i.constructor?.name.includes("NoOp")?i:console,c=new Ae(Object.assign({},this.config,{defaultUserAgentProvider:void 0,retryStrategy:void 0,extensions:void 0}));if(c.middlewareStack.identify?.().some(p=>p.includes?.("serializerMiddleware")))this.middlewareStack=c.middlewareStack,this.config=c.config,this.config.translateConfig=n,a.warn("@aws-sdk/lib-dynamodb - WARN: incompatible version of DynamoDBClient given to DynamoDBDocumentClient. We have forwarded your client's configuration to a newer version of DynamoDBClient in the dependency closure to instantiate DynamoDBDocumentClient.");else throw new Error("@aws-sdk/lib-dynamodb - ERROR: incompatible version of DynamoDBClient given to DynamoDBDocumentClient. Check @aws-sdk/lib-dynamodb package.json requirements.")}}static from(t,n){return new e(t,n)}destroy(){}};var WS=Ft(q,ce,"ExclusiveStartKey","LastEvaluatedKey","Limit");var XS=Ft(q,Xe,"ExclusiveStartKey","LastEvaluatedKey","Limit");function Ye(e,t=100){let n=[],o=Math.ceil(e.length/t),s=0,i=t;for(let a=0;a<o;a++)n.push(e.slice(s,i)),s+=t,i+=t;return n}r(Ye,"splitArrayToChunks");var dr,Sf={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0};function Xr(e){return!e&&!dr?Sf:{lang:e?.lang??dr?.lang,message:e?.message,abortEarly:e?.abortEarly??dr?.abortEarly,abortPipeEarly:e?.abortPipeEarly??dr?.abortPipeEarly}}r(Xr,"getGlobalConfig");var gf;function bf(e){return gf?.get(e)}r(bf,"getGlobalMessage");var Ef;function If(e){return Ef?.get(e)}r(If,"getSchemaMessage");var Cf;function Tf(e,t){return Cf?.get(e)?.get(t)}r(Tf,"getSpecificMessage");function Jr(e){let t=typeof e;return t==="string"?`"${e}"`:t==="number"||t==="bigint"||t==="boolean"?`${e}`:t==="object"||t==="function"?(e&&Object.getPrototypeOf(e)?.constructor?.name)??"null":t}r(Jr,"_stringify");function De(e,t,n,o,s){let i=s&&"input"in s?s.input:n.value,a=s?.expected??e.expects??null,c=s?.received??Jr(i),m={kind:e.kind,type:e.type,input:i,expected:a,received:c,message:`Invalid ${t}: ${a?`Expected ${a} but r`:"R"}eceived ${c}`,requirement:e.requirement,path:s?.path,issues:s?.issues,lang:o.lang,abortEarly:o.abortEarly,abortPipeEarly:o.abortPipeEarly},p=e.kind==="schema",g=s?.message??e.message??Tf(e.reference,m.lang)??(p?If(m.lang):null)??o.message??bf(m.lang);g!==void 0&&(m.message=typeof g=="function"?g(m):g),p&&(n.typed=!1),n.issues?n.issues.push(m):n.issues=[m]}r(De,"_addIssue");function Af(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}r(Af,"_isSameValueZero");function Rf(e,t){let n=[...new Set(e)];return n.length>1?`(${n.join(` ${t} `)})`:n[0]??"never"}r(Rf,"_joinExpects");function ke(e){return e["~standard"]={version:1,vendor:"valibot",validate:r(t=>e["~run"]({value:t},Xr()),"validate")},e}r(ke,"_standardSchema");function Df(e){if(e.path){let t="";for(let n of e.path)if(typeof n.key=="string"||typeof n.key=="number")t?t+=`.${n.key}`:t+=n.key;else return null;return t}return null}r(Df,"getDotPath");var kf=class extends Error{static{r(this,"ValiError")}constructor(e){super(e[0].message),this.name="ValiError",this.issues=e}};var Gg=new RegExp("^(?:[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|(?![\\p{Emoji_Modifier_Base}\\u{1F1E6}-\\u{1F1FF}])\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|(?![\\p{Emoji_Modifier_Base}\\u{1F1E6}-\\u{1F1FF}])\\p{Emoji_Presentation}))*)+$","u");function wf(e,t,n){return typeof e.fallback=="function"?e.fallback(t,n):e.fallback}r(wf,"getFallback");function we(e){let t={};for(let n of e)if(n.path){let o=Df(n);o?(t.nested||(t.nested={}),Object.prototype.hasOwnProperty.call(t.nested,o)?t.nested[o].push(n.message):t.nested[o]=[n.message]):t.other?t.other.push(n.message):t.other=[n.message]}else t.root?t.root.push(n.message):t.root=[n.message];return t}r(we,"flatten");function da(e,t,n){return typeof e.default=="function"?e.default(t,n):e.default}r(da,"getDefault");function Yr(e,t){return ke({kind:"schema",type:"literal",reference:Yr,expects:Jr(e),async:!1,literal:e,message:t,"~run"(n,o){return Af(n.value,this.literal)?n.typed=!0:De(this,"type",n,o),n}})}r(Yr,"literal");function I(e){return ke({kind:"schema",type:"number",reference:I,expects:"number",async:!1,message:e,"~run"(t,n){return typeof t.value=="number"&&!isNaN(t.value)?t.typed=!0:De(this,"type",t,n),t}})}r(I,"number");function L(e,t){return ke({kind:"schema",type:"object",reference:L,expects:"Object",async:!1,entries:e,message:t,"~run"(n,o){let s=n.value;if(s&&typeof s=="object"){n.typed=!0,n.value={};for(let i in this.entries){let a=this.entries[i];if(i in s||(a.type==="exact_optional"||a.type==="optional"||a.type==="nullish")&&a.default!==void 0){let c=i in s?s[i]:da(a),m=a["~run"]({value:c},o);if(m.issues){let p={type:"object",origin:"value",input:s,key:i,value:c};for(let g of m.issues)g.path?g.path.unshift(p):g.path=[p],n.issues?.push(g);if(n.issues||(n.issues=m.issues),o.abortEarly){n.typed=!1;break}}m.typed||(n.typed=!1),n.value[i]=m.value}else if(a.fallback!==void 0)n.value[i]=wf(a);else if(a.type!=="exact_optional"&&a.type!=="optional"&&a.type!=="nullish"&&(De(this,"key",n,o,{input:void 0,expected:`"${i}"`,path:[{type:"object",origin:"key",input:s,key:i,value:s[i]}]}),o.abortEarly))break}}else De(this,"type",n,o);return n}})}r(L,"object");function E(e,t){return ke({kind:"schema",type:"optional",reference:E,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,"~run"(n,o){return n.value===void 0&&(this.default!==void 0&&(n.value=da(this,n,o)),n.value===void 0)?(n.typed=!0,n):this.wrapped["~run"](n,o)}})}r(E,"optional");function ne(e,t){return ke({kind:"schema",type:"picklist",reference:ne,expects:Rf(e.map(Jr),"|"),async:!1,options:e,message:t,"~run"(n,o){return this.options.includes(n.value)?n.typed=!0:De(this,"type",n,o),n}})}r(ne,"picklist");function h(e){return ke({kind:"schema",type:"string",reference:h,expects:"string",async:!1,message:e,"~run"(t,n){return typeof t.value=="string"?t.typed=!0:De(this,"type",t,n),t}})}r(h,"string");function fr(e,t,n){let o=e["~run"]({value:t},Xr(n));if(o.issues)throw new kf(o.issues);return o.value}r(fr,"parse");function pe(e,t,n){let o=e["~run"]({value:t},Xr(n));return{typed:o.typed,success:!o.issues,output:o.value,issues:o.issues}}r(pe,"safeParse");var fa=L({pk:h(),sk:Yr("ipinfo"),ip:h(),asn:E(h()),asName:E(h()),asDomain:E(h()),countryCode:E(h()),country:E(h()),fetchedAt:h()}),Pf=L({ip:h(),asn:E(h()),as_name:E(h()),as_domain:E(h()),country_code:E(h()),country:E(h())});async function ya(e){let t=await fetch(`https://api.ipinfo.io/lite/${encodeURIComponent(e.ip)}`,{headers:{Authorization:`Bearer ${e.apiKey}`}});if(!t.ok)throw new Error(`ipinfo lookup failed for ${e.ip}: ${String(t.status)}`);let n=fr(Pf,await t.json());return{ip:n.ip,asn:n.asn,asName:n.as_name,asDomain:n.as_domain,countryCode:n.country_code,country:n.country}}r(ya,"lookupIpInfo");var yr=class{static{r(this,"IpInfoCache")}props;constructor(t){this.props=t}get=r(async t=>{let{Item:n}=await this.props.dynamo.send(new X({TableName:this.props.tableName,Key:{pk:Zr(t.ip),sk:"ipinfo"}}));return n==null?null:this.parseOne(n)},"get");getMany=r(async t=>{let n=Array.from(new Set(t.ips)),o={};for(let s of Ye(n,100)){let{Responses:i}=await this.props.dynamo.send(new Re({RequestItems:{[this.props.tableName]:{Keys:s.map(a=>({pk:Zr(a),sk:"ipinfo"}))}}}));for(let a of i?.[this.props.tableName]??[]){let c=pe(fa,a);c.success&&(o[c.output.ip]=c.output)}}return o},"getMany");put=r(async t=>{let n={pk:Zr(t.info.ip),sk:"ipinfo",ip:t.info.ip,asn:t.info.asn,asName:t.info.asName,asDomain:t.info.asDomain,countryCode:t.info.countryCode,country:t.info.country,fetchedAt:new Date().toISOString()};return await this.props.dynamo.send(new He({TableName:this.props.tableName,Item:n})),n},"put");enrich=r(async t=>{if(this.props.apiKey==null)return null;let n=await this.get({ip:t.ip});if(n!=null)return n;let o=await ya({ip:t.ip,apiKey:this.props.apiKey});return this.put({info:o})},"enrich");enrichMany=r(async t=>{if(this.props.apiKey==null)return{};let n=Array.from(new Set(t.ips)),o=await this.getMany({ips:n}),s={...o},i=n.filter(a=>o[a]==null);for(let a of i){let c=await ya({ip:a,apiKey:this.props.apiKey});s[a]=await this.put({info:c})}return s},"enrichMany");parseOne=r(t=>{let n=pe(fa,t);if(!n.success)throw console.error(we(n.issues)),new Error("Malformed stored ipinfo cache record");return n.output},"parseOne")};function Zr(e){return`ipinfo#${e}`}r(Zr,"keyFor");var hr=["hour","day","month"],ha=["status","country","device","path"],va=["v1","v2"];var qg=L({pk:h(),sk:h(),source:ne(va),appliedAt:I(),ttl:E(I())}),vr=class{constructor(t){this.props=t}props;static{r(this,"AppliedMarkers")}isApplied=r(async t=>{let{Item:n}=await this.props.dynamo.send(new X({TableName:this.props.tableName,Key:{pk:xa(t),sk:"applied"}}));return n!=null},"isApplied");buildMarkerPut=r(t=>{let n={pk:xa(t),sk:"applied",source:t.source,appliedAt:Date.now()};return t.ttl!=null&&(n.ttl=t.ttl),{Put:{TableName:this.props.tableName,Item:n,ConditionExpression:"attribute_not_exists(pk) AND attribute_not_exists(sk)"}}},"buildMarkerPut")};function xa(e){return`applied#${e.grain}#${e.periodKey}`}r(xa,"partitionKey");async function xr(e){let t=[],n;do{let{Items:o=[],LastEvaluatedKey:s}=await e.dynamo.send(new ce({...e.input,ExclusiveStartKey:n}));n=s,t.push(...o)}while(n!=null);return t}r(xr,"queryAll");var $f=L({pk:h(),sk:h(),dimension:ne(ha),grain:ne(hr),periodKey:h(),value:h(),hits:I(),bytes:I(),ttl:E(I())}),_r=class{constructor(t){this.props=t}props;static{r(this,"Breakdowns")}addMany=r(async t=>{let n=this.buildUpdates(t);for(let o of n)await this.props.dynamo.send(new te(o.Update))},"addMany");buildUpdates=r(t=>t.items.map(n=>({Update:this.buildUpdateMembers({dimension:t.dimension,grain:t.grain,periodKey:t.periodKey,item:n,ttl:t.ttl})})),"buildUpdates");getForPeriod=r(async t=>(await xr({dynamo:this.props.dynamo,input:{TableName:this.props.tableName,KeyConditionExpression:"#pk = :pk",ExpressionAttributeNames:{"#pk":"pk"},ExpressionAttributeValues:{":pk":_a({dimension:t.dimension,grain:t.grain,periodKey:t.periodKey})}}})).map(o=>this.parseOne(o)),"getForPeriod");buildUpdateMembers=r(t=>{let n={"#dimension":"dimension","#grain":"grain","#periodKey":"periodKey","#value":"value","#hits":"hits","#bytes":"bytes"},o={":dimension":t.dimension,":grain":t.grain,":periodKey":t.periodKey,":value":t.item.value,":hits":t.item.hits,":bytes":t.item.bytes},s=["#dimension = :dimension","#grain = :grain","#periodKey = :periodKey","#value = :value"];return t.ttl!=null&&(n["#ttl"]="ttl",o[":ttl"]=t.ttl,s.push("#ttl = :ttl")),{TableName:this.props.tableName,Key:{pk:_a({dimension:t.dimension,grain:t.grain,periodKey:t.periodKey}),sk:t.item.value},UpdateExpression:`SET ${s.join(", ")} ADD #hits :hits, #bytes :bytes`,ExpressionAttributeNames:n,ExpressionAttributeValues:o}},"buildUpdateMembers");parseOne=r(t=>{let n=pe($f,t);if(!n.success)throw console.error(we(n.issues)),new Error("Malformed stored breakdown record");return n.output},"parseOne")};function _a(e){return`breakdown#${e.dimension}#${e.grain}#${e.periodKey}`}r(_a,"partitionKey");function Sa(){return q.from(new Ae,{marshallOptions:{removeUndefinedValues:!0,convertEmptyValues:!1}})}r(Sa,"toDynamoClient");function ga({items:e,n:t,otherValue:n}){let o=[...e].sort((c,m)=>m.hits-c.hits),s=o.slice(0,t),i=o.slice(t);if(i.length===0)return s;let a=i.reduce((c,m)=>({value:n,hits:c.hits+m.hits,bytes:c.bytes+m.bytes}),{value:n,hits:0,bytes:0});return[...s,a]}r(ga,"topNWithOther");var Nf={v2:{status:"CAST(sc_status AS integer)",bytesSent:"CAST(sc_bytes AS bigint)",bytesReceived:"CAST(cs_bytes AS bigint)",timeTaken:"CAST(time_taken AS double)",resultType:"x_edge_result_type",detailedResultType:"x_edge_detailed_result_type",uriStem:"cs_uri_stem",clientIp:"c_ip",userAgent:"cs_user_agent",timestamp:"timestamp"},v1:{status:'CAST("sc-status" AS integer)',bytesSent:'CAST("sc-bytes" AS bigint)',bytesReceived:'CAST("cs-bytes" AS bigint)',timeTaken:'CAST("time-taken" AS double)',resultType:'"x-edge-result-type"',detailedResultType:'"x-edge-detailed-result-type"',uriStem:'"cs-uri-stem"',clientIp:'"c-ip"',userAgent:'"cs(User-Agent)"',timestamp:'"time"'}};function Lf(e){let t=/^(\d{4})-(\d{2})-(\d{2})-(\d{2})$/.exec(e);if(t==null)throw new Error(`Invalid hourKey: ${e}`);let[,n,o,s,i]=t;if(n==null||o==null||s==null||i==null)throw new Error(`Invalid hourKey: ${e}`);return{year:n,month:o,day:s,hour:i}}r(Lf,"hourKeyParts");function Of(e){return["CASE",`WHEN lower(${e}) LIKE '%bot%' OR lower(${e}) LIKE '%crawler%' OR lower(${e}) LIKE '%spider%' OR lower(${e}) LIKE '%slurp%' THEN 'bot'`,`WHEN lower(${e}) LIKE '%mobi%' OR lower(${e}) LIKE '%android%' OR lower(${e}) LIKE '%iphone%' OR lower(${e}) LIKE '%ipad%' THEN 'mobile'`,`WHEN lower(${e}) LIKE '%windows nt%' OR lower(${e}) LIKE '%macintosh%' OR lower(${e}) LIKE '%x11%' OR lower(${e}) LIKE '%linux%' THEN 'desktop'`,"ELSE 'other'","END"].join(" ")}r(Of,"deviceCaseExpression");function Gf({source:e,hourKey:t,columns:n}){let o=Lf(t);return e==="v2"?[`year = '${o.year}'`,`month = '${o.month}'`,`day = '${o.day}'`,`hour = '${o.hour}'`].join(" AND "):[`"date" = DATE '${o.year}-${o.month}-${o.day}'`,`substr(${n.timestamp}, 1, 2) = '${o.hour}'`].join(" AND ")}r(Gf,"predicateFor");function Uf({table:e,source:t,hourKey:n,topPaths:o}){let s=Nf[t],i=Gf({source:t,hourKey:n,columns:s}),a=Of(s.userAgent),c=[" SELECT",` ${s.status} AS st,`,` ${s.bytesSent} AS scb,`,` ${s.bytesReceived} AS csb,`,` ${s.timeTaken} AS tt,`,` ${s.resultType} AS rt,`,` ${s.uriStem} AS uri,`,` ${s.clientIp} AS ip,`,` ${a} AS device`,` FROM "${e}"`,` WHERE ${i}`].join(`
|
|
3
|
+
`),m=["()","(st)","(device)","(uri)","(ip)"].join(", ");return["SELECT"," st AS status_value,"," device,"," uri AS path_value,"," ip AS ip_value,"," count(*) AS hits,"," sum(CASE WHEN st BETWEEN 200 AND 399 THEN 1 ELSE 0 END) AS success,"," sum(CASE WHEN st BETWEEN 400 AND 599 THEN 1 ELSE 0 END) AS errors,"," sum(CASE WHEN st BETWEEN 400 AND 499 THEN 1 ELSE 0 END) AS errors4xx,"," sum(CASE WHEN st BETWEEN 500 AND 599 THEN 1 ELSE 0 END) AS errors5xx,"," sum(scb) AS bytes_sent,"," sum(csb) AS bytes_received,"," approx_percentile(tt, 0.5) AS p50_time_taken,"," approx_percentile(tt, 0.95) AS p95_time_taken,"," sum(CASE WHEN rt = 'Hit' THEN 1 ELSE 0 END) AS cache_hits,"," count(DISTINCT ip) AS unique_ip_count","FROM (",c,")",`GROUP BY GROUPING SETS (${m})`].join(`
|
|
3
4
|
`)}r(Uf,"buildHourlyQuery");function B(e){if(e==null||e==="")return 0;let t=Number(e);return Number.isNaN(t)?0:t}r(B,"toNumber");function Sr(e){if(!(e==null||e===""))return e}r(Sr,"cellValue");function Mf(e){return{status:Sr(e[0]),device:Sr(e[1]),path:Sr(e[2]),ip:Sr(e[3]),hits:B(e[4]),success:B(e[5]),errors:B(e[6]),errors4xx:B(e[7]),errors5xx:B(e[8]),bytesSent:B(e[9]),bytesReceived:B(e[10]),p50TimeTaken:B(e[11]),p95TimeTaken:B(e[12]),cacheHits:B(e[13]),uniqueIpCount:B(e[14])}}r(Mf,"parseRow");function Bf({rows:e,topPaths:t}){let n=e.find(p=>p.status==null&&p.device==null&&p.path==null&&p.ip==null),o=n==null?{hits:0,success:0,errors:0,errors4xx:0,errors5xx:0,bytesSent:0,bytesReceived:0,p50TimeTaken:0,p95TimeTaken:0,cacheHitRatio:0,uniqueIpCount:0}:{hits:n.hits,success:n.success,errors:n.errors,errors4xx:n.errors4xx,errors5xx:n.errors5xx,bytesSent:n.bytesSent,bytesReceived:n.bytesReceived,p50TimeTaken:n.p50TimeTaken,p95TimeTaken:n.p95TimeTaken,cacheHitRatio:n.hits===0?0:n.cacheHits/n.hits,uniqueIpCount:n.uniqueIpCount},s=e.filter(p=>p.status!=null&&p.device==null&&p.path==null&&p.ip==null).map(p=>({value:p.status??"",hits:p.hits,bytes:p.bytesSent})),i=e.filter(p=>p.device!=null&&p.status==null&&p.path==null&&p.ip==null).map(p=>({value:p.device??"",hits:p.hits,bytes:p.bytesSent})),a=e.filter(p=>p.path!=null&&p.status==null&&p.device==null&&p.ip==null).map(p=>({value:p.path??"",hits:p.hits,bytes:p.bytesSent})),c=ga({items:a,n:t,otherValue:"__other__"}),m=e.filter(p=>p.ip!=null&&p.status==null&&p.device==null&&p.path==null).map(p=>({ip:p.ip??"",hits:p.hits})).sort((p,g)=>g.hits-p.hits).slice(0,t);return{totals:o,byStatus:s,byDevice:i,byPath:c,topIps:m}}r(Bf,"assembleResult");async function Ff({athena:e,queryExecutionId:t}){let n=250,o=5e3;for(;;){let s=await e.send(new mn({QueryExecutionId:t})),i=s.QueryExecution?.Status?.State;if(i==="SUCCEEDED")return;if(i==="FAILED"||i==="CANCELLED"){let a=s.QueryExecution?.Status?.StateChangeReason??"unknown reason";throw new Error(`Athena query ${i}: ${a}`)}await new Promise(a=>setTimeout(a,n)),n=Math.min(n*2,o)}}r(Ff,"waitForQuery");async function Vf({athena:e,queryExecutionId:t}){let n=[],o,s=!0;do{let i=await e.send(new dn({QueryExecutionId:t,NextToken:o})),a=i.ResultSet?.Rows??[],c=s?a.slice(1):a;for(let m of c){let p=(m.Data??[]).map(g=>g.VarCharValue);n.push(Mf(p))}o=i.NextToken,s=!1}while(o!=null);return n}r(Vf,"fetchRows");async function ba({athena:e,database:t,table:n,workgroup:o,outputLocation:s,source:i,hourKey:a,topPaths:c}){let m=Uf({table:n,source:i,hourKey:a,topPaths:c}),g=(await e.send(new fn({QueryString:m,QueryExecutionContext:{Database:t},WorkGroup:o,ResultConfiguration:s==null?void 0:{OutputLocation:s}}))).QueryExecutionId;if(g==null)throw new Error("Athena StartQueryExecution returned no QueryExecutionId");await Ff({athena:e,queryExecutionId:g});let re=await Vf({athena:e,queryExecutionId:g});return Bf({rows:re,topPaths:c})}r(ba,"runHourlyAthenaQuery");var Kf=100,jf="ZZ";async function Ea({hourKey:e,source:t,models:n,athena:o,options:s,dynamo:i}){if(await n.markers.isApplied({grain:"hour",periodKey:e}))return{status:"skipped"};let c=await ba({athena:o.client,database:o.database,table:o.table,workgroup:o.workgroup,outputLocation:o.outputLocation,source:t,hourKey:e,topPaths:s.topPaths}),m=await Hf({topIps:c.topIps,ipCache:n.ipCache,hasApiKey:s.ipInfoApiKey!=null}),p=Xf(s.hourlyTtlDays),g=n.markers.buildMarkerPut({grain:"hour",periodKey:e,source:t,ttl:p}),re=n.totals.buildHourlyUpdate({item:{timeKey:e,hits:c.totals.hits,success:c.totals.success,errors:c.totals.errors,errors4xx:c.totals.errors4xx,errors5xx:c.totals.errors5xx,bytesSent:c.totals.bytesSent,bytesReceived:c.totals.bytesReceived,p50TimeTaken:c.totals.p50TimeTaken,p95TimeTaken:c.totals.p95TimeTaken,cacheHitRatio:c.totals.cacheHitRatio,uniqueIpCount:c.totals.uniqueIpCount},ttl:p}),br=zf({breakdowns:n.breakdowns,grain:"hour",periodKey:e,ttl:p,byStatus:c.byStatus,byDevice:c.byDevice,byPath:c.byPath,byCountry:m});return Qf({dynamo:i,leading:[g,re],rest:br})}r(Ea,"processHour");function Wf({leading:e,rest:t,limit:n=Kf}){let o=Math.max(n-e.length,0),s=[...e,...t.slice(0,o)],i=Ye(t.slice(o),n);return[s,...i]}r(Wf,"chunkTransactItems");async function Qf({dynamo:e,leading:t,rest:n}){let o=Wf({leading:t,rest:n});try{for(let s of o)s.length!==0&&await e.send(new Je({TransactItems:s}))}catch(s){if(qf(s))return{status:"skipped"};throw s}return{status:"applied"}}r(Qf,"sendTransacted");function qf(e){if(e==null||typeof e!="object")return!1;let t="name"in e?e.name:void 0;return t==="TransactionCanceledException"||t==="ConditionalCheckFailedException"}r(qf,"isMarkerRaceError");function zf({breakdowns:e,grain:t,periodKey:n,ttl:o,byStatus:s,byDevice:i,byPath:a,byCountry:c}){let m=[{dimension:"status",items:s},{dimension:"device",items:i},{dimension:"country",items:c},{dimension:"path",items:a}],p=[];for(let g of m)g.items.length!==0&&p.push(...e.buildUpdates({dimension:g.dimension,grain:t,periodKey:n,items:g.items,ttl:o}));return p}r(zf,"buildBreakdownUpdates");async function Hf({topIps:e,ipCache:t,hasApiKey:n}){if(e.length===0)return[];let o=n?await t.enrichMany({ips:e.map(i=>i.ip)}):{},s={};for(let i of e){let c=o[i.ip]?.countryCode??jf;s[c]=(s[c]??0)+i.hits}return Object.entries(s).map(([i,a])=>({value:i,hits:a,bytes:0}))}r(Hf,"resolveCountryBreakdown");function Xf(e){return Math.floor(Date.now()/1e3)+e*24*60*60}r(Xf,"computeHourlyTtl");function eo(e){return e.toString().padStart(2,"0")}r(eo,"pad2");function Jf(e){return e.toString().padStart(4,"0")}r(Jf,"pad4");function Yf(e){return`${Jf(e.getUTCFullYear())}-${eo(e.getUTCMonth()+1)}`}r(Yf,"monthKey");function Zf(e){return`${Yf(e)}-${eo(e.getUTCDate())}`}r(Zf,"dayKey");function Ia(e){return`${Zf(e)}-${eo(e.getUTCHours())}`}r(Ia,"hourKey");var ey=["hits","success","errors","errors4xx","errors5xx","bytesSent","bytesReceived"],ty=["p50TimeTaken","p95TimeTaken","cacheHitRatio","uniqueIpCount"],ny=L({pk:h(),sk:h(),grain:ne(hr),timeKey:h(),hits:I(),success:I(),errors:I(),errors4xx:I(),errors5xx:I(),bytesSent:I(),bytesReceived:I(),p50TimeTaken:E(I()),p95TimeTaken:E(I()),cacheHitRatio:E(I()),uniqueIpCount:E(I()),ttl:E(I())}),gr=class{constructor(t){this.props=t}props;static{r(this,"Totals")}addHourly=r(async t=>{let n=this.buildHourlyUpdate(t);await this.props.dynamo.send(new te(n.Update))},"addHourly");addAggregate=r(async t=>{let n=this.buildAggregateUpdate(t);await this.props.dynamo.send(new te(n.Update))},"addAggregate");buildHourlyUpdate=r(t=>({Update:this.buildUpdateMembers({grain:"hour",item:t.item,ttl:t.ttl,includeHourlyDetail:!0})}),"buildHourlyUpdate");buildAggregateUpdate=r(t=>({Update:this.buildUpdateMembers({grain:t.grain,item:t.item,includeHourlyDetail:!1})}),"buildAggregateUpdate");queryWindow=r(async t=>(await xr({dynamo:this.props.dynamo,input:{TableName:this.props.tableName,KeyConditionExpression:"#pk = :pk AND #sk BETWEEN :start AND :end",ExpressionAttributeNames:{"#pk":"pk","#sk":"sk"},ExpressionAttributeValues:{":pk":to(t.grain),":start":t.startKey,":end":t.endKey}}})).map(o=>this.parseOne(o)),"queryWindow");getOne=r(async t=>{let{Item:n}=await this.props.dynamo.send(new X({TableName:this.props.tableName,Key:{pk:to(t.grain),sk:t.timeKey}}));if(n!=null)return this.parseOne(n)},"getOne");buildUpdateMembers=r(t=>{let n={"#grain":"grain","#timeKey":"timeKey"},o={":grain":t.grain,":timeKey":t.item.timeKey},s=["#grain = :grain","#timeKey = :timeKey"],i=[];for(let a of ey)n[`#${a}`]=a,o[`:${a}`]=t.item[a],i.push(`#${a} :${a}`);if(t.includeHourlyDetail)for(let a of ty){let c=t.item[a];c!=null&&(n[`#${a}`]=a,o[`:${a}`]=c,s.push(`#${a} = :${a}`))}return t.ttl!=null&&(n["#ttl"]="ttl",o[":ttl"]=t.ttl,s.push("#ttl = :ttl")),{TableName:this.props.tableName,Key:{pk:to(t.grain),sk:t.item.timeKey},UpdateExpression:`SET ${s.join(", ")} ADD ${i.join(", ")}`,ExpressionAttributeNames:n,ExpressionAttributeValues:o}},"buildUpdateMembers");parseOne=r(t=>{let n=pe(ny,t);if(!n.success)throw console.error(we(n.issues)),new Error("Malformed stored totals record");return n.output},"parseOne")};function to(e){return`totals#${e}`}r(to,"partitionKey");var ry=L({TABLE_NAME:h(),REVERSE_INDEX_NAME:h(),HOURLY_TTL_DAYS:h(),TOP_PATHS:h(),PROCESSING_LAG_HOURS:h(),ATHENA_DATABASE:h(),ATHENA_V2_TABLE:h(),ATHENA_WORKGROUP:h(),ATHENA_OUTPUT_LOCATION:E(h()),IPINFO_API_KEY:E(h())}),$=fr(ry,process.env),et=Sa(),oy=new gr({dynamo:et,tableName:$.TABLE_NAME}),sy=new _r({dynamo:et,tableName:$.TABLE_NAME}),iy=new vr({dynamo:et,tableName:$.TABLE_NAME}),ay=new yr({dynamo:et,tableName:$.TABLE_NAME,apiKey:$.IPINFO_API_KEY}),uy=new ln;async function Ub(){let e=Number($.PROCESSING_LAG_HOURS),t=new Date;t.setUTCHours(t.getUTCHours()-e);let n=Ia(t),o=await Ea({hourKey:n,source:"v2",models:{totals:oy,breakdowns:sy,markers:iy,ipCache:ay},athena:{client:uy,database:$.ATHENA_DATABASE,table:$.ATHENA_V2_TABLE,workgroup:$.ATHENA_WORKGROUP,outputLocation:$.ATHENA_OUTPUT_LOCATION},options:{topPaths:Number($.TOP_PATHS),hourlyTtlDays:Number($.HOURLY_TTL_DAYS),ipInfoApiKey:$.IPINFO_API_KEY},dynamo:et});console.log(`hourly ${n} ${o.status}`)}r(Ub,"handler");export{Ub as handler};
|