-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path210.756c8c598f09354c8542.js
1 lines (1 loc) · 216 KB
/
210.756c8c598f09354c8542.js
1
(self.webpackChunksparkworks_console=self.webpackChunksparkworks_console||[]).push([[210],{84158:function(me,H,X){"use strict";X.d(H,{Ke:function(){return jd}});var j,K,V,Q,G,O,P,L,R,x,y,g,b,p,S,k,re,C,T,B,D,q,M,Z,ae,se,te,ve,le,fe,Pe,Ke,Le,wn,yn,bn,pn,Cn,Wr,Jr,Sn,En,An,kn,xn,Pn,Nn,Tn,Bn,On,zn,Xn,Rn,ar,Qr,Yr,In,Mn,Ln,Dn,ur,jn,Un,Kn,qn,Fn,Zr,et,Ar,Gn,Hn,Vn,$n,Wn,Jn,Qn,Yn,rt,Zn,tt,nt,it,ei,ri,fr,ti,ni,ii,at,ot,ai,oi,si,kr,di,li,ci,ui,fi,mi,vi,hi,st,dt,mr,_i,gi,wi,yi,bi,pi,Ci,Si,Ei,Ai,ki,xi,Pi,Ni,Ti,Bi,Oi,zi,Xi,Ri,Ii,Mi,Li,Di,ji,Ui,lt,ct,Ki,qi,Fi,ut,xr,Gi,Hi,Vi,$i,Wi,Ji,Qi,Yi,Zi,ea,ra,ta,na,ia,aa,oa,ft,mt,sa,da,la,ca,ua,fa,ma,va,ha,_a,ga,wa,ya,ba,pa,Ca,Sa,Ea,Aa,ka,xa,Pa,Na,Ta,Ba,Oa,za,Xa,Ra,Ia,Ma,La,Da,ja,Ua,Ka,qa,Fa,Ga,Ha,Va,$a,vt,ht,_t,gt,Wa,Ja,Qa,Ya,Za,wt,yt,eo,ro,to,no,io,ao,oo,so,bt,lo,co,uo,fo,mo,vo,ho,_o,go,wo,yo,bo,po,Co,So,Eo,pt,Ct,Ao,ko,xo,Po,No,To,Bo,Oo,zo,Xo,Ro,Io,Mo,Lo,St,U=X(45013),W=X(84334),Y=X(70622),I=X(54414),$=X(88477),u=X(64762),E=X(74118);(j||(j={})).filterSensitiveLog=function(e){return(0,u.pi)({},e)},(K||(K={})).filterSensitiveLog=function(e){return(0,u.pi)({},e)},function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(V||(V={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Q||(Q={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(G||(G={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(O||(O={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(P||(P={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(L||(L={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(R||(R={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(x||(x={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:E.oc})}}(y||(y={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(g||(g={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(b||(b={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(p||(p={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(S||(S={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)((0,u.pi)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:E.oc}),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:E.oc})}}(k||(k={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)({},e),e.SSECustomerKey&&{SSECustomerKey:E.oc}),e.SSEKMSKeyId&&{SSEKMSKeyId:E.oc}),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:E.oc}),e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:E.oc})}}(re||(re={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(C||(C={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(T||(T={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(B||(B={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(D||(D={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(q||(q={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(M||(M={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)((0,u.pi)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:E.oc}),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:E.oc})}}(Z||(Z={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)({},e),e.SSECustomerKey&&{SSECustomerKey:E.oc}),e.SSEKMSKeyId&&{SSEKMSKeyId:E.oc}),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:E.oc})}}(ae||(ae={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(se||(se={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(te||(te={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(ve||(ve={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(le||(le={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(fe||(fe={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Pe||(Pe={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Ke||(Ke={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Le||(Le={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(wn||(wn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(yn||(yn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(bn||(bn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(pn||(pn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Cn||(Cn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Wr||(Wr={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Jr||(Jr={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Sn||(Sn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(En||(En={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(An||(An={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(kn||(kn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(xn||(xn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Pn||(Pn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Nn||(Nn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Tn||(Tn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Bn||(Bn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(On||(On={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(zn||(zn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Xn||(Xn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Rn||(Rn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(ar||(ar={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Qr||(Qr={})),function(a){a.visit=function(e,t){return void 0!==e.Prefix?t.Prefix(e.Prefix):void 0!==e.Tag?t.Tag(e.Tag):void 0!==e.And?t.And(e.And):t._(e.$unknown[0],e.$unknown[1])},a.filterSensitiveLog=function(e){var t;return void 0!==e.Prefix?{Prefix:e.Prefix}:void 0!==e.Tag?{Tag:ar.filterSensitiveLog(e.Tag)}:void 0!==e.And?{And:Qr.filterSensitiveLog(e.And)}:void 0!==e.$unknown?((t={})[e.$unknown[0]]="UNKNOWN",t):void 0}}(Yr||(Yr={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(In||(In={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Mn||(Mn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Ln||(Ln={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Dn||(Dn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.Filter&&{Filter:Yr.filterSensitiveLog(e.Filter)})}}(ur||(ur={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.AnalyticsConfiguration&&{AnalyticsConfiguration:ur.filterSensitiveLog(e.AnalyticsConfiguration)})}}(jn||(jn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Un||(Un={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Kn||(Kn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(qn||(qn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Fn||(Fn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.KMSMasterKeyID&&{KMSMasterKeyID:E.oc})}}(Zr||(Zr={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.ApplyServerSideEncryptionByDefault&&{ApplyServerSideEncryptionByDefault:Zr.filterSensitiveLog(e.ApplyServerSideEncryptionByDefault)})}}(et||(et={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.Rules&&{Rules:e.Rules.map(function(t){return et.filterSensitiveLog(t)})})}}(Ar||(Ar={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:Ar.filterSensitiveLog(e.ServerSideEncryptionConfiguration)})}}(Gn||(Gn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Hn||(Hn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Vn||(Vn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}($n||($n={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Wn||(Wn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Jn||(Jn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Qn||(Qn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Yn||(Yn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.KeyId&&{KeyId:E.oc})}}(rt||(rt={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Zn||(Zn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.SSEKMS&&{SSEKMS:rt.filterSensitiveLog(e.SSEKMS)})}}(tt||(tt={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.Encryption&&{Encryption:tt.filterSensitiveLog(e.Encryption)})}}(nt||(nt={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.S3BucketDestination&&{S3BucketDestination:nt.filterSensitiveLog(e.S3BucketDestination)})}}(it||(it={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(ei||(ei={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(ri||(ri={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.Destination&&{Destination:it.filterSensitiveLog(e.Destination)})}}(fr||(fr={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.InventoryConfiguration&&{InventoryConfiguration:fr.filterSensitiveLog(e.InventoryConfiguration)})}}(ti||(ti={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(ni||(ni={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(ii||(ii={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(at||(at={})),function(a){a.visit=function(e,t){return void 0!==e.Prefix?t.Prefix(e.Prefix):void 0!==e.Tag?t.Tag(e.Tag):void 0!==e.And?t.And(e.And):t._(e.$unknown[0],e.$unknown[1])},a.filterSensitiveLog=function(e){var t;return void 0!==e.Prefix?{Prefix:e.Prefix}:void 0!==e.Tag?{Tag:ar.filterSensitiveLog(e.Tag)}:void 0!==e.And?{And:at.filterSensitiveLog(e.And)}:void 0!==e.$unknown?((t={})[e.$unknown[0]]="UNKNOWN",t):void 0}}(ot||(ot={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(ai||(ai={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(oi||(oi={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(si||(si={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.Filter&&{Filter:ot.filterSensitiveLog(e.Filter)})}}(kr||(kr={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.Rules&&{Rules:e.Rules.map(function(t){return kr.filterSensitiveLog(t)})})}}(di||(di={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(li||(li={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(ci||(ci={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(ui||(ui={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(fi||(fi={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(mi||(mi={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(vi||(vi={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(hi||(hi={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(st||(st={})),function(a){a.visit=function(e,t){return void 0!==e.Prefix?t.Prefix(e.Prefix):void 0!==e.Tag?t.Tag(e.Tag):void 0!==e.And?t.And(e.And):t._(e.$unknown[0],e.$unknown[1])},a.filterSensitiveLog=function(e){var t;return void 0!==e.Prefix?{Prefix:e.Prefix}:void 0!==e.Tag?{Tag:ar.filterSensitiveLog(e.Tag)}:void 0!==e.And?{And:st.filterSensitiveLog(e.And)}:void 0!==e.$unknown?((t={})[e.$unknown[0]]="UNKNOWN",t):void 0}}(dt||(dt={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.Filter&&{Filter:dt.filterSensitiveLog(e.Filter)})}}(mr||(mr={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.MetricsConfiguration&&{MetricsConfiguration:mr.filterSensitiveLog(e.MetricsConfiguration)})}}(_i||(_i={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(gi||(gi={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(wi||(wi={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(yi||(yi={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(bi||(bi={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(pi||(pi={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Ci||(Ci={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Si||(Si={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Ei||(Ei={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Ai||(Ai={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(ki||(ki={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(xi||(xi={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Pi||(Pi={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Ni||(Ni={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Ti||(Ti={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Bi||(Bi={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Oi||(Oi={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(zi||(zi={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Xi||(Xi={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Ri||(Ri={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Ii||(Ii={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Mi||(Mi={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Li||(Li={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Di||(Di={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(ji||(ji={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Ui||(Ui={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(lt||(lt={})),function(a){a.visit=function(e,t){return void 0!==e.Prefix?t.Prefix(e.Prefix):void 0!==e.Tag?t.Tag(e.Tag):void 0!==e.And?t.And(e.And):t._(e.$unknown[0],e.$unknown[1])},a.filterSensitiveLog=function(e){var t;return void 0!==e.Prefix?{Prefix:e.Prefix}:void 0!==e.Tag?{Tag:ar.filterSensitiveLog(e.Tag)}:void 0!==e.And?{And:lt.filterSensitiveLog(e.And)}:void 0!==e.$unknown?((t={})[e.$unknown[0]]="UNKNOWN",t):void 0}}(ct||(ct={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Ki||(Ki={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(qi||(qi={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Fi||(Fi={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.Filter&&{Filter:ct.filterSensitiveLog(e.Filter)})}}(ut||(ut={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.Rules&&{Rules:e.Rules.map(function(t){return ut.filterSensitiveLog(t)})})}}(xr||(xr={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.ReplicationConfiguration&&{ReplicationConfiguration:xr.filterSensitiveLog(e.ReplicationConfiguration)})}}(Gi||(Gi={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Hi||(Hi={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Vi||(Vi={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}($i||($i={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Wi||(Wi={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Ji||(Ji={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Qi||(Qi={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Yi||(Yi={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Zi||(Zi={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(ea||(ea={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(ra||(ra={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(ta||(ta={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(na||(na={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(ia||(ia={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(aa||(aa={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(oa||(oa={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:E.oc})}}(ft||(ft={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.SSECustomerKey&&{SSECustomerKey:E.oc})}}(mt||(mt={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(sa||(sa={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(da||(da={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(la||(la={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(ca||(ca={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(ua||(ua={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(fa||(fa={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(ma||(ma={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(va||(va={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(ha||(ha={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(_a||(_a={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(ga||(ga={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(wa||(wa={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(ya||(ya={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(ba||(ba={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(pa||(pa={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Ca||(Ca={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Sa||(Sa={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Ea||(Ea={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Aa||(Aa={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(ka||(ka={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(xa||(xa={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Pa||(Pa={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Na||(Na={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Ta||(Ta={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:E.oc})}}(Ba||(Ba={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.SSECustomerKey&&{SSECustomerKey:E.oc})}}(Oa||(Oa={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.AnalyticsConfigurationList&&{AnalyticsConfigurationList:e.AnalyticsConfigurationList.map(function(t){return ur.filterSensitiveLog(t)})})}}(za||(za={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Xa||(Xa={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Ra||(Ra={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Ia||(Ia={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.InventoryConfigurationList&&{InventoryConfigurationList:e.InventoryConfigurationList.map(function(t){return fr.filterSensitiveLog(t)})})}}(Ma||(Ma={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(La||(La={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.MetricsConfigurationList&&{MetricsConfigurationList:e.MetricsConfigurationList.map(function(t){return mr.filterSensitiveLog(t)})})}}(Da||(Da={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(ja||(ja={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Ua||(Ua={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Ka||(Ka={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(qa||(qa={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Fa||(Fa={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Ga||(Ga={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Ha||(Ha={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Va||(Va={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}($a||($a={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(vt||(vt={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(ht||(ht={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(_t||(_t={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(gt||(gt={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Wa||(Wa={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Ja||(Ja={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Qa||(Qa={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Ya||(Ya={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Za||(Za={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(wt||(wt={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(yt||(yt={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(eo||(eo={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(ro||(ro={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.AnalyticsConfiguration&&{AnalyticsConfiguration:ur.filterSensitiveLog(e.AnalyticsConfiguration)})}}(to||(to={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(no||(no={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(io||(io={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:Ar.filterSensitiveLog(e.ServerSideEncryptionConfiguration)})}}(ao||(ao={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(oo||(oo={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.InventoryConfiguration&&{InventoryConfiguration:fr.filterSensitiveLog(e.InventoryConfiguration)})}}(so||(so={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.Rules&&{Rules:e.Rules.map(function(t){return kr.filterSensitiveLog(t)})})}}(bt||(bt={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.LifecycleConfiguration&&{LifecycleConfiguration:bt.filterSensitiveLog(e.LifecycleConfiguration)})}}(lo||(lo={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(co||(co={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(uo||(uo={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.MetricsConfiguration&&{MetricsConfiguration:mr.filterSensitiveLog(e.MetricsConfiguration)})}}(fo||(fo={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(mo||(mo={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(vo||(vo={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(ho||(ho={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.ReplicationConfiguration&&{ReplicationConfiguration:xr.filterSensitiveLog(e.ReplicationConfiguration)})}}(_o||(_o={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(go||(go={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(wo||(wo={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(yo||(yo={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(bo||(bo={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(po||(po={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Co||(Co={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(So||(So={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Eo||(Eo={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)((0,u.pi)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:E.oc}),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:E.oc})}}(pt||(pt={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)({},e),e.SSECustomerKey&&{SSECustomerKey:E.oc}),e.SSEKMSKeyId&&{SSEKMSKeyId:E.oc}),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:E.oc})}}(Ct||(Ct={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Ao||(Ao={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(ko||(ko={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(xo||(xo={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Po||(Po={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(No||(No={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(To||(To={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Bo||(Bo={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Oo||(Oo={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(zo||(zo={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Xo||(Xo={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Ro||(Ro={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Io||(Io={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Mo||(Mo={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Lo||(Lo={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.KMSKeyId&&{KMSKeyId:E.oc})}}(St||(St={}));var be=X(78739);function Kd(a){return a.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}var Nr=function(){function a(e,t){void 0===t&&(t=[]),this.name=e,this.children=t,this.attributes={}}return a.prototype.withName=function(e){return this.name=e,this},a.prototype.addAttribute=function(e,t){return this.attributes[e]=t,this},a.prototype.addChildNode=function(e){return this.children.push(e),this},a.prototype.removeAttribute=function(e){return delete this.attributes[e],this},a.prototype.toString=function(){var e,t,r=Boolean(this.children.length),n="<"+this.name,i=this.attributes;try{for(var o=function(a){var e="function"==typeof Symbol&&Symbol.iterator,t=e&&a[e],r=0;if(t)return t.call(a);if(a&&"number"==typeof a.length)return{next:function(){return a&&r>=a.length&&(a=void 0),{value:a&&a[r++],done:!a}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.keys(i)),d=o.next();!d.done;d=o.next()){var l=d.value,s=i[l];null!=s&&(n+=" "+l+'="'+Kd(""+s)+'"')}}catch(c){e={error:c}}finally{try{d&&!d.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return n+(r?">"+this.children.map(function(c){return c.toString()}).join("")+"</"+this.name+">":"/>")},a}(),jo=function(){function a(e){this.value=e}return a.prototype.toString=function(){return function(a){return a.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}(""+this.value)},a}(),Fd=X(9294),nl=function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r,n,i,o,l,s,c,m;return(0,u.Jh)(this,function(f){switch(f.label){case 0:return n=[(0,u.pi)({},e)],m={},[4,A(e.body,t)];case 1:switch(r=u.pi.apply(void 0,n.concat([(m.body=f.sent(),m)])),o="UnknownError",o=z(e,r.body)){case"NoSuchUpload":case"com.amazonaws.s3#NoSuchUpload":return[3,2]}return[3,4];case 2:return l=[{}],[4,au(r,t)];case 3:return i=u.pi.apply(void 0,[u.pi.apply(void 0,l.concat([f.sent()])),{name:o,$metadata:w(e)}]),[3,5];case 4:o=(s=r.body).code||s.Code||o,i=(0,u.pi)((0,u.pi)({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:w(e)}),f.label=5;case 5:return i.message=c=i.message||i.Message||o,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},al=function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r,n,i,o,d,l,s;return(0,u.Jh)(this,function(c){switch(c.label){case 0:return n=[(0,u.pi)({},e)],s={},[4,A(e.body,t)];case 1:return r=u.pi.apply(void 0,n.concat([(s.body=c.sent(),s)])),o="UnknownError",o=z(e,r.body),o=(d=r.body).code||d.Code||o,(i=(0,u.pi)((0,u.pi)({},d),{name:""+o,message:d.message||d.Message||o,$fault:"client",$metadata:w(e)})).message=l=i.message||i.Message||o,delete i.Message,[2,Promise.reject(Object.assign(new Error(l),i))]}})})},sl=function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r,n,i,o,l,s,c,m;return(0,u.Jh)(this,function(f){switch(f.label){case 0:return n=[(0,u.pi)({},e)],m={},[4,A(e.body,t)];case 1:switch(r=u.pi.apply(void 0,n.concat([(m.body=f.sent(),m)])),o="UnknownError",o=z(e,r.body)){case"ObjectNotInActiveTierError":case"com.amazonaws.s3#ObjectNotInActiveTierError":return[3,2]}return[3,4];case 2:return l=[{}],[4,su(r,t)];case 3:return i=u.pi.apply(void 0,[u.pi.apply(void 0,l.concat([f.sent()])),{name:o,$metadata:w(e)}]),[3,5];case 4:o=(s=r.body).code||s.Code||o,i=(0,u.pi)((0,u.pi)({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:w(e)}),f.label=5;case 5:return i.message=c=i.message||i.Message||o,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},cl=function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r,n,i,o,d,l,s;return(0,u.Jh)(this,function(c){switch(c.label){case 0:return n=[(0,u.pi)({},e)],s={},[4,A(e.body,t)];case 1:return r=u.pi.apply(void 0,n.concat([(s.body=c.sent(),s)])),o="UnknownError",o=z(e,r.body),o=(d=r.body).code||d.Code||o,(i=(0,u.pi)((0,u.pi)({},d),{name:""+o,message:d.message||d.Message||o,$fault:"client",$metadata:w(e)})).message=l=i.message||i.Message||o,delete i.Message,[2,Promise.reject(Object.assign(new Error(l),i))]}})})},Al=function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r,n,i,o,d,l,s;return(0,u.Jh)(this,function(c){switch(c.label){case 0:return n=[(0,u.pi)({},e)],s={},[4,A(e.body,t)];case 1:return r=u.pi.apply(void 0,n.concat([(s.body=c.sent(),s)])),o="UnknownError",o=z(e,r.body),o=(d=r.body).code||d.Code||o,(i=(0,u.pi)((0,u.pi)({},d),{name:""+o,message:d.message||d.Message||o,$fault:"client",$metadata:w(e)})).message=l=i.message||i.Message||o,delete i.Message,[2,Promise.reject(Object.assign(new Error(l),i))]}})})},Jl=function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r,n,i,o,l,s,c,m,f;return(0,u.Jh)(this,function(v){switch(v.label){case 0:return n=[(0,u.pi)({},e)],f={},[4,A(e.body,t)];case 1:switch(r=u.pi.apply(void 0,n.concat([(f.body=v.sent(),f)])),o="UnknownError",o=z(e,r.body)){case"InvalidObjectState":case"com.amazonaws.s3#InvalidObjectState":return[3,2];case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":return[3,4]}return[3,6];case 2:return l=[{}],[4,iu(r,t)];case 3:return i=u.pi.apply(void 0,[u.pi.apply(void 0,l.concat([v.sent()])),{name:o,$metadata:w(e)}]),[3,7];case 4:return s=[{}],[4,Tr(r,t)];case 5:return i=u.pi.apply(void 0,[u.pi.apply(void 0,s.concat([v.sent()])),{name:o,$metadata:w(e)}]),[3,7];case 6:o=(c=r.body).code||c.Code||o,i=(0,u.pi)((0,u.pi)({},c),{name:""+o,message:c.message||c.Message||o,$fault:"client",$metadata:w(e)}),v.label=7;case 7:return i.message=m=i.message||i.Message||o,delete i.Message,[2,Promise.reject(Object.assign(new Error(m),i))]}})})},mc=function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r,n,i,o,l,s,c,m;return(0,u.Jh)(this,function(f){switch(f.label){case 0:return n=[(0,u.pi)({},e)],m={},[4,A(e.body,t)];case 1:switch(r=u.pi.apply(void 0,n.concat([(m.body=f.sent(),m)])),o="UnknownError",o=z(e,r.body)){case"NoSuchBucket":case"com.amazonaws.s3#NoSuchBucket":return[3,2]}return[3,4];case 2:return l=[{}],[4,kt(r,t)];case 3:return i=u.pi.apply(void 0,[u.pi.apply(void 0,l.concat([f.sent()])),{name:o,$metadata:w(e)}]),[3,5];case 4:o=(s=r.body).code||s.Code||o,i=(0,u.pi)((0,u.pi)({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:w(e)}),f.label=5;case 5:return i.message=c=i.message||i.Message||o,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},hc=function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r,n,i,o,l,s,c,m;return(0,u.Jh)(this,function(f){switch(f.label){case 0:return n=[(0,u.pi)({},e)],m={},[4,A(e.body,t)];case 1:switch(r=u.pi.apply(void 0,n.concat([(m.body=f.sent(),m)])),o="UnknownError",o=z(e,r.body)){case"NoSuchBucket":case"com.amazonaws.s3#NoSuchBucket":return[3,2]}return[3,4];case 2:return l=[{}],[4,kt(r,t)];case 3:return i=u.pi.apply(void 0,[u.pi.apply(void 0,l.concat([f.sent()])),{name:o,$metadata:w(e)}]),[3,5];case 4:o=(s=r.body).code||s.Code||o,i=(0,u.pi)((0,u.pi)({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:w(e)}),f.label=5;case 5:return i.message=c=i.message||i.Message||o,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}})})},wc=function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r,n,i,o,d,l,s;return(0,u.Jh)(this,function(c){switch(c.label){case 0:return n=[(0,u.pi)({},e)],s={},[4,A(e.body,t)];case 1:return r=u.pi.apply(void 0,n.concat([(s.body=c.sent(),s)])),o="UnknownError",o=z(e,r.body),o=(d=r.body).code||d.Code||o,(i=(0,u.pi)((0,u.pi)({},d),{name:""+o,message:d.message||d.Message||o,$fault:"client",$metadata:w(e)})).message=l=i.message||i.Message||o,delete i.Message,[2,Promise.reject(Object.assign(new Error(l),i))]}})})},Lc=function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r,n,i,o,d,l,s;return(0,u.Jh)(this,function(c){switch(c.label){case 0:return n=[(0,u.pi)({},e)],s={},[4,A(e.body,t)];case 1:return r=u.pi.apply(void 0,n.concat([(s.body=c.sent(),s)])),o="UnknownError",o=z(e,r.body),o=(d=r.body).code||d.Code||o,(i=(0,u.pi)((0,u.pi)({},d),{name:""+o,message:d.message||d.Message||o,$fault:"client",$metadata:w(e)})).message=l=i.message||i.Message||o,delete i.Message,[2,Promise.reject(Object.assign(new Error(l),i))]}})})},$c=function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r,n,i,o,d,l,s;return(0,u.Jh)(this,function(c){switch(c.label){case 0:return n=[(0,u.pi)({},e)],s={},[4,A(e.body,t)];case 1:return r=u.pi.apply(void 0,n.concat([(s.body=c.sent(),s)])),o="UnknownError",o=z(e,r.body),o=(d=r.body).code||d.Code||o,(i=(0,u.pi)((0,u.pi)({},d),{name:""+o,message:d.message||d.Message||o,$fault:"client",$metadata:w(e)})).message=l=i.message||i.Message||o,delete i.Message,[2,Promise.reject(Object.assign(new Error(l),i))]}})})},iu=function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r,n;return(0,u.Jh)(this,function(i){return r={name:"InvalidObjectState",$fault:"client",$metadata:w(e),AccessTier:void 0,StorageClass:void 0},void 0!==(n=e.body).AccessTier&&(r.AccessTier=n.AccessTier),void 0!==n.StorageClass&&(r.StorageClass=n.StorageClass),[2,r]})})},kt=function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){return(0,u.Jh)(this,function(i){return[2,{name:"NoSuchBucket",$fault:"client",$metadata:w(e)}]})})},Tr=function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){return(0,u.Jh)(this,function(i){return[2,{name:"NoSuchKey",$fault:"client",$metadata:w(e)}]})})},au=function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){return(0,u.Jh)(this,function(i){return[2,{name:"NoSuchUpload",$fault:"client",$metadata:w(e)}]})})},su=function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){return(0,u.Jh)(this,function(i){return[2,{name:"ObjectNotInActiveTierError",$fault:"client",$metadata:w(e)}]})})},Su=function(e,t){return e.filter(function(r){return null!=r}).map(function(r){return null===r?null:function(e,t){var r=new Nr("CompletedPart");if(null!=e.ETag){var n=new Nr("ETag").addChildNode(new jo(e.ETag)).withName("ETag");r.addChildNode(n)}return null!=e.PartNumber&&(n=new Nr("PartNumber").addChildNode(new jo(String(e.PartNumber))).withName("PartNumber"),r.addChildNode(n)),r}(r).withName("member")})},Br=function(e,t){return(e||[]).filter(function(r){return null!=r}).map(function(r){return null===r?null:function(e,t){var r={Prefix:void 0};return void 0!==e.Prefix&&(r.Prefix=e.Prefix),r}(r)})},es=function(e,t){return(e||[]).filter(function(r){return null!=r}).map(function(r){return null===r?null:function(e,t){var r={Key:void 0,LastModified:void 0,ETag:void 0,Size:void 0,StorageClass:void 0,Owner:void 0};return void 0!==e.Key&&(r.Key=e.Key),void 0!==e.LastModified&&(r.LastModified=new Date(e.LastModified)),void 0!==e.ETag&&(r.ETag=e.ETag),void 0!==e.Size&&(r.Size=parseInt(e.Size)),void 0!==e.StorageClass&&(r.StorageClass=e.StorageClass),void 0!==e.Owner&&(r.Owner=He(e.Owner,t)),r}(r,t)})},He=function(e,t){var r={DisplayName:void 0,ID:void 0};return void 0!==e.DisplayName&&(r.DisplayName=e.DisplayName),void 0!==e.ID&&(r.ID=e.ID),r},w=function(e){var t;return{httpStatusCode:e.statusCode,requestId:null!==(t=e.headers["x-amzn-requestid"])&&void 0!==t?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},ee=function(e,t){return void 0===e&&(e=new Uint8Array),e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array)},h=function(e){return!(null==e||""===e||Object.getOwnPropertyNames(e).includes("length")&&0==e.length||Object.getOwnPropertyNames(e).includes("size")&&0==e.size)},A=function(e,t){return function(e,t){return ee(e,t).then(function(r){return t.utf8Encoder(r)})}(e,t).then(function(r){if(r.length){var n=(0,Fd.parse)(r,{attributeNamePrefix:"",ignoreAttributes:!1,parseNodeValue:!1,tagValueProcessor:function(s,c){return function(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,'"').replace(/>/g,">").replace(/</g,"<")}(s)}}),i="#text",o=Object.keys(n)[0],d=n[o];return d[i]&&(d[o]=d[i],delete d[i]),(0,E.sT)(d)}return{}})},z=function(e,t){return void 0!==t.Code?t.Code:404==e.statusCode?"NotFound":""},De=function(){return(De=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function vr(a,e){var t="function"==typeof Symbol&&a[Symbol.iterator];if(!t)return a;var n,o,r=t.call(a),i=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(d){o={error:d}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(o)throw o.error}}return i}var os=function(e){return"string"==typeof e&&0===e.indexOf("arn:")&&e.split(":").length>=6},kh=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,xh=/(\d+\.){3}\d+/,Ph=/\.\./,ss=/\./,Nh=/^(.+\.)?s3[.-]([a-z0-9-]+)\./,ds=/^s3(-external-1)?\.amazonaws\.com$/,Xt="amazonaws.com",Xr=function(e){return Rt(e)?e.replace(/fips-|-fips/,""):e},ls=function(e){var t=e.match(Nh);return[t[2],e.replace(new RegExp("^"+t[0]),"")]},Rt=function(e){return e.startsWith("fips-")||e.endsWith("-fips")},cs=function(e,t){return e===t||Xr(e)===t||e===Xr(t)},us=function(e,t){if(void 0===t&&(t={tlsCompatible:!0}),e.length>=64||!/^[a-z0-9][a-z0-9.-]+[a-z0-9]$/.test(e)||/(\d+\.){3}\d+/.test(e)||/[.-]{2}/.test(e)||(null==t?void 0:t.tlsCompatible)&&ss.test(e))throw new Error("Invalid DNS label "+e)},fs=function(e){var t=e.isCustomEndpoint,i=e.accelerateEndpoint;if(t){if(e.dualstackEndpoint)throw new Error("Dualstack endpoint is not supported with custom endpoint");if(i)throw new Error("Accelerate endpoint is not supported with custom endpoint")}return function(e){return"string"==typeof e.bucketName}(e)?Gh(De(De({},e),{isCustomEndpoint:t})):Fh(De(De({},e),{isCustomEndpoint:t}))},Fh=function(e){var t=e.isCustomEndpoint,r=e.baseHostname,n=vr(t?[e.clientRegion,r]:function(e){return ds.test(e)?[e.replace("."+Xt,""),Xt]:ls(e)}(r),2),i=n[0],o=n[1],l=e.dualstackEndpoint,s=void 0!==l&&l,c=e.accelerateEndpoint,f=e.tlsCompatible,v=void 0===f||f,_=e.useArnRegion,N=e.bucketName,F=e.clientPartition,J=void 0===F?"aws":F,ne=e.clientSigningRegion,de=void 0===ne?i:ne;!function(e){if(e.pathStyleEndpoint)throw new Error("Path-style S3 endpoint is not supported when bucket is an ARN");if(e.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported when bucket is an ARN");if(!e.tlsCompatible)throw new Error("HTTPS is required when bucket is an ARN")}({pathStyleEndpoint:e.pathStyleEndpoint,accelerateEndpoint:void 0!==c&&c,tlsCompatible:v});var ie=N.service,ue=N.partition,oe=N.accountId,we=N.region,ce=N.resource;(function(e){if("s3"!==e&&"s3-outposts"!==e)throw new Error("Expect 's3' or 's3-outposts' in ARN service component")})(ie),function(e,t){if(e!==t.clientPartition)throw new Error('Partition in ARN is incompatible, got "'+e+'" but expected "'+t.clientPartition+'"')}(ue,{clientPartition:J}),function(e){if(!/[0-9]{12}/.exec(e))throw new Error("Access point ARN accountID does not match regex '[0-9]{12}'")}(oe),function(e,t){if(""===e)throw new Error("ARN region is empty");if(!t.useArnRegion&&!cs(e,t.clientRegion)&&!cs(e,t.clientSigningRegion))throw new Error("Region in ARN is incompatible, got "+e+" but expected "+t.clientRegion);if(t.useArnRegion&&Rt(e))throw new Error("Endpoint does not support FIPS region")}(we,{useArnRegion:_,clientRegion:i,clientSigningRegion:de});var xe=function(e){var t=e.includes(":")?":":"/",r=vr(e.split(t)),n=r[0],i=r.slice(1);if("accesspoint"===n){if(1!==i.length||""===i[0])throw new Error("Access Point ARN should have one resource accesspoint"+t+"{accesspointname}");return{accesspointName:i[0]}}if("outpost"===n){if(!i[0]||"accesspoint"!==i[1]||!i[2]||3!==i.length)throw new Error("Outpost ARN should have resource outpost"+t+"{outpostId}"+t+"accesspoint"+t+"{accesspointName}");var o=vr(i,3);return{outpostId:o[0],accesspointName:o[2]}}throw new Error("ARN resource should begin with 'accesspoint"+t+"' or 'outpost"+t+"'")}(ce),Oe=xe.accesspointName,_e=xe.outpostId;us(Oe+"-"+oe,{tlsCompatible:v});var ze=_?we:i,Ae=_?we:de;return _e?(function(e){if("s3-outposts"!==e)throw new Error("Expect 's3-posts' in Outpost ARN service component")}(ie),us(_e,{tlsCompatible:v}),function(e){if(e)throw new Error("Dualstack endpoint is not supported with Outpost")}(s),function(e){if(Rt(null!=e?e:""))throw new Error("FIPS region is not supported with Outpost, got "+e)}(ze),{bucketEndpoint:!0,hostname:Oe+"-"+oe+"."+_e+(t?"":".s3-outposts."+ze)+"."+o,signingRegion:Ae,signingService:"s3-outposts"}):(function(e){if("s3"!==e)throw new Error("Expect 's3' in Accesspoint ARN service component")}(ie),{bucketEndpoint:!0,hostname:Oe+"-"+oe+(t?"":".s3-accesspoint"+(s?".dualstack":"")+"."+ze)+"."+o,signingRegion:Ae})},Gh=function(e){var t=e.accelerateEndpoint,r=void 0!==t&&t,i=e.baseHostname,o=e.bucketName,d=e.dualstackEndpoint,l=void 0!==d&&d,s=e.pathStyleEndpoint,c=void 0!==s&&s,m=e.tlsCompatible,f=void 0===m||m,v=e.isCustomEndpoint,N=vr(void 0!==v&&v?[e.clientRegion,i]:function(e){return ds.test(e)?["us-east-1",Xt]:ls(e)}(i),2),F=N[0],J=N[1];return c||!function(e){return kh.test(e)&&!xh.test(e)&&!Ph.test(e)}(o)||f&&ss.test(o)?{bucketEndpoint:!1,hostname:l?"s3.dualstack."+F+"."+J:i}:(r?i="s3-accelerate"+(l?".dualstack":"")+"."+J:l&&(i="s3.dualstack."+F+"."+J),{bucketEndpoint:!0,hostname:o+"."+i})},Hh=function(e){return function(t,r){return function(n){return function(a,e,t,r){return new(t||(t=Promise))(function(i,o){function d(c){try{s(r.next(c))}catch(m){o(m)}}function l(c){try{s(r.throw(c))}catch(m){o(m)}}function s(c){c.done?i(c.value):function(i){return i instanceof t?i:new t(function(o){o(i)})}(c.value).then(d,l)}s((r=r.apply(a,e||[])).next())})}(void 0,void 0,void 0,function(){var i,o,d,l,c,m,f,v,_,N,F,de,ie,s,ue,oe,J,ne;return function(a,e){var r,n,i,o,t={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:d(0),throw:d(1),return:d(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function d(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return t.label++,{value:s[1],done:!1};case 5:t.label++,n=s[1],s=[0];continue;case 7:s=t.ops.pop(),t.trys.pop();continue;default:if(!(i=(i=t.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){t=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){t.label=s[1];break}if(6===s[0]&&t.label<i[1]){t.label=i[1],i=s;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(s);break}i[2]&&t.ops.pop(),t.trys.pop();continue}s=e.call(a,t)}catch(c){s=[6,c],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}(this,function(we){switch(we.label){case 0:return i=n.input.Bucket,o=e.bucketEndpoint,be.aW.isInstance(d=n.request)?e.bucketEndpoint?(d.hostname=i,[3,7]):[3,1]:[3,8];case 1:return os(i)?(l=function(e){var t=e.split(":");if(t.length<6||"arn"!==t[0])throw new Error("Malformed ARN");var r=function(a,e){var t="function"==typeof Symbol&&a[Symbol.iterator];if(!t)return a;var n,o,r=t.call(a),i=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(d){o={error:d}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(o)throw o.error}}return i}(t);return{partition:r[1],service:r[2],region:r[3],accountId:r[4],resource:r.slice(5).join(":")}}(i),c=Xr,[4,e.region()]):[3,5];case 2:return s=c.apply(void 0,[we.sent()]),[4,e.regionInfoProvider(s)];case 3:return m=we.sent()||{},f=m.partition,_=void 0===(v=m.signingRegion)?s:v,[4,e.useArnRegion()];case 4:return N=we.sent(),F=fs({bucketName:l,baseHostname:d.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:e.useDualstackEndpoint,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:"https:"===d.protocol,useArnRegion:N,clientPartition:f,clientSigningRegion:_,clientRegion:s,isCustomEndpoint:e.isCustomEndpoint}),J=F.hostname,ne=F.bucketEndpoint,ie=F.signingService,(de=F.signingRegion)&&de!==_&&(r.signing_region=de),ie&&"s3"!==ie&&(r.signing_service=ie),d.hostname=J,o=ne,[3,7];case 5:return ue=Xr,[4,e.region()];case 6:s=ue.apply(void 0,[we.sent()]),oe=fs({bucketName:i,clientRegion:s,baseHostname:d.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:e.useDualstackEndpoint,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:"https:"===d.protocol,isCustomEndpoint:e.isCustomEndpoint}),ne=oe.bucketEndpoint,d.hostname=J=oe.hostname,o=ne,we.label=7;case 7:o&&(d.path=d.path.replace(/^(\/)?[^\/]+/,""),""===d.path&&(d.path="/")),we.label=8;case 8:return[2,t(De(De({},n),{request:d}))]}})})}}},Vh={tags:["BUCKET_ENDPOINT"],name:"bucketEndpointMiddleware",relation:"before",toMiddleware:"hostHeaderMiddleware",override:!0},Ie=function(e){return{applyToStack:function(r){r.addRelativeTo(Hh(e),Vh)}}},gr=function(){return(gr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Mt(a,e,t,r){return new(t||(t=Promise))(function(i,o){function d(c){try{s(r.next(c))}catch(m){o(m)}}function l(c){try{s(r.throw(c))}catch(m){o(m)}}function s(c){c.done?i(c.value):function(i){return i instanceof t?i:new t(function(o){o(i)})}(c.value).then(d,l)}s((r=r.apply(a,e||[])).next())})}function Lt(a,e){var r,n,i,o,t={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:d(0),throw:d(1),return:d(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function d(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return t.label++,{value:s[1],done:!1};case 5:t.label++,n=s[1],s=[0];continue;case 7:s=t.ops.pop(),t.trys.pop();continue;default:if(!(i=(i=t.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){t=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){t.label=s[1];break}if(6===s[0]&&t.label<i[1]){t.label=i[1],i=s;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(s);break}i[2]&&t.ops.pop(),t.trys.pop();continue}s=e.call(a,t)}catch(c){s=[6,c],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}var Qh={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},e_={step:"build",tags:["USE_REGIONAL_ENDPOINT","S3"],name:"useRegionalEndpointMiddleware",override:!0},vs=function(e,t){return void 0===e&&(e=new Uint8Array),e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array)},n_=function(e,t){return vs(e,t).then(function(r){return t.utf8Encoder(r)})},i_={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},hs=function(e){return{applyToStack:function(r){r.addRelativeTo(function(e){return function(t){return function(r){return Mt(void 0,void 0,void 0,function(){var n,i,o,d,l,s,c;return Lt(this,function(m){switch(m.label){case 0:return[4,t(r)];case 1:return n=m.sent(),be.Zn.isInstance(i=n.response)?(d=i.body,(o=i.statusCode)<200&&o>=300?[2,n]:[4,vs(d,e)]):[2,n];case 2:return l=m.sent(),[4,n_(l,e)];case 3:if(s=m.sent(),0===l.length)throw(c=new Error("S3 aborted request")).name="InternalError",c;return s&&s.match("<Error>")&&(i.statusCode=400),i.body=l,[2,n]}})})}}}(e),i_)}}},Me=X(73961),er=function(){return(er=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};var l_={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},wr=function(e){return{applyToStack:function(r){r.add(function(a){var e=this;return function(t){return function(r){return function(a,e,t,r){return new(t||(t=Promise))(function(i,o){function d(c){try{s(r.next(c))}catch(m){o(m)}}function l(c){try{s(r.throw(c))}catch(m){o(m)}}function s(c){c.done?i(c.value):function(i){return i instanceof t?i:new t(function(o){o(i)})}(c.value).then(d,l)}s((r=r.apply(a,e||[])).next())})}(e,void 0,void 0,function(){var n,i,o,d,l,s,c,m,f,v,_,N,F,J,ne,de,ie;return function(a,e){var r,n,i,o,t={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:d(0),throw:d(1),return:d(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function d(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return t.label++,{value:s[1],done:!1};case 5:t.label++,n=s[1],s=[0];continue;case 7:s=t.ops.pop(),t.trys.pop();continue;default:if(!(i=(i=t.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){t=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){t.label=s[1];break}if(6===s[0]&&t.label<i[1]){t.label=i[1],i=s;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(s);break}i[2]&&t.ops.pop(),t.trys.pop();continue}s=e.call(a,t)}catch(c){s=[6,c],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}(this,function(ue){switch(ue.label){case 0:n=er({},r.input),i=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}],ue.label=1;case 1:ue.trys.push([1,6,7,8]),o=function(a){var e="function"==typeof Symbol&&Symbol.iterator,t=e&&a[e],r=0;if(t)return t.call(a);if(a&&"number"==typeof a.length)return{next:function(){return a&&r>=a.length&&(a=void 0),{value:a&&a[r++],done:!a}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),d=o.next(),ue.label=2;case 2:return d.done?[3,5]:(s=n[(l=d.value).target])?(c=ArrayBuffer.isView(s)?new Uint8Array(s.buffer,s.byteOffset,s.byteLength):"string"==typeof s?a.utf8Decoder(s):new Uint8Array(s),m=a.base64Encoder(c),(f=new a.md5).update(c),v=[er({},n)],(ie={})[l.target]=m,_=l.hash,F=(N=a).base64Encoder,[4,f.digest()]):[3,4];case 3:n=er.apply(void 0,v.concat([(ie[_]=F.apply(N,[ue.sent()]),ie)])),ue.label=4;case 4:return d=o.next(),[3,2];case 5:return[3,8];case 6:return J=ue.sent(),ne={error:J},[3,8];case 7:try{d&&!d.done&&(de=o.return)&&de.call(o)}finally{if(ne)throw ne.error}return[7];case 8:return[2,t(er(er({},r),{input:n}))]}})})}}}(e),l_)}}},c_=function(a){function e(t){var r=a.call(this)||this;return r.input=t,r}return(0,u.ZT)(e,a),e.prototype.resolveMiddleware=function(t,r,n){this.middlewareStack.use((0,Me.p2)(r,this.serialize,this.deserialize)),this.middlewareStack.use(hs(r)),this.middlewareStack.use(wr(r)),this.middlewareStack.use(Ie(r));var i=t.concat(this.middlewareStack),c=r.requestHandler;return i.resolve(function(m){return c.handle(m.request,n||{})},{logger:r.logger,clientName:"S3Client",commandName:"CopyObjectCommand",inputFilterSensitiveLog:re.filterSensitiveLog,outputFilterSensitiveLog:k.filterSensitiveLog})},e.prototype.serialize=function(t,r){return function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r,n,i,o,l,c;return(0,u.Jh)(this,function(v){switch(v.label){case 0:if(r=(0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)({},h(e.ACL)&&{"x-amz-acl":e.ACL}),h(e.CacheControl)&&{"cache-control":e.CacheControl}),h(e.ContentDisposition)&&{"content-disposition":e.ContentDisposition}),h(e.ContentEncoding)&&{"content-encoding":e.ContentEncoding}),h(e.ContentLanguage)&&{"content-language":e.ContentLanguage}),h(e.ContentType)&&{"content-type":e.ContentType}),h(e.CopySource)&&{"x-amz-copy-source":e.CopySource}),h(e.CopySourceIfMatch)&&{"x-amz-copy-source-if-match":e.CopySourceIfMatch}),h(e.CopySourceIfModifiedSince)&&{"x-amz-copy-source-if-modified-since":(0,E._w)(e.CopySourceIfModifiedSince).toString()}),h(e.CopySourceIfNoneMatch)&&{"x-amz-copy-source-if-none-match":e.CopySourceIfNoneMatch}),h(e.CopySourceIfUnmodifiedSince)&&{"x-amz-copy-source-if-unmodified-since":(0,E._w)(e.CopySourceIfUnmodifiedSince).toString()}),h(e.Expires)&&{expires:(0,E._w)(e.Expires).toString()}),h(e.GrantFullControl)&&{"x-amz-grant-full-control":e.GrantFullControl}),h(e.GrantRead)&&{"x-amz-grant-read":e.GrantRead}),h(e.GrantReadACP)&&{"x-amz-grant-read-acp":e.GrantReadACP}),h(e.GrantWriteACP)&&{"x-amz-grant-write-acp":e.GrantWriteACP}),h(e.MetadataDirective)&&{"x-amz-metadata-directive":e.MetadataDirective}),h(e.TaggingDirective)&&{"x-amz-tagging-directive":e.TaggingDirective}),h(e.ServerSideEncryption)&&{"x-amz-server-side-encryption":e.ServerSideEncryption}),h(e.StorageClass)&&{"x-amz-storage-class":e.StorageClass}),h(e.WebsiteRedirectLocation)&&{"x-amz-website-redirect-location":e.WebsiteRedirectLocation}),h(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),h(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),h(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),h(e.SSEKMSKeyId)&&{"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId}),h(e.SSEKMSEncryptionContext)&&{"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext}),h(e.BucketKeyEnabled)&&{"x-amz-server-side-encryption-bucket-key-enabled":e.BucketKeyEnabled.toString()}),h(e.CopySourceSSECustomerAlgorithm)&&{"x-amz-copy-source-server-side-encryption-customer-algorithm":e.CopySourceSSECustomerAlgorithm}),h(e.CopySourceSSECustomerKey)&&{"x-amz-copy-source-server-side-encryption-customer-key":e.CopySourceSSECustomerKey}),h(e.CopySourceSSECustomerKeyMD5)&&{"x-amz-copy-source-server-side-encryption-customer-key-md5":e.CopySourceSSECustomerKeyMD5}),h(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),h(e.Tagging)&&{"x-amz-tagging":e.Tagging}),h(e.ObjectLockMode)&&{"x-amz-object-lock-mode":e.ObjectLockMode}),h(e.ObjectLockRetainUntilDate)&&{"x-amz-object-lock-retain-until-date":(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()}),h(e.ObjectLockLegalHoldStatus)&&{"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus}),h(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),h(e.ExpectedSourceBucketOwner)&&{"x-amz-source-expected-bucket-owner":e.ExpectedSourceBucketOwner}),void 0!==e.Metadata&&Object.keys(e.Metadata).reduce(function(_,N){var F;return(0,u.pi)((0,u.pi)({},_),((F={})["x-amz-meta-"+N.toLowerCase()]=e.Metadata[N],F))},{})),n="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(n=n.replace("{Bucket}",(0,E.jc)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return n=n.replace("{Key+}",i.split("/").map(function(_){return(0,E.jc)(_)}).join("/")),o={"x-id":"CopyObject"},[4,t.endpoint()];case 1:return l=v.sent(),[2,new be.aW({protocol:void 0===(c=l.protocol)?"https":c,hostname:l.hostname,port:l.port,method:"PUT",headers:r,path:n,query:o,body:void 0})]}})})}(t,r)},e.prototype.deserialize=function(t,r){return function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r,n;return(0,u.Jh)(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,sl(e,t)]:(r={$metadata:w(e),BucketKeyEnabled:void 0,CopyObjectResult:void 0,CopySourceVersionId:void 0,Expiration:void 0,RequestCharged:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSEncryptionContext:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0,VersionId:void 0},void 0!==e.headers["x-amz-expiration"]&&(r.Expiration=e.headers["x-amz-expiration"]),void 0!==e.headers["x-amz-copy-source-version-id"]&&(r.CopySourceVersionId=e.headers["x-amz-copy-source-version-id"]),void 0!==e.headers["x-amz-version-id"]&&(r.VersionId=e.headers["x-amz-version-id"]),void 0!==e.headers["x-amz-server-side-encryption"]&&(r.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["x-amz-server-side-encryption-customer-algorithm"]&&(r.SSECustomerAlgorithm=e.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==e.headers["x-amz-server-side-encryption-customer-key-md5"]&&(r.SSECustomerKeyMD5=e.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(r.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-context"]&&(r.SSEKMSEncryptionContext=e.headers["x-amz-server-side-encryption-context"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(r.BucketKeyEnabled="true"===e.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==e.headers["x-amz-request-charged"]&&(r.RequestCharged=e.headers["x-amz-request-charged"]),[4,A(e.body,t)]);case 1:return n=i.sent(),r.CopyObjectResult=function(e,t){var r={ETag:void 0,LastModified:void 0};return void 0!==e.ETag&&(r.ETag=e.ETag),void 0!==e.LastModified&&(r.LastModified=new Date(e.LastModified)),r}(n),[2,Promise.resolve(r)]}})})}(t,r)},e}(E.mY),_s=function(a){function e(t){var r=a.call(this)||this;return r.input=t,r}return(0,u.ZT)(e,a),e.prototype.resolveMiddleware=function(t,r,n){this.middlewareStack.use((0,Me.p2)(r,this.serialize,this.deserialize)),this.middlewareStack.use(wr(r)),this.middlewareStack.use(Ie(r));var i=t.concat(this.middlewareStack),c=r.requestHandler;return i.resolve(function(m){return c.handle(m.request,n||{})},{logger:r.logger,clientName:"S3Client",commandName:"GetObjectCommand",inputFilterSensitiveLog:mt.filterSensitiveLog,outputFilterSensitiveLog:ft.filterSensitiveLog})},e.prototype.serialize=function(t,r){return function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r,n,i,o,l,c;return(0,u.Jh)(this,function(v){switch(v.label){case 0:if(r=(0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)({},h(e.IfMatch)&&{"if-match":e.IfMatch}),h(e.IfModifiedSince)&&{"if-modified-since":(0,E._w)(e.IfModifiedSince).toString()}),h(e.IfNoneMatch)&&{"if-none-match":e.IfNoneMatch}),h(e.IfUnmodifiedSince)&&{"if-unmodified-since":(0,E._w)(e.IfUnmodifiedSince).toString()}),h(e.Range)&&{range:e.Range}),h(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),h(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),h(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),h(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),h(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),n="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(n=n.replace("{Bucket}",(0,E.jc)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return n=n.replace("{Key+}",i.split("/").map(function(_){return(0,E.jc)(_)}).join("/")),o=(0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)({"x-id":"GetObject"},void 0!==e.ResponseCacheControl&&{"response-cache-control":e.ResponseCacheControl}),void 0!==e.ResponseContentDisposition&&{"response-content-disposition":e.ResponseContentDisposition}),void 0!==e.ResponseContentEncoding&&{"response-content-encoding":e.ResponseContentEncoding}),void 0!==e.ResponseContentLanguage&&{"response-content-language":e.ResponseContentLanguage}),void 0!==e.ResponseContentType&&{"response-content-type":e.ResponseContentType}),void 0!==e.ResponseExpires&&{"response-expires":(e.ResponseExpires.toISOString().split(".")[0]+"Z").toString()}),void 0!==e.VersionId&&{versionId:e.VersionId}),void 0!==e.PartNumber&&{partNumber:e.PartNumber.toString()}),[4,t.endpoint()];case 1:return l=v.sent(),[2,new be.aW({protocol:void 0===(c=l.protocol)?"https":c,hostname:l.hostname,port:l.port,method:"GET",headers:r,path:n,query:o,body:void 0})]}})})}(t,r)},e.prototype.deserialize=function(t,r){return function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r;return(0,u.Jh)(this,function(i){return 200!==e.statusCode&&e.statusCode>=300?[2,Jl(e,t)]:(r={$metadata:w(e),AcceptRanges:void 0,Body:void 0,BucketKeyEnabled:void 0,CacheControl:void 0,ContentDisposition:void 0,ContentEncoding:void 0,ContentLanguage:void 0,ContentLength:void 0,ContentRange:void 0,ContentType:void 0,DeleteMarker:void 0,ETag:void 0,Expiration:void 0,Expires:void 0,LastModified:void 0,Metadata:void 0,MissingMeta:void 0,ObjectLockLegalHoldStatus:void 0,ObjectLockMode:void 0,ObjectLockRetainUntilDate:void 0,PartsCount:void 0,ReplicationStatus:void 0,RequestCharged:void 0,Restore:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0,StorageClass:void 0,TagCount:void 0,VersionId:void 0,WebsiteRedirectLocation:void 0},void 0!==e.headers["x-amz-delete-marker"]&&(r.DeleteMarker="true"===e.headers["x-amz-delete-marker"]),void 0!==e.headers["accept-ranges"]&&(r.AcceptRanges=e.headers["accept-ranges"]),void 0!==e.headers["x-amz-expiration"]&&(r.Expiration=e.headers["x-amz-expiration"]),void 0!==e.headers["x-amz-restore"]&&(r.Restore=e.headers["x-amz-restore"]),void 0!==e.headers["last-modified"]&&(r.LastModified=new Date(e.headers["last-modified"])),void 0!==e.headers["content-length"]&&(r.ContentLength=parseInt(e.headers["content-length"],10)),void 0!==e.headers.etag&&(r.ETag=e.headers.etag),void 0!==e.headers["x-amz-missing-meta"]&&(r.MissingMeta=parseInt(e.headers["x-amz-missing-meta"],10)),void 0!==e.headers["x-amz-version-id"]&&(r.VersionId=e.headers["x-amz-version-id"]),void 0!==e.headers["cache-control"]&&(r.CacheControl=e.headers["cache-control"]),void 0!==e.headers["content-disposition"]&&(r.ContentDisposition=e.headers["content-disposition"]),void 0!==e.headers["content-encoding"]&&(r.ContentEncoding=e.headers["content-encoding"]),void 0!==e.headers["content-language"]&&(r.ContentLanguage=e.headers["content-language"]),void 0!==e.headers["content-range"]&&(r.ContentRange=e.headers["content-range"]),void 0!==e.headers["content-type"]&&(r.ContentType=e.headers["content-type"]),void 0!==e.headers.expires&&(r.Expires=new Date(e.headers.expires)),void 0!==e.headers["x-amz-website-redirect-location"]&&(r.WebsiteRedirectLocation=e.headers["x-amz-website-redirect-location"]),void 0!==e.headers["x-amz-server-side-encryption"]&&(r.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["x-amz-server-side-encryption-customer-algorithm"]&&(r.SSECustomerAlgorithm=e.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==e.headers["x-amz-server-side-encryption-customer-key-md5"]&&(r.SSECustomerKeyMD5=e.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(r.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(r.BucketKeyEnabled="true"===e.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==e.headers["x-amz-storage-class"]&&(r.StorageClass=e.headers["x-amz-storage-class"]),void 0!==e.headers["x-amz-request-charged"]&&(r.RequestCharged=e.headers["x-amz-request-charged"]),void 0!==e.headers["x-amz-replication-status"]&&(r.ReplicationStatus=e.headers["x-amz-replication-status"]),void 0!==e.headers["x-amz-mp-parts-count"]&&(r.PartsCount=parseInt(e.headers["x-amz-mp-parts-count"],10)),void 0!==e.headers["x-amz-tagging-count"]&&(r.TagCount=parseInt(e.headers["x-amz-tagging-count"],10)),void 0!==e.headers["x-amz-object-lock-mode"]&&(r.ObjectLockMode=e.headers["x-amz-object-lock-mode"]),void 0!==e.headers["x-amz-object-lock-retain-until-date"]&&(r.ObjectLockRetainUntilDate=new Date(e.headers["x-amz-object-lock-retain-until-date"])),void 0!==e.headers["x-amz-object-lock-legal-hold"]&&(r.ObjectLockLegalHoldStatus=e.headers["x-amz-object-lock-legal-hold"]),Object.keys(e.headers).forEach(function(o){void 0===r.Metadata&&(r.Metadata={}),o.startsWith("x-amz-meta-")&&(r.Metadata[o.substring(11)]=e.headers[o])}),r.Body=e.body,[2,Promise.resolve(r)])})})}(t,r)},e}(E.mY),u_=function(a){function e(t){var r=a.call(this)||this;return r.input=t,r}return(0,u.ZT)(e,a),e.prototype.resolveMiddleware=function(t,r,n){this.middlewareStack.use((0,Me.p2)(r,this.serialize,this.deserialize)),this.middlewareStack.use(Ie(r));var i=t.concat(this.middlewareStack),c=r.requestHandler;return i.resolve(function(m){return c.handle(m.request,n||{})},{logger:r.logger,clientName:"S3Client",commandName:"DeleteObjectCommand",inputFilterSensitiveLog:Jr.filterSensitiveLog,outputFilterSensitiveLog:Wr.filterSensitiveLog})},e.prototype.serialize=function(t,r){return function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r,n,i,o,l,c;return(0,u.Jh)(this,function(v){switch(v.label){case 0:if(r=(0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)({},h(e.MFA)&&{"x-amz-mfa":e.MFA}),h(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),h(e.BypassGovernanceRetention)&&{"x-amz-bypass-governance-retention":e.BypassGovernanceRetention.toString()}),h(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),n="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(n=n.replace("{Bucket}",(0,E.jc)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return n=n.replace("{Key+}",i.split("/").map(function(_){return(0,E.jc)(_)}).join("/")),o=(0,u.pi)({"x-id":"DeleteObject"},void 0!==e.VersionId&&{versionId:e.VersionId}),[4,t.endpoint()];case 1:return l=v.sent(),[2,new be.aW({protocol:void 0===(c=l.protocol)?"https":c,hostname:l.hostname,port:l.port,method:"DELETE",headers:r,path:n,query:o,body:void 0})]}})})}(t,r)},e.prototype.deserialize=function(t,r){return function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r;return(0,u.Jh)(this,function(n){switch(n.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,Al(e,t)]:(r={$metadata:w(e),DeleteMarker:void 0,RequestCharged:void 0,VersionId:void 0},void 0!==e.headers["x-amz-delete-marker"]&&(r.DeleteMarker="true"===e.headers["x-amz-delete-marker"]),void 0!==e.headers["x-amz-version-id"]&&(r.VersionId=e.headers["x-amz-version-id"]),void 0!==e.headers["x-amz-request-charged"]&&(r.RequestCharged=e.headers["x-amz-request-charged"]),[4,ee(e.body,t)]);case 1:return n.sent(),[2,Promise.resolve(r)]}})})}(t,r)},e}(E.mY),f_=function(a){function e(t){var r=a.call(this)||this;return r.input=t,r}return(0,u.ZT)(e,a),e.prototype.resolveMiddleware=function(t,r,n){this.middlewareStack.use((0,Me.p2)(r,this.serialize,this.deserialize)),this.middlewareStack.use(Ie(r));var i=t.concat(this.middlewareStack),c=r.requestHandler;return i.resolve(function(m){return c.handle(m.request,n||{})},{logger:r.logger,clientName:"S3Client",commandName:"ListObjectsCommand",inputFilterSensitiveLog:ht.filterSensitiveLog,outputFilterSensitiveLog:vt.filterSensitiveLog})},e.prototype.serialize=function(t,r){return function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r,n,i,o,l,c;return(0,u.Jh)(this,function(v){switch(v.label){case 0:if(r=(0,u.pi)((0,u.pi)({},h(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),h(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),n="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return n=n.replace("{Bucket}",(0,E.jc)(i)),o=(0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)({},void 0!==e.Delimiter&&{delimiter:e.Delimiter}),void 0!==e.EncodingType&&{"encoding-type":e.EncodingType}),void 0!==e.Marker&&{marker:e.Marker}),void 0!==e.MaxKeys&&{"max-keys":e.MaxKeys.toString()}),void 0!==e.Prefix&&{prefix:e.Prefix}),[4,t.endpoint()];case 1:return l=v.sent(),[2,new be.aW({protocol:void 0===(c=l.protocol)?"https":c,hostname:l.hostname,port:l.port,method:"GET",headers:r,path:n,query:o,body:void 0})]}})})}(t,r)},e.prototype.deserialize=function(t,r){return function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r,n;return(0,u.Jh)(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,mc(e,t)]:(r={$metadata:w(e),CommonPrefixes:void 0,Contents:void 0,Delimiter:void 0,EncodingType:void 0,IsTruncated:void 0,Marker:void 0,MaxKeys:void 0,Name:void 0,NextMarker:void 0,Prefix:void 0},[4,A(e.body,t)]);case 1:return""===(n=i.sent()).CommonPrefixes&&(r.CommonPrefixes=[]),void 0!==n.CommonPrefixes&&(r.CommonPrefixes=Br((0,E.L)(n.CommonPrefixes))),""===n.Contents&&(r.Contents=[]),void 0!==n.Contents&&(r.Contents=es((0,E.L)(n.Contents),t)),void 0!==n.Delimiter&&(r.Delimiter=n.Delimiter),void 0!==n.EncodingType&&(r.EncodingType=n.EncodingType),void 0!==n.IsTruncated&&(r.IsTruncated="true"==n.IsTruncated),void 0!==n.Marker&&(r.Marker=n.Marker),void 0!==n.MaxKeys&&(r.MaxKeys=parseInt(n.MaxKeys)),void 0!==n.Name&&(r.Name=n.Name),void 0!==n.NextMarker&&(r.NextMarker=n.NextMarker),void 0!==n.Prefix&&(r.Prefix=n.Prefix),[2,Promise.resolve(r)]}})})}(t,r)},e}(E.mY),gs=X(91993);function m_(a){var e=a.port,t=a.query,r=a.protocol,n=a.path,i=a.hostname;r&&":"!==r.substr(-1)&&(r+=":"),e&&(i+=":"+e),n&&"/"!==n.charAt(0)&&(n="/"+n);var o=t?(0,gs.I)(t):"";return o&&"?"!==o[0]&&(o="?"+o),r+"//"+i+n+o}function ys(a,e,t,r){return new(t||(t=Promise))(function(i,o){function d(c){try{s(r.next(c))}catch(m){o(m)}}function l(c){try{s(r.throw(c))}catch(m){o(m)}}function s(c){c.done?i(c.value):function(i){return i instanceof t?i:new t(function(o){o(i)})}(c.value).then(d,l)}s((r=r.apply(a,e||[])).next())})}function bs(a,e){var r,n,i,o,t={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:d(0),throw:d(1),return:d(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function d(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return t.label++,{value:s[1],done:!1};case 5:t.label++,n=s[1],s=[0];continue;case 7:s=t.ops.pop(),t.trys.pop();continue;default:if(!(i=(i=t.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){t=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){t.label=s[1];break}if(6===s[0]&&t.label<i[1]){t.label=i[1],i=s;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(s);break}i[2]&&t.ops.pop(),t.trys.pop();continue}s=e.call(a,t)}catch(c){s=[6,c],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}function h_(a,e){return ys(this,void 0,void 0,function(){var t,r,i=this;return bs(this,function(o){switch(o.label){case 0:return t=function(l){return function(s){return ys(i,void 0,void 0,function(){return bs(this,function(c){return[2,{output:{request:s.request},response:void 0}]})})}},(r=a.middlewareStack.clone()).add(t,{step:"build",priority:"low"}),[4,e.resolveMiddleware(r,a.config,void 0)(e).then(function(d){return d.output.request})];case 1:return[2,o.sent()]}})})}var Lr=function(){return(Lr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};var b_=X(10921),S_=function(){function a(e){var t=Lr({service:e.signingName||e.service||"s3",uriEscapePath:e.uriEscapePath||!1},e);this.signer=new b_.L1(t)}return a.prototype.presign=function(e,t){void 0===t&&(t={});var r=t.unsignableHeaders,n=void 0===r?new Set:r,i=t.unhoistableHeaders,o=void 0===i?new Set:i,d=function(a,e){var t={};for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&e.indexOf(r)<0&&(t[r]=a[r]);if(null!=a&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(a);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(a,r[n])&&(t[r[n]]=a[r[n]])}return t}(t,["unsignableHeaders","unhoistableHeaders"]);return function(a,e,t,r){return new(t||(t=Promise))(function(i,o){function d(c){try{s(r.next(c))}catch(m){o(m)}}function l(c){try{s(r.throw(c))}catch(m){o(m)}}function s(c){c.done?i(c.value):function(i){return i instanceof t?i:new t(function(o){o(i)})}(c.value).then(d,l)}s((r=r.apply(a,e||[])).next())})}(this,void 0,void 0,function(){return function(a,e){var r,n,i,o,t={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:d(0),throw:d(1),return:d(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function d(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return t.label++,{value:s[1],done:!1};case 5:t.label++,n=s[1],s=[0];continue;case 7:s=t.ops.pop(),t.trys.pop();continue;default:if(!(i=(i=t.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){t=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){t.label=s[1];break}if(6===s[0]&&t.label<i[1]){t.label=i[1],i=s;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(s);break}i[2]&&t.ops.pop(),t.trys.pop();continue}s=e.call(a,t)}catch(c){s=[6,c],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}(this,function(l){return n.add("content-type"),Object.keys(e.headers).map(function(s){return s.toLowerCase()}).filter(function(s){return s.startsWith("x-amz-server-side-encryption")}).forEach(function(s){o.add(s)}),e.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",e.headers.host||(e.headers.host=e.hostname),[2,this.signer.presign(e,Lr({expiresIn:900,unsignableHeaders:n,unhoistableHeaders:o},d))]})})},a}(),E_=X(9982),Ve=X.n(E_),Ss=X(44497),rr=function(a){return a.NO_CREDENTIALS="No credentials",a.NO_SRC_KEY='source param should be an object with the property "key" with value of type string',a.NO_DEST_KEY='destination param should be an object with the property "key" with value of type string',a.INVALID_BLOB="Object must be an instance of Blob",a}({}),qt=function(a){return a.UPLOAD_PAUSED_MESSAGE="paused",a}({}),k_=function(a,e){var t="function"==typeof Symbol&&a[Symbol.iterator];if(!t)return a;var n,o,r=t.call(a),i=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(d){o={error:d}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(o)throw o.error}}return i},Ft=new U.k("axios-http-handler"),yr="sendUploadProgress",jr="sendDownloadProgress",Es=function(e,t){var r,n;try{for(var i=function(a){var e="function"==typeof Symbol&&Symbol.iterator,t=e&&a[e],r=0;if(t)return t.call(a);if(a&&"number"==typeof a.length)return{next:function(){return a&&r>=a.length&&(a=void 0),{value:a&&a[r++],done:!a}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.entries(e)),o=i.next();!o.done;o=i.next()){var d=k_(o.value,2),l=d[0],s=d[1];l!==t&&l.toUpperCase()===t.toUpperCase()&&(e[t]=s,delete e[l])}}catch(c){r={error:c}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},P_=[function(a,e){return function(a){return"undefined"!=typeof Blob&&a instanceof Blob}(a)?(Es(e,"Content-Type"),Es(e,"Accept"),a):Ve().defaults.transformRequest[0].call(null,a,e)}],N_=function(){function a(e,t,r){void 0===e&&(e={}),this.httpOptions=e,this.emitter=t,this.cancelTokenSource=r}return a.prototype.destroy=function(){},a.prototype.handle=function(e,t){var r=this.httpOptions.requestTimeout,n=t.emitter||this.emitter,i=e.path;if(e.query){var o=(0,gs.I)(e.query);o&&(i+="?"+o)}var d=e.port,s={};s.url=e.protocol+"//"+e.hostname+(d?":"+d:"")+i,s.method=e.method,s.headers=e.headers,delete s.headers.host,e.body?s.data=e.body:s.headers[Object.keys(s.headers).find(function(m){return"content-type"===m.toLowerCase()})]&&(s.data=null),n&&(s.onUploadProgress=function(m){n.emit(yr,m),Ft.debug(m)},s.onDownloadProgress=function(m){n.emit(jr,m),Ft.debug(m)}),this.cancelTokenSource&&(s.cancelToken=this.cancelTokenSource.token),t.cancelTokenSource&&(s.cancelToken=t.cancelTokenSource.token),s.responseType="blob",Ss.t4.isReactNative&&(s.transformRequest=P_);var c=[Ve().request(s).then(function(m){return{response:new be.Zn({headers:m.headers,statusCode:m.status,body:m.data})}}).catch(function(m){var f,v,_;if(m.message!==qt.UPLOAD_PAUSED_MESSAGE&&Ft.error(m.message),Ve().isCancel(m))throw m;return{response:new be.Zn({statusCode:null===(f=m.response)||void 0===f?void 0:f.status,body:null===(v=m.response)||void 0===v?void 0:v.data,headers:null===(_=m.response)||void 0===_?void 0:_.headers})}}),T_(r)];return Promise.race(c)},a}();function T_(a){return void 0===a&&(a=0),new Promise(function(e,t){a&&setTimeout(function(){var r=new Error("Request did not complete within "+a+" ms");r.name="TimeoutError",t(r)},a)})}var B_="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",As="contentLengthMiddleware",br="__uploadInProgress",Ne=function(e,t,r,n,i){if(e){var o={attrs:r};n&&(o.metrics=n),I.Xb.dispatch("storage",{event:t,data:o,message:i},"Storage",B_)}},L_=X(81055),ks=X(79238);function Ur(a){var e="function"==typeof Symbol&&Symbol.iterator,t=e&&a[e],r=0;if(t)return t.call(a);if(a&&"number"==typeof a.length)return{next:function(){return a&&r>=a.length&&(a=void 0),{value:a&&a[r++],done:!a}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}var tr=X(14241),Ht=function(){function a(e){if(this.bytes=e,8!==e.byteLength)throw new Error("Int64 buffers must be exactly 8 bytes")}return a.fromNumber=function(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(e+" is too large (or, if negative, too small) to represent as an Int64");for(var t=new Uint8Array(8),r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&Ps(t),new a(t)},a.prototype.valueOf=function(){var e=this.bytes.slice(0),t=128&e[0];return t&&Ps(e),parseInt((0,tr.N)(e),16)*(t?-1:1)},a.prototype.toString=function(){return String(this.valueOf())},a}();function Ps(a){for(var e=0;e<8;e++)a[e]^=255;for(e=7;e>-1&&(a[e]++,0===a[e]);e--);}var Ns,j_=function(){function a(e,t){this.toUtf8=e,this.fromUtf8=t}return a.prototype.format=function(e){var t,r,n,i,o=[];try{for(var d=Ur(Object.keys(e)),l=d.next();!l.done;l=d.next()){var s=l.value,c=this.fromUtf8(s);o.push(Uint8Array.from([c.byteLength]),c,this.formatHeaderValue(e[s]))}}catch(F){t={error:F}}finally{try{l&&!l.done&&(r=d.return)&&r.call(d)}finally{if(t)throw t.error}}var m=new Uint8Array(o.reduce(function(F,J){return F+J.byteLength},0)),f=0;try{for(var v=Ur(o),_=v.next();!_.done;_=v.next()){var N=_.value;m.set(N,f),f+=N.byteLength}}catch(F){n={error:F}}finally{try{_&&!_.done&&(i=v.return)&&i.call(v)}finally{if(n)throw n.error}}return m},a.prototype.formatHeaderValue=function(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":var t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":var r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":var n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":var i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6),i.setUint16(1,e.value.byteLength,!1);var o=new Uint8Array(i.buffer);return o.set(e.value,3),o;case"string":var d=this.fromUtf8(e.value),l=new DataView(new ArrayBuffer(3+d.byteLength));l.setUint8(0,7),l.setUint16(1,d.byteLength,!1);var s=new Uint8Array(l.buffer);return s.set(d,3),s;case"timestamp":var c=new Uint8Array(9);return c[0]=8,c.set(Ht.fromNumber(e.value.valueOf()).bytes,1),c;case"uuid":if(!W_.test(e.value))throw new Error("Invalid UUID received: "+e.value);var m=new Uint8Array(17);return m[0]=9,m.set((0,tr.H)(e.value.replace(/\-/g,"")),1),m}},a.prototype.parse=function(e){for(var t={},r=0;r<e.byteLength;){var n=e.getUint8(r++),i=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,n));switch(r+=n,e.getUint8(r++)){case 0:t[i]={type:Ts,value:!0};break;case 1:t[i]={type:Ts,value:!1};break;case 2:t[i]={type:U_,value:e.getInt8(r++)};break;case 3:t[i]={type:K_,value:e.getInt16(r,!1)},r+=2;break;case 4:t[i]={type:q_,value:e.getInt32(r,!1)},r+=4;break;case 5:t[i]={type:F_,value:new Ht(new Uint8Array(e.buffer,e.byteOffset+r,8))},r+=8;break;case 6:var o=e.getUint16(r,!1);r+=2,t[i]={type:G_,value:new Uint8Array(e.buffer,e.byteOffset+r,o)},r+=o;break;case 7:var d=e.getUint16(r,!1);r+=2,t[i]={type:H_,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,d))},r+=d;break;case 8:t[i]={type:V_,value:new Date(new Ht(new Uint8Array(e.buffer,e.byteOffset+r,8)).valueOf())},r+=8;break;case 9:var l=new Uint8Array(e.buffer,e.byteOffset+r,16);r+=16,t[i]={type:$_,value:(0,tr.N)(l.subarray(0,4))+"-"+(0,tr.N)(l.subarray(4,6))+"-"+(0,tr.N)(l.subarray(6,8))+"-"+(0,tr.N)(l.subarray(8,10))+"-"+(0,tr.N)(l.subarray(10))};break;default:throw new Error("Unrecognized header type tag")}}return t},a}();!function(a){a[a.boolTrue=0]="boolTrue",a[a.boolFalse=1]="boolFalse",a[a.byte=2]="byte",a[a.short=3]="short",a[a.integer=4]="integer",a[a.long=5]="long",a[a.byteArray=6]="byteArray",a[a.string=7]="string",a[a.timestamp=8]="timestamp",a[a.uuid=9]="uuid"}(Ns||(Ns={}));var Ts="boolean",U_="byte",K_="short",q_="integer",F_="long",G_="binary",H_="string",V_="timestamp",$_="uuid",W_=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,Os=function(){function a(e,t){this.headerMarshaller=new j_(e,t)}return a.prototype.marshall=function(e){var r=e.body,n=this.headerMarshaller.format(e.headers),i=n.byteLength+r.byteLength+16,o=new Uint8Array(i),d=new DataView(o.buffer,o.byteOffset,o.byteLength),l=new ks.Crc32;return d.setUint32(0,i,!1),d.setUint32(4,n.byteLength,!1),d.setUint32(8,l.update(o.subarray(0,8)).digest(),!1),o.set(n,12),o.set(r,n.byteLength+12),d.setUint32(i-4,l.update(o.subarray(8,i-4)).digest(),!1),o},a.prototype.unmarshall=function(e){var t=function(a){var e=a.byteLength,t=a.byteOffset,r=a.buffer;if(e<16)throw new Error("Provided message too short to accommodate event stream message overhead");var n=new DataView(r,t,e),i=n.getUint32(0,!1);if(e!==i)throw new Error("Reported message length does not match received message length");var o=n.getUint32(4,!1),d=n.getUint32(8,!1),l=n.getUint32(e-4,!1),s=(new ks.Crc32).update(new Uint8Array(r,t,8));if(d!==s.digest())throw new Error("The prelude checksum specified in the message ("+d+") does not match the calculated CRC32 checksum ("+s.digest()+")");if(s.update(new Uint8Array(r,t+8,e-12)),l!==s.digest())throw new Error("The message checksum ("+s.digest()+") did not match the expected value of "+l);return{headers:new DataView(r,t+8+4,o),body:new Uint8Array(r,t+8+4+o,i-o-16)}}(e),n=t.body;return{headers:this.headerMarshaller.parse(t.headers),body:n}},a.prototype.formatHeaders=function(e){return this.headerMarshaller.format(e)},a}();function $t(a,e){var r,n,i,o,t={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:d(0),throw:d(1),return:d(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function d(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return t.label++,{value:s[1],done:!1};case 5:t.label++,n=s[1],s=[0];continue;case 7:s=t.ops.pop(),t.trys.pop();continue;default:if(!(i=(i=t.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){t=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){t.label=s[1];break}if(6===s[0]&&t.label<i[1]){t.label=i[1],i=s;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(s);break}i[2]&&t.ops.pop(),t.trys.pop();continue}s=e.call(a,t)}catch(c){s=[6,c],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}function ye(a){return this instanceof ye?(this.v=a,this):new ye(a)}function Wt(a,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,r=t.apply(a,e||[]),i=[];return n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n;function o(f){r[f]&&(n[f]=function(v){return new Promise(function(_,N){i.push([f,v,_,N])>1||d(f,v)})})}function d(f,v){try{!function(f){f.value instanceof ye?Promise.resolve(f.value.v).then(s,c):m(i[0][2],f)}(r[f](v))}catch(_){m(i[0][3],_)}}function s(f){d("next",f)}function c(f){d("throw",f)}function m(f,v){f(v),i.shift(),i.length&&d(i[0][0],i[0][1])}}function Rs(a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=a[Symbol.asyncIterator];return e?e.call(a):(a=function(a){var e="function"==typeof Symbol&&Symbol.iterator,t=e&&a[e],r=0;if(t)return t.call(a);if(a&&"number"==typeof a.length)return{next:function(){return a&&r>=a.length&&(a=void 0),{value:a&&a[r++],done:!a}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(a),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(i){t[i]=a[i]&&function(o){return new Promise(function(d,l){!function(i,o,d,l){Promise.resolve(l).then(function(s){i({value:s,done:d})},o)}(d,l,(o=a[i](o)).done,o.value)})}}}var rg=function(){function a(e){var t=e.utf8Encoder;this.eventMarshaller=new Os(t,e.utf8Decoder),this.utfEncoder=t}return a.prototype.deserialize=function(e,t){return function(a,e){var t;return(t={})[Symbol.asyncIterator]=function(){return Wt(this,arguments,function(){var r,n,o,d,l,s,m,f,_,N,F,J,ne,de;return $t(this,function(ie){switch(ie.label){case 0:ie.trys.push([0,12,13,18]),r=Rs(a),ie.label=1;case 1:return[4,ye(r.next())];case 2:if((n=ie.sent()).done)return[3,11];if(o=e.eventMarshaller.unmarshall(n.value),"error"!==(d=o.headers[":message-type"].value))return[3,3];throw(l=new Error(o.headers[":error-message"].value||"UnknownError")).name=o.headers[":error-code"].value,l;case 3:return"exception"!==d?[3,5]:((F={})[s=o.headers[":exception-type"].value]=o,[4,ye(e.deserializer(F))]);case 4:throw(m=ie.sent()).$unknown?((f=new Error(e.toUtf8(o.body))).name=s,f):m[s];case 5:return"event"!==d?[3,9]:((J={})[o.headers[":event-type"].value]=o,[4,ye(e.deserializer(J))]);case 6:return(_=ie.sent()).$unknown?[3,10]:[4,ye(_)];case 7:return[4,ie.sent()];case 8:return ie.sent(),[3,10];case 9:throw Error("Unrecognizable event type: "+o.headers[":event-type"].value);case 10:return[3,1];case 11:return[3,18];case 12:return N=ie.sent(),ne={error:N},[3,18];case 13:return ie.trys.push([13,,16,17]),n&&!n.done&&(de=r.return)?[4,ye(de.call(r))]:[3,15];case 14:ie.sent(),ie.label=15;case 15:return[3,17];case 16:if(ne)throw ne.error;return[7];case 17:return[7];case 18:return[2]}})})},t}(function(a){var e,t=0,r=0,n=null,i=null,o=function(s){if("number"!=typeof s)throw new Error("Attempted to allocate an event message where size was not a number: "+s);t=s,r=4,n=new Uint8Array(s),new DataView(n.buffer).setUint32(0,s,!1)};return(e={})[Symbol.asyncIterator]=function(){return Wt(this,arguments,function(){var s,c,m,v,_,N,F,J;return $t(this,function(ne){switch(ne.label){case 0:s=a[Symbol.asyncIterator](),ne.label=1;case 1:return[4,ye(s.next())];case 2:return c=ne.sent(),m=c.value,c.done?t?[3,4]:[4,ye(void 0)]:[3,10];case 3:return[2,ne.sent()];case 4:return t!==r?[3,7]:[4,ye(n)];case 5:return[4,ne.sent()];case 6:return ne.sent(),[3,8];case 7:throw new Error("Truncated event message received.");case 8:return[4,ye(void 0)];case 9:return[2,ne.sent()];case 10:v=m.length,_=0,ne.label=11;case 11:if(!(_<v))return[3,15];if(!n){if(N=v-_,i||(i=new Uint8Array(4)),F=Math.min(4-r,N),i.set(m.slice(_,_+F),r),_+=F,(r+=F)<4)return[3,15];o(new DataView(i.buffer).getUint32(0,!1)),i=null}return J=Math.min(t-r,v-_),n.set(m.slice(_,_+J),r),r+=J,_+=J,t&&t===r?[4,ye(n)]:[3,14];case 12:return[4,ne.sent()];case 13:ne.sent(),n=null,t=0,r=0,ne.label=14;case 14:return[3,11];case 15:return[3,1];case 16:return[2]}})})},e}(e),{eventMarshaller:this.eventMarshaller,deserializer:t,toUtf8:this.utfEncoder})},a.prototype.serialize=function(e,t){var r,n=this;return(r={})[Symbol.asyncIterator]=function(){return Wt(this,arguments,function(){var d,l,m,f,v;return $t(this,function(_){switch(_.label){case 0:_.trys.push([0,7,8,13]),d=Rs(e),_.label=1;case 1:return[4,ye(d.next())];case 2:return(l=_.sent()).done?[3,6]:[4,ye(n.eventMarshaller.marshall(t(l.value)))];case 3:return[4,_.sent()];case 4:_.sent(),_.label=5;case 5:return[3,1];case 6:return[3,13];case 7:return m=_.sent(),f={error:m},[3,13];case 8:return _.trys.push([8,,11,12]),l&&!l.done&&(v=d.return)?[4,ye(v.call(d))]:[3,10];case 9:_.sent(),_.label=10;case 10:return[3,12];case 11:if(f)throw f.error;return[7];case 12:return[7];case 13:return[4,ye(new Uint8Array(0))];case 14:return[4,_.sent()];case 15:return _.sent(),[2]}})})},r},a}();function Ms(a,e){var r,n,i,o,t={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:d(0),throw:d(1),return:d(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function d(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return t.label++,{value:s[1],done:!1};case 5:t.label++,n=s[1],s=[0];continue;case 7:s=t.ops.pop(),t.trys.pop();continue;default:if(!(i=(i=t.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){t=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){t.label=s[1];break}if(6===s[0]&&t.label<i[1]){t.label=i[1],i=s;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(s);break}i[2]&&t.ops.pop(),t.trys.pop();continue}s=e.call(a,t)}catch(c){s=[6,c],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}function ir(a){return this instanceof ir?(this.v=a,this):new ir(a)}function ig(a,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,r=t.apply(a,e||[]),i=[];return n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n;function o(f){r[f]&&(n[f]=function(v){return new Promise(function(_,N){i.push([f,v,_,N])>1||d(f,v)})})}function d(f,v){try{!function(f){f.value instanceof ir?Promise.resolve(f.value.v).then(s,c):m(i[0][2],f)}(r[f](v))}catch(_){m(i[0][3],_)}}function s(f){d("next",f)}function c(f){d("throw",f)}function m(f,v){f(v),i.shift(),i.length&&d(i[0][0],i[0][1])}}var sg=function(){function a(e){var t=e.utf8Encoder,r=e.utf8Decoder;this.eventMarshaller=new Os(t,r),this.universalMarshaller=new rg({utf8Decoder:r,utf8Encoder:t})}return a.prototype.deserialize=function(e,t){var r=dg(e)?function(e){var t;return(t={})[Symbol.asyncIterator]=function(){return ig(this,arguments,function(){var r,n,o;return Ms(this,function(d){switch(d.label){case 0:r=e.getReader(),d.label=1;case 1:d.trys.push([1,,9,10]),d.label=2;case 2:return[4,ir(r.read())];case 3:return n=d.sent(),o=n.value,n.done?[4,ir(void 0)]:[3,5];case 4:return[2,d.sent()];case 5:return[4,ir(o)];case 6:return[4,d.sent()];case 7:return d.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})},t}(e):e;return this.universalMarshaller.deserialize(r,t)},a.prototype.serialize=function(e,t){var r=this.universalMarshaller.serialize(e,t);return"function"==typeof ReadableStream?function(e){var t=e[Symbol.asyncIterator]();return new ReadableStream({pull:function(n){return function(a,e,t,r){return new(t||(t=Promise))(function(i,o){function d(c){try{s(r.next(c))}catch(m){o(m)}}function l(c){try{s(r.throw(c))}catch(m){o(m)}}function s(c){c.done?i(c.value):function(i){return i instanceof t?i:new t(function(o){o(i)})}(c.value).then(d,l)}s((r=r.apply(a,e||[])).next())})}(this,void 0,void 0,function(){var i,d;return Ms(this,function(l){switch(l.label){case 0:return[4,t.next()];case 1:return i=l.sent(),d=i.value,i.done?[2,n.close()]:(n.enqueue(d),[2])}})})}})}(r):r},a}(),dg=function(e){return"function"==typeof ReadableStream&&e instanceof ReadableStream},Ds=X(6128);function mg(a,e,t){return void 0===t&&(t=1048576),new Promise(function(r,n){var i=new FileReader;i.addEventListener("error",n),i.addEventListener("abort",n);var o=a.size,d=0;function l(){d>=o?r():i.readAsArrayBuffer(a.slice(d,Math.min(o,d+t)))}i.addEventListener("load",function(s){var c=s.target.result;e(new Uint8Array(c)),d+=c.byteLength,l()}),l()})}var hg=X(67102);var Sg=[1732584193,4023233417,2562383102,271733878],Eg=function(){function a(){this.state=Uint32Array.from(Sg),this.buffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return a.prototype.update=function(e){if(!function(a){return"string"==typeof a?0===a.length:0===a.byteLength}(e)){if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=function(a){return"string"==typeof a?function(e){return"function"==typeof TextEncoder?function(a){return(new TextEncoder).encode(a)}(e):function(e){for(var t=[],r=0,n=e.length;r<n;r++){var i=e.charCodeAt(r);if(i<128)t.push(i);else if(i<2048)t.push(i>>6|192,63&i|128);else if(r+1<e.length&&55296==(64512&i)&&56320==(64512&e.charCodeAt(r+1))){var o=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r));t.push(o>>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}else t.push(i>>12|224,i>>6&63|128,63&i|128)}return Uint8Array.from(t)}(e)}(a):ArrayBuffer.isView(a)?new Uint8Array(a.buffer,a.byteOffset,a.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(a)}(e),r=0,n=t.byteLength;for(this.bytesHashed+=n;n>0;)this.buffer.setUint8(this.bufferLength++,t[r++]),n--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0)}},a.prototype.digest=function(){return function(a,e,t,r){return new(t||(t=Promise))(function(i,o){function d(c){try{s(r.next(c))}catch(m){o(m)}}function l(c){try{s(r.throw(c))}catch(m){o(m)}}function s(c){c.done?i(c.value):function(i){return i instanceof t?i:new t(function(o){o(i)})}(c.value).then(d,l)}s((r=r.apply(a,e||[])).next())})}(this,void 0,void 0,function(){var e,t,r,i,d,o;return function(a,e){var r,n,i,o,t={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:d(0),throw:d(1),return:d(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function d(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return t.label++,{value:s[1],done:!1};case 5:t.label++,n=s[1],s=[0];continue;case 7:s=t.ops.pop(),t.trys.pop();continue;default:if(!(i=(i=t.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){t=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){t.label=s[1];break}if(6===s[0]&&t.label<i[1]){t.label=i[1],i=s;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(s);break}i[2]&&t.ops.pop(),t.trys.pop();continue}s=e.call(a,t)}catch(c){s=[6,c],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}(this,function(l){if(!this.finished){if(r=(e=this).bufferLength,i=8*e.bytesHashed,(t=e.buffer).setUint8(this.bufferLength++,128),r%64>=56){for(o=this.bufferLength;o<64;o++)t.setUint8(o,0);this.hashBuffer(),this.bufferLength=0}for(o=this.bufferLength;o<56;o++)t.setUint8(o,0);t.setUint32(56,i>>>0,!0),t.setUint32(60,Math.floor(i/4294967296),!0),this.hashBuffer(),this.finished=!0}for(d=new DataView(new ArrayBuffer(16)),o=0;o<4;o++)d.setUint32(4*o,this.state[o],!0);return[2,new Uint8Array(d.buffer,d.byteOffset,d.byteLength)]})})},a.prototype.hashBuffer=function(){var t=this.buffer,r=this.state,n=r[0],i=r[1],o=r[2],d=r[3];n=pe(n,i,o,d,t.getUint32(0,!0),7,3614090360),d=pe(d,n,i,o,t.getUint32(4,!0),12,3905402710),o=pe(o,d,n,i,t.getUint32(8,!0),17,606105819),i=pe(i,o,d,n,t.getUint32(12,!0),22,3250441966),n=pe(n,i,o,d,t.getUint32(16,!0),7,4118548399),d=pe(d,n,i,o,t.getUint32(20,!0),12,1200080426),o=pe(o,d,n,i,t.getUint32(24,!0),17,2821735955),i=pe(i,o,d,n,t.getUint32(28,!0),22,4249261313),n=pe(n,i,o,d,t.getUint32(32,!0),7,1770035416),d=pe(d,n,i,o,t.getUint32(36,!0),12,2336552879),o=pe(o,d,n,i,t.getUint32(40,!0),17,4294925233),i=pe(i,o,d,n,t.getUint32(44,!0),22,2304563134),n=pe(n,i,o,d,t.getUint32(48,!0),7,1804603682),d=pe(d,n,i,o,t.getUint32(52,!0),12,4254626195),o=pe(o,d,n,i,t.getUint32(56,!0),17,2792965006),n=Ce(n,i=pe(i,o,d,n,t.getUint32(60,!0),22,1236535329),o,d,t.getUint32(4,!0),5,4129170786),d=Ce(d,n,i,o,t.getUint32(24,!0),9,3225465664),o=Ce(o,d,n,i,t.getUint32(44,!0),14,643717713),i=Ce(i,o,d,n,t.getUint32(0,!0),20,3921069994),n=Ce(n,i,o,d,t.getUint32(20,!0),5,3593408605),d=Ce(d,n,i,o,t.getUint32(40,!0),9,38016083),o=Ce(o,d,n,i,t.getUint32(60,!0),14,3634488961),i=Ce(i,o,d,n,t.getUint32(16,!0),20,3889429448),n=Ce(n,i,o,d,t.getUint32(36,!0),5,568446438),d=Ce(d,n,i,o,t.getUint32(56,!0),9,3275163606),o=Ce(o,d,n,i,t.getUint32(12,!0),14,4107603335),i=Ce(i,o,d,n,t.getUint32(32,!0),20,1163531501),n=Ce(n,i,o,d,t.getUint32(52,!0),5,2850285829),d=Ce(d,n,i,o,t.getUint32(8,!0),9,4243563512),o=Ce(o,d,n,i,t.getUint32(28,!0),14,1735328473),n=Se(n,i=Ce(i,o,d,n,t.getUint32(48,!0),20,2368359562),o,d,t.getUint32(20,!0),4,4294588738),d=Se(d,n,i,o,t.getUint32(32,!0),11,2272392833),o=Se(o,d,n,i,t.getUint32(44,!0),16,1839030562),i=Se(i,o,d,n,t.getUint32(56,!0),23,4259657740),n=Se(n,i,o,d,t.getUint32(4,!0),4,2763975236),d=Se(d,n,i,o,t.getUint32(16,!0),11,1272893353),o=Se(o,d,n,i,t.getUint32(28,!0),16,4139469664),i=Se(i,o,d,n,t.getUint32(40,!0),23,3200236656),n=Se(n,i,o,d,t.getUint32(52,!0),4,681279174),d=Se(d,n,i,o,t.getUint32(0,!0),11,3936430074),o=Se(o,d,n,i,t.getUint32(12,!0),16,3572445317),i=Se(i,o,d,n,t.getUint32(24,!0),23,76029189),n=Se(n,i,o,d,t.getUint32(36,!0),4,3654602809),d=Se(d,n,i,o,t.getUint32(48,!0),11,3873151461),o=Se(o,d,n,i,t.getUint32(60,!0),16,530742520),n=Ee(n,i=Se(i,o,d,n,t.getUint32(8,!0),23,3299628645),o,d,t.getUint32(0,!0),6,4096336452),d=Ee(d,n,i,o,t.getUint32(28,!0),10,1126891415),o=Ee(o,d,n,i,t.getUint32(56,!0),15,2878612391),i=Ee(i,o,d,n,t.getUint32(20,!0),21,4237533241),n=Ee(n,i,o,d,t.getUint32(48,!0),6,1700485571),d=Ee(d,n,i,o,t.getUint32(12,!0),10,2399980690),o=Ee(o,d,n,i,t.getUint32(40,!0),15,4293915773),i=Ee(i,o,d,n,t.getUint32(4,!0),21,2240044497),n=Ee(n,i,o,d,t.getUint32(32,!0),6,1873313359),d=Ee(d,n,i,o,t.getUint32(60,!0),10,4264355552),o=Ee(o,d,n,i,t.getUint32(24,!0),15,2734768916),i=Ee(i,o,d,n,t.getUint32(52,!0),21,1309151649),n=Ee(n,i,o,d,t.getUint32(16,!0),6,4149444226),d=Ee(d,n,i,o,t.getUint32(44,!0),10,3174756917),o=Ee(o,d,n,i,t.getUint32(8,!0),15,718787259),i=Ee(i,o,d,n,t.getUint32(36,!0),21,3951481745),r[0]=n+r[0]&4294967295,r[1]=i+r[1]&4294967295,r[2]=o+r[2]&4294967295,r[3]=d+r[3]&4294967295},a}();function Gr(a,e,t,r,n,i){return((e=(e+a&4294967295)+(r+i&4294967295)&4294967295)<<n|e>>>32-n)+t&4294967295}function pe(a,e,t,r,n,i,o){return Gr(e&t|~e&r,a,e,n,i,o)}function Ce(a,e,t,r,n,i,o){return Gr(e&r|t&~r,a,e,n,i,o)}function Se(a,e,t,r,n,i,o){return Gr(e^t^r,a,e,n,i,o)}function Ee(a,e,t,r,n,i,o){return Gr(t^(e|~r),a,e,n,i,o)}var Zt=X(12602),Fs=X(7884),xg=X(35926),Pg=X(22936),Gs="s3.{region}.amazonaws.com",Dg=new Set(["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-south-1","ap-southeast-1","ap-southeast-2","ca-central-1","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","me-south-1","sa-east-1","us-east-1","us-east-2","us-west-1","us-west-2"]),jg=new Set(["cn-north-1","cn-northwest-1"]),Ug=new Set(["us-iso-east-1"]),Kg=new Set(["us-isob-east-1"]),qg=new Set(["us-gov-east-1","us-gov-west-1"]),Hs={apiVersion:"2006-03-01",disableHostPrefix:!1,logger:{},regionInfoProvider:function(e,t){var r=void 0;switch(e){case"af-south-1":r={hostname:"s3.af-south-1.amazonaws.com",partition:"aws"};break;case"ap-east-1":r={hostname:"s3.ap-east-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-1":r={hostname:"s3.ap-northeast-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-2":r={hostname:"s3.ap-northeast-2.amazonaws.com",partition:"aws"};break;case"ap-south-1":r={hostname:"s3.ap-south-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-1":r={hostname:"s3.ap-southeast-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-2":r={hostname:"s3.ap-southeast-2.amazonaws.com",partition:"aws"};break;case"aws-global":r={hostname:"s3.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"ca-central-1":r={hostname:"s3.ca-central-1.amazonaws.com",partition:"aws"};break;case"cn-north-1":r={hostname:"s3.cn-north-1.amazonaws.com.cn",partition:"aws-cn"};break;case"cn-northwest-1":r={hostname:"s3.cn-northwest-1.amazonaws.com.cn",partition:"aws-cn"};break;case"eu-central-1":r={hostname:"s3.eu-central-1.amazonaws.com",partition:"aws"};break;case"eu-north-1":r={hostname:"s3.eu-north-1.amazonaws.com",partition:"aws"};break;case"eu-south-1":r={hostname:"s3.eu-south-1.amazonaws.com",partition:"aws"};break;case"eu-west-1":r={hostname:"s3.eu-west-1.amazonaws.com",partition:"aws"};break;case"eu-west-2":r={hostname:"s3.eu-west-2.amazonaws.com",partition:"aws"};break;case"eu-west-3":r={hostname:"s3.eu-west-3.amazonaws.com",partition:"aws"};break;case"fips-us-gov-west-1":r={hostname:"s3-fips.us-gov-west-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-west-1"};break;case"me-south-1":r={hostname:"s3.me-south-1.amazonaws.com",partition:"aws"};break;case"s3-external-1":r={hostname:"s3-external-1.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"sa-east-1":r={hostname:"s3.sa-east-1.amazonaws.com",partition:"aws"};break;case"us-east-1":r={hostname:"s3.us-east-1.amazonaws.com",partition:"aws"};break;case"us-east-2":r={hostname:"s3.us-east-2.amazonaws.com",partition:"aws"};break;case"us-gov-east-1":r={hostname:"s3.us-gov-east-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-gov-west-1":r={hostname:"s3.us-gov-west-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-iso-east-1":r={hostname:"s3.us-iso-east-1.c2s.ic.gov",partition:"aws-iso"};break;case"us-isob-east-1":r={hostname:"s3.us-isob-east-1.sc2s.sgov.gov",partition:"aws-iso-b"};break;case"us-west-1":r={hostname:"s3.us-west-1.amazonaws.com",partition:"aws"};break;case"us-west-2":r={hostname:"s3.us-west-2.amazonaws.com",partition:"aws"};break;default:Dg.has(e)&&(r={hostname:Gs.replace("{region}",e),partition:"aws"}),jg.has(e)&&(r={hostname:"s3.{region}.amazonaws.com.cn".replace("{region}",e),partition:"aws-cn"}),Ug.has(e)&&(r={hostname:"s3.{region}.c2s.ic.gov".replace("{region}",e),partition:"aws-iso"}),Kg.has(e)&&(r={hostname:"s3.{region}.sc2s.sgov.gov".replace("{region}",e),partition:"aws-iso-b"}),qg.has(e)&&(r={hostname:"s3.{region}.amazonaws.com".replace("{region}",e),partition:"aws-us-gov"}),void 0===r&&(r={hostname:Gs.replace("{region}",e),partition:"aws"})}return Promise.resolve((0,u.pi)({signingService:"s3"},r))},serviceId:"S3",signingEscapePath:!1,urlParser:X(2047).e,useArnRegion:!1},Hg=(0,u.pi)((0,u.pi)({},Hs),{runtime:"browser",base64Decoder:Fs.G,base64Encoder:Fs.s,bodyLengthChecker:xg.W,credentialDefaultProvider:function(e){return function(){return Promise.reject(new Error("Credential is missing"))}},defaultUserAgentProvider:(0,Pg.f)({serviceId:Hs.serviceId,clientVersion:"3.6.1"}),eventStreamSerdeProvider:function(e){return new sg(e)},maxAttempts:Zt.J,md5:Eg,region:(0,hg.n)("Region is missing"),requestHandler:new Ds.B,sha256:L_.Sha256,streamCollector:Ds.C,streamHasher:function(e,t){return function(a,e,t,r){return new(t||(t=Promise))(function(i,o){function d(c){try{s(r.next(c))}catch(m){o(m)}}function l(c){try{s(r.throw(c))}catch(m){o(m)}}function s(c){c.done?i(c.value):function(i){return i instanceof t?i:new t(function(o){o(i)})}(c.value).then(d,l)}s((r=r.apply(a,e||[])).next())})}(this,void 0,void 0,function(){var r;return function(a,e){var r,n,i,o,t={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:d(0),throw:d(1),return:d(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function d(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return t.label++,{value:s[1],done:!1};case 5:t.label++,n=s[1],s=[0];continue;case 7:s=t.ops.pop(),t.trys.pop();continue;default:if(!(i=(i=t.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){t=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){t.label=s[1];break}if(6===s[0]&&t.label<i[1]){t.label=i[1],i=s;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(s);break}i[2]&&t.ops.pop(),t.trys.pop();continue}s=e.call(a,t)}catch(c){s=[6,c],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}(this,function(n){switch(n.label){case 0:return r=new e,[4,mg(t,function(i){r.update(i)})];case 1:return n.sent(),[2,r.digest()]}})})},utf8Decoder:function(e){return"function"==typeof TextEncoder?function(a){return(new TextEncoder).encode(a)}(e):function(e){for(var t=[],r=0,n=e.length;r<n;r++){var i=e.charCodeAt(r);if(i<128)t.push(i);else if(i<2048)t.push(i>>6|192,63&i|128);else if(r+1<e.length&&55296==(64512&i)&&56320==(64512&e.charCodeAt(r+1))){var o=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r));t.push(o>>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}else t.push(i>>12|224,i>>6&63|128,63&i|128)}return Uint8Array.from(t)}(e)},utf8Encoder:function(e){return"function"==typeof TextDecoder?function(a){return new TextDecoder("utf-8").decode(a)}(e):function(e){for(var t="",r=0,n=e.length;r<n;r++){var i=e[r];if(i<128)t+=String.fromCharCode(i);else if(192<=i&&i<224){var o=e[++r];t+=String.fromCharCode((31&i)<<6|63&o)}else if(240<=i&&i<365){var l="%"+[i,e[++r],e[++r],e[++r]].map(function(s){return s.toString(16)}).join("%");t+=decodeURIComponent(l)}else t+=String.fromCharCode((15&i)<<12|(63&e[++r])<<6|63&e[++r])}return t}(e)}}),Vs=X(76841),Hr=function(){return(Hr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Wg=X(5031),lr=function(){return(lr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};var dd,an,on,ld,cd,ud,fd,md,vd,hd,_d,gd,wd,yd,bd,sn,pd,dn,ln,Cd,cn,un,Sd,fn,Ed,Ad,kd,xd,Pd,mn,vn,Nd,Td,Bd,ew={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0},rw=function(e){return{applyToStack:function(r){r.add(function(a){var e=this;return function(t){return function(r){return function(a,e,t,r){return new(t||(t=Promise))(function(i,o){function d(c){try{s(r.next(c))}catch(m){o(m)}}function l(c){try{s(r.throw(c))}catch(m){o(m)}}function s(c){c.done?i(c.value):function(i){return i instanceof t?i:new t(function(o){o(i)})}(c.value).then(d,l)}s((r=r.apply(a,e||[])).next())})}(e,void 0,void 0,function(){var n;return function(a,e){var r,n,i,o,t={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:d(0),throw:d(1),return:d(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function d(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return t.label++,{value:s[1],done:!1};case 5:t.label++,n=s[1],s=[0];continue;case 7:s=t.ops.pop(),t.trys.pop();continue;default:if(!(i=(i=t.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){t=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){t.label=s[1];break}if(6===s[0]&&t.label<i[1]){t.label=i[1],i=s;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(s);break}i[2]&&t.ops.pop(),t.trys.pop();continue}s=e.call(a,t)}catch(c){s=[6,c],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}(this,function(i){return be.aW.isInstance(n=r.request)&&n.body&&"node"===a.runtime&&(n.headers=lr(lr({},n.headers),{Expect:"100-continue"})),[2,t(lr(lr({},r),{request:n}))]})})}}}(e),ew)}}},Js=X(46983),tw=X(22547),Qs=X(19826),Ys=X(53536),nw=function(a){function e(t){var r=this,n=(0,u.pi)((0,u.pi)({},Hg),t),i=(0,Vs.Xb)(n),o=(0,Vs.g4)(i),d=(0,Qs.A$)(o),l=(0,Zt.BC)(d),c=function(a){var e=a.bucketEndpoint,t=void 0!==e&&e,r=a.forcePathStyle,n=void 0!==r&&r,i=a.useAccelerateEndpoint,o=void 0!==i&&i,d=a.useDualstackEndpoint,l=void 0!==d&&d,s=a.useArnRegion,c=void 0!==s&&s;return De(De({},a),{bucketEndpoint:t,forcePathStyle:n,useAccelerateEndpoint:o,useDualstackEndpoint:l,useArnRegion:"function"==typeof c?c:function(){return Promise.resolve(c)}})}((0,Js.S8)(l)),f=function(e){return Hr(Hr({},e),{eventStreamMarshaller:e.eventStreamSerdeProvider(e)})}((0,Ys.er)(c));return(r=a.call(this,f)||this).config=f,r.middlewareStack.use((0,Qs.yt)(r.config)),r.middlewareStack.use((0,Zt.NQ)(r.config)),r.middlewareStack.use((0,Wg.VG)(r.config)),r.middlewareStack.use((0,Js.G2)(r.config)),r.middlewareStack.use((0,tw.cV)(r.config)),r.middlewareStack.use({applyToStack:function(r){r.add(function(){var a=this;return function(e){return function(t){return Mt(a,void 0,void 0,function(){var r,n;return Lt(this,function(i){if("string"==typeof(r=t.input.Bucket)&&!os(r)&&r.indexOf("/")>=0)throw(n=new Error("Bucket name shouldn't contain '/', received '"+r+"'")).name="InvalidBucketName",n;return[2,e(gr({},t))]})})}}}(),Qh)}}),r.middlewareStack.use(function(e){return{applyToStack:function(r){r.add(function(e){return function(t){return function(r){return Mt(void 0,void 0,void 0,function(){var n,i;return Lt(this,function(o){switch(o.label){case 0:return!be.aW.isInstance(n=r.request)||e.isCustomEndpoint?[2,t(gr({},r))]:"s3.amazonaws.com"!==n.hostname?[3,1]:(n.hostname="s3.us-east-1.amazonaws.com",[3,3]);case 1:return i="aws-global",[4,e.region()];case 2:i===o.sent()&&(n.hostname="s3.amazonaws.com"),o.label=3;case 3:return[2,t(gr({},r))]}})})}}}(e),e_)}}}(r.config)),r.middlewareStack.use(rw(r.config)),r.middlewareStack.use((0,Ys.XJ)(r.config)),r}return(0,u.ZT)(e,a),e.prototype.destroy=function(){a.prototype.destroy.call(this)},e}(E.KU),cr=function(){return(cr=Object.assign||function(a){for(var e,t=1,r=arguments.length;t<r;t++)for(var n in e=arguments[t])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},tn=function(a,e,t,r){return new(t||(t=Promise))(function(i,o){function d(c){try{s(r.next(c))}catch(m){o(m)}}function l(c){try{s(r.throw(c))}catch(m){o(m)}}function s(c){c.done?i(c.value):function(i){return i instanceof t?i:new t(function(o){o(i)})}(c.value).then(d,l)}s((r=r.apply(a,e||[])).next())})},nn=function(a,e){var r,n,i,o,t={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:d(0),throw:d(1),return:d(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function d(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return t.label++,{value:s[1],done:!1};case 5:t.label++,n=s[1],s=[0];continue;case 7:s=t.ops.pop(),t.trys.pop();continue;default:if(!(i=(i=t.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){t=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){t.label=s[1];break}if(6===s[0]&&t.label<i[1]){t.label=i[1],i=s;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(s);break}i[2]&&t.ops.pop(),t.trys.pop();continue}s=e.call(a,t)}catch(c){s=[6,c],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},Zs=new U.k("S3ClientUtils"),ed={accessKeyId:"",secretAccessKey:""},rd=function(e){var o=e.customPrefix||{},d=e.identityId||e.credentials.identityId,l=(void 0!==o.private?o.private:"private/")+d+"/",s=(void 0!==o.protected?o.protected:"protected/")+d+"/",c=void 0!==o.public?o.public:"public/";switch(e.level){case"private":return l;case"protected":return s;default:return c}},td=function(e,t){return function(r,n){return function(i){return tn(void 0,void 0,void 0,function(){var o,d,l,s;return nn(this,function(m){switch(m.label){case 0:return[4,$.cN.get()];case 1:return o=m.sent(),d=$.cN.shear(o),l=rd(cr(cr({},e),{credentials:d})),s=Object.assign({},i.input),Object.prototype.hasOwnProperty.call(i.input,"Key")?(s.Key=l+t,i.input=s):Object.prototype.hasOwnProperty.call(i.input,"Prefix")&&(s.Prefix=l+t,i.input=s),[2,r(i)]}})})}}},nd=function(e){return function(t,r){return function(n){return tn(void 0,void 0,void 0,function(){var i,o;return nn(this,function(d){switch(d.label){case 0:return d.trys.push([0,2,,3]),[4,t(n)];case 1:return[2,d.sent()];case 2:throw function(e){return e.ServerTime&&"string"==typeof e.Code&&"RequestTimeTooSkewed"===e.Code}(i=d.sent())&&(o=new Date(i.ServerTime),e.systemClockOffset=o.getTime()-Date.now()),i;case 3:return[2]}})})}}},id={step:"finalizeRequest",name:"autoAdjustClockskewMiddleware"},ad={step:"initialize",name:"addPrefixMiddleware"},aw=function(){return tn(void 0,void 0,void 0,function(){var e,t,r;return nn(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,$.cN.get()];case 1:return(e=n.sent())?(t=$.cN.shear(e),Zs.debug("credentials provider get credentials",t),[2,t]):[2,ed];case 2:return r=n.sent(),Zs.warn("credentials provider error",r),[2,ed];case 3:return[2]}})})},od=function(e,t){var n=e.cancelTokenSource,o=e.useAccelerateEndpoint,d={};e.dangerouslyConnectToHttpEndpointForTesting&&(d={endpoint:"http://localhost:20005",tls:!1,bucketEndpoint:!1,forcePathStyle:!0});var l=new nw(cr(cr({region:e.region,credentials:aw,customUserAgent:(0,Ss.Zm)()},d),{requestHandler:new N_({},t,n),useAccelerateEndpoint:o}));return l.middlewareStack.remove(As),l},ow=function(a){function e(t){var r=a.call(this)||this;return r.input=t,r}return(0,u.ZT)(e,a),e.prototype.resolveMiddleware=function(t,r,n){this.middlewareStack.use((0,Me.p2)(r,this.serialize,this.deserialize)),this.middlewareStack.use(wr(r)),this.middlewareStack.use(Ie(r));var i=t.concat(this.middlewareStack),c=r.requestHandler;return i.resolve(function(m){return c.handle(m.request,n||{})},{logger:r.logger,clientName:"S3Client",commandName:"PutObjectCommand",inputFilterSensitiveLog:Ct.filterSensitiveLog,outputFilterSensitiveLog:pt.filterSensitiveLog})},e.prototype.serialize=function(t,r){return function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r,n,i,o,d,s,m;return(0,u.Jh)(this,function(_){switch(_.label){case 0:if(r=(0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)({"content-type":"application/octet-stream"},h(e.ACL)&&{"x-amz-acl":e.ACL}),h(e.CacheControl)&&{"cache-control":e.CacheControl}),h(e.ContentDisposition)&&{"content-disposition":e.ContentDisposition}),h(e.ContentEncoding)&&{"content-encoding":e.ContentEncoding}),h(e.ContentLanguage)&&{"content-language":e.ContentLanguage}),h(e.ContentLength)&&{"content-length":e.ContentLength.toString()}),h(e.ContentMD5)&&{"content-md5":e.ContentMD5}),h(e.ContentType)&&{"content-type":e.ContentType}),h(e.Expires)&&{expires:(0,E._w)(e.Expires).toString()}),h(e.GrantFullControl)&&{"x-amz-grant-full-control":e.GrantFullControl}),h(e.GrantRead)&&{"x-amz-grant-read":e.GrantRead}),h(e.GrantReadACP)&&{"x-amz-grant-read-acp":e.GrantReadACP}),h(e.GrantWriteACP)&&{"x-amz-grant-write-acp":e.GrantWriteACP}),h(e.ServerSideEncryption)&&{"x-amz-server-side-encryption":e.ServerSideEncryption}),h(e.StorageClass)&&{"x-amz-storage-class":e.StorageClass}),h(e.WebsiteRedirectLocation)&&{"x-amz-website-redirect-location":e.WebsiteRedirectLocation}),h(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),h(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),h(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),h(e.SSEKMSKeyId)&&{"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId}),h(e.SSEKMSEncryptionContext)&&{"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext}),h(e.BucketKeyEnabled)&&{"x-amz-server-side-encryption-bucket-key-enabled":e.BucketKeyEnabled.toString()}),h(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),h(e.Tagging)&&{"x-amz-tagging":e.Tagging}),h(e.ObjectLockMode)&&{"x-amz-object-lock-mode":e.ObjectLockMode}),h(e.ObjectLockRetainUntilDate)&&{"x-amz-object-lock-retain-until-date":(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()}),h(e.ObjectLockLegalHoldStatus)&&{"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus}),h(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),void 0!==e.Metadata&&Object.keys(e.Metadata).reduce(function(N,F){var J;return(0,u.pi)((0,u.pi)({},N),((J={})["x-amz-meta-"+F.toLowerCase()]=e.Metadata[F],J))},{})),n="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(n=n.replace("{Bucket}",(0,E.jc)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return n=n.replace("{Key+}",i.split("/").map(function(N){return(0,E.jc)(N)}).join("/")),o={"x-id":"PutObject"},void 0!==e.Body&&(d=e.Body),[4,t.endpoint()];case 1:return s=_.sent(),[2,new be.aW({protocol:void 0===(m=s.protocol)?"https":m,hostname:s.hostname,port:s.port,method:"PUT",headers:r,path:n,query:o,body:d})]}})})}(t,r)},e.prototype.deserialize=function(t,r){return function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r;return(0,u.Jh)(this,function(n){switch(n.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Lc(e,t)]:(r={$metadata:w(e),BucketKeyEnabled:void 0,ETag:void 0,Expiration:void 0,RequestCharged:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSEncryptionContext:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0,VersionId:void 0},void 0!==e.headers["x-amz-expiration"]&&(r.Expiration=e.headers["x-amz-expiration"]),void 0!==e.headers.etag&&(r.ETag=e.headers.etag),void 0!==e.headers["x-amz-server-side-encryption"]&&(r.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["x-amz-version-id"]&&(r.VersionId=e.headers["x-amz-version-id"]),void 0!==e.headers["x-amz-server-side-encryption-customer-algorithm"]&&(r.SSECustomerAlgorithm=e.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==e.headers["x-amz-server-side-encryption-customer-key-md5"]&&(r.SSECustomerKeyMD5=e.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(r.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-context"]&&(r.SSEKMSEncryptionContext=e.headers["x-amz-server-side-encryption-context"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(r.BucketKeyEnabled="true"===e.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==e.headers["x-amz-request-charged"]&&(r.RequestCharged=e.headers["x-amz-request-charged"]),[4,ee(e.body,t)]);case 1:return n.sent(),[2,Promise.resolve(r)]}})})}(t,r)},e}(E.mY),sd=function(a){function e(t){var r=a.call(this)||this;return r.input=t,r}return(0,u.ZT)(e,a),e.prototype.resolveMiddleware=function(t,r,n){this.middlewareStack.use((0,Me.p2)(r,this.serialize,this.deserialize)),this.middlewareStack.use(wr(r)),this.middlewareStack.use(Ie(r));var i=t.concat(this.middlewareStack),c=r.requestHandler;return i.resolve(function(m){return c.handle(m.request,n||{})},{logger:r.logger,clientName:"S3Client",commandName:"CreateMultipartUploadCommand",inputFilterSensitiveLog:ae.filterSensitiveLog,outputFilterSensitiveLog:Z.filterSensitiveLog})},e.prototype.serialize=function(t,r){return function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r,n,i,o,l,c;return(0,u.Jh)(this,function(v){switch(v.label){case 0:if(r=(0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)({},h(e.ACL)&&{"x-amz-acl":e.ACL}),h(e.CacheControl)&&{"cache-control":e.CacheControl}),h(e.ContentDisposition)&&{"content-disposition":e.ContentDisposition}),h(e.ContentEncoding)&&{"content-encoding":e.ContentEncoding}),h(e.ContentLanguage)&&{"content-language":e.ContentLanguage}),h(e.ContentType)&&{"content-type":e.ContentType}),h(e.Expires)&&{expires:(0,E._w)(e.Expires).toString()}),h(e.GrantFullControl)&&{"x-amz-grant-full-control":e.GrantFullControl}),h(e.GrantRead)&&{"x-amz-grant-read":e.GrantRead}),h(e.GrantReadACP)&&{"x-amz-grant-read-acp":e.GrantReadACP}),h(e.GrantWriteACP)&&{"x-amz-grant-write-acp":e.GrantWriteACP}),h(e.ServerSideEncryption)&&{"x-amz-server-side-encryption":e.ServerSideEncryption}),h(e.StorageClass)&&{"x-amz-storage-class":e.StorageClass}),h(e.WebsiteRedirectLocation)&&{"x-amz-website-redirect-location":e.WebsiteRedirectLocation}),h(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),h(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),h(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),h(e.SSEKMSKeyId)&&{"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId}),h(e.SSEKMSEncryptionContext)&&{"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext}),h(e.BucketKeyEnabled)&&{"x-amz-server-side-encryption-bucket-key-enabled":e.BucketKeyEnabled.toString()}),h(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),h(e.Tagging)&&{"x-amz-tagging":e.Tagging}),h(e.ObjectLockMode)&&{"x-amz-object-lock-mode":e.ObjectLockMode}),h(e.ObjectLockRetainUntilDate)&&{"x-amz-object-lock-retain-until-date":(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()}),h(e.ObjectLockLegalHoldStatus)&&{"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus}),h(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),void 0!==e.Metadata&&Object.keys(e.Metadata).reduce(function(_,N){var F;return(0,u.pi)((0,u.pi)({},_),((F={})["x-amz-meta-"+N.toLowerCase()]=e.Metadata[N],F))},{})),n="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(n=n.replace("{Bucket}",(0,E.jc)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return n=n.replace("{Key+}",i.split("/").map(function(_){return(0,E.jc)(_)}).join("/")),o={uploads:""},[4,t.endpoint()];case 1:return l=v.sent(),[2,new be.aW({protocol:void 0===(c=l.protocol)?"https":c,hostname:l.hostname,port:l.port,method:"POST",headers:r,path:n,query:o,body:void 0})]}})})}(t,r)},e.prototype.deserialize=function(t,r){return function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r,n;return(0,u.Jh)(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,cl(e,t)]:(r={$metadata:w(e),AbortDate:void 0,AbortRuleId:void 0,Bucket:void 0,BucketKeyEnabled:void 0,Key:void 0,RequestCharged:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSEncryptionContext:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0,UploadId:void 0},void 0!==e.headers["x-amz-abort-date"]&&(r.AbortDate=new Date(e.headers["x-amz-abort-date"])),void 0!==e.headers["x-amz-abort-rule-id"]&&(r.AbortRuleId=e.headers["x-amz-abort-rule-id"]),void 0!==e.headers["x-amz-server-side-encryption"]&&(r.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["x-amz-server-side-encryption-customer-algorithm"]&&(r.SSECustomerAlgorithm=e.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==e.headers["x-amz-server-side-encryption-customer-key-md5"]&&(r.SSECustomerKeyMD5=e.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(r.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-context"]&&(r.SSEKMSEncryptionContext=e.headers["x-amz-server-side-encryption-context"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(r.BucketKeyEnabled="true"===e.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==e.headers["x-amz-request-charged"]&&(r.RequestCharged=e.headers["x-amz-request-charged"]),[4,A(e.body,t)]);case 1:return void 0!==(n=i.sent()).Bucket&&(r.Bucket=n.Bucket),void 0!==n.Key&&(r.Key=n.Key),void 0!==n.UploadId&&(r.UploadId=n.UploadId),[2,Promise.resolve(r)]}})})}(t,r)},e}(E.mY);!function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(dd||(dd={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.Encryption&&{Encryption:St.filterSensitiveLog(e.Encryption)})}}(an||(an={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.S3&&{S3:an.filterSensitiveLog(e.S3)})}}(on||(on={})),function(a){a.IGNORE="IGNORE",a.NONE="NONE",a.USE="USE"}(ld||(ld={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(cd||(cd={})),function(a){a.DOCUMENT="DOCUMENT",a.LINES="LINES"}(ud||(ud={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(fd||(fd={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(md||(md={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(vd||(vd={})),function(a){a.ALWAYS="ALWAYS",a.ASNEEDED="ASNEEDED"}(hd||(hd={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(_d||(_d={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(gd||(gd={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(wd||(wd={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(yd||(yd={})),function(a){a.SELECT="SELECT"}(bd||(bd={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.OutputLocation&&{OutputLocation:on.filterSensitiveLog(e.OutputLocation)})}}(sn||(sn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.RestoreRequest&&{RestoreRequest:sn.filterSensitiveLog(e.RestoreRequest)})}}(pd||(pd={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(dn||(dn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(ln||(ln={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Cd||(Cd={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(cn||(cn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(un||(un={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Sd||(Sd={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(fn||(fn={})),function(a){a.visit=function(e,t){return void 0!==e.Records?t.Records(e.Records):void 0!==e.Stats?t.Stats(e.Stats):void 0!==e.Progress?t.Progress(e.Progress):void 0!==e.Cont?t.Cont(e.Cont):void 0!==e.End?t.End(e.End):t._(e.$unknown[0],e.$unknown[1])},a.filterSensitiveLog=function(e){var t;return void 0!==e.Records?{Records:un.filterSensitiveLog(e.Records)}:void 0!==e.Stats?{Stats:fn.filterSensitiveLog(e.Stats)}:void 0!==e.Progress?{Progress:cn.filterSensitiveLog(e.Progress)}:void 0!==e.Cont?{Cont:dn.filterSensitiveLog(e.Cont)}:void 0!==e.End?{End:ln.filterSensitiveLog(e.End)}:void 0!==e.$unknown?((t={})[e.$unknown[0]]="UNKNOWN",t):void 0}}(Ed||(Ed={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.Payload&&{Payload:"STREAMING_CONTENT"})}}(Ad||(Ad={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(kd||(kd={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(xd||(xd={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.SSECustomerKey&&{SSECustomerKey:E.oc})}}(Pd||(Pd={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:E.oc})}}(mn||(mn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.SSECustomerKey&&{SSECustomerKey:E.oc})}}(vn||(vn={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)({},e)}}(Nd||(Nd={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:E.oc})}}(Td||(Td={})),function(a){a.filterSensitiveLog=function(e){return(0,u.pi)((0,u.pi)((0,u.pi)({},e),e.SSECustomerKey&&{SSECustomerKey:E.oc}),e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:E.oc})}}(Bd||(Bd={}));var Od=function(a){function e(t){var r=a.call(this)||this;return r.input=t,r}return(0,u.ZT)(e,a),e.prototype.resolveMiddleware=function(t,r,n){this.middlewareStack.use((0,Me.p2)(r,this.serialize,this.deserialize)),this.middlewareStack.use(wr(r)),this.middlewareStack.use(Ie(r));var i=t.concat(this.middlewareStack),c=r.requestHandler;return i.resolve(function(m){return c.handle(m.request,n||{})},{logger:r.logger,clientName:"S3Client",commandName:"UploadPartCommand",inputFilterSensitiveLog:vn.filterSensitiveLog,outputFilterSensitiveLog:mn.filterSensitiveLog})},e.prototype.serialize=function(t,r){return function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r,n,i,o,d,s,m;return(0,u.Jh)(this,function(_){switch(_.label){case 0:if(r=(0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)({"content-type":"application/octet-stream"},h(e.ContentLength)&&{"content-length":e.ContentLength.toString()}),h(e.ContentMD5)&&{"content-md5":e.ContentMD5}),h(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),h(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),h(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),h(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),h(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),n="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(n=n.replace("{Bucket}",(0,E.jc)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return n=n.replace("{Key+}",i.split("/").map(function(N){return(0,E.jc)(N)}).join("/")),o=(0,u.pi)((0,u.pi)({"x-id":"UploadPart"},void 0!==e.PartNumber&&{partNumber:e.PartNumber.toString()}),void 0!==e.UploadId&&{uploadId:e.UploadId}),void 0!==e.Body&&(d=e.Body),[4,t.endpoint()];case 1:return s=_.sent(),[2,new be.aW({protocol:void 0===(m=s.protocol)?"https":m,hostname:s.hostname,port:s.port,method:"PUT",headers:r,path:n,query:o,body:d})]}})})}(t,r)},e.prototype.deserialize=function(t,r){return function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r;return(0,u.Jh)(this,function(n){switch(n.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,$c(e,t)]:(r={$metadata:w(e),BucketKeyEnabled:void 0,ETag:void 0,RequestCharged:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0},void 0!==e.headers["x-amz-server-side-encryption"]&&(r.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers.etag&&(r.ETag=e.headers.etag),void 0!==e.headers["x-amz-server-side-encryption-customer-algorithm"]&&(r.SSECustomerAlgorithm=e.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==e.headers["x-amz-server-side-encryption-customer-key-md5"]&&(r.SSECustomerKeyMD5=e.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(r.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(r.BucketKeyEnabled="true"===e.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==e.headers["x-amz-request-charged"]&&(r.RequestCharged=e.headers["x-amz-request-charged"]),[4,ee(e.body,t)]);case 1:return n.sent(),[2,Promise.resolve(r)]}})})}(t,r)},e}(E.mY),zd=function(a){function e(t){var r=a.call(this)||this;return r.input=t,r}return(0,u.ZT)(e,a),e.prototype.resolveMiddleware=function(t,r,n){this.middlewareStack.use((0,Me.p2)(r,this.serialize,this.deserialize)),this.middlewareStack.use(hs(r)),this.middlewareStack.use(Ie(r));var i=t.concat(this.middlewareStack),c=r.requestHandler;return i.resolve(function(m){return c.handle(m.request,n||{})},{logger:r.logger,clientName:"S3Client",commandName:"CompleteMultipartUploadCommand",inputFilterSensitiveLog:p.filterSensitiveLog,outputFilterSensitiveLog:y.filterSensitiveLog})},e.prototype.serialize=function(t,r){return function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r,n,i,o,d,l,s,m;return(0,u.Jh)(this,function(_){switch(_.label){case 0:if(r=(0,u.pi)((0,u.pi)({"content-type":"application/xml"},h(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),h(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),n="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(n=n.replace("{Bucket}",(0,E.jc)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return n=n.replace("{Key+}",i.split("/").map(function(N){return(0,E.jc)(N)}).join("/")),o=(0,u.pi)({},void 0!==e.UploadId&&{uploadId:e.UploadId}),void 0!==e.MultipartUpload&&(l=function(e,t){var r=new Nr("CompletedMultipartUpload");return null!=e.Parts&&Su(e.Parts,t).map(function(i){i=i.withName("Part"),r.addChildNode(i)}),r}(e.MultipartUpload,t),d='<?xml version="1.0" encoding="UTF-8"?>',l.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),d+=l.toString()),[4,t.endpoint()];case 1:return s=_.sent(),[2,new be.aW({protocol:void 0===(m=s.protocol)?"https":m,hostname:s.hostname,port:s.port,method:"POST",headers:r,path:n,query:o,body:d})]}})})}(t,r)},e.prototype.deserialize=function(t,r){return function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r,n;return(0,u.Jh)(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,al(e,t)]:(r={$metadata:w(e),Bucket:void 0,BucketKeyEnabled:void 0,ETag:void 0,Expiration:void 0,Key:void 0,Location:void 0,RequestCharged:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0,VersionId:void 0},void 0!==e.headers["x-amz-expiration"]&&(r.Expiration=e.headers["x-amz-expiration"]),void 0!==e.headers["x-amz-server-side-encryption"]&&(r.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["x-amz-version-id"]&&(r.VersionId=e.headers["x-amz-version-id"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(r.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(r.BucketKeyEnabled="true"===e.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==e.headers["x-amz-request-charged"]&&(r.RequestCharged=e.headers["x-amz-request-charged"]),[4,A(e.body,t)]);case 1:return void 0!==(n=i.sent()).Bucket&&(r.Bucket=n.Bucket),void 0!==n.ETag&&(r.ETag=n.ETag),void 0!==n.Key&&(r.Key=n.Key),void 0!==n.Location&&(r.Location=n.Location),[2,Promise.resolve(r)]}})})}(t,r)},e}(E.mY),Xd=function(a){function e(t){var r=a.call(this)||this;return r.input=t,r}return(0,u.ZT)(e,a),e.prototype.resolveMiddleware=function(t,r,n){this.middlewareStack.use((0,Me.p2)(r,this.serialize,this.deserialize)),this.middlewareStack.use(Ie(r));var i=t.concat(this.middlewareStack),c=r.requestHandler;return i.resolve(function(m){return c.handle(m.request,n||{})},{logger:r.logger,clientName:"S3Client",commandName:"AbortMultipartUploadCommand",inputFilterSensitiveLog:V.filterSensitiveLog,outputFilterSensitiveLog:K.filterSensitiveLog})},e.prototype.serialize=function(t,r){return function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r,n,i,o,l,c;return(0,u.Jh)(this,function(v){switch(v.label){case 0:if(r=(0,u.pi)((0,u.pi)({},h(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),h(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),n="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(n=n.replace("{Bucket}",(0,E.jc)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return n=n.replace("{Key+}",i.split("/").map(function(_){return(0,E.jc)(_)}).join("/")),o=(0,u.pi)({"x-id":"AbortMultipartUpload"},void 0!==e.UploadId&&{uploadId:e.UploadId}),[4,t.endpoint()];case 1:return l=v.sent(),[2,new be.aW({protocol:void 0===(c=l.protocol)?"https":c,hostname:l.hostname,port:l.port,method:"DELETE",headers:r,path:n,query:o,body:void 0})]}})})}(t,r)},e.prototype.deserialize=function(t,r){return function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r;return(0,u.Jh)(this,function(n){switch(n.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,nl(e,t)]:(r={$metadata:w(e),RequestCharged:void 0},void 0!==e.headers["x-amz-request-charged"]&&(r.RequestCharged=e.headers["x-amz-request-charged"]),[4,ee(e.body,t)]);case 1:return n.sent(),[2,Promise.resolve(r)]}})})}(t,r)},e}(E.mY),Rd=function(a){function e(t){var r=a.call(this)||this;return r.input=t,r}return(0,u.ZT)(e,a),e.prototype.resolveMiddleware=function(t,r,n){this.middlewareStack.use((0,Me.p2)(r,this.serialize,this.deserialize)),this.middlewareStack.use(Ie(r));var i=t.concat(this.middlewareStack),c=r.requestHandler;return i.resolve(function(m){return c.handle(m.request,n||{})},{logger:r.logger,clientName:"S3Client",commandName:"ListPartsCommand",inputFilterSensitiveLog:yt.filterSensitiveLog,outputFilterSensitiveLog:wt.filterSensitiveLog})},e.prototype.serialize=function(t,r){return function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r,n,i,o,l,c;return(0,u.Jh)(this,function(v){switch(v.label){case 0:if(r=(0,u.pi)((0,u.pi)({},h(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),h(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),n="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(n=n.replace("{Bucket}",(0,E.jc)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return n=n.replace("{Key+}",i.split("/").map(function(_){return(0,E.jc)(_)}).join("/")),o=(0,u.pi)((0,u.pi)((0,u.pi)({"x-id":"ListParts"},void 0!==e.MaxParts&&{"max-parts":e.MaxParts.toString()}),void 0!==e.PartNumberMarker&&{"part-number-marker":e.PartNumberMarker}),void 0!==e.UploadId&&{uploadId:e.UploadId}),[4,t.endpoint()];case 1:return l=v.sent(),[2,new be.aW({protocol:void 0===(c=l.protocol)?"https":c,hostname:l.hostname,port:l.port,method:"GET",headers:r,path:n,query:o,body:void 0})]}})})}(t,r)},e.prototype.deserialize=function(t,r){return function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r,n;return(0,u.Jh)(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,wc(e,t)]:(r={$metadata:w(e),AbortDate:void 0,AbortRuleId:void 0,Bucket:void 0,Initiator:void 0,IsTruncated:void 0,Key:void 0,MaxParts:void 0,NextPartNumberMarker:void 0,Owner:void 0,PartNumberMarker:void 0,Parts:void 0,RequestCharged:void 0,StorageClass:void 0,UploadId:void 0},void 0!==e.headers["x-amz-abort-date"]&&(r.AbortDate=new Date(e.headers["x-amz-abort-date"])),void 0!==e.headers["x-amz-abort-rule-id"]&&(r.AbortRuleId=e.headers["x-amz-abort-rule-id"]),void 0!==e.headers["x-amz-request-charged"]&&(r.RequestCharged=e.headers["x-amz-request-charged"]),[4,A(e.body,t)]);case 1:return void 0!==(n=i.sent()).Bucket&&(r.Bucket=n.Bucket),void 0!==n.Initiator&&(r.Initiator=function(e,t){var r={ID:void 0,DisplayName:void 0};return void 0!==e.ID&&(r.ID=e.ID),void 0!==e.DisplayName&&(r.DisplayName=e.DisplayName),r}(n.Initiator)),void 0!==n.IsTruncated&&(r.IsTruncated="true"==n.IsTruncated),void 0!==n.Key&&(r.Key=n.Key),void 0!==n.MaxParts&&(r.MaxParts=parseInt(n.MaxParts)),void 0!==n.NextPartNumberMarker&&(r.NextPartNumberMarker=n.NextPartNumberMarker),void 0!==n.Owner&&(r.Owner=He(n.Owner,t)),void 0!==n.PartNumberMarker&&(r.PartNumberMarker=n.PartNumberMarker),""===n.Part&&(r.Parts=[]),void 0!==n.Part&&(r.Parts=function(e,t){return(e||[]).filter(function(r){return null!=r}).map(function(r){return null===r?null:function(e,t){var r={PartNumber:void 0,LastModified:void 0,ETag:void 0,Size:void 0};return void 0!==e.PartNumber&&(r.PartNumber=parseInt(e.PartNumber)),void 0!==e.LastModified&&(r.LastModified=new Date(e.LastModified)),void 0!==e.ETag&&(r.ETag=e.ETag),void 0!==e.Size&&(r.Size=parseInt(e.Size)),r}(r)})}((0,E.L)(n.Part))),void 0!==n.StorageClass&&(r.StorageClass=n.StorageClass),void 0!==n.UploadId&&(r.UploadId=n.UploadId),[2,Promise.resolve(r)]}})})}(t,r)},e}(E.mY),hn=X(55068),pr=function(){return(pr=Object.assign||function(a){for(var e,t=1,r=arguments.length;t<r;t++)for(var n in e=arguments[t])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},Je=function(a,e,t,r){return new(t||(t=Promise))(function(i,o){function d(c){try{s(r.next(c))}catch(m){o(m)}}function l(c){try{s(r.throw(c))}catch(m){o(m)}}function s(c){c.done?i(c.value):function(i){return i instanceof t?i:new t(function(o){o(i)})}(c.value).then(d,l)}s((r=r.apply(a,e||[])).next())})},Qe=function(a,e){var r,n,i,o,t={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:d(0),throw:d(1),return:d(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function d(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return t.label++,{value:s[1],done:!1};case 5:t.label++,n=s[1],s=[0];continue;case 7:s=t.ops.pop(),t.trys.pop();continue;default:if(!(i=(i=t.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){t=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){t.label=s[1];break}if(6===s[0]&&t.label<i[1]){t.label=i[1],i=s;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(s);break}i[2]&&t.ops.pop(),t.trys.pop();continue}s=e.call(a,t)}catch(c){s=[6,c],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},_n=new U.k("AWSS3ProviderManagedUpload"),sw=function(){function a(e,t,r){this.minPartSize=5242880,this.queueSize=4,this.body=null,this.params=null,this.opts=null,this.completedParts=[],this.cancel=!1,this.bytesUploaded=0,this.totalBytesToUpload=0,this.emitter=null,this.params=e,this.opts=t,this.emitter=r,this.s3client=this._createNewS3Client(t,r)}return a.prototype.upload=function(){return Je(this,void 0,void 0,function(){var e,t,r,n,i,o,d=this;return Qe(this,function(l){switch(l.label){case 0:return e=this,[4,this.validateAndSanitizeBody(this.params.Body)];case 1:return e.body=l.sent(),this.totalBytesToUpload=this.byteLength(this.body),this.totalBytesToUpload<=this.minPartSize?(this.params.Body=this.body,t=new ow(this.params),[2,this.s3client.send(t)]):[3,2];case 2:return[4,this.createMultiPartUpload()];case 3:r=l.sent(),n=Math.ceil(this.totalBytesToUpload/this.minPartSize),i=this.createParts(),o=0,l.label=4;case 4:return o<n?[4,this.checkIfUploadCancelled(r)]:[3,9];case 5:return l.sent(),[4,this.uploadParts(r,i.slice(o,o+this.queueSize))];case 6:return l.sent(),[4,this.checkIfUploadCancelled(r)];case 7:l.sent(),l.label=8;case 8:return o+=this.queueSize,[3,4];case 9:return i.map(function(s){d.removeEventListener(s)}),[4,this.finishMultiPartUpload(r)];case 10:return[2,l.sent()]}})})},a.prototype.createParts=function(){for(var e=[],t=0;t<this.totalBytesToUpload;){var r=Math.min(t+this.minPartSize,this.totalBytesToUpload);e.push({bodyPart:this.body.slice(t,r),partNumber:e.length+1,emitter:new hn.EventEmitter,_lastUploadedBytes:0}),t+=this.minPartSize}return e},a.prototype.createMultiPartUpload=function(){return Je(this,void 0,void 0,function(){var e,t;return Qe(this,function(r){switch(r.label){case 0:return e=new sd(this.params),[4,this.s3client.send(e)];case 1:return t=r.sent(),_n.debug(t.UploadId),[2,t.UploadId]}})})},a.prototype.uploadParts=function(e,t){return Je(this,void 0,void 0,function(){var r,n,i,o=this;return Qe(this,function(d){switch(d.label){case 0:return d.trys.push([0,2,,3]),[4,Promise.all(t.map(function(l){return Je(o,void 0,void 0,function(){var s,c,v,_,N;return Qe(this,function(J){switch(J.label){case 0:return this.setupEventListener(l),s={emitter:l.emitter},_=(c=this.params).SSECustomerKey,N=c.SSECustomerKeyMD5,[4,this.s3client.send(new Od(pr(pr(pr({PartNumber:l.partNumber,Body:l.bodyPart,UploadId:e,Key:c.Key,Bucket:c.Bucket},(v=c.SSECustomerAlgorithm)&&{SSECustomerAlgorithm:v}),_&&{SSECustomerKey:_}),N&&{SSECustomerKeyMD5:N})),s)];case 1:return[2,J.sent()]}})})}))];case 1:for(r=d.sent(),n=0;n<r.length;n++)this.completedParts.push({PartNumber:t[n].partNumber,ETag:r[n].ETag});return[3,3];case 2:return i=d.sent(),_n.error("error happened while uploading a part. Cancelling the multipart upload",i),this.cancelUpload(),[2];case 3:return[2]}})})},a.prototype.finishMultiPartUpload=function(e){return Je(this,void 0,void 0,function(){var r,i;return Qe(this,function(o){switch(o.label){case 0:r=new zd({Bucket:this.params.Bucket,Key:this.params.Key,UploadId:e,MultipartUpload:{Parts:this.completedParts}}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.s3client.send(r)];case 2:return[2,o.sent().Key];case 3:return i=o.sent(),_n.error("error happened while finishing the upload. Cancelling the multipart upload",i),this.cancelUpload(),[2];case 4:return[2]}})})},a.prototype.checkIfUploadCancelled=function(e){return Je(this,void 0,void 0,function(){var t,r;return Qe(this,function(n){switch(n.label){case 0:if(!this.cancel)return[3,5];t="Upload was cancelled.",n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.cleanup(e)];case 2:return n.sent(),[3,4];case 3:return r=n.sent(),t+=" "+r.message,[3,4];case 4:throw new Error(t);case 5:return[2]}})})},a.prototype.cancelUpload=function(){this.cancel=!0},a.prototype.cleanup=function(e){return Je(this,void 0,void 0,function(){var t,r;return Qe(this,function(n){switch(n.label){case 0:return this.body=null,this.completedParts=[],this.bytesUploaded=0,this.totalBytesToUpload=0,[4,this.s3client.send(new Xd(t={Bucket:this.params.Bucket,Key:this.params.Key,UploadId:e}))];case 1:return n.sent(),[4,this.s3client.send(new Rd(t))];case 2:if((r=n.sent())&&r.Parts&&r.Parts.length>0)throw new Error("Multi Part upload clean up failed");return[2]}})})},a.prototype.removeEventListener=function(e){e.emitter.removeAllListeners(yr),e.emitter.removeAllListeners(jr)},a.prototype.setupEventListener=function(e){var t=this;e.emitter.on(yr,function(r){t.progressChanged(e.partNumber,r.loaded-e._lastUploadedBytes),e._lastUploadedBytes=r.loaded})},a.prototype.progressChanged=function(e,t){this.bytesUploaded+=t,this.emitter.emit(yr,{loaded:this.bytesUploaded,total:this.totalBytesToUpload,part:e,key:this.params.Key})},a.prototype.byteLength=function(e){if(null==e)return 0;if("number"==typeof e.byteLength)return e.byteLength;if("number"==typeof e.length)return e.length;if("number"==typeof e.size)return e.size;if("string"!=typeof e.path)throw new Error("Cannot determine length of "+e)},a.prototype.validateAndSanitizeBody=function(e){return Je(this,void 0,void 0,function(){return Qe(this,function(t){return this.isGenericObject(e)?[2,JSON.stringify(e)]:[2,e]})})},a.prototype.isGenericObject=function(e){if(null!==e&&"object"==typeof e)try{return!(this.byteLength(e)>=0)}catch(t){return!0}return!1},a.prototype._createNewS3Client=function(e,t){var r=od(e,t);return r.middlewareStack.add(td(this.opts,this.params.Key),ad),r.middlewareStack.add(nd(r.config),id),r},a}(),dw=function(a){function e(t){var r=a.call(this)||this;return r.input=t,r}return(0,u.ZT)(e,a),e.prototype.resolveMiddleware=function(t,r,n){this.middlewareStack.use((0,Me.p2)(r,this.serialize,this.deserialize)),this.middlewareStack.use(Ie(r));var i=t.concat(this.middlewareStack),c=r.requestHandler;return i.resolve(function(m){return c.handle(m.request,n||{})},{logger:r.logger,clientName:"S3Client",commandName:"ListObjectsV2Command",inputFilterSensitiveLog:gt.filterSensitiveLog,outputFilterSensitiveLog:_t.filterSensitiveLog})},e.prototype.serialize=function(t,r){return function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r,n,i,o,l,c;return(0,u.Jh)(this,function(v){switch(v.label){case 0:if(r=(0,u.pi)((0,u.pi)({},h(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),h(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),n="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return n=n.replace("{Bucket}",(0,E.jc)(i)),o=(0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)({"list-type":"2"},void 0!==e.Delimiter&&{delimiter:e.Delimiter}),void 0!==e.EncodingType&&{"encoding-type":e.EncodingType}),void 0!==e.MaxKeys&&{"max-keys":e.MaxKeys.toString()}),void 0!==e.Prefix&&{prefix:e.Prefix}),void 0!==e.ContinuationToken&&{"continuation-token":e.ContinuationToken}),void 0!==e.FetchOwner&&{"fetch-owner":e.FetchOwner.toString()}),void 0!==e.StartAfter&&{"start-after":e.StartAfter}),[4,t.endpoint()];case 1:return l=v.sent(),[2,new be.aW({protocol:void 0===(c=l.protocol)?"https":c,hostname:l.hostname,port:l.port,method:"GET",headers:r,path:n,query:o,body:void 0})]}})})}(t,r)},e.prototype.deserialize=function(t,r){return function(e,t){return(0,u.mG)(void 0,void 0,void 0,function(){var r,n;return(0,u.Jh)(this,function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,hc(e,t)]:(r={$metadata:w(e),CommonPrefixes:void 0,Contents:void 0,ContinuationToken:void 0,Delimiter:void 0,EncodingType:void 0,IsTruncated:void 0,KeyCount:void 0,MaxKeys:void 0,Name:void 0,NextContinuationToken:void 0,Prefix:void 0,StartAfter:void 0},[4,A(e.body,t)]);case 1:return""===(n=i.sent()).CommonPrefixes&&(r.CommonPrefixes=[]),void 0!==n.CommonPrefixes&&(r.CommonPrefixes=Br((0,E.L)(n.CommonPrefixes))),""===n.Contents&&(r.Contents=[]),void 0!==n.Contents&&(r.Contents=es((0,E.L)(n.Contents),t)),void 0!==n.ContinuationToken&&(r.ContinuationToken=n.ContinuationToken),void 0!==n.Delimiter&&(r.Delimiter=n.Delimiter),void 0!==n.EncodingType&&(r.EncodingType=n.EncodingType),void 0!==n.IsTruncated&&(r.IsTruncated="true"==n.IsTruncated),void 0!==n.KeyCount&&(r.KeyCount=parseInt(n.KeyCount)),void 0!==n.MaxKeys&&(r.MaxKeys=parseInt(n.MaxKeys)),void 0!==n.Name&&(r.Name=n.Name),void 0!==n.NextContinuationToken&&(r.NextContinuationToken=n.NextContinuationToken),void 0!==n.Prefix&&(r.Prefix=n.Prefix),void 0!==n.StartAfter&&(r.StartAfter=n.StartAfter),[2,Promise.resolve(r)]}})})}(t,r)},e}(E.mY),Te=function(a,e,t,r){return new(t||(t=Promise))(function(i,o){function d(c){try{s(r.next(c))}catch(m){o(m)}}function l(c){try{s(r.throw(c))}catch(m){o(m)}}function s(c){c.done?i(c.value):function(i){return i instanceof t?i:new t(function(o){o(i)})}(c.value).then(d,l)}s((r=r.apply(a,e||[])).next())})},Be=function(a,e){var r,n,i,o,t={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:d(0),throw:d(1),return:d(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function d(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return t.label++,{value:s[1],done:!1};case 5:t.label++,n=s[1],s=[0];continue;case 7:s=t.ops.pop(),t.trys.pop();continue;default:if(!(i=(i=t.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){t=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){t.label=s[1];break}if(6===s[0]&&t.label<i[1]){t.label=i[1],i=s;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(s);break}i[2]&&t.ops.pop(),t.trys.pop();continue}s=e.call(a,t)}catch(c){s=[6,c],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},lw=function(a,e){var t="function"==typeof Symbol&&a[Symbol.iterator];if(!t)return a;var n,o,r=t.call(a),i=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(d){o={error:d}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(o)throw o.error}}return i},ke=new U.k("AWSS3UploadTask"),ge=function(a){return a[a.INIT=0]="INIT",a[a.IN_PROGRESS=1]="IN_PROGRESS",a[a.PAUSED=2]="PAUSED",a[a.CANCELLED=3]="CANCELLED",a[a.COMPLETED=4]="COMPLETED",a}({}),qe=function(a){return a.CANCEL="cancel",a.UPLOAD_COMPLETE="uploadComplete",a.UPLOAD_PROGRESS="uploadPartProgress",a.ERROR="error",a}({});function mw(a,e){return a.PartNumber-e.PartNumber}var Md=function(){function a(e){var t=e.s3Client,r=e.file,n=e.emitter,i=e.storage,o=e.params,d=e.level,l=e.prefixPromise;this.partSize=5242880,this.queueSize=4,this.inProgress=[],this.completedParts=[],this.queued=[],this.bytesUploaded=0,this.totalBytes=0,this.state=ge.INIT,this.prefixPromise=l,this.s3client=t,this.s3client.middlewareStack.remove(As),this.storage=i,this.storageSync=Promise.resolve(),"function"==typeof this.storage.sync&&(this.storageSync=this.storage.sync()),this.params=o,this.file=r,this.totalBytes=this.file.size,this.bytesUploaded=0,this.emitter=n,this.queued=[],this.fileId=this._getFileId(d),this._validateParams(),this.emitter.on(qe.ERROR,function(){})}return Object.defineProperty(a.prototype,"percent",{get:function(){return this.bytesUploaded/this.totalBytes*100},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"isInProgress",{get:function(){return this.state===ge.IN_PROGRESS},enumerable:!0,configurable:!0}),a.prototype._listSingleFile=function(e){var t=e.key,r=e.bucket;return Te(this,void 0,void 0,function(){var n,i,o,d;return Be(this,function(s){switch(s.label){case 0:return[4,this.s3client.send(new dw({Bucket:r,Prefix:t}))];case 1:return n=s.sent(),o=void 0===(i=n.Contents)?[]:i,[4,this.prefixPromise];case 2:return d=s.sent(),[2,o.find(function(c){return c.Key===""+d+t})]}})})},a.prototype._getFileId=function(e){return function(e){return void 0!==e&&e instanceof File}(this.file)?[this.file.name,this.file.lastModified,this.file.size,this.file.type,this.params.Bucket,e,this.params.Key].join("-"):[this.file.size,this.file.type,this.params.Bucket,e,this.params.Key].join("-")},a.prototype._findCachedUploadParts=function(){return Te(this,void 0,void 0,function(){var e,t;return Be(this,function(n){switch(n.label){case 0:return[4,this._listCachedUploadTasks()];case 1:return e=n.sent(),0!==Object.keys(e).length&&Object.prototype.hasOwnProperty.call(e,this.fileId)?((t=e[this.fileId]).lastTouched=Date.now(),this.storage.setItem(br,JSON.stringify(e)),[4,this.s3client.send(new Rd({Bucket:this.params.Bucket,Key:this.params.Key,UploadId:t.uploadId}))]):[2,{parts:[],uploadId:null}];case 2:return[2,{parts:n.sent().Parts||[],uploadId:t.uploadId}]}})})},a.prototype._emitEvent=function(e,t){this.emitter.emit(e,t)},a.prototype._validateParams=function(){if(this.file.size/this.partSize>1e4)throw new Error("Too many parts. Number of parts is "+this.file.size/this.partSize+", maximum is 10000.")},a.prototype._listCachedUploadTasks=function(){return Te(this,void 0,void 0,function(){var e;return Be(this,function(t){switch(t.label){case 0:return[4,this.storageSync];case 1:return t.sent(),e=this.storage.getItem(br)||"{}",[2,JSON.parse(e)]}})})},a.prototype._cache=function(e){return Te(this,void 0,void 0,function(){var t;return Be(this,function(r){switch(r.label){case 0:return[4,this._listCachedUploadTasks()];case 1:return(t=r.sent())[this.fileId]=e,this.storage.setItem(br,JSON.stringify(t)),[2]}})})},a.prototype._isCached=function(){return Te(this,void 0,void 0,function(){var e,t;return Be(this,function(r){switch(r.label){case 0:return t=(e=Object.prototype.hasOwnProperty).call,[4,this._listCachedUploadTasks()];case 1:return[2,t.apply(e,[r.sent(),this.fileId])]}})})},a.prototype._removeFromCache=function(){return Te(this,void 0,void 0,function(){var e;return Be(this,function(t){switch(t.label){case 0:return[4,this._listCachedUploadTasks()];case 1:return delete(e=t.sent())[this.fileId],this.storage.setItem(br,JSON.stringify(e)),[2]}})})},a.prototype._onPartUploadCompletion=function(e){var t=e.eTag,r=e.partNumber,n=e.chunk;return Te(this,void 0,void 0,function(){return Be(this,function(i){return this.completedParts.push({ETag:t,PartNumber:r}),this.bytesUploaded+=function(e){if("string"==typeof e)return e.length;if(function(e){return void 0!==e&&e instanceof ArrayBuffer}(e))return e.byteLength;if(function(e){return void 0!==e&&e instanceof Blob}(e))return e.size;throw new Error("Cannot determine byte length of "+e)}(n),this._emitEvent(qe.UPLOAD_PROGRESS,{loaded:this.bytesUploaded,total:this.totalBytes}),this.inProgress=this.inProgress.filter(function(o){return o.uploadPartInput.PartNumber!==r}),this.queued.length&&this.state!==ge.PAUSED&&this._startNextPart(),this._isDone()&&this._completeUpload(),[2]})})},a.prototype._completeUpload=function(){return Te(this,void 0,void 0,function(){var e;return Be(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.s3client.send(new zd({Bucket:this.params.Bucket,Key:this.params.Key,UploadId:this.uploadId,MultipartUpload:{Parts:this.completedParts.sort(mw)}}))];case 1:return t.sent(),this._verifyFileSize(),this._emitEvent(qe.UPLOAD_COMPLETE,{key:this.params.Bucket+"/"+this.params.Key}),this._removeFromCache(),this.state=ge.COMPLETED,[3,3];case 2:return e=t.sent(),ke.error("error completing upload",e),this._emitEvent(qe.ERROR,e),[3,3];case 3:return[2]}})})},a.prototype._makeUploadPartRequest=function(e,t){return Te(this,void 0,void 0,function(){var r,n;return Be(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),[4,this.s3client.send(new Od(e),{cancelTokenSource:t})];case 1:return r=i.sent(),[4,this._onPartUploadCompletion({eTag:r.ETag,partNumber:e.PartNumber,chunk:e.Body})];case 2:return i.sent(),[3,4];case 3:return n=i.sent(),this.state===ge.PAUSED?ke.log("upload paused"):this.state===ge.CANCELLED?ke.log("upload aborted"):ke.error("error starting next part of upload: ",n),!Ve().isCancel(n)&&n.message!==qt.UPLOAD_PAUSED_MESSAGE&&(this._emitEvent(qe.ERROR,n),this.pause()),[3,4];case 4:return[2]}})})},a.prototype._startNextPart=function(){if(this.queued.length>0&&this.state!==ge.PAUSED){var e=Ve().CancelToken.source(),t=this.queued.shift();this.inProgress.push({uploadPartInput:t,s3Request:this._makeUploadPartRequest(t,e),cancel:e.cancel})}},a.prototype._verifyFileSize=function(){return Te(this,void 0,void 0,function(){var e,t;return Be(this,function(r){switch(r.label){case 0:return[4,this._listSingleFile({key:this.params.Key,bucket:this.params.Bucket})];case 1:if(e=r.sent(),!(t=Boolean(e&&e.Size===this.file.size)))throw new Error("File size does not match between local file and file on s3");return[2,t]}})})},a.prototype._isDone=function(){return!this.queued.length&&!this.inProgress.length&&this.bytesUploaded===this.totalBytes},a.prototype._createParts=function(){for(var e=this.file.size,t=[],r=0;r<e;){var n=Math.min(r+this.partSize,e);t.push({Body:this.file.slice(r,n),Key:this.params.Key,Bucket:this.params.Bucket,PartNumber:t.length+1,UploadId:this.uploadId}),r+=this.partSize}return t},a.prototype._initCachedUploadParts=function(e){this.bytesUploaded+=e.reduce(function(r,n){return r+n.Size},0);var t=new Set(e.map(function(r){return r.PartNumber}));this.queued=this.queued.filter(function(r){return!t.has(r.PartNumber)}),this.completedParts=e.map(function(r){return{PartNumber:r.PartNumber,ETag:r.ETag}}),this._emitEvent(qe.UPLOAD_PROGRESS,{loaded:this.bytesUploaded,total:this.totalBytes})},a.prototype._initMultipartUpload=function(){return Te(this,void 0,void 0,function(){var e;return Be(this,function(t){switch(t.label){case 0:return[4,this.s3client.send(new sd(this.params))];case 1:return e=t.sent(),this._cache({uploadId:e.UploadId,lastTouched:Date.now(),bucket:this.params.Bucket,key:this.params.Key,fileName:this.file instanceof File?this.file.name:""}),[2,e.UploadId]}})})},a.prototype._initializeUploadTask=function(){return Te(this,void 0,void 0,function(){var e,t,r,n;return Be(this,function(i){switch(i.label){case 0:this.state=ge.IN_PROGRESS,i.label=1;case 1:return i.trys.push([1,7,,8]),[4,this._isCached()];case 2:return i.sent()?[4,this._findCachedUploadParts()]:[3,4];case 3:return e=i.sent(),t=e.parts,this.uploadId=r=e.uploadId,this.queued=this._createParts(),this._initCachedUploadParts(t),this._startUpload(),[3,6];case 4:return this.uploadId?[3,6]:[4,this._initMultipartUpload()];case 5:r=i.sent(),this.uploadId=r,this.queued=this._createParts(),this._startUpload(),i.label=6;case 6:return[3,8];case 7:return n=i.sent(),Ve().isCancel(n)||ke.error("Error initializing the upload task",n),[3,8];case 8:return[2]}})})},a.prototype.resume=function(){this.state===ge.CANCELLED?ke.warn("This task has already been cancelled"):this.state===ge.COMPLETED?ke.warn("This task has already been completed"):this.state===ge.IN_PROGRESS?ke.warn("Upload task already in progress"):this.uploadId?this._startUpload():this._initializeUploadTask()},a.prototype._startUpload=function(){this.state=ge.IN_PROGRESS;for(var e=0;e<this.queueSize;e++)this._startNextPart()},a.prototype._cancel=function(){return Te(this,void 0,void 0,function(){var e;return Be(this,function(t){switch(t.label){case 0:return this.state!==ge.CANCELLED?[3,1]:(ke.warn("This task has already been cancelled"),[2,!1]);case 1:return this.state!==ge.COMPLETED?[3,2]:(ke.warn("This task has already been completed"),[2,!1]);case 2:this.pause(),this.queued=[],this.completedParts=[],this.bytesUploaded=0,this.state=ge.CANCELLED,t.label=3;case 3:return t.trys.push([3,6,,7]),[4,this.s3client.send(new Xd({Bucket:this.params.Bucket,Key:this.params.Key,UploadId:this.uploadId}))];case 4:return t.sent(),[4,this._removeFromCache()];case 5:return t.sent(),[2,!0];case 6:return e=t.sent(),ke.error("Error cancelling upload task",e),[2,!1];case 7:return[2]}})})},a.prototype.pause=function(){var e;this.state===ge.CANCELLED?ke.warn("This task has already been cancelled"):this.state===ge.COMPLETED?ke.warn("This task has already been completed"):this.state===ge.PAUSED&&ke.warn("This task is already paused"),this.state=ge.PAUSED;var t=this.inProgress.splice(0,this.inProgress.length);t.forEach(function(r){r.cancel(qt.UPLOAD_PAUSED_MESSAGE)}),(e=this.queued).unshift.apply(e,function(){for(var a=[],e=0;e<arguments.length;e++)a=a.concat(lw(arguments[e]));return a}(t.map(function(r){return r.uploadPartInput})))},a}(),je=function(){return(je=Object.assign||function(a){for(var e,t=1,r=arguments.length;t<r;t++)for(var n in e=arguments[t])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},Cr=function(a,e,t,r){return new(t||(t=Promise))(function(i,o){function d(c){try{s(r.next(c))}catch(m){o(m)}}function l(c){try{s(r.throw(c))}catch(m){o(m)}}function s(c){c.done?i(c.value):function(i){return i instanceof t?i:new t(function(o){o(i)})}(c.value).then(d,l)}s((r=r.apply(a,e||[])).next())})},Sr=function(a,e){var r,n,i,o,t={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:d(0),throw:d(1),return:d(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function d(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return t.label++,{value:s[1],done:!1};case 5:t.label++,n=s[1],s=[0];continue;case 7:s=t.ops.pop(),t.trys.pop();continue;default:if(!(i=(i=t.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){t=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){t.label=s[1];break}if(6===s[0]&&t.label<i[1]){t.label=i[1],i=s;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(s);break}i[2]&&t.ops.pop(),t.trys.pop();continue}s=e.call(a,t)}catch(c){s=[6,c],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},he=new U.k("AWSS3Provider"),hw=function(){function a(e){var t=this;this._config=e||{},this._storage=(new Y.c4).getStorage(),I.Xb.listen("auth",function(r){var n=r.payload;("signOut"===n.event||"signIn"===n.event)&&t._storage.removeItem(br)}),he.debug("Storage Options",this._config)}return a.prototype.getCategory=function(){return a.CATEGORY},a.prototype.getProviderName=function(){return a.PROVIDER_NAME},a.prototype.configure=function(e){if(he.debug("configure Storage",e),!e)return this._config;var t=W._b.parseMobilehubConfig(e);return this._config=Object.assign({},this._config,t.Storage),this._config.bucket||he.debug("Do not have bucket yet"),this._config},a.prototype.startResumableUpload=function(e,t){var r=e.s3Client,n=e.emitter,i=e.key,o=e.file,d=e.params,l=t.progressCallback,s=t.completeCallback,c=t.errorCallback,m=t.track,f=void 0!==m&&m;if(!(o instanceof Blob))throw new Error(rr.INVALID_BLOB);n.on(qe.UPLOAD_PROGRESS,function(N){l&&("function"==typeof l?l(N):he.warn("progressCallback should be a function, not a "+typeof l))}),n.on(qe.UPLOAD_COMPLETE,function(N){s&&("function"==typeof s?s(N):he.warn("completeCallback should be a function, not a "+typeof s))}),n.on(qe.ERROR,function(N){c&&("function"==typeof c?c(N):he.warn("errorCallback should be a function, not a "+typeof c))});var v=$.cN.get().then(function(N){var F=$.cN.shear(N);return rd(je(je({},t),{credentials:F}))}),_=new Md({s3Client:r,file:o,emitter:n,level:t.level,storage:this._storage,params:d,prefixPromise:v});return Ne(f,"upload",{method:"put",result:"success"},null,"Upload Task created successfully for "+i),_.resume(),_},a.prototype.copy=function(e,t,r){return Cr(this,void 0,void 0,function(){var i,o,d,l,s,c,m,f,v,_,N,F,J,ne,de,ie,ue,oe,we,ce,xe,Oe,_e,ze,Ae;return Sr(this,function(Xe){switch(Xe.label){case 0:return[4,this._ensureCredentials()];case 1:if(!Xe.sent()||!this._isWithCredentials(this._config))throw new Error(rr.NO_CREDENTIALS);if(i=Object.assign({},this._config,r),o=i.acl,d=i.bucket,l=i.cacheControl,s=i.expires,c=i.track,m=i.serverSideEncryption,f=i.SSECustomerAlgorithm,v=i.SSECustomerKey,_=i.SSECustomerKeyMD5,N=i.SSEKMSKeyId,J=void 0===(F=e.level)?"public":F,ne=e.identityId,ue=void 0===(ie=t.level)?"public":ie,oe=t.key,!(de=e.key)||"string"!=typeof de)throw new Error(rr.NO_SRC_KEY);if(!oe||"string"!=typeof oe)throw new Error(rr.NO_DEST_KEY);"protected"!==J&&ne&&he.warn('You may copy files from another user if the source level is "protected", currently it\'s '+J),we=this._prefix(je(je(je({},i),{level:J}),ne&&{identityId:ne})),ce=this._prefix(je(je({},i),{level:ue})),he.debug("copying "+(xe=d+"/"+we+de)+" to "+(Oe=""+ce+oe)),_e={Bucket:d,CopySource:xe,Key:Oe,MetadataDirective:"COPY"},l&&(_e.CacheControl=l),s&&(_e.Expires=s),m&&(_e.ServerSideEncryption=m),f&&(_e.SSECustomerAlgorithm=f),v&&(_e.SSECustomerKey=v),_&&(_e.SSECustomerKeyMD5=_),N&&(_e.SSEKMSKeyId=N),o&&(_e.ACL=o),ze=this._createNewS3Client(i),Xe.label=2;case 2:return Xe.trys.push([2,4,,5]),[4,ze.send(new c_(_e))];case 3:return Xe.sent(),Ne(c,"copy",{method:"copy",result:"success"},null,"Copy success from "+de+" to "+oe),[2,{key:oe}];case 4:throw Ae=Xe.sent(),Ne(c,"copy",{method:"copy",result:"failed"},null,"Copy failed from "+de+" to "+oe),Ae;case 5:return[2]}})})},a.prototype.get=function(e,t){return Cr(this,void 0,void 0,function(){var n,i,o,d,l,s,c,m,f,v,_,N,F,J,ne,de,ie,ue,oe,we,ce,xe,Oe,_e,ze,Ae,Xe;return Sr(this,function(Re){switch(Re.label){case 0:return[4,this._ensureCredentials()];case 1:if(!Re.sent()||!this._isWithCredentials(this._config))throw new Error(rr.NO_CREDENTIALS);if(n=Object.assign({},this._config,t),i=n.bucket,o=n.download,d=n.cacheControl,l=n.contentDisposition,s=n.contentEncoding,c=n.contentLanguage,m=n.contentType,f=n.expires,v=n.track,_=n.SSECustomerAlgorithm,N=n.SSECustomerKey,F=n.SSECustomerKeyMD5,J=n.progressCallback,ne=this._prefix(n),de=ne+e,ie=new hn.EventEmitter,ue=this._createNewS3Client(n,ie),he.debug("get "+e+" from "+de),oe={Bucket:i,Key:de},d&&(oe.ResponseCacheControl=d),l&&(oe.ResponseContentDisposition=l),s&&(oe.ResponseContentEncoding=s),c&&(oe.ResponseContentLanguage=c),m&&(oe.ResponseContentType=m),_&&(oe.SSECustomerAlgorithm=_),N&&(oe.SSECustomerKey=N),F&&(oe.SSECustomerKeyMD5=F),!0!==o)return[3,5];we=new _s(oe),Re.label=2;case 2:return Re.trys.push([2,4,,5]),J&&("function"==typeof J?ie.on(jr,function(yw){J(yw)}):he.warn("progressCallback should be a function, not a "+typeof J)),[4,ue.send(we)];case 3:return ce=Re.sent(),ie.removeAllListeners(jr),Ne(v,"download",{method:"get",result:"success"},{fileSize:Number(ce.Body.size||ce.Body.length)},"Download success for "+e),[2,ce];case 4:throw xe=Re.sent(),Ne(v,"download",{method:"get",result:"failed"},null,"Download failed with "+xe.message),xe;case 5:return Re.trys.push([5,8,,9]),Oe=new S_(je({},ue.config)),[4,h_(ue,new _s(oe))];case 6:return _e=Re.sent(),Ae=m_,[4,Oe.presign(_e,{expiresIn:f||900})];case 7:return ze=Ae.apply(void 0,[Re.sent()]),Ne(v,"getSignedUrl",{method:"get",result:"success"},null,"Signed URL: "+ze),[2,ze];case 8:throw Xe=Re.sent(),he.warn("get signed url error",Xe),Ne(v,"getSignedUrl",{method:"get",result:"failed"},null,"Could not get a signed URL for "+e),Xe;case 9:return[2]}})})},a.prototype.put=function(e,t,r){var n=Object.assign({},this._config,r),i=n.bucket,o=n.track,d=n.progressCallback,l=n.level,s=n.resumable,m=n.contentDisposition,f=n.contentEncoding,v=n.cacheControl,_=n.expires,N=n.metadata,F=n.tagging,J=n.acl,ne=n.serverSideEncryption,de=n.SSECustomerAlgorithm,ie=n.SSECustomerKey,ue=n.SSECustomerKeyMD5,oe=n.SSEKMSKeyId,ce={Bucket:i,Key:e,Body:t,ContentType:n.contentType||"binary/octet-stream"};v&&(ce.CacheControl=v),m&&(ce.ContentDisposition=m),f&&(ce.ContentEncoding=f),_&&(ce.Expires=_),N&&(ce.Metadata=N),F&&(ce.Tagging=F),ne&&(ce.ServerSideEncryption=ne),de&&(ce.SSECustomerAlgorithm=de),ie&&(ce.SSECustomerKey=ie),ue&&(ce.SSECustomerKeyMD5=ue),oe&&(ce.SSEKMSKeyId=oe);var xe=new hn.EventEmitter,Oe=new sw(ce,n,xe);if(J&&(ce.ACL=J),!0===s){var _e=this._createNewS3Client(n);return _e.middlewareStack.add(td(n,e),ad),this.startResumableUpload({bucket:i,key:e,s3Client:_e,file:t,emitter:xe,accessLevel:l,params:ce},r)}try{return d&&("function"==typeof d?xe.on(yr,function(Ae){d(Ae)}):he.warn("progressCallback should be a function, not a "+typeof d)),Oe.upload().then(function(Ae){return he.debug("upload result",Ae),Ne(o,"upload",{method:"put",result:"success"},null,"Upload success for "+e),{key:e}})}catch(Ae){throw he.warn("error uploading",Ae),Ne(o,"upload",{method:"put",result:"failed"},null,"Error uploading "+e),Ae}},a.prototype.remove=function(e,t){return Cr(this,void 0,void 0,function(){var n,i,o,d,l,s,m,f,v;return Sr(this,function(_){switch(_.label){case 0:return[4,this._ensureCredentials()];case 1:if(!_.sent()||!this._isWithCredentials(this._config))throw new Error(rr.NO_CREDENTIALS);n=Object.assign({},this._config,t),i=n.bucket,o=n.track,d=this._prefix(n),l=d+e,s=this._createNewS3Client(n),he.debug("remove "+e+" from "+l),m=new u_({Bucket:i,Key:l}),_.label=2;case 2:return _.trys.push([2,4,,5]),[4,s.send(m)];case 3:return f=_.sent(),Ne(o,"delete",{method:"remove",result:"success"},null,"Deleted "+e+" successfully"),[2,f];case 4:throw v=_.sent(),Ne(o,"delete",{method:"remove",result:"failed"},null,"Deletion of "+e+" failed with "+v),v;case 5:return[2]}})})},a.prototype.list=function(e,t){return Cr(this,void 0,void 0,function(){var n,i,o,d,l,s,c,f,v,_,N;return Sr(this,function(F){switch(F.label){case 0:return[4,this._ensureCredentials()];case 1:if(!F.sent()||!this._isWithCredentials(this._config))throw new Error(rr.NO_CREDENTIALS);n=Object.assign({},this._config,t),i=n.bucket,o=n.track,d=n.maxKeys,l=this._prefix(n),s=l+e,c=this._createNewS3Client(n),he.debug("list "+e+" from "+s),f=new f_({Bucket:i,Prefix:s,MaxKeys:d}),F.label=2;case 2:return F.trys.push([2,4,,5]),[4,c.send(f)];case 3:return v=F.sent(),_=[],v&&v.Contents&&(_=v.Contents.map(function(J){return{key:J.Key.substr(l.length),eTag:J.ETag,lastModified:J.LastModified,size:J.Size}})),Ne(o,"list",{method:"list",result:"success"},null,_.length+" items returned from list operation"),he.debug("list",_),[2,_];case 4:throw N=F.sent(),he.warn("list error",N),Ne(o,"list",{method:"list",result:"failed"},null,"Listing items failed: "+N.message),N;case 5:return[2]}})})},a.prototype._ensureCredentials=function(){return Cr(this,void 0,void 0,function(){var e,t,r;return Sr(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,$.cN.get()];case 1:return(e=n.sent())?(t=$.cN.shear(e),he.debug("set credentials for storage",t),this._config.credentials=t,[2,!0]):[2,!1];case 2:return r=n.sent(),he.warn("ensure credentials error",r),[2,!1];case 3:return[2]}})})},a.prototype._isWithCredentials=function(e){return"object"==typeof e&&e.hasOwnProperty("credentials")},a.prototype._prefix=function(e){var n=e.customPrefix||{},i=e.identityId||e.credentials.identityId,o=(void 0!==n.private?n.private:"private/")+i+"/",d=(void 0!==n.protected?n.protected:"protected/")+i+"/",l=void 0!==n.public?n.public:"public/";switch(e.level){case"private":return o;case"protected":return d;default:return l}},a.prototype._createNewS3Client=function(e,t){var r=od(e,t);return r.middlewareStack.add(nd(r.config),id),r},a.CATEGORY="Storage",a.PROVIDER_NAME="AWSS3",a}(),Ue=function(){return(Ue=Object.assign||function(a){for(var e,t=1,r=arguments.length;t<r;t++)for(var n in e=arguments[t])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},Fe=new U.k("StorageClass"),Ye="AWSS3",Dd=function(){function a(){this._config={},this._pluggables=[],this._cancelTokenSourceMap=new WeakMap,Fe.debug("Storage Options",this._config),this.get=this.get.bind(this),this.put=this.put.bind(this),this.remove=this.remove.bind(this),this.list=this.list.bind(this)}return a.prototype.getModuleName=function(){return"Storage"},a.prototype.addPluggable=function(e){if(e&&"Storage"===e.getCategory())return this._pluggables.push(e),e.configure(this._config[e.getProviderName()])},a.prototype.getPluggable=function(e){var t=this._pluggables.find(function(r){return r.getProviderName()===e});return void 0===t?(Fe.debug("No plugin found with providerName",e),null):t},a.prototype.removePluggable=function(e){this._pluggables=this._pluggables.filter(function(t){return t.getProviderName()!==e})},a.prototype.configure=function(e){var t=this;if(Fe.debug("configure Storage"),!e)return this._config;var r=W._b.parseMobilehubConfig(e),n=Object.keys(r.Storage),i=["bucket","region","level","track","customPrefix","serverSideEncryption","SSECustomerAlgorithm","SSECustomerKey","SSECustomerKeyMD5","SSEKMSKeyId"],o=function(s){return i.some(function(c){return c===s})};return n&&n.find(function(c){return o(c)})&&!r.Storage[Ye]&&(r.Storage[Ye]={}),Object.entries(r.Storage).map(function(l){var s=function(a,e){var t="function"==typeof Symbol&&a[Symbol.iterator];if(!t)return a;var n,o,r=t.call(a),i=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(d){o={error:d}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(o)throw o.error}}return i}(l,2),c=s[0],m=s[1];c&&o(c)&&void 0!==m&&(r.Storage[Ye][c]=m,delete r.Storage[c])}),Object.keys(r.Storage).forEach(function(l){"string"!=typeof r.Storage[l]&&(t._config[l]=Ue(Ue({},t._config[l]),r.Storage[l]))}),this._pluggables.forEach(function(l){l.configure(t._config[l.getProviderName()])}),0===this._pluggables.length&&this.addPluggable(new hw),this._config},a.prototype.getCancellableTokenSource=function(){return Ve().CancelToken.source()},a.prototype.updateRequestToBeCancellable=function(e,t){this._cancelTokenSourceMap.set(e,t)},a.prototype.isUploadTask=function(e){return void 0!==e&&"function"==typeof e.pause&&"function"==typeof e.resume},a.prototype.cancel=function(e,t){if(e instanceof Md)return e._cancel();var r=this._cancelTokenSourceMap.get(e);r?r.cancel(t):Fe.debug("The request does not map to any cancel token")},a.prototype.copy=function(e,t,r){var n=(null==r?void 0:r.provider)||Ye,i=this._pluggables.find(function(l){return l.getProviderName()===n});if(void 0===i)return Fe.debug("No plugin found with providerName",n),Promise.reject("No plugin found in Storage for the provider");var o=this.getCancellableTokenSource();if("function"!=typeof i.copy)return Promise.reject(".copy is not implemented on provider "+i.getProviderName());var d=i.copy(e,t,Ue(Ue({},r),{cancelTokenSource:o}));return this.updateRequestToBeCancellable(d,o),d},a.prototype.get=function(e,t){var r=(null==t?void 0:t.provider)||Ye,n=this._pluggables.find(function(d){return d.getProviderName()===r});if(void 0===n)return Fe.debug("No plugin found with providerName",r),Promise.reject("No plugin found in Storage for the provider");var i=this.getCancellableTokenSource(),o=n.get(e,Ue(Ue({},t),{cancelTokenSource:i}));return this.updateRequestToBeCancellable(o,i),o},a.prototype.isCancelError=function(e){return Ve().isCancel(e)},a.prototype.put=function(e,t,r){var n=(null==r?void 0:r.provider)||Ye,i=this._pluggables.find(function(l){return l.getProviderName()===n});if(void 0===i)return Fe.debug("No plugin found with providerName",n),Promise.reject("No plugin found in Storage for the provider");var o=this.getCancellableTokenSource(),d=i.put(e,t,Ue(Ue({},r),{cancelTokenSource:o}));return this.isUploadTask(d)||this.updateRequestToBeCancellable(d,o),d},a.prototype.remove=function(e,t){var r=(null==t?void 0:t.provider)||Ye,n=this._pluggables.find(function(i){return i.getProviderName()===r});return void 0===n?(Fe.debug("No plugin found with providerName",r),Promise.reject("No plugin found in Storage for the provider")):n.remove(e,t)},a.prototype.list=function(e,t){var r=(null==t?void 0:t.provider)||Ye,n=this._pluggables.find(function(i){return i.getProviderName()===r});return void 0===n?(Fe.debug("No plugin found with providerName",r),Promise.reject("No plugin found in Storage for the provider")):n.list(e,t)},a}(),gw=X(96638),Er=function(){return(Er=Object.assign||function(a){for(var e,t=1,r=arguments.length;t<r;t++)for(var n in e=arguments[t])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},gn=new U.k("Storage"),Ge=null,jd=function(){if(Ge)return Ge;gn.debug("Create Storage Instance, debug"),(Ge=new Dd).vault=new Dd;var e=Ge.configure;return Ge.configure=function(t){gn.debug("storage configure called");var r=Er({},e.call(Ge,t));Object.keys(r).forEach(function(n){"string"!=typeof r[n]&&(r[n]=Er(Er({},r[n]),{level:"private"}))}),gn.debug("storage vault configure called"),Ge.vault.configure(r)},Ge}();gw.dQ.register(jd)},55210:function(me,H,X){"use strict";X.d(H,{a:function(){return V},c:function(){return E},g:function(){return j},i:function(){return u},p:function(){return Q}});var U=X(8239),W=X(88774),Y=X.n(W),I=X(84665),$=X(84158),u=new Set(["apng","bmp","gif","ico","cur","jpg","jpeg","jfif","pjpeg","pjp","png","svg","tif","tiff","webp"]),E=function(O,P){var L=O.name,R=O.size,x=O.type,y=encodeURI(L);return P&&((y="string"==typeof P?P:"function"==typeof P?P({name:L,size:R,type:x}):encodeURI(JSON.stringify(P)))||(y="empty_key")),y.replace(/\s/g,"_")},j=function(){var G=(0,U.Z)(Y().mark(function O(P,L,R,x,y){var g;return Y().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if($.Ke&&"function"==typeof $.Ke.get){p.next=2;break}throw new Error(I.d);case 2:return p.prev=2,p.next=5,$.Ke.get(P,{level:L,track:R,identityId:x});case 5:return y.debug("Storage image get",g=p.sent),p.abrupt("return",g);case 10:throw p.prev=10,p.t0=p.catch(2),new Error(p.t0);case 13:case"end":return p.stop()}},O,null,[[2,10]])}));return function(P,L,R,x,y){return G.apply(this,arguments)}}(),K=function(O){return new Promise(function(P,L){var R=new FileReader;R.onload=function(){P(R.result)},R.onerror=function(){L("Failed to read file!"),R.abort()},R.readAsText(O)})},V=function(){var G=(0,U.Z)(Y().mark(function O(P,L,R,x,y){var g;return Y().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if($.Ke&&"function"==typeof $.Ke.get){S.next=2;break}throw new Error(I.d);case 2:return S.prev=2,S.next=5,$.Ke.get(P,{download:!0,level:L,track:R,identityId:x});case 5:return y.debug(g=S.sent),S.next=9,K(g.Body);case 9:return S.abrupt("return",S.sent);case 13:throw S.prev=13,S.t0=S.catch(2),new Error(S.t0);case 16:case"end":return S.stop()}},O,null,[[2,13]])}));return function(P,L,R,x,y){return G.apply(this,arguments)}}(),Q=function(){var G=(0,U.Z)(Y().mark(function O(P,L,R,x,y,g){return Y().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if($.Ke&&"function"==typeof $.Ke.put){S.next=2;break}throw new Error(I.d);case 2:return S.prev=2,S.next=5,$.Ke.put(P,L,{contentType:y,level:R,track:x});case 5:g.debug("Upload data",S.sent),S.next=12;break;case 9:throw S.prev=9,S.t0=S.catch(2),new Error(S.t0);case 12:case"end":return S.stop()}},O,null,[[2,9]])}));return function(P,L,R,x,y,g){return G.apply(this,arguments)}}()},13680:function(me,H,X){"use strict";Object.defineProperty(H,"__esModule",{value:!0}),H.AwsCrc32=void 0;var U=X(39229),W=X(34207),Y=X(79238),I=function(){function $(){this.crc32=new Y.Crc32}return $.prototype.update=function(u){(0,W.isEmptyData)(u)||this.crc32.update((0,W.convertToBuffer)(u))},$.prototype.digest=function(){return(0,U.__awaiter)(this,void 0,void 0,function(){return(0,U.__generator)(this,function(u){return[2,(0,W.numToUint8)(this.crc32.digest())]})})},$}();H.AwsCrc32=I},79238:function(me,H,X){"use strict";Object.defineProperty(H,"__esModule",{value:!0}),H.AwsCrc32=H.Crc32=H.crc32=void 0;var U=X(39229);H.crc32=function(u){return(new Y).update(u).digest()};var Y=function(){function u(){this.checksum=4294967295}return u.prototype.update=function(E){var j,K;try{for(var V=(0,U.__values)(E),Q=V.next();!Q.done;Q=V.next())this.checksum=this.checksum>>>8^I[255&(this.checksum^Q.value)]}catch(O){j={error:O}}finally{try{Q&&!Q.done&&(K=V.return)&&K.call(V)}finally{if(j)throw j.error}}return this},u.prototype.digest=function(){return(4294967295^this.checksum)>>>0},u}();H.Crc32=Y;var I=Uint32Array.from([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),$=X(13680);Object.defineProperty(H,"AwsCrc32",{enumerable:!0,get:function(){return $.AwsCrc32}})},55068:function(me){"use strict";var U,H="object"==typeof Reflect?Reflect:null,X=H&&"function"==typeof H.apply?H.apply:function(b,p,S){return Function.prototype.apply.call(b,p,S)};U=H&&"function"==typeof H.ownKeys?H.ownKeys:Object.getOwnPropertySymbols?function(b){return Object.getOwnPropertyNames(b).concat(Object.getOwnPropertySymbols(b))}:function(b){return Object.getOwnPropertyNames(b)};var Y=Number.isNaN||function(b){return b!=b};function I(){I.init.call(this)}me.exports=I,me.exports.once=function(g,b){return new Promise(function(p,S){function k(C){g.removeListener(b,re),S(C)}function re(){"function"==typeof g.removeListener&&g.removeListener("error",k),p([].slice.call(arguments))}y(g,b,re,{once:!0}),"error"!==b&&function(g,b,p){"function"==typeof g.on&&y(g,"error",b,{once:!0})}(g,k)})},I.EventEmitter=I,I.prototype._events=void 0,I.prototype._eventsCount=0,I.prototype._maxListeners=void 0;var $=10;function u(g){if("function"!=typeof g)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof g)}function E(g){return void 0===g._maxListeners?I.defaultMaxListeners:g._maxListeners}function j(g,b,p,S){var k,re,C;if(u(p),void 0===(re=g._events)?(re=g._events=Object.create(null),g._eventsCount=0):(void 0!==re.newListener&&(g.emit("newListener",b,p.listener?p.listener:p),re=g._events),C=re[b]),void 0===C)C=re[b]=p,++g._eventsCount;else if("function"==typeof C?C=re[b]=S?[p,C]:[C,p]:S?C.unshift(p):C.push(p),(k=E(g))>0&&C.length>k&&!C.warned){C.warned=!0;var T=new Error("Possible EventEmitter memory leak detected. "+C.length+" "+String(b)+" listeners added. Use emitter.setMaxListeners() to increase limit");T.name="MaxListenersExceededWarning",T.emitter=g,T.type=b,T.count=C.length,function(g){console&&console.warn&&console.warn(g)}(T)}return g}function K(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function V(g,b,p){var S={fired:!1,wrapFn:void 0,target:g,type:b,listener:p},k=K.bind(S);return k.listener=p,S.wrapFn=k,k}function Q(g,b,p){var S=g._events;if(void 0===S)return[];var k=S[b];return void 0===k?[]:"function"==typeof k?p?[k.listener||k]:[k]:p?function(g){for(var b=new Array(g.length),p=0;p<b.length;++p)b[p]=g[p].listener||g[p];return b}(k):O(k,k.length)}function G(g){var b=this._events;if(void 0!==b){var p=b[g];if("function"==typeof p)return 1;if(void 0!==p)return p.length}return 0}function O(g,b){for(var p=new Array(b),S=0;S<b;++S)p[S]=g[S];return p}function y(g,b,p,S){if("function"==typeof g.on)S.once?g.once(b,p):g.on(b,p);else{if("function"!=typeof g.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof g);g.addEventListener(b,function k(re){S.once&&g.removeEventListener(b,k),p(re)})}}Object.defineProperty(I,"defaultMaxListeners",{enumerable:!0,get:function(){return $},set:function(b){if("number"!=typeof b||b<0||Y(b))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+b+".");$=b}}),I.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},I.prototype.setMaxListeners=function(b){if("number"!=typeof b||b<0||Y(b))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+b+".");return this._maxListeners=b,this},I.prototype.getMaxListeners=function(){return E(this)},I.prototype.emit=function(b){for(var p=[],S=1;S<arguments.length;S++)p.push(arguments[S]);var k="error"===b,re=this._events;if(void 0!==re)k=k&&void 0===re.error;else if(!k)return!1;if(k){var C;if(p.length>0&&(C=p[0]),C instanceof Error)throw C;var T=new Error("Unhandled error."+(C?" ("+C.message+")":""));throw T.context=C,T}var B=re[b];if(void 0===B)return!1;if("function"==typeof B)X(B,this,p);else{var D=B.length,q=O(B,D);for(S=0;S<D;++S)X(q[S],this,p)}return!0},I.prototype.on=I.prototype.addListener=function(b,p){return j(this,b,p,!1)},I.prototype.prependListener=function(b,p){return j(this,b,p,!0)},I.prototype.once=function(b,p){return u(p),this.on(b,V(this,b,p)),this},I.prototype.prependOnceListener=function(b,p){return u(p),this.prependListener(b,V(this,b,p)),this},I.prototype.off=I.prototype.removeListener=function(b,p){var S,k,re,C,T;if(u(p),void 0===(k=this._events))return this;if(void 0===(S=k[b]))return this;if(S===p||S.listener===p)0==--this._eventsCount?this._events=Object.create(null):(delete k[b],k.removeListener&&this.emit("removeListener",b,S.listener||p));else if("function"!=typeof S){for(re=-1,C=S.length-1;C>=0;C--)if(S[C]===p||S[C].listener===p){T=S[C].listener,re=C;break}if(re<0)return this;0===re?S.shift():function(g,b){for(;b+1<g.length;b++)g[b]=g[b+1];g.pop()}(S,re),1===S.length&&(k[b]=S[0]),void 0!==k.removeListener&&this.emit("removeListener",b,T||p)}return this},I.prototype.removeAllListeners=function(b){var p,S,k;if(void 0===(S=this._events))return this;if(void 0===S.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==S[b]&&(0==--this._eventsCount?this._events=Object.create(null):delete S[b]),this;if(0===arguments.length){var C,re=Object.keys(S);for(k=0;k<re.length;++k)"removeListener"!==(C=re[k])&&this.removeAllListeners(C);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(p=S[b]))this.removeListener(b,p);else if(void 0!==p)for(k=p.length-1;k>=0;k--)this.removeListener(b,p[k]);return this},I.prototype.listeners=function(b){return Q(this,b,!0)},I.prototype.rawListeners=function(b){return Q(this,b,!1)},I.listenerCount=function(g,b){return"function"==typeof g.listenerCount?g.listenerCount(b):G.call(g,b)},I.prototype.listenerCount=G,I.prototype.eventNames=function(){return this._eventsCount>0?U(this._events):[]}},72936:function(me,H,X){"use strict";var U=X(87715).buildOptions,W={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataTagName:!1,cdataPositionChar:"\\c",format:!1,indentBy:" ",supressEmptyNode:!1,tagValueProcessor:function(L){return L},attrValueProcessor:function(L){return L}},Y=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","cdataTagName","cdataPositionChar","format","indentBy","supressEmptyNode","tagValueProcessor","attrValueProcessor"];function I(P){this.options=U(P,W,Y),this.options.ignoreAttributes||this.options.attrNodeName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=G),this.isCDATA=this.options.cdataTagName?O:function(){return!1},this.replaceCDATAstr=$,this.replaceCDATAarr=u,this.options.format?(this.indentate=Q,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""),this.options.supressEmptyNode?(this.buildTextNode=V,this.buildObjNode=j):(this.buildTextNode=K,this.buildObjNode=E),this.buildTextValNode=K,this.buildObjectNode=E}function $(P,L){return P=this.options.tagValueProcessor(""+P),""===this.options.cdataPositionChar||""===P?P+"<![CDATA["+L+"]]"+this.tagEndChar:P.replace(this.options.cdataPositionChar,"<![CDATA["+L+"]]"+this.tagEndChar)}function u(P,L){if(P=this.options.tagValueProcessor(""+P),""===this.options.cdataPositionChar||""===P)return P+"<![CDATA["+L.join("]]><![CDATA[")+"]]"+this.tagEndChar;for(var R in L)P=P.replace(this.options.cdataPositionChar,"<![CDATA["+L[R]+"]]>");return P+this.newLine}function E(P,L,R,x){return R&&!P.includes("<")?this.indentate(x)+"<"+L+R+">"+P+"</"+L+this.tagEndChar:this.indentate(x)+"<"+L+R+this.tagEndChar+P+this.indentate(x)+"</"+L+this.tagEndChar}function j(P,L,R,x){return""!==P?this.buildObjectNode(P,L,R,x):this.indentate(x)+"<"+L+R+"/"+this.tagEndChar}function K(P,L,R,x){return this.indentate(x)+"<"+L+R+">"+this.options.tagValueProcessor(P)+"</"+L+this.tagEndChar}function V(P,L,R,x){return""!==P?this.buildTextValNode(P,L,R,x):this.indentate(x)+"<"+L+R+"/"+this.tagEndChar}function Q(P){return this.options.indentBy.repeat(P)}function G(P){return!!P.startsWith(this.options.attributeNamePrefix)&&P.substr(this.attrPrefixLen)}function O(P){return P===this.options.cdataTagName}I.prototype.parse=function(P){return this.j2x(P,0).val},I.prototype.j2x=function(P,L){for(var R="",x="",y=Object.keys(P),g=y.length,b=0;b<g;b++){var p=y[b];if(void 0!==P[p])if(null===P[p])x+=this.indentate(L)+"<"+p+"/"+this.tagEndChar;else if(P[p]instanceof Date)x+=this.buildTextNode(P[p],p,"",L);else if("object"!=typeof P[p]){var S=this.isAttribute(p);S?R+=" "+S+'="'+this.options.attrValueProcessor(""+P[p])+'"':this.isCDATA(p)?x+=this.replaceCDATAstr(P[this.options.textNodeName]?P[this.options.textNodeName]:"",P[p]):p===this.options.textNodeName?P[this.options.cdataTagName]||(x+=this.options.tagValueProcessor(""+P[p])):x+=this.buildTextNode(P[p],p,"",L)}else if(Array.isArray(P[p]))if(this.isCDATA(p))x+=this.indentate(L),x+=this.replaceCDATAarr(P[this.options.textNodeName]?P[this.options.textNodeName]:"",P[p]);else for(var k=P[p].length,re=0;re<k;re++){var C=P[p][re];if(void 0!==C)if(null===C)x+=this.indentate(L)+"<"+p+"/"+this.tagEndChar;else if("object"==typeof C){var T=this.j2x(C,L+1);x+=this.buildObjNode(T.val,p,T.attrStr,L)}else x+=this.buildTextNode(C,p,"",L)}else if(this.options.attrNodeName&&p===this.options.attrNodeName)for(var B=Object.keys(P[p]),D=B.length,q=0;q<D;q++)R+=" "+B[q]+'="'+this.options.attrValueProcessor(""+P[p][B[q]])+'"';else{var M=this.j2x(P[p],L+1);x+=this.buildObjNode(M.val,p,M.attrStr,L)}}return{attrStr:R,val:x}},me.exports=I},47434:function(me,H,X){"use strict";var U=function(O){return String.fromCharCode(O)},W={nilChar:U(176),missingChar:U(201),nilPremitive:U(175),missingPremitive:U(200),emptyChar:U(178),emptyValue:U(177),boundryChar:U(179),objStart:U(198),arrStart:U(204),arrayEnd:U(185)},Y=[W.nilChar,W.nilPremitive,W.missingChar,W.missingPremitive,W.boundryChar,W.emptyChar,W.emptyValue,W.arrayEnd,W.objStart,W.arrStart],I=function G(O,P,L){if("string"==typeof P)return $(O&&O[0]&&void 0!==O[0].val?O[0].val:O,P);var R=function(G){return void 0===G?W.missingChar:null===G?W.nilChar:!(G.child&&0===Object.keys(G.child).length&&(!G.attrsMap||0===Object.keys(G.attrsMap).length))||W.emptyChar}(O);if(!0===R){var x="";if(Array.isArray(P)){x+=W.arrStart;var y=P[0],g=O.length;if("string"==typeof y)for(var b=0;b<g;b++){var p=$(O[b].val,y);x=u(x,p)}else for(var S=0;S<g;S++){var k=G(O[S],y,L);x=u(x,k)}x+=W.arrayEnd}else{x+=W.objStart;var re=Object.keys(P);for(var C in Array.isArray(O)&&(O=O[0]),re){var B,T=re[C];B=G(!L.ignoreAttributes&&O.attrsMap&&O.attrsMap[T]?O.attrsMap[T]:T===L.textNodeName?O.val:O.child[T],P[T],L),x=u(x,B)}}return x}return R},$=function(O){switch(O){case void 0:return W.missingPremitive;case null:return W.nilPremitive;case"":return W.emptyValue;default:return O}},u=function(O,P){return!E(P[0])&&!E(O[O.length-1])&&(O+=W.boundryChar),O+P},E=function(O){return-1!==Y.indexOf(O)},K=X(92932),V=X(87715).buildOptions;H.convert2nimn=function(O,P,L){return L=V(L,K.defaultOptions,K.props),I(O,P,L)}},11081:function(me,H,X){"use strict";var U=X(87715);H.convertToJson=function Y(I,$,u){var E={};if((!I.child||U.isEmptyObject(I.child))&&(!I.attrsMap||U.isEmptyObject(I.attrsMap)))return U.isExist(I.val)?I.val:"";if(U.isExist(I.val)&&("string"!=typeof I.val||""!==I.val&&I.val!==$.cdataPositionChar)){var j=U.isTagNameInArrayMode(I.tagname,$.arrayMode,u);E[$.textNodeName]=j?[I.val]:I.val}U.merge(E,I.attrsMap,$.arrayMode);for(var K=Object.keys(I.child),V=0;V<K.length;V++){var Q=K[V];if(I.child[Q]&&I.child[Q].length>1)for(var G in E[Q]=[],I.child[Q])I.child[Q].hasOwnProperty(G)&&E[Q].push(Y(I.child[Q][G],$,Q));else{var O=Y(I.child[Q][0],$,Q),P=!0===$.arrayMode&&"object"==typeof O||U.isTagNameInArrayMode(Q,$.arrayMode,u);E[Q]=P?[O]:O}}return E}},52190:function(me,H,X){"use strict";var U=X(87715),W=X(87715).buildOptions,Y=X(92932),$=function j(K,V,Q){for(var G="{",O=Object.keys(K.child),P=0;P<O.length;P++){var L=O[P];if(K.child[L]&&K.child[L].length>1){for(var R in G+='"'+L+'" : [ ',K.child[L])G+=j(K.child[L][R],V)+" , ";G=G.substr(0,G.length-1)+" ] "}else G+='"'+L+'" : '+j(K.child[L][0],V)+" ,"}return U.merge(G,K.attrsMap),U.isEmptyObject(G)?U.isExist(K.val)?K.val:"":(U.isExist(K.val)&&("string"==typeof K.val&&(""===K.val||K.val===V.cdataPositionChar)||(G+='"'+V.textNodeName+'" : '+function(j){return!0!==j&&!1!==j&&isNaN(j)?'"'+j+'"':j}(K.val))),","===G[G.length-1]&&(G=G.substr(0,G.length-2)),G+"}")};H.convertToJsonString=function(K,V){return(V=W(V,Y.defaultOptions,Y.props)).indentBy=V.indentBy||"",$(K,V)}},9294:function(me,H,X){"use strict";var U=X(11081),W=X(92932),Y=X(92932),I=X(87715).buildOptions,$=X(34419);H.parse=function(E){var j=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},K=arguments.length>2?arguments[2]:void 0;if(K){!0===K&&(K={});var V=$.validate(E,K);if(!0!==V)throw Error(V.err.msg)}j.parseTrueNumberOnly&&!1!==j.parseNodeValue&&!j.numParseOptions&&(j.numParseOptions={leadingZeros:!1});var Q=I(j,Y.defaultOptions,Y.props),G=W.getTraversalObj(E,Q);return U.convertToJson(G,Q)},H.convertTonimn=X(47434).convert2nimn,H.getTraversalObj=W.getTraversalObj,H.convertToJson=U.convertToJson,H.convertToJsonString=X(52190).convertToJsonString,H.validate=$.validate,H.j2xParser=X(72936),H.parseToNimn=function(E,j,K){return H.convertTonimn(H.getTraversalObj(E,K),j,K)}},87715:function(me,H){"use strict";var W="[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",Y=new RegExp("^"+W+"$");H.isExist=function(u){return void 0!==u},H.isEmptyObject=function(u){return 0===Object.keys(u).length},H.merge=function(u,E,j){if(E)for(var K=Object.keys(E),V=K.length,Q=0;Q<V;Q++)u[K[Q]]="strict"===j?[E[K[Q]]]:E[K[Q]]},H.getValue=function(u){return H.isExist(u)?u:""},H.buildOptions=function(u,E,j){var K={};if(!u)return E;for(var V=0;V<j.length;V++)K[j[V]]=void 0!==u[j[V]]?u[j[V]]:E[j[V]];return K},H.isTagNameInArrayMode=function(u,E,j){return!1!==E&&(E instanceof RegExp?E.test(u):"function"==typeof E?!!E(u,j):"strict"===E)},H.isName=function(E){return!(null==Y.exec(E))},H.getAllMatches=function(E,j){for(var K=[],V=j.exec(E);V;){for(var Q=[],G=V.length,O=0;O<G;O++)Q.push(V[O]);K.push(Q),V=j.exec(E)}return K},H.nameRegexp=W},34419:function(me,H,X){"use strict";var U=X(87715),W={allowBooleanAttributes:!1},Y=["allowBooleanAttributes"];function I(y,g){for(var b=g;g<y.length;g++)if("?"==y[g]||" "==y[g]){var p=y.substr(b,g-b);if(g>5&&"xml"===p)return O("InvalidXml","XML declaration allowed only at the start of the document.",R(y,g));if("?"==y[g]&&">"==y[g+1]){g++;break}continue}return g}function $(y,g){if(y.length>g+5&&"-"===y[g+1]&&"-"===y[g+2]){for(g+=3;g<y.length;g++)if("-"===y[g]&&"-"===y[g+1]&&">"===y[g+2]){g+=2;break}}else if(y.length>g+8&&"D"===y[g+1]&&"O"===y[g+2]&&"C"===y[g+3]&&"T"===y[g+4]&&"Y"===y[g+5]&&"P"===y[g+6]&&"E"===y[g+7]){var b=1;for(g+=8;g<y.length;g++)if("<"===y[g])b++;else if(">"===y[g]&&0==--b)break}else if(y.length>g+9&&"["===y[g+1]&&"C"===y[g+2]&&"D"===y[g+3]&&"A"===y[g+4]&&"T"===y[g+5]&&"A"===y[g+6]&&"["===y[g+7])for(g+=8;g<y.length;g++)if("]"===y[g]&&"]"===y[g+1]&&">"===y[g+2]){g+=2;break}return g}function j(y,g){for(var b="",p="",S=!1;g<y.length;g++){if('"'===y[g]||"'"===y[g])if(""===p)p=y[g];else{if(p!==y[g])continue;p=""}else if(">"===y[g]&&""===p){S=!0;break}b+=y[g]}return""===p&&{value:b,index:g,tagClosed:S}}H.validate=function(y,g){g=U.buildOptions(g,W,Y);var b=[],p=!1,S=!1;"\ufeff"===y[0]&&(y=y.substr(1));for(var k=0;k<y.length;k++)if("<"===y[k]&&"?"===y[k+1]){if((k=I(y,k+=2)).err)return k}else{if("<"!==y[k]){if(" "===y[k]||"\t"===y[k]||"\n"===y[k]||"\r"===y[k])continue;return O("InvalidChar","char '"+y[k]+"' is not expected.",R(y,k))}if("!"===y[++k]){k=$(y,k);continue}var re=!1;"/"===y[k]&&(re=!0,k++);for(var C="";k<y.length&&">"!==y[k]&&" "!==y[k]&&"\t"!==y[k]&&"\n"!==y[k]&&"\r"!==y[k];k++)C+=y[k];if("/"===(C=C.trim())[C.length-1]&&(C=C.substring(0,C.length-1),k--),!L(C))return O("InvalidTag",0===C.trim().length?"There is an unnecessary space between tag name and backward slash '</ ..'.":"Tag '"+C+"' is an invalid name.",R(y,k));var B=j(y,k);if(!1===B)return O("InvalidAttr","Attributes for '"+C+"' have open quote.",R(y,k));var D=B.value;if(k=B.index,"/"===D[D.length-1]){var q=V(D=D.substring(0,D.length-1),g);if(!0!==q)return O(q.err.code,q.err.msg,R(y,k-D.length+q.err.line));p=!0}else if(re){if(!B.tagClosed)return O("InvalidTag","Closing tag '"+C+"' doesn't have proper closing.",R(y,k));if(D.trim().length>0)return O("InvalidTag","Closing tag '"+C+"' can't have attributes or invalid starting.",R(y,k));var M=b.pop();if(C!==M)return O("InvalidTag","Closing tag '"+M+"' is expected inplace of '"+C+"'.",R(y,k));0==b.length&&(S=!0)}else{var Z=V(D,g);if(!0!==Z)return O(Z.err.code,Z.err.msg,R(y,k-D.length+Z.err.line));if(!0===S)return O("InvalidXml","Multiple possible root nodes found.",R(y,k));b.push(C),p=!0}for(k++;k<y.length;k++)if("<"===y[k]){if("!"===y[k+1]){k=$(y,++k);continue}if("?"!==y[k+1])break;if((k=I(y,++k)).err)return k}else if("&"===y[k]){var ae=G(y,k);if(-1==ae)return O("InvalidChar","char '&' is not expected.",R(y,k));k=ae}"<"===y[k]&&k--}return p?!(b.length>0)||O("InvalidXml","Invalid '"+JSON.stringify(b,null,4).replace(/\r?\n/g,"")+"' found.",1):O("InvalidXml","Start tag expected.",1)};var K=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function V(y,g){for(var b=U.getAllMatches(y,K),p={},S=0;S<b.length;S++){if(0===b[S][1].length)return O("InvalidAttr","Attribute '"+b[S][2]+"' has no space in starting.",x(y,b[S][0]));if(void 0===b[S][3]&&!g.allowBooleanAttributes)return O("InvalidAttr","boolean attribute '"+b[S][2]+"' is not allowed.",x(y,b[S][0]));var k=b[S][2];if(!P(k))return O("InvalidAttr","Attribute '"+k+"' is an invalid name.",x(y,b[S][0]));if(p.hasOwnProperty(k))return O("InvalidAttr","Attribute '"+k+"' is repeated.",x(y,b[S][0]));p[k]=1}return!0}function G(y,g){if(";"===y[++g])return-1;if("#"===y[g])return function(y,g){var b=/\d/;for("x"===y[g]&&(g++,b=/[\da-fA-F]/);g<y.length;g++){if(";"===y[g])return g;if(!y[g].match(b))break}return-1}(y,++g);for(var b=0;g<y.length;g++,b++)if(!(y[g].match(/\w/)&&b<20)){if(";"===y[g])break;return-1}return g}function O(y,g,b){return{err:{code:y,msg:g,line:b}}}function P(y){return U.isName(y)}function L(y){return U.isName(y)}function R(y,g){return y.substring(0,g).split(/\r?\n/).length}function x(y,g){return y.indexOf(g)+g.length}},87828:function(me){"use strict";me.exports=function(H,X,U){this.tagname=H,this.parent=X,this.child={},this.attrsMap={},this.val=U,this.addChild=function(W){Array.isArray(this.child[W.tagname])?this.child[W.tagname].push(W):this.child[W.tagname]=[W]}}},92932:function(me,H,X){"use strict";var U=X(87715),W=X(87715).buildOptions,Y=X(87828),I=X(34972);"<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,U.nameRegexp),!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var u={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,ignoreNameSpace:!1,allowBooleanAttributes:!1,parseNodeValue:!0,parseAttributeValue:!1,arrayMode:!1,trimValues:!0,cdataTagName:!1,cdataPositionChar:"\\c",numParseOptions:{hex:!0,leadingZeros:!0},tagValueProcessor:function(x,y){return x},attrValueProcessor:function(x,y){return x},stopNodes:[]};H.defaultOptions=u;var E=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","numParseOptions","stopNodes"];function j(R,x,y){return x&&(y.trimValues&&(x=x.trim()),x=V(x=y.tagValueProcessor(x,R),y.parseNodeValue,y.numParseOptions)),x}function K(R,x){if(x.ignoreNameSpace){var y=R.split(":"),g="/"===R.charAt(0)?"/":"";if("xmlns"===y[0])return"";2===y.length&&(R=g+y[1])}return R}function V(R,x,y){if(x&&"string"==typeof R){var g=R.trim();return"true"===g||"false"!==g&&I(R,y)}return U.isExist(R)?R:""}H.props=E;var Q=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])(.*?)\\3)?","g");function G(R,x){if(!x.ignoreAttributes&&"string"==typeof R){R=R.replace(/\r?\n/g," ");for(var y=U.getAllMatches(R,Q),g=y.length,b={},p=0;p<g;p++){var S=K(y[p][1],x);S.length&&(void 0!==y[p][4]?(x.trimValues&&(y[p][4]=y[p][4].trim()),y[p][4]=x.attrValueProcessor(y[p][4],S),b[x.attributeNamePrefix+S]=V(y[p][4],x.parseAttributeValue,x.numParseOptions)):x.allowBooleanAttributes&&(b[x.attributeNamePrefix+S]=!0))}if(!Object.keys(b).length)return;if(x.attrNodeName){var k={};return k[x.attrNodeName]=b,k}return b}}function P(R,x){for(var y,g="",b=x;b<R.length;b++){var p=R[b];if(y)p===y&&(y="");else if('"'===p||"'"===p)y=p;else{if(">"===p)return{data:g,index:b};"\t"===p&&(p=" ")}g+=p}}function L(R,x,y,g){var b=R.indexOf(x,y);if(-1===b)throw new Error(g);return b+x.length-1}H.getTraversalObj=function(x,y){x=x.replace(/\r\n?/g,"\n"),y=W(y,u,E);for(var g=new Y("!xml"),b=g,p="",S=0;S<x.length;S++)if("<"===x[S])if("/"===x[S+1]){var re=L(x,">",S,"Closing Tag is not closed."),C=x.substring(S+2,re).trim();if(y.ignoreNameSpace){var T=C.indexOf(":");-1!==T&&(C=C.substr(T+1))}b&&(b.val=b.val?U.getValue(b.val)+""+j(C,p,y):j(C,p,y)),y.stopNodes.length&&y.stopNodes.includes(b.tagname)&&(b.child=[],null==b.attrsMap&&(b.attrsMap={}),b.val=x.substr(b.startIndex+1,S-b.startIndex-1)),b=b.parent,p="",S=re}else if("?"===x[S+1])S=L(x,"?>",S,"Pi Tag is not closed.");else if("!--"===x.substr(S+1,3))S=L(x,"--\x3e",S,"Comment is not closed.");else if("!D"===x.substr(S+1,2)){var B=L(x,">",S,"DOCTYPE is not closed.");S=x.substring(S,B).indexOf("[")>=0?x.indexOf("]>",S)+1:B}else if("!["===x.substr(S+1,2)){var q=L(x,"]]>",S,"CDATA is not closed.")-2,M=x.substring(S+9,q);if(p&&(b.val=U.getValue(b.val)+""+j(b.tagname,p,y),p=""),y.cdataTagName){var Z=new Y(y.cdataTagName,b,M);b.addChild(Z),b.val=U.getValue(b.val)+y.cdataPositionChar,M&&(Z.val=M)}else b.val=(b.val||"")+(M||"");S=q+2}else{var ae=P(x,S+1),se=ae.data,te=ae.index,ve=se.indexOf(" "),le=se,fe=!0;if(-1!==ve&&(le=se.substr(0,ve).replace(/\s\s*$/,""),se=se.substr(ve+1)),y.ignoreNameSpace){var Pe=le.indexOf(":");-1!==Pe&&(fe=(le=le.substr(Pe+1))!==ae.data.substr(Pe+1))}if(b&&p&&"!xml"!==b.tagname&&(b.val=U.getValue(b.val)+""+j(b.tagname,p,y)),se.length>0&&se.lastIndexOf("/")===se.length-1){se="/"===le[le.length-1]?le=le.substr(0,le.length-1):se.substr(0,se.length-1);var Ke=new Y(le,b,"");le!==se&&(Ke.attrsMap=G(se,y)),b.addChild(Ke)}else{var Le=new Y(le,b);y.stopNodes.length&&y.stopNodes.includes(Le.tagname)&&(Le.startIndex=te),le!==se&&fe&&(Le.attrsMap=G(se,y)),b.addChild(Le),b=Le}p="",S=te}else p+=x[S];return g}},34972:function(me){var H=/^[-+]?0x[a-fA-F0-9]+$/,X=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/,U={hex:!0,leadingZeros:!0,decimalPoint:"."};me.exports=function(Y){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(I=Object.assign({},U,I),!Y||"string"!=typeof Y)return Y;var $=Y.trim();if(void 0!==I.skipLike&&I.skipLike.test($))return Y;if(I.hex&&H.test($))return Number.parseInt($,16);var u=X.exec($);if(u){var j=u[2],K=u[3];return 1===j.length&&"."===K[0]?Number(Y):!I.leadingZeros&&j.length>0?Y:Number($)}return Y}},39229:function(me,H,X){"use strict";X.r(H),X.d(H,{__extends:function(){return W},__assign:function(){return Y},__rest:function(){return I},__decorate:function(){return $},__param:function(){return u},__metadata:function(){return E},__awaiter:function(){return j},__generator:function(){return K},__createBinding:function(){return V},__exportStar:function(){return Q},__values:function(){return G},__read:function(){return O},__spread:function(){return P},__spreadArrays:function(){return L},__await:function(){return R},__asyncGenerator:function(){return x},__asyncDelegator:function(){return y},__asyncValues:function(){return g},__makeTemplateObject:function(){return b},__importStar:function(){return p},__importDefault:function(){return S},__classPrivateFieldGet:function(){return k},__classPrivateFieldSet:function(){return re}});var U=function(C,T){return(U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,D){B.__proto__=D}||function(B,D){for(var q in D)D.hasOwnProperty(q)&&(B[q]=D[q])})(C,T)};function W(C,T){function B(){this.constructor=C}U(C,T),C.prototype=null===T?Object.create(T):(B.prototype=T.prototype,new B)}var Y=function(){return(Y=Object.assign||function(T){for(var B,D=1,q=arguments.length;D<q;D++)for(var M in B=arguments[D])Object.prototype.hasOwnProperty.call(B,M)&&(T[M]=B[M]);return T}).apply(this,arguments)};function I(C,T){var B={};for(var D in C)Object.prototype.hasOwnProperty.call(C,D)&&T.indexOf(D)<0&&(B[D]=C[D]);if(null!=C&&"function"==typeof Object.getOwnPropertySymbols){var q=0;for(D=Object.getOwnPropertySymbols(C);q<D.length;q++)T.indexOf(D[q])<0&&Object.prototype.propertyIsEnumerable.call(C,D[q])&&(B[D[q]]=C[D[q]])}return B}function $(C,T,B,D){var Z,q=arguments.length,M=q<3?T:null===D?D=Object.getOwnPropertyDescriptor(T,B):D;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)M=Reflect.decorate(C,T,B,D);else for(var ae=C.length-1;ae>=0;ae--)(Z=C[ae])&&(M=(q<3?Z(M):q>3?Z(T,B,M):Z(T,B))||M);return q>3&&M&&Object.defineProperty(T,B,M),M}function u(C,T){return function(B,D){T(B,D,C)}}function E(C,T){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(C,T)}function j(C,T,B,D){return new(B||(B=Promise))(function(M,Z){function ae(ve){try{te(D.next(ve))}catch(le){Z(le)}}function se(ve){try{te(D.throw(ve))}catch(le){Z(le)}}function te(ve){ve.done?M(ve.value):function(M){return M instanceof B?M:new B(function(Z){Z(M)})}(ve.value).then(ae,se)}te((D=D.apply(C,T||[])).next())})}function K(C,T){var D,q,M,Z,B={label:0,sent:function(){if(1&M[0])throw M[1];return M[1]},trys:[],ops:[]};return Z={next:ae(0),throw:ae(1),return:ae(2)},"function"==typeof Symbol&&(Z[Symbol.iterator]=function(){return this}),Z;function ae(te){return function(ve){return function(te){if(D)throw new TypeError("Generator is already executing.");for(;B;)try{if(D=1,q&&(M=2&te[0]?q.return:te[0]?q.throw||((M=q.return)&&M.call(q),0):q.next)&&!(M=M.call(q,te[1])).done)return M;switch(q=0,M&&(te=[2&te[0],M.value]),te[0]){case 0:case 1:M=te;break;case 4:return B.label++,{value:te[1],done:!1};case 5:B.label++,q=te[1],te=[0];continue;case 7:te=B.ops.pop(),B.trys.pop();continue;default:if(!(M=(M=B.trys).length>0&&M[M.length-1])&&(6===te[0]||2===te[0])){B=0;continue}if(3===te[0]&&(!M||te[1]>M[0]&&te[1]<M[3])){B.label=te[1];break}if(6===te[0]&&B.label<M[1]){B.label=M[1],M=te;break}if(M&&B.label<M[2]){B.label=M[2],B.ops.push(te);break}M[2]&&B.ops.pop(),B.trys.pop();continue}te=T.call(C,B)}catch(ve){te=[6,ve],q=0}finally{D=M=0}if(5&te[0])throw te[1];return{value:te[0]?te[1]:void 0,done:!0}}([te,ve])}}}function V(C,T,B,D){void 0===D&&(D=B),C[D]=T[B]}function Q(C,T){for(var B in C)"default"!==B&&!T.hasOwnProperty(B)&&(T[B]=C[B])}function G(C){var T="function"==typeof Symbol&&Symbol.iterator,B=T&&C[T],D=0;if(B)return B.call(C);if(C&&"number"==typeof C.length)return{next:function(){return C&&D>=C.length&&(C=void 0),{value:C&&C[D++],done:!C}}};throw new TypeError(T?"Object is not iterable.":"Symbol.iterator is not defined.")}function O(C,T){var B="function"==typeof Symbol&&C[Symbol.iterator];if(!B)return C;var q,Z,D=B.call(C),M=[];try{for(;(void 0===T||T-- >0)&&!(q=D.next()).done;)M.push(q.value)}catch(ae){Z={error:ae}}finally{try{q&&!q.done&&(B=D.return)&&B.call(D)}finally{if(Z)throw Z.error}}return M}function P(){for(var C=[],T=0;T<arguments.length;T++)C=C.concat(O(arguments[T]));return C}function L(){for(var C=0,T=0,B=arguments.length;T<B;T++)C+=arguments[T].length;var D=Array(C),q=0;for(T=0;T<B;T++)for(var M=arguments[T],Z=0,ae=M.length;Z<ae;Z++,q++)D[q]=M[Z];return D}function R(C){return this instanceof R?(this.v=C,this):new R(C)}function x(C,T,B){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var q,D=B.apply(C,T||[]),M=[];return q={},Z("next"),Z("throw"),Z("return"),q[Symbol.asyncIterator]=function(){return this},q;function Z(fe){D[fe]&&(q[fe]=function(Pe){return new Promise(function(Ke,Le){M.push([fe,Pe,Ke,Le])>1||ae(fe,Pe)})})}function ae(fe,Pe){try{!function(fe){fe.value instanceof R?Promise.resolve(fe.value.v).then(te,ve):le(M[0][2],fe)}(D[fe](Pe))}catch(Ke){le(M[0][3],Ke)}}function te(fe){ae("next",fe)}function ve(fe){ae("throw",fe)}function le(fe,Pe){fe(Pe),M.shift(),M.length&&ae(M[0][0],M[0][1])}}function y(C){var T,B;return T={},D("next"),D("throw",function(q){throw q}),D("return"),T[Symbol.iterator]=function(){return this},T;function D(q,M){T[q]=C[q]?function(Z){return(B=!B)?{value:R(C[q](Z)),done:"return"===q}:M?M(Z):Z}:M}}function g(C){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var B,T=C[Symbol.asyncIterator];return T?T.call(C):(C=G(C),B={},D("next"),D("throw"),D("return"),B[Symbol.asyncIterator]=function(){return this},B);function D(M){B[M]=C[M]&&function(Z){return new Promise(function(ae,se){!function(M,Z,ae,se){Promise.resolve(se).then(function(te){M({value:te,done:ae})},Z)}(ae,se,(Z=C[M](Z)).done,Z.value)})}}}function b(C,T){return Object.defineProperty?Object.defineProperty(C,"raw",{value:T}):C.raw=T,C}function p(C){if(C&&C.__esModule)return C;var T={};if(null!=C)for(var B in C)Object.hasOwnProperty.call(C,B)&&(T[B]=C[B]);return T.default=C,T}function S(C){return C&&C.__esModule?C:{default:C}}function k(C,T){if(!T.has(C))throw new TypeError("attempted to get private field on non-instance");return T.get(C)}function re(C,T,B){if(!T.has(C))throw new TypeError("attempted to set private field on non-instance");return T.set(C,B),B}}}]);