_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[39],{"+6XX":function(e,t,r){var n=r("y1pI");e.exports=function(e){return n(this.__data__,e)>-1}},"+KNX":function(e){e.exports=JSON.parse('{"name":"@aws-sdk/client-cognito-identity","description":"AWS SDK for JavaScript Cognito Identity Client for Node.js, Browser and React Native","version":"1.0.0-rc.4","scripts":{"clean":"npm run remove-definitions && npm run remove-dist","build-documentation":"npm run clean && typedoc ./","prepublishOnly":"yarn build","pretest":"yarn build:cjs","remove-definitions":"rimraf ./types","remove-dist":"rimraf ./dist","remove-documentation":"rimraf ./docs","test:unit":"mocha **/cjs/**/*.spec.js","test:e2e":"mocha **/cjs/**/*.ispec.js && karma start karma.conf.js","test":"yarn test:unit","build:cjs":"tsc -p tsconfig.json","build:es":"tsc -p tsconfig.es.json","build":"yarn build:cjs && yarn build:es"},"main":"./dist/cjs/index.js","types":"./types/index.d.ts","module":"./dist/es/index.js","browser":{"./runtimeConfig":"./runtimeConfig.browser"},"react-native":{"./runtimeConfig":"./runtimeConfig.native"},"sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"^1.0.0","@aws-crypto/sha256-js":"^1.0.0","@aws-sdk/config-resolver":"1.0.0-rc.3","@aws-sdk/credential-provider-node":"1.0.0-rc.3","@aws-sdk/fetch-http-handler":"1.0.0-rc.3","@aws-sdk/hash-node":"1.0.0-rc.3","@aws-sdk/invalid-dependency":"1.0.0-rc.3","@aws-sdk/middleware-content-length":"1.0.0-rc.3","@aws-sdk/middleware-host-header":"1.0.0-rc.3","@aws-sdk/middleware-logger":"1.0.0-rc.4","@aws-sdk/middleware-retry":"1.0.0-rc.4","@aws-sdk/middleware-serde":"1.0.0-rc.3","@aws-sdk/middleware-signing":"1.0.0-rc.3","@aws-sdk/middleware-stack":"1.0.0-rc.4","@aws-sdk/middleware-user-agent":"1.0.0-rc.3","@aws-sdk/node-config-provider":"1.0.0-rc.3","@aws-sdk/node-http-handler":"1.0.0-rc.3","@aws-sdk/protocol-http":"1.0.0-rc.3","@aws-sdk/smithy-client":"1.0.0-rc.4","@aws-sdk/types":"1.0.0-rc.3","@aws-sdk/url-parser-browser":"1.0.0-rc.3","@aws-sdk/url-parser-node":"1.0.0-rc.3","@aws-sdk/util-base64-browser":"1.0.0-rc.3","@aws-sdk/util-base64-node":"1.0.0-rc.3","@aws-sdk/util-body-length-browser":"1.0.0-rc.3","@aws-sdk/util-body-length-node":"1.0.0-rc.3","@aws-sdk/util-user-agent-browser":"1.0.0-rc.3","@aws-sdk/util-user-agent-node":"1.0.0-rc.3","@aws-sdk/util-utf8-browser":"1.0.0-rc.3","@aws-sdk/util-utf8-node":"1.0.0-rc.3","tslib":"^2.0.0"},"devDependencies":{"@aws-sdk/client-documentation-generator":"1.0.0-rc.3","@aws-sdk/client-iam":"1.0.0-rc.4","@types/chai":"^4.2.11","@types/mocha":"^7.0.2","@types/node":"^12.7.5","jest":"^26.1.0","rimraf":"^3.0.0","typedoc":"^0.17.8","typescript":"~4.0.2"},"engines":{"node":">=10.0.0"},"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","homepage":"https://github.com/aws/aws-sdk-js-v3/tree/master/clients/client-cognito-identity","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-cognito-identity"}}')},"+OK2":function(e,t,r){var n=r("oGmC");function i(e,t){this.hash=new e,this.outer=new e;var r=function(e,t){var r=n.convertToBuffer(t);if(r.byteLength>e.BLOCK_SIZE){var i=new e;i.update(r),r=i.digest()}var o=new Uint8Array(e.BLOCK_SIZE);return o.set(r),o}(e,t),i=new Uint8Array(e.BLOCK_SIZE);i.set(r);for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:{},t=e.ampFirst,r=void 0!==t&&t,n=e.hybrid,i=void 0!==n&&n,o=e.hasQuery,a=void 0!==o&&o;return r||i&&a}},"/s7S":function(e,t,r){},0:function(e,t){},"03A+":function(e,t,r){var n=r("JTzB"),i=r("ExA7"),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},"0Cz8":function(e,t,r){var n=r("Xi7e"),i=r("ebwN"),o=r("e4Nc");e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(a)}return r.set(e,t),this.size=r.size,this}},"0JXb":function(e){e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2014-06-30","endpointPrefix":"cognito-identity","jsonVersion":"1.1","protocol":"json","serviceFullName":"Amazon Cognito Identity","serviceId":"Cognito Identity","signatureVersion":"v4","targetPrefix":"AWSCognitoIdentityService","uid":"cognito-identity-2014-06-30"},"operations":{"CreateIdentityPool":{"input":{"type":"structure","required":["IdentityPoolName","AllowUnauthenticatedIdentities"],"members":{"IdentityPoolName":{},"AllowUnauthenticatedIdentities":{"type":"boolean"},"AllowClassicFlow":{"type":"boolean"},"SupportedLoginProviders":{"shape":"S5"},"DeveloperProviderName":{},"OpenIdConnectProviderARNs":{"shape":"S9"},"CognitoIdentityProviders":{"shape":"Sb"},"SamlProviderARNs":{"shape":"Sg"},"IdentityPoolTags":{"shape":"Sh"}}},"output":{"shape":"Sk"}},"DeleteIdentities":{"input":{"type":"structure","required":["IdentityIdsToDelete"],"members":{"IdentityIdsToDelete":{"type":"list","member":{}}}},"output":{"type":"structure","members":{"UnprocessedIdentityIds":{"type":"list","member":{"type":"structure","members":{"IdentityId":{},"ErrorCode":{}}}}}}},"DeleteIdentityPool":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}}},"DescribeIdentity":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{}}},"output":{"shape":"Sv"}},"DescribeIdentityPool":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}},"output":{"shape":"Sk"}},"GetCredentialsForIdentity":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{},"Logins":{"shape":"S10"},"CustomRoleArn":{}}},"output":{"type":"structure","members":{"IdentityId":{},"Credentials":{"type":"structure","members":{"AccessKeyId":{},"SecretKey":{},"SessionToken":{},"Expiration":{"type":"timestamp"}}}}},"authtype":"none"},"GetId":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"AccountId":{},"IdentityPoolId":{},"Logins":{"shape":"S10"}}},"output":{"type":"structure","members":{"IdentityId":{}}},"authtype":"none"},"GetIdentityPoolRoles":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"Roles":{"shape":"S1c"},"RoleMappings":{"shape":"S1e"}}}},"GetOpenIdToken":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{},"Logins":{"shape":"S10"}}},"output":{"type":"structure","members":{"IdentityId":{},"Token":{}}},"authtype":"none"},"GetOpenIdTokenForDeveloperIdentity":{"input":{"type":"structure","required":["IdentityPoolId","Logins"],"members":{"IdentityPoolId":{},"IdentityId":{},"Logins":{"shape":"S10"},"PrincipalTags":{"shape":"S1s"},"TokenDuration":{"type":"long"}}},"output":{"type":"structure","members":{"IdentityId":{},"Token":{}}}},"GetPrincipalTagAttributeMap":{"input":{"type":"structure","required":["IdentityPoolId","IdentityProviderName"],"members":{"IdentityPoolId":{},"IdentityProviderName":{}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}}},"ListIdentities":{"input":{"type":"structure","required":["IdentityPoolId","MaxResults"],"members":{"IdentityPoolId":{},"MaxResults":{"type":"integer"},"NextToken":{},"HideDisabled":{"type":"boolean"}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"Identities":{"type":"list","member":{"shape":"Sv"}},"NextToken":{}}}},"ListIdentityPools":{"input":{"type":"structure","required":["MaxResults"],"members":{"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"IdentityPools":{"type":"list","member":{"type":"structure","members":{"IdentityPoolId":{},"IdentityPoolName":{}}}},"NextToken":{}}}},"ListTagsForResource":{"input":{"type":"structure","required":["ResourceArn"],"members":{"ResourceArn":{}}},"output":{"type":"structure","members":{"Tags":{"shape":"Sh"}}}},"LookupDeveloperIdentity":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{},"IdentityId":{},"DeveloperUserIdentifier":{},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"IdentityId":{},"DeveloperUserIdentifierList":{"type":"list","member":{}},"NextToken":{}}}},"MergeDeveloperIdentities":{"input":{"type":"structure","required":["SourceUserIdentifier","DestinationUserIdentifier","DeveloperProviderName","IdentityPoolId"],"members":{"SourceUserIdentifier":{},"DestinationUserIdentifier":{},"DeveloperProviderName":{},"IdentityPoolId":{}}},"output":{"type":"structure","members":{"IdentityId":{}}}},"SetIdentityPoolRoles":{"input":{"type":"structure","required":["IdentityPoolId","Roles"],"members":{"IdentityPoolId":{},"Roles":{"shape":"S1c"},"RoleMappings":{"shape":"S1e"}}}},"SetPrincipalTagAttributeMap":{"input":{"type":"structure","required":["IdentityPoolId","IdentityProviderName"],"members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}}},"TagResource":{"input":{"type":"structure","required":["ResourceArn","Tags"],"members":{"ResourceArn":{},"Tags":{"shape":"Sh"}}},"output":{"type":"structure","members":{}}},"UnlinkDeveloperIdentity":{"input":{"type":"structure","required":["IdentityId","IdentityPoolId","DeveloperProviderName","DeveloperUserIdentifier"],"members":{"IdentityId":{},"IdentityPoolId":{},"DeveloperProviderName":{},"DeveloperUserIdentifier":{}}}},"UnlinkIdentity":{"input":{"type":"structure","required":["IdentityId","Logins","LoginsToRemove"],"members":{"IdentityId":{},"Logins":{"shape":"S10"},"LoginsToRemove":{"shape":"Sw"}}},"authtype":"none"},"UntagResource":{"input":{"type":"structure","required":["ResourceArn","TagKeys"],"members":{"ResourceArn":{},"TagKeys":{"type":"list","member":{}}}},"output":{"type":"structure","members":{}}},"UpdateIdentityPool":{"input":{"shape":"Sk"},"output":{"shape":"Sk"}}},"shapes":{"S5":{"type":"map","key":{},"value":{}},"S9":{"type":"list","member":{}},"Sb":{"type":"list","member":{"type":"structure","members":{"ProviderName":{},"ClientId":{},"ServerSideTokenCheck":{"type":"boolean"}}}},"Sg":{"type":"list","member":{}},"Sh":{"type":"map","key":{},"value":{}},"Sk":{"type":"structure","required":["IdentityPoolId","IdentityPoolName","AllowUnauthenticatedIdentities"],"members":{"IdentityPoolId":{},"IdentityPoolName":{},"AllowUnauthenticatedIdentities":{"type":"boolean"},"AllowClassicFlow":{"type":"boolean"},"SupportedLoginProviders":{"shape":"S5"},"DeveloperProviderName":{},"OpenIdConnectProviderARNs":{"shape":"S9"},"CognitoIdentityProviders":{"shape":"Sb"},"SamlProviderARNs":{"shape":"Sg"},"IdentityPoolTags":{"shape":"Sh"}}},"Sv":{"type":"structure","members":{"IdentityId":{},"Logins":{"shape":"Sw"},"CreationDate":{"type":"timestamp"},"LastModifiedDate":{"type":"timestamp"}}},"Sw":{"type":"list","member":{}},"S10":{"type":"map","key":{},"value":{}},"S1c":{"type":"map","key":{},"value":{}},"S1e":{"type":"map","key":{},"value":{"type":"structure","required":["Type"],"members":{"Type":{},"AmbiguousRoleResolution":{},"RulesConfiguration":{"type":"structure","required":["Rules"],"members":{"Rules":{"type":"list","member":{"type":"structure","required":["Claim","MatchType","Value","RoleARN"],"members":{"Claim":{},"MatchType":{},"Value":{},"RoleARN":{}}}}}}}}},"S1s":{"type":"map","key":{},"value":{}}}}')},"0ycA":function(e,t){e.exports=function(){return[]}},14:function(e,t,r){r("GcxT"),e.exports=r("nOHt")},"1FAM":function(e,t){var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var n=new Uint8Array(16);e.exports=function(){return r(n),n}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0===(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},"1TCz":function(e,t,r){"use strict";r.r(t);var n=r("o0o1"),i=r.n(n),o=r("HaE+"),a=r("nKUr"),s=r("rePB"),u=r("h4VS"),c=(r("zPlV"),r("q1tI")),l=r.n(c),f=r("hJLF"),d=r("8Kt/"),p=r.n(d);var h,v=function(e){var t=e.children,r=Object(c.useState)([]),n=r[0],i=r[1],o=Object(c.useState)({}),s=o[0],u=o[1],l=Object(c.useState)({}),d=l[0],p=l[1],h=Object(c.useState)({}),v=h[0],g=h[1],y=Object(c.useState)(!0),m=y[0],b=y[1],S=Object(c.useState)(null),w=S[0],_=S[1],O=Object(c.useState)([]),E=O[0],j=O[1],k=Object(c.useState)(""),C=k[0],A=k[1],x=Object(c.useState)(""),I=x[0],T=x[1],P=Object(c.useState)({}),R=P[0],N=P[1],L=Object(c.useState)({}),M=L[0],D=L[1],U=Object(c.useState)({}),q=U[0],F=U[1],B=Object(c.useState)(""),z=B[0],V=B[1],H=Object(c.useState)(""),K=H[0],W=H[1],Q=Object(c.useState)(!1),G=Q[0],X=Q[1],J=Object(c.useState)(""),Y=J[0],Z=J[1],$=Object(c.useState)(!1),ee=$[0],te=$[1],re=Object(c.useState)({}),ne=re[0],ie=re[1],oe=Object(c.useState)(!1),ae=oe[0],se=oe[1],ue=Object(c.useState)("myStudies"),ce=ue[0],le=ue[1],fe=Object(c.useState)("In_Progress"),de=fe[0],pe=fe[1],he=Object(c.useState)(""),ve=he[0],ge=he[1],ye=Object(c.useState)("all"),me=ye[0],be=ye[1],Se=Object(c.useState)(null),we=Se[0],_e=Se[1],Oe=Object(c.useState)({}),Ee=Oe[0],je=Oe[1],ke=Object(c.useState)(!1),Ce=ke[0],Ae=ke[1],xe=Object(c.useState)(null),Ie=xe[0],Te=xe[1],Pe=Object(c.useState)(null),Re=Pe[0],Ne=Pe[1],Le=Object(c.useState)(null),Me=Le[0],De=Le[1],Ue=Object(c.useState)(!1),qe=Ue[0],Fe=Ue[1],Be=Object(c.useState)("all"),ze=Be[0],Ve=Be[1],He=Object(c.useState)(!1),Ke=He[0],We=He[1],Qe=Object(c.useState)(""),Ge=Qe[0],Xe=Qe[1],Je=Object(c.useState)(!1),Ye=Je[0],Ze=Je[1],$e=Object(c.useState)(null),et=$e[0],tt=$e[1],rt=Object(c.useState)(!1),nt=rt[0],it=rt[1],ot=Object(c.useState)({open:!1,item:null}),at=ot[0],st=ot[1],ut=Object(c.useState)(null),ct=ut[0],lt=ut[1],ft=Object(c.useState)({}),dt=ft[0],pt=ft[1],ht=Object(c.useState)({}),vt=ht[0],gt=ht[1],yt=Object(c.useState)(!1),mt=yt[0],bt=yt[1],St=Object(c.useState)(!1),wt=St[0],_t=St[1],Ot=Object(c.useState)(!0),Et=Ot[0],jt=Ot[1],kt=Object(c.useState)({syncing:!1,time:""}),Ct=kt[0],At=kt[1],xt=Object(c.useState)({}),It=xt[0],Tt=xt[1],Pt=Object(c.useState)({}),Rt=Pt[0],Nt=Pt[1],Lt=Object(c.useState)({}),Mt=Lt[0],Dt=Lt[1],Ut=Object(c.useState)(null),qt=Ut[0],Ft=Ut[1],Bt=Object(c.useState)(null),zt=Bt[0],Vt=Bt[1],Ht=Object(c.useState)(null),Kt=Ht[0],Wt=Ht[1],Qt=Object(c.useState)(!1),Gt=Qt[0],Xt=Qt[1];return Object(a.jsx)(f.a.Provider,{value:{autoAddSamplesData:ct,setAutoAddSamplesData:lt,resetFilesData:nt,setResetFilesData:it,ignoreNavData:qe,setIgnoreNavData:Fe,paths:Ee,setPaths:je,tileSelection:ce,setTileSelection:le,statusSelection:de,setStatusSelection:pe,currentUser:ve,setCurrentUser:ge,timeFilter:me,setTimeFilter:be,items:n,setItems:i,centerData:s,setCenterData:u,rightData:d,setRightData:p,workspaceData:v,setWorkspaceData:g,removedUuids:Mt,setRemovedUuids:Dt,loading:m,setLoading:b,refetch:w,setRefetch:_,navBreadcrumbs:E,setNavBreadcrumbs:j,navInitialLoad:C,setNavInitialLoad:A,highlighted:I,setHighlighted:T,inventoryData:q,setInventoryData:F,equipmentData:R,setEquipmentData:N,equipmentCatalog:M,setEquipmentCatalog:D,jwtToken:z,setJwtToken:V,customerId:K,setCustomerId:W,logOut:G,setLogOut:X,sessionUser:Y,setSessionUser:Z,showNotesTab:ee,setShowNotesTab:te,labdrivedata:ne,setLabDriveData:ie,showMobileRightSection:ae,setShowMobileRightSection:se,cognitouser:we,setCogntitoUser:_e,openRightSection:Ce,setOpenRightSection:Ae,selectedTemplate:Ie,setSelectedTemplate:Te,selectedTemplateSubtasks:Re,setSelectedTemplateSubtasks:Ne,selectedTemplateTasks:Me,setSelectedTemplateTasks:De,scheduleItemType:ze,setScheduleItemType:Ve,getMore:Ke,setGetMore:We,scheduleParentWorkspace:Ge,setScheduleParentWorkspace:Xe,openLeft:Ye,setOpenLeft:Ze,debouncedLaneTitle:et,setDebouncedLaneTitle:tt,openTimerWarning:at,setOpenTimerWarning:st,cultureSyncStatus:Ct,setCultureSyncStatus:At,centerViewBag:dt,setCenterViewBag:pt,rightViewBag:vt,setRightViewBag:gt,rightAndCenterDataShare:Rt,setRightAndCenterDataShare:Nt,modeFullResources:mt,setModeFullResources:bt,orgNames:It,setOrgNames:Tt,allTemplateSubTasks:qt,setAllTemplateSubTasks:Ft,allTemplateData:zt,setAllTemplateData:Vt,showSaveWarning:wt,setShowSaveWarning:_t,saveTable:Et,setSaveTable:jt,reportData:Kt,setReportData:Wt,materialAdded:Gt,setMaterialAdded:Xt},children:t})},g=r("w9ET"),y=(r("5Buo"),r("MWEN"),r("Uzro"),r("e5SK"),r("Rkej"),r("IA2x"),r("mnkm"),r("KQm4")),m=r("VX74"),b=r("H8+m"),S=r("PE4B"),w=r.n(S),_=r("Y+p1"),O=r.n(_),E=r("ClJz");function j(e){var t=m.ApolloLink.from([Object(E.createAuthLink)({url:g.a.aws_appsync_graphqlEndpoint,region:g.a.aws_appsync_region,auth:{type:g.a.aws_appsync_authenticationType,jwtToken:localStorage.getItem("myToken")}}),Object(m.createHttpLink)({uri:g.a.aws_appsync_graphqlEndpoint})]);return new m.ApolloClient({ssrMode:!1,link:t,cache:new m.InMemoryCache({typePolicies:{Query:{fields:{listLeftNav:Object(b.k)(),listActivities:{merge:!0}}}}})})}function k(e,t){var r=e.__APOLLO_STATE__;return Object(c.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=j();if(e){var r=t.extract(),n=w()(e,r,{arrayMerge:function(e,t){return[].concat(Object(y.a)(t),Object(y.a)(e.filter((function(e){return t.every((function(t){return!O()(e,t)}))}))))}});t.cache.restore(n)}return h||(h=t),t}(r,t)}),[r,t])}var C=r("AL3R");r("wJ8+"),r("/s7S");function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e){for(var t=1;tthis.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),a=new n.a;function s(e){var t=e.unsubscribe;"function"===typeof t&&(e.unsubscribe=void 0,t())}var u=[];function c(e,t){if(!e)throw new Error(t||"assertion failure")}function l(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var f=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!p(this))return this.value[0]},e.prototype.recompute=function(e){return c(!this.recomputing,"already recomputing"),function(e){var t=a.getValue();if(t)e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),p(e)?g(t,e):y(t,e)}(this),p(this)?function(e,t){b(e),a.withValue(e,d,[e,t]),function(e,t){if("function"===typeof e.subscribe)try{s(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(r){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,p(e))return;v(e)}(e);return l(e.value)}(this,e):l(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,h(this),b(this),s(this))},e.prototype.dispose=function(){var e=this;b(this),s(this),this.parents.forEach((function(t){t.setDirty(),S(t,e)}))},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=u.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(this.deps.forEach((function(t){return t.delete(e)})),this.deps.clear(),u.push(this.deps),this.deps=null)},e.count=0,e}();function d(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(r){e.value[1]=r}e.recomputing=!1}function p(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function h(e){e.parents.forEach((function(t){return g(t,e)}))}function v(e){e.parents.forEach((function(t){return y(t,e)}))}function g(e,t){if(c(e.childValues.has(t)),c(p(t)),e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=u.pop()||new Set;e.dirtyChildren.add(t),h(e)}function y(e,t){c(e.childValues.has(t)),c(!p(t));var r=e.childValues.get(t);0===r.length?e.childValues.set(t,t.value.slice(0)):function(e,t){var r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}(r,t.value)||e.setDirty(),m(e,t),p(e)||v(e)}function m(e,t){var r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(u.length<100&&u.push(r),e.dirtyChildren=null))}function b(e){e.childValues.size>0&&e.childValues.forEach((function(t,r){S(e,r)})),e.forgetDeps(),c(null===e.dirtyChildren)}function S(e,t){t.parents.delete(e),e.childValues.delete(t),m(e,t)}var w=function(){return Object.create(null)},_=Array.prototype,O=_.forEach,E=_.slice,j=function(){function e(e,t){void 0===t&&(t=w),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t0&&void 0!==arguments[0]&&arguments[0],t=[i.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(i.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function f(e,t){return"string"===typeof t||"number"===typeof t?e:t.type===i.default.Fragment?e.concat(i.default.Children.toArray(t.props.children).reduce((function(e,t){return"string"===typeof t||"number"===typeof t?e:e.concat(t)}),[])):e.concat(t)}var d=["name","httpEquiv","charSet","itemProp"];function p(e,t){return e.reduce((function(e,t){var r=i.default.Children.toArray(t.props.children);return e.concat(r)}),[]).reduce(f,[]).reverse().concat(l(t.inAmpMode)).filter(function(){var e=new Set,t=new Set,r=new Set,n={};return function(i){var o=!0;if(i.key&&"number"!==typeof i.key&&i.key.indexOf("$")>0){var a=i.key.slice(i.key.indexOf("$")+1);e.has(a)?o=!1:e.add(a)}switch(i.type){case"title":case"base":t.has(i.type)?o=!1:t.add(i.type);break;case"meta":for(var s=0,u=d.length;sthis.expireTime)||(this.expired||!this.accessKeyId||!this.secretAccessKey)},get:function(e){var t=this;this.needsRefresh()?this.refresh((function(r){r||(t.expired=!1),e&&e(r)})):e&&e()},refresh:function(e){this.expired=!1,e()},coalesceRefresh:function(e,t){var r=this;1===r.refreshCallbacks.push(e)&&r.load((function(e){n.util.arrayEach(r.refreshCallbacks,(function(r){t?r(e):n.util.defer((function(){r(e)}))})),r.refreshCallbacks.length=0}))},load:function(e){e()}}),n.Credentials.addPromisesToClass=function(e){this.prototype.getPromise=n.util.promisifyMethod("get",e),this.prototype.refreshPromise=n.util.promisifyMethod("refresh",e)},n.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},n.util.addPromises(n.Credentials)},"9Gqe":function(e,t,r){var n=r("BaN1"),i=r("KFai"),o=r("BGYI"),a=r("JWCV"),s=r("henJ");function u(e,t){e.service.api.operations[e.operation].input;if(!e.httpRequest.headers["Content-Type"]){var r=t?"binary/octet-stream":"application/json";e.httpRequest.headers["Content-Type"]=r}}e.exports={buildRequest:function(e){i.buildRequest(e),["HEAD","DELETE"].indexOf(e.httpRequest.method)<0&&function(e){var t=new a,r=e.service.api.operations[e.operation].input;if(r.payload){var n,i=r.members[r.payload];if(void 0===(n=e.params[r.payload]))return;"structure"===i.type?(e.httpRequest.body=t.build(n,i),u(e)):(e.httpRequest.body=n,("binary"===i.type||i.isStreaming)&&u(e,!0))}else{var o=t.build(e.params,r);"{}"===o&&"GET"===e.httpRequest.method||(e.httpRequest.body=o),u(e)}}(e)},extractError:function(e){o.extractError(e)},extractData:function(e){i.extractData(e);var t=e.request,r=t.service.api.operations[t.operation],a=t.service.api.operations[t.operation].output||{};if(r.hasEventOutput,a.payload){var u=a.members[a.payload],c=e.httpResponse.body;if(u.isEventStream)l=new s,e.data[payload]=n.createEventStream(2===AWS.HttpClient.streamsApiVersion?e.httpResponse.stream:c,l,u);else if("structure"===u.type||"list"===u.type){var l=new s;e.data[a.payload]=l.parse(c,u)}else"binary"===u.type||u.isStreaming?e.data[a.payload]=c:e.data[a.payload]=u.toType(c)}else{var f=e.data;o.extractData(e),e.data=n.merge(f,e.data)}}}},"9x6x":function(e,t,r){"use strict";e.exports=function(e,t){t||(t={}),"function"===typeof t&&(t={cmp:t});var r,n="boolean"===typeof t.cycles&&t.cycles,i=t.cmp&&(r=t.cmp,function(e){return function(t,n){var i={key:t,value:e[t]},o={key:n,value:e[n]};return r(i,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"===typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!==typeof t)return JSON.stringify(t);var r,a;if(Array.isArray(t)){for(a="[",r=0;r0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.reobserver&&(this.reobserver.stop(),delete this.reobserver),delete this.options.context,this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(s.c);function l(e){}},B0QO:function(e,t,r){var n=r("QsWE"),i=n.util.inherit;n.Signers.RequestSigner=i({constructor:function(e){this.request=e},setServiceClientId:function(e){this.serviceClientId=e},getServiceClientId:function(){return this.serviceClientId}}),n.Signers.RequestSigner.getVersion=function(e){switch(e){case"v2":return n.Signers.V2;case"v3":return n.Signers.V3;case"s3v4":case"v4":return n.Signers.V4;case"s3":return n.Signers.S3;case"v3https":return n.Signers.V3Https}throw new Error("Unknown signing version "+e)},r("D8LC"),r("N2+Z"),r("VNF9"),r("KIbX"),r("SysZ"),r("F442")},B8du:function(e,t){e.exports=function(){return!1}},BGYI:function(e,t,r){var n=r("BaN1"),i=r("JWCV"),o=r("henJ"),a=r("lSFX").populateHostPrefix;e.exports={buildRequest:function(e){var t=e.httpRequest,r=e.service.api,n=r.targetPrefix+"."+r.operations[e.operation].name,o=r.jsonVersion||"1.0",s=r.operations[e.operation].input,u=new i;1===o&&(o="1.0"),t.body=u.build(e.params||{},s),t.headers["Content-Type"]="application/x-amz-json-"+o,t.headers["X-Amz-Target"]=n,a(e)},extractError:function(e){var t={},r=e.httpResponse;if(t.code=r.headers["x-amzn-errortype"]||"UnknownError","string"===typeof t.code&&(t.code=t.code.split(":")[0]),r.body.length>0)try{var i=JSON.parse(r.body.toString()),o=i.__type||i.code||i.Code;o&&(t.code=o.split("#").pop()),"RequestEntityTooLarge"===t.code?t.message="Request body must be less than 1 MB":t.message=i.message||i.Message||null}catch(i){t.statusCode=r.statusCode,t.message=r.statusMessage}else t.statusCode=r.statusCode,t.message=r.statusCode.toString();e.error=n.error(new Error,t)},extractData:function(e){var t=e.httpResponse.body.toString()||"{}";if(!1===e.request.service.config.convertResponseTypes)e.data=JSON.parse(t);else{var r=e.request.service.api.operations[e.request.operation].output||{},n=new o;e.data=n.parse(t,r)}}}},BaN1:function(e,t,r){(function(t){var n,i={environment:"nodejs",engine:function(){if(i.isBrowser()&&"undefined"!==typeof navigator)return navigator.userAgent;var e=t.platform+"/"+t.version;return t.env.AWS_EXECUTION_ENV&&(e+=" exec-env/"+t.env.AWS_EXECUTION_ENV),e},userAgent:function(){var e=i.environment,t="aws-sdk-"+e+"/"+r("QsWE").VERSION;return"nodejs"===e&&(t+=" "+i.engine()),t},uriEscape:function(e){var t=encodeURIComponent(e);return t=(t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape)).replace(/[*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))},uriEscapePath:function(e){var t=[];return i.arrayEach(e.split("/"),(function(e){t.push(i.uriEscape(e))})),t.join("/")},urlParse:function(e){return i.url.parse(e)},urlFormat:function(e){return i.url.format(e)},queryStringParse:function(e){return i.querystring.parse(e)},queryParamsToString:function(e){var t=[],r=i.uriEscape,n=Object.keys(e).sort();return i.arrayEach(n,(function(n){var o=e[n],a=r(n),s=a+"=";if(Array.isArray(o)){var u=[];i.arrayEach(o,(function(e){u.push(r(e))})),s=a+"="+u.sort().join("&"+a+"=")}else void 0!==o&&null!==o&&(s=a+"="+r(o));t.push(s)})),t.join("&")},readFileSync:function(e){return i.isBrowser()?null:r(0).readFileSync(e,"utf-8")},base64:{encode:function(e){if("number"===typeof e)throw i.error(new Error("Cannot base64 encode number "+e));return null===e||"undefined"===typeof e?e:i.buffer.toBuffer(e).toString("base64")},decode:function(e){if("number"===typeof e)throw i.error(new Error("Cannot base64 decode number "+e));return null===e||"undefined"===typeof e?e:i.buffer.toBuffer(e,"base64")}},buffer:{toBuffer:function(e,t){return"function"===typeof i.Buffer.from&&i.Buffer.from!==Uint8Array.from?i.Buffer.from(e,t):new i.Buffer(e,t)},alloc:function(e,t,r){if("number"!==typeof e)throw new Error("size passed to alloc must be a number.");if("function"===typeof i.Buffer.alloc)return i.Buffer.alloc(e,t,r);var n=new i.Buffer(e);return void 0!==t&&"function"===typeof n.fill&&n.fill(t,void 0,void 0,r),n},toStream:function(e){i.Buffer.isBuffer(e)||(e=i.buffer.toBuffer(e));var t=new i.stream.Readable,r=0;return t._read=function(n){if(r>=e.length)return t.push(null);var i=r+n;i>e.length&&(i=e.length),t.push(e.slice(r,i)),r=i},t},concat:function(e){var t,r,n=0,o=0;for(r=0;r>>8^t[255&(r^e.readUInt8(n))]}return(-1^r)>>>0},hmac:function(e,t,r,n){return r||(r="binary"),"buffer"===r&&(r=void 0),n||(n="sha256"),"string"===typeof t&&(t=i.buffer.toBuffer(t)),i.crypto.lib.createHmac(n,e).update(t).digest(r)},md5:function(e,t,r){return i.crypto.hash("md5",e,t,r)},sha256:function(e,t,r){return i.crypto.hash("sha256",e,t,r)},hash:function(e,t,r,n){var o=i.crypto.createHash(e);r||(r="binary"),"buffer"===r&&(r=void 0),"string"===typeof t&&(t=i.buffer.toBuffer(t));var a=i.arraySliceFn(t),s=i.Buffer.isBuffer(t);if(i.isBrowser()&&"undefined"!==typeof ArrayBuffer&&t&&t.buffer instanceof ArrayBuffer&&(s=!0),n&&"object"===typeof t&&"function"===typeof t.on&&!s)t.on("data",(function(e){o.update(e)})),t.on("error",(function(e){n(e)})),t.on("end",(function(){n(null,o.digest(r))}));else{if(!n||!a||s||"undefined"===typeof FileReader){i.isBrowser()&&"object"===typeof t&&!s&&(t=new i.Buffer(new Uint8Array(t)));var u=o.update(t).digest(r);return n&&n(null,u),u}var c=0,l=new FileReader;l.onerror=function(){n(new Error("Failed to read data."))},l.onload=function(){var e=new i.Buffer(new Uint8Array(l.result));o.update(e),c+=e.length,l._continueReading()},l._continueReading=function(){if(c>=t.size)n(null,o.digest(r));else{var e=c+524288;e>t.size&&(e=t.size),l.readAsArrayBuffer(a.call(t,c,e))}},l._continueReading()}},toHex:function(e){for(var t=[],r=0;r=3e5,!1),n.config.isClockSkewed},applyClockOffset:function(e){e&&(n.config.systemClockOffset=e-(new Date).getTime())},extractRequestId:function(e){var t=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];!t&&e.data&&e.data.ResponseMetadata&&(t=e.data.ResponseMetadata.RequestId),t&&(e.requestId=t),e.error&&(e.error.requestId=t)},addPromises:function(e,t){var r=!1;void 0===t&&n&&n.config&&(t=n.config.getPromisesDependency()),void 0===t&&"undefined"!==typeof Promise&&(t=Promise),"function"!==typeof t&&(r=!0),Array.isArray(e)||(e=[e]);for(var i=0;i=0)return s++,void setTimeout(c,o+(e.retryAfter||0))}r(e)},c=function(){var t="";o.handleRequest(e,a,(function(e){e.on("data",(function(e){t+=e.toString()})),e.on("end",(function(){var n=e.statusCode;if(n<300)r(null,t);else{var o=1e3*parseInt(e.headers["retry-after"],10)||0,a=i.error(new Error,{statusCode:n,retryable:n>=500||429===n});o&&a.retryable&&(a.retryAfter=o),u(a)}}))}),u)};n.util.defer(c)},uuid:{v4:function(){return r("nXTE").v4()}},convertPayloadToString:function(e){var t=e.request,r=t.operation,n=t.service.api.operations[r].output||{};n.payload&&e.data[n.payload]&&(e.data[n.payload]=e.data[n.payload].toString())},defer:function(e){"object"===typeof t&&"function"===typeof t.nextTick?t.nextTick(e):"function"===typeof setImmediate?setImmediate(e):setTimeout(e,0)},getRequestPayloadShape:function(e){var t=e.service.api.operations;if(t){var r=(t||{})[e.operation];if(r&&r.input&&r.input.payload)return r.input.members[r.input.payload]}},getProfilesFromSharedConfig:function(e,r){var n={},o={};if(t.env[i.configOptInEnv])o=e.loadFrom({isConfig:!0,filename:t.env[i.sharedConfigFileEnv]});var a={};try{a=e.loadFrom({filename:r||t.env[i.configOptInEnv]&&t.env[i.sharedCredentialsFileEnv]})}catch(l){if(!t.env[i.configOptInEnv])throw l}for(var s=0,u=Object.keys(o);s=6},parse:function(e){var t=e.split(":");return{partition:t[1],service:t[2],region:t[3],accountId:t[4],resource:t.slice(5).join(":")}},build:function(e){if(void 0===e.service||void 0===e.region||void 0===e.accountId||void 0===e.resource)throw i.error(new Error("Input ARN object is invalid"));return"arn:"+(e.partition||"aws")+":"+e.service+":"+e.region+":"+e.accountId+":"+e.resource}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};e.exports=i}).call(this,r("8oxB"))},Bdln:function(e,t,r){"use strict";r.r(t);var n=r("iVAA");r.d(t,"empty",(function(){return n.a}));var i=r("rRc3");r.d(t,"from",(function(){return i.a}));var o=r("Majm");r.d(t,"split",(function(){return o.a}));var a=r("Tud2");r.d(t,"concat",(function(){return a.a}));var s=r("UK3C");r.d(t,"execute",(function(){return s.a}));var u=r("3S/s");r.d(t,"ApolloLink",(function(){return u.a}));var c=r("lwRX");for(var l in c)["default","empty","from","split","concat","execute","ApolloLink"].indexOf(l)<0&&function(e){r.d(t,e,(function(){return c[e]}))}(l)},BsWD:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r("a3WO");function i(e,t){if(e){if("string"===typeof e)return Object(n.a)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},Bu0L:function(e,t,r){"use strict";r.d(t,"f",(function(){return o})),r.d(t,"j",(function(){return s})),r.d(t,"e",(function(){return l})),r.d(t,"h",(function(){return f})),r.d(t,"b",(function(){return d})),r.d(t,"d",(function(){return p})),r.d(t,"i",(function(){return h})),r.d(t,"c",(function(){return b})),r.d(t,"a",(function(){return S})),r.d(t,"g",(function(){return m}));var n=r("ALFg"),i=Object.prototype.hasOwnProperty;function o(e){return function(t){return t.text().then((function(e){try{return JSON.parse(e)}catch(n){var r=n;throw r.name="ServerParseError",r.response=t,r.statusCode=t.status,r.bodyText=e,r}})).then((function(r){return t.status>=300&&Object(n.d)(t,r,"Response not successful: Received status code "+t.status),Array.isArray(r)||i.call(r,"data")||i.call(r,"errors")||Object(n.d)(t,r,"Server response was missing for query '"+(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName)+"'."),r}))}}var a=r("qVdT"),s=function(e,t){var r;try{r=JSON.stringify(e)}catch(i){var n=new a.a(23);throw n.parseError=i,n}return r},u=r("mrSG"),c=r("dQau"),l={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},f=function(e,t){for(var r=[],n=2;ns)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=h,u=v,i=d;var y=(1e4*(268435455&(h+=122192928e5))+v)%4294967296;l[c++]=y>>>24&255,l[c++]=y>>>16&255,l[c++]=y>>>8&255,l[c++]=255&y;var m=h/4294967296*1e4&268435455;l[c++]=m>>>8&255,l[c++]=255&m,l[c++]=m>>>24&15|16,l[c++]=m>>>16&255,l[c++]=d>>>8|128,l[c++]=255&d;for(var b=0;b<6;++b)l[c+b]=f[b];return t||a(l)}},CFft:function(e,t,r){var n=r("BaN1"),i=r("nyFZ");function o(){}function a(e,t){for(var r=e.getElementsByTagName(t),n=0,i=r.length;n":!0,"=":!0,"!":!0},l={" ":!0,"\t":!0,"\n":!0};function f(e){return e>="0"&&e<="9"||"-"===e}function d(){}d.prototype={tokenize:function(e){var t,r,n,i,o=[];for(this._current=0;this._current="a"&&i<="z"||i>="A"&&i<="Z"||"_"===i)t=this._current,r=this._consumeUnquotedIdentifier(e),o.push({type:"UnquotedIdentifier",value:r,start:t});else if(void 0!==u[e[this._current]])o.push({type:u[e[this._current]],value:e[this._current],start:this._current}),this._current++;else if(f(e[this._current]))n=this._consumeNumber(e),o.push(n);else if("["===e[this._current])n=this._consumeLBracket(e),o.push(n);else if('"'===e[this._current])t=this._current,r=this._consumeQuotedIdentifier(e),o.push({type:"QuotedIdentifier",value:r,start:t});else if("'"===e[this._current])t=this._current,r=this._consumeRawStringLiteral(e),o.push({type:"Literal",value:r,start:t});else if("`"===e[this._current]){t=this._current;var a=this._consumeLiteral(e);o.push({type:"Literal",value:a,start:t})}else if(void 0!==c[e[this._current]])o.push(this._consumeOperator(e));else if(void 0!==l[e[this._current]])this._current++;else if("&"===e[this._current])t=this._current,this._current++,"&"===e[this._current]?(this._current++,o.push({type:"And",value:"&&",start:t})):o.push({type:"Expref",value:"&",start:t});else{if("|"!==e[this._current]){var s=new Error("Unknown character:"+e[this._current]);throw s.name="LexerError",s}t=this._current,this._current++,"|"===e[this._current]?(this._current++,o.push({type:"Or",value:"||",start:t})):o.push({type:"Pipe",value:"|",start:t})}return o},_consumeUnquotedIdentifier:function(e){var t,r=this._current;for(this._current++;this._current="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||"_"===t);)this._current++;return e.slice(r,this._current)},_consumeQuotedIdentifier:function(e){var t=this._current;this._current++;for(var r=e.length;'"'!==e[this._current]&&this._current"===r?"="===e[this._current]?(this._current++,{type:"GTE",value:">=",start:t}):{type:"GT",value:">",start:t}:"="===r&&"="===e[this._current]?(this._current++,{type:"EQ",value:"==",start:t}):void 0},_consumeLiteral:function(e){this._current++;for(var t,r=this._current,n=e.length;"`"!==e[this._current]&&this._current=0)return!0;if(["true","false","null"].indexOf(e)>=0)return!0;if(!("-0123456789".indexOf(e[0])>=0))return!1;try{return JSON.parse(e),!0}catch(t){return!1}}};var p={};function h(){}function v(e){this.runtime=e}function g(e){this._interpreter=e,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[a]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[a]}]},contains:{_func:this._functionContains,_signature:[{types:[s,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[s]},{types:[s]}]},floor:{_func:this._functionFloor,_signature:[{types:[a]}]},length:{_func:this._functionLength,_signature:[{types:[s,3,4]}]},map:{_func:this._functionMap,_signature:[{types:[6]},{types:[3]}]},max:{_func:this._functionMax,_signature:[{types:[8,9]}]},merge:{_func:this._functionMerge,_signature:[{types:[4],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[3]},{types:[6]}]},sum:{_func:this._functionSum,_signature:[{types:[8]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[s]},{types:[s]}]},min:{_func:this._functionMin,_signature:[{types:[8,9]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[3]},{types:[6]}]},type:{_func:this._functionType,_signature:[{types:[1]}]},keys:{_func:this._functionKeys,_signature:[{types:[4]}]},values:{_func:this._functionValues,_signature:[{types:[4]}]},sort:{_func:this._functionSort,_signature:[{types:[9,8]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[3]},{types:[6]}]},join:{_func:this._functionJoin,_signature:[{types:[s]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[s,3]}]},to_array:{_func:this._functionToArray,_signature:[{types:[1]}]},to_string:{_func:this._functionToString,_signature:[{types:[1]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[1]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[1],variadic:!0}]}}}p.EOF=0,p.UnquotedIdentifier=0,p.QuotedIdentifier=0,p.Rbracket=0,p.Rparen=0,p.Comma=0,p.Rbrace=0,p.Number=0,p.Current=0,p.Expref=0,p.Pipe=1,p.Or=2,p.And=3,p.EQ=5,p.GT=5,p.LT=5,p.GTE=5,p.LTE=5,p.NE=5,p.Flatten=9,p.Star=20,p.Filter=21,p.Dot=40,p.Not=45,p.Lbrace=50,p.Lbracket=55,p.Lparen=60,h.prototype={parse:function(e){this._loadTokens(e),this.index=0;var t=this.expression(0);if("EOF"!==this._lookahead(0)){var r=this._lookaheadToken(0),n=new Error("Unexpected token type: "+r.type+", value: "+r.value);throw n.name="ParserError",n}return t},_loadTokens:function(e){var t=(new d).tokenize(e);t.push({type:"EOF",value:"",start:e.length}),this.tokens=t},expression:function(e){var t=this._lookaheadToken(0);this._advance();for(var r=this.nud(t),n=this._lookahead(0);e=0?this.expression(e):"Lbracket"===t?(this._match("Lbracket"),this._parseMultiselectList()):"Lbrace"===t?(this._match("Lbrace"),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(e){var t;if(p[this._lookahead(0)]<10)t={type:"Identity"};else if("Lbracket"===this._lookahead(0))t=this.expression(e);else if("Filter"===this._lookahead(0))t=this.expression(e);else{if("Dot"!==this._lookahead(0)){var r=this._lookaheadToken(0),n=new Error("Sytanx error, unexpected token: "+r.value+"("+r.type+")");throw n.name="ParserError",n}this._match("Dot"),t=this._parseDotRHS(e)}return t},_parseMultiselectList:function(){for(var e=[];"Rbracket"!==this._lookahead(0);){var t=this.expression(0);if(e.push(t),"Comma"===this._lookahead(0)&&(this._match("Comma"),"Rbracket"===this._lookahead(0)))throw new Error("Unexpected token Rbracket")}return this._match("Rbracket"),{type:"MultiSelectList",children:e}},_parseMultiselectHash:function(){for(var e,t,r,n=[],i=["UnquotedIdentifier","QuotedIdentifier"];;){if(e=this._lookaheadToken(0),i.indexOf(e.type)<0)throw new Error("Expecting an identifier token, got: "+e.type);if(t=e.value,this._advance(),this._match("Colon"),r={type:"KeyValuePair",name:t,value:this.expression(0)},n.push(r),"Comma"===this._lookahead(0))this._match("Comma");else if("Rbrace"===this._lookahead(0)){this._match("Rbrace");break}}return{type:"MultiSelectHash",children:n}}},v.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,o){var a,s,u,c,l,f,d,p,h;switch(e.type){case"Field":return null===o?null:r(o)?void 0===(f=o[e.name])?null:f:null;case"Subexpression":for(u=this.visit(e.children[0],o),h=1;h0)for(h=m;hb;h+=S)u.push(o[h]);return u;case"Projection":var w=this.visit(e.children[0],o);if(!t(w))return null;for(p=[],h=0;hl;break;case"GTE":u=c>=l;break;case"LT":u=c=e&&(t=r<0?e-1:e),t}},g.prototype={callFunction:function(e,t){var r=this.functionTable[e];if(void 0===r)throw new Error("Unknown function: "+e+"()");return this._validateArgs(e,t,r._signature),r._func.call(this,t)},_validateArgs:function(e,t,r){var n,i,o,a;if(r[r.length-1].variadic){if(t.length=0;n--)r+=t[n];return r}var i=e[0].slice(0);return i.reverse(),i},_functionAbs:function(e){return Math.abs(e[0])},_functionCeil:function(e){return Math.ceil(e[0])},_functionAvg:function(e){for(var t=0,r=e[0],n=0;n=0},_functionFloor:function(e){return Math.floor(e[0])},_functionLength:function(e){return r(e[0])?Object.keys(e[0]).length:e[0].length},_functionMap:function(e){for(var t=[],r=this._interpreter,n=e[0],i=e[1],o=0;o0){if(this._getTypeName(e[0][0])===a)return Math.max.apply(Math,e[0]);for(var t=e[0],r=t[0],n=1;n0){if(this._getTypeName(e[0][0])===a)return Math.min.apply(Math,e[0]);for(var t=e[0],r=t[0],n=1;ns?1:au&&(u=r,t=i[c]);return t},_functionMinBy:function(e){for(var t,r,n=e[1],i=e[0],o=this.createKeyFunction(n,[a,s]),u=1/0,c=0;c))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,n.nameRegexp);!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const a={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,ignoreNameSpace:!1,allowBooleanAttributes:!1,parseNodeValue:!0,parseAttributeValue:!1,arrayMode:!1,trimValues:!0,cdataTagName:!1,cdataPositionChar:"\\c",tagValueProcessor:function(e,t){return e},attrValueProcessor:function(e,t){return e},stopNodes:[]};t.defaultOptions=a;const s=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","stopNodes"];function u(e,t,r){return t&&(r.trimValues&&(t=t.trim()),t=l(t=r.tagValueProcessor(t,e),r.parseNodeValue,r.parseTrueNumberOnly)),t}function c(e,t){if(t.ignoreNameSpace){const t=e.split(":"),r="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=r+t[1])}return e}function l(e,t,r){if(t&&"string"===typeof e){let t;return""===e.trim()||isNaN(e)?t="true"===e||"false"!==e&&e:(-1!==e.indexOf("0x")?t=Number.parseInt(e,16):-1!==e.indexOf(".")?(t=Number.parseFloat(e),e=e.replace(/\.?0+$/,"")):t=Number.parseInt(e,10),r&&(t=String(t)===e?t:e)),t}return n.isExist(e)?e:""}t.props=s;const f=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])(.*?)\\3)?","g");function d(e,t){if(!t.ignoreAttributes&&"string"===typeof e){e=e.replace(/\r?\n/g," ");const r=n.getAllMatches(e,f),i=r.length,o={};for(let e=0;e"===t)return{data:n,index:i};"\t"===t&&(t=" ")}n+=t}}function h(e,t,r,n){const i=e.indexOf(t,r);if(-1===i)throw new Error(n);return i+t.length-1}t.getTraversalObj=function(e,t){e=e.replace(/\r\n?/g,"\n"),t=i(t,a,s);const r=new o("!xml");let c=r,l="";for(let i=0;i",i,"Closing Tag is not closed.");let o=e.substring(i+2,r).trim();if(t.ignoreNameSpace){const e=o.indexOf(":");-1!==e&&(o=o.substr(e+1))}c&&(c.val?c.val=n.getValue(c.val)+""+u(o,l,t):c.val=u(o,l,t)),t.stopNodes.length&&t.stopNodes.includes(c.tagname)&&(c.child=[],void 0==c.attrsMap&&(c.attrsMap={}),c.val=e.substr(c.startIndex+1,i-c.startIndex-1)),c=c.parent,l="",i=r}else if("?"===e[i+1])i=h(e,"?>",i,"Pi Tag is not closed.");else if("!--"===e.substr(i+1,3))i=h(e,"--\x3e",i,"Comment is not closed.");else if("!D"===e.substr(i+1,2)){const t=h(e,">",i,"DOCTYPE is not closed.");i=e.substring(i,t).indexOf("[")>=0?e.indexOf("]>",i)+1:t}else if("!["===e.substr(i+1,2)){const r=h(e,"]]>",i,"CDATA is not closed.")-2,a=e.substring(i+9,r);if(l&&(c.val=n.getValue(c.val)+""+u(c.tagname,l,t),l=""),t.cdataTagName){const e=new o(t.cdataTagName,c,a);c.addChild(e),c.val=n.getValue(c.val)+t.cdataPositionChar,a&&(e.val=a)}else c.val=(c.val||"")+(a||"");i=r+2}else{const r=p(e,i+1);let a=r.data;const s=r.index,f=a.indexOf(" ");let h=a,v=!0;if(-1!==f&&(h=a.substr(0,f).replace(/\s\s*$/,""),a=a.substr(f+1)),t.ignoreNameSpace){const e=h.indexOf(":");-1!==e&&(h=h.substr(e+1),v=h!==r.data.substr(e+1))}if(c&&l&&"!xml"!==c.tagname&&(c.val=n.getValue(c.val)+""+u(c.tagname,l,t)),a.length>0&&a.lastIndexOf("/")===a.length-1){"/"===h[h.length-1]?(h=h.substr(0,h.length-1),a=h):a=a.substr(0,a.length-1);const e=new o(h,c,"");h!==a&&(e.attrsMap=d(a,t)),c.addChild(e)}else{const e=new o(h,c);t.stopNodes.length&&t.stopNodes.includes(e.tagname)&&(e.startIndex=s),h!==a&&v&&(e.attrsMap=d(a,t)),c.addChild(e),c=e}l="",i=s}else l+=e[i]}return r}},E2jh:function(e,t,r){var n=r("2gN3"),i=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!i&&i in e}},EI00:function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return u})),r.d(t,"e",(function(){return c})),r.d(t,"f",(function(){return l})),r.d(t,"g",(function(){return f})),r.d(t,"d",(function(){return v})),r.d(t,"c",(function(){return g}));var n=r("mrSG"),i=function(){var e=[],t=[],r=new Set,s=function(r){return e.forEach((function(e){r.add(e.middleware,Object(n.__assign)({},e))})),t.forEach((function(e){r.addRelativeTo(e.middleware,Object(n.__assign)({},e))})),r},u=function(e){var t=[];return e.before.forEach((function(e){0===e.before.length&&0===e.after.length?t.push(e):t.push.apply(t,Object(n.__spread)(u(e)))})),t.push(e),e.after.reverse().forEach((function(e){0===e.before.length&&0===e.after.length?t.push(e):t.push.apply(t,Object(n.__spread)(u(e)))})),t},c=function(){var r,i=[],s=[],c={};return e.forEach((function(e){var t=Object(n.__assign)(Object(n.__assign)({},e),{before:[],after:[]});t.name&&(c[t.name]=t),i.push(t)})),t.forEach((function(e){var t=Object(n.__assign)(Object(n.__assign)({},e),{before:[],after:[]});t.name&&(c[t.name]=t),s.push(t)})),s.forEach((function(e){if(e.toMiddleware){var t=c[e.toMiddleware];if(void 0===t)throw new Error(e.toMiddleware+" is not found when adding "+(e.name||"anonymous")+" middleware "+e.relation+" "+e.toMiddleware);"after"===e.relation&&t.after.push(e),"before"===e.relation&&t.before.push(e)}})),(r=i,r.sort((function(e,t){return o[t.step]-o[e.step]||a[t.priority||"normal"]-a[e.priority||"normal"]}))).map(u).reduce((function(e,t){return e.push.apply(e,Object(n.__spread)(t)),e}),[]).map((function(e){return e.middleware}))},l={add:function(t,i){void 0===i&&(i={});var o=i.name,a=Object(n.__assign)({step:"initialize",priority:"normal",middleware:t},i);if(o){if(r.has(o))throw new Error("Duplicate middleware name '"+o+"'");r.add(o)}e.push(a)},addRelativeTo:function(e,i){var o=i.name,a=Object(n.__assign)({middleware:e},i);if(o){if(r.has(o))throw new Error("Duplicated middleware name '"+o+"'");r.add(o)}t.push(a)},clone:function(){return s(i())},use:function(e){e.applyToStack(l)},remove:function(n){return"string"===typeof n?function(n){var i=!1,o=function(e){return!e.name||e.name!==n||(i=!0,r.delete(n),!1)};return e=e.filter(o),t=t.filter(o),i}(n):function(n){var i=!1,o=function(e){return e.middleware!==n||(i=!0,e.name&&r.delete(e.name),!1)};return e=e.filter(o),t=t.filter(o),i}(n)},removeByTag:function(n){var i=!1,o=function(e){var t=e.tags,o=e.name;return!t||!t.includes(n)||(o&&r.delete(o),i=!0,!1)};return e=e.filter(o),t=t.filter(o),i},concat:function(e){var t=s(i());return t.use(e),t},applyToStack:s,resolve:function(e,t){var r,i;try{for(var o=Object(n.__values)(c().reverse()),a=o.next();!a.done;a=o.next()){e=(0,a.value)(e,t)}}catch(s){r={error:s}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return e}};return l},o={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},a={high:3,normal:2,low:1},s=function(){function e(e){this.middlewareStack=i(),this.config=e}return e.prototype.send=function(e,t,r){var n="function"!==typeof t?t:void 0,i="function"===typeof t?t:r,o=e.resolveMiddleware(this.middlewareStack,this.config,n);if(!i)return o(e).then((function(e){return e.output}));o(e).then((function(e){return i(null,e.output)}),(function(e){return i(e)})).catch((function(){}))},e.prototype.destroy=function(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()},e}(),u=function(){this.middlewareStack=i()};function c(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16)}))}var l=function(e){return Array.isArray(e)?e:[e]},f=function(e){for(var t in e)e.hasOwnProperty(t)&&void 0!==e[t]["#text"]?e[t]=e[t]["#text"]:"object"===typeof e[t]&&null!==e[t]&&(e[t]=f(e[t]));return e},d=function(){var e=Object.getPrototypeOf(this).constructor,t=Function.bind.apply(String,Object(n.__spread)([null],arguments)),r=new t;return Object.setPrototypeOf(r,e.prototype),r};d.prototype=Object.create(String.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(d,String);!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}Object(n.__extends)(t,e),t.prototype.deserializeJSON=function(){return JSON.parse(e.prototype.toString.call(this))},t.prototype.toJSON=function(){return e.prototype.toString.call(this)},t.fromObject=function(e){return e instanceof t?e:new t(e instanceof String||"string"===typeof e?e:JSON.stringify(e))}}(d);var p=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],h=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function v(e){var t=e.getUTCFullYear(),r=e.getUTCMonth(),n=e.getUTCDay(),i=e.getUTCDate(),o=e.getUTCHours(),a=e.getUTCMinutes(),s=e.getUTCSeconds();return p[n]+", "+(i<10?"0"+i:""+i)+" "+h[r]+" "+t+" "+(o<10?"0"+o:""+o)+":"+(a<10?"0"+a:""+a)+":"+(s<10?"0"+s:""+s)+" GMT"}var g="***SensitiveInformation***"},EMzn:function(e,t,r){"use strict";function n(e){return(n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return e&&"object"===n(e)?"function"===typeof e.inspect?e.inspect():Array.isArray(e)?"["+e.map(i).join(", ")+"]":"{"+Object.keys(e).map((function(t){return"".concat(t,": ").concat(i(e[t]))})).join(", ")+"}":"string"===typeof e?'"'+e+'"':"function"===typeof e?"[function ".concat(e.name,"]"):String(e)}function o(e,t){if(!e)throw new Error(t)}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.r(t),r.d(t,"parse",(function(){return x})),r.d(t,"parseValue",(function(){return I})),r.d(t,"parseType",(function(){return T})),r.d(t,"parseConstValue",(function(){return G})),r.d(t,"parseTypeReference",(function(){return $})),r.d(t,"parseNamedType",(function(){return ee}));var s,u=function(e,t,r){a(this,"body",void 0),a(this,"name",void 0),a(this,"locationOffset",void 0),this.body=e,this.name=t||"GraphQL request",this.locationOffset=r||{line:1,column:1},this.locationOffset.line>0||o(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||o(0,"column in locationOffset is 1-indexed and must be positive")};s=u,"function"===typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(s.prototype,Symbol.toStringTag,{get:function(){return this.constructor.name}});var c=r("dWS+");function l(e,t,r){return new c.a("Syntax Error: ".concat(r),void 0,e,[t])}function f(e){for(var t=e.split(/\r\n|[\n\r]/g),r=null,n=1;n0&&p(t[0]);)t.shift();for(;t.length>0&&p(t[t.length-1]);)t.pop();return t.join("\n")}function d(e){for(var t=0;t",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function m(e){var t=e.value;return t?"".concat(e.kind,' "').concat(t,'"'):e.kind}var b=String.prototype.charCodeAt,S=String.prototype.slice;function w(e,t,r,n,i,o,a){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=a,this.prev=o,this.next=null}function _(e){return isNaN(e)?y.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function O(e,t){var r=e.source,n=r.body,i=n.length,o=function(e,t,r){var n=e.length,i=t;for(;i=i)return new w(y.EOF,i,i,a,s,t);var u=b.call(n,o);switch(u){case 33:return new w(y.BANG,o,o+1,a,s,t);case 35:return function(e,t,r,n,i){var o,a=e.body,s=t;do{o=b.call(a,++s)}while(null!==o&&(o>31||9===o));return new w(y.COMMENT,t,s,r,n,i,S.call(a,t+1,s))}(r,o,a,s,t);case 36:return new w(y.DOLLAR,o,o+1,a,s,t);case 38:return new w(y.AMP,o,o+1,a,s,t);case 40:return new w(y.PAREN_L,o,o+1,a,s,t);case 41:return new w(y.PAREN_R,o,o+1,a,s,t);case 46:if(46===b.call(n,o+1)&&46===b.call(n,o+2))return new w(y.SPREAD,o,o+3,a,s,t);break;case 58:return new w(y.COLON,o,o+1,a,s,t);case 61:return new w(y.EQUALS,o,o+1,a,s,t);case 64:return new w(y.AT,o,o+1,a,s,t);case 91:return new w(y.BRACKET_L,o,o+1,a,s,t);case 93:return new w(y.BRACKET_R,o,o+1,a,s,t);case 123:return new w(y.BRACE_L,o,o+1,a,s,t);case 124:return new w(y.PIPE,o,o+1,a,s,t);case 125:return new w(y.BRACE_R,o,o+1,a,s,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,t,r,n,i){var o=e.body,a=o.length,s=t+1,u=0;for(;s!==a&&null!==(u=b.call(o,s))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++s;return new w(y.NAME,t,s,r,n,i,S.call(o,t,s))}(r,o,a,s,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,r,n,i,o){var a=e.body,s=r,u=t,c=!1;45===s&&(s=b.call(a,++u));if(48===s){if((s=b.call(a,++u))>=48&&s<=57)throw l(e,u,"Invalid number, unexpected digit after 0: ".concat(_(s),"."))}else u=E(e,u,s),s=b.call(a,u);46===s&&(c=!0,s=b.call(a,++u),u=E(e,u,s),s=b.call(a,u));69!==s&&101!==s||(c=!0,43!==(s=b.call(a,++u))&&45!==s||(s=b.call(a,++u)),u=E(e,u,s));return new w(c?y.FLOAT:y.INT,t,u,n,i,o,S.call(a,t,u))}(r,o,u,a,s,t);case 34:return 34===b.call(n,o+1)&&34===b.call(n,o+2)?function(e,t,r,n,i){var o=e.body,a=t+3,s=a,u=0,c="";for(;a=48&&o<=57){do{o=b.call(n,++i)}while(o>=48&&o<=57);return i}throw l(e,i,"Invalid number, expected digit but got: ".concat(_(o),"."))}function j(e,t,r,n){return k(e)<<12|k(t)<<8|k(r)<<4|k(n)}function k(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}w.prototype.toJSON=w.prototype.inspect=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}};var C=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"}),A=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function x(e,t){var r="string"===typeof e?new u(e):e;if(!(r instanceof u))throw new TypeError("Must provide Source. Received: ".concat(i(r)));return function(e){var t=e.token;return{kind:C.DOCUMENT,definitions:Oe(e,y.SOF,R,y.EOF),loc:ve(e,t)}}(h(r,t||{}))}function I(e,t){var r=h("string"===typeof e?new u(e):e,t||{});be(r,y.SOF);var n=W(r,!1);return be(r,y.EOF),n}function T(e,t){var r=h("string"===typeof e?new u(e):e,t||{});be(r,y.SOF);var n=$(r);return be(r,y.EOF),n}function P(e){var t=be(e,y.NAME);return{kind:C.NAME,value:t.value,loc:ve(e,t)}}function R(e){if(ye(e,y.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":case"fragment":return N(e);case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return te(e);case"extend":return function(e){var t=e.lookahead();if(t.kind===y.NAME)switch(t.value){case"schema":return function(e){var t=e.token;Se(e,"extend"),Se(e,"schema");var r=Y(e,!0),n=ye(e,y.BRACE_L)?Oe(e,y.BRACE_L,ie,y.BRACE_R):[];if(0===r.length&&0===n.length)throw we(e);return{kind:C.SCHEMA_EXTENSION,directives:r,operationTypes:n,loc:ve(e,t)}}(e);case"scalar":return function(e){var t=e.token;Se(e,"extend"),Se(e,"scalar");var r=P(e),n=Y(e,!0);if(0===n.length)throw we(e);return{kind:C.SCALAR_TYPE_EXTENSION,name:r,directives:n,loc:ve(e,t)}}(e);case"type":return function(e){var t=e.token;Se(e,"extend"),Se(e,"type");var r=P(e),n=oe(e),i=Y(e,!0),o=ae(e);if(0===n.length&&0===i.length&&0===o.length)throw we(e);return{kind:C.OBJECT_TYPE_EXTENSION,name:r,interfaces:n,directives:i,fields:o,loc:ve(e,t)}}(e);case"interface":return function(e){var t=e.token;Se(e,"extend"),Se(e,"interface");var r=P(e),n=Y(e,!0),i=ae(e);if(0===n.length&&0===i.length)throw we(e);return{kind:C.INTERFACE_TYPE_EXTENSION,name:r,directives:n,fields:i,loc:ve(e,t)}}(e);case"union":return function(e){var t=e.token;Se(e,"extend"),Se(e,"union");var r=P(e),n=Y(e,!0),i=le(e);if(0===n.length&&0===i.length)throw we(e);return{kind:C.UNION_TYPE_EXTENSION,name:r,directives:n,types:i,loc:ve(e,t)}}(e);case"enum":return function(e){var t=e.token;Se(e,"extend"),Se(e,"enum");var r=P(e),n=Y(e,!0),i=fe(e);if(0===n.length&&0===i.length)throw we(e);return{kind:C.ENUM_TYPE_EXTENSION,name:r,directives:n,values:i,loc:ve(e,t)}}(e);case"input":return function(e){var t=e.token;Se(e,"extend"),Se(e,"input");var r=P(e),n=Y(e,!0),i=pe(e);if(0===n.length&&0===i.length)throw we(e);return{kind:C.INPUT_OBJECT_TYPE_EXTENSION,name:r,directives:n,fields:i,loc:ve(e,t)}}(e)}throw we(e,t)}(e)}else{if(ye(e,y.BRACE_L))return N(e);if(re(e))return te(e)}throw we(e)}function N(e){if(ye(e,y.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":return L(e);case"fragment":return function(e){var t=e.token;if(Se(e,"fragment"),e.options.experimentalFragmentVariables)return{kind:C.FRAGMENT_DEFINITION,name:K(e),variableDefinitions:D(e),typeCondition:(Se(e,"on"),ee(e)),directives:Y(e,!1),selectionSet:F(e),loc:ve(e,t)};return{kind:C.FRAGMENT_DEFINITION,name:K(e),typeCondition:(Se(e,"on"),ee(e)),directives:Y(e,!1),selectionSet:F(e),loc:ve(e,t)}}(e)}else if(ye(e,y.BRACE_L))return L(e);throw we(e)}function L(e){var t=e.token;if(ye(e,y.BRACE_L))return{kind:C.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:F(e),loc:ve(e,t)};var r,n=M(e);return ye(e,y.NAME)&&(r=P(e)),{kind:C.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:D(e),directives:Y(e,!1),selectionSet:F(e),loc:ve(e,t)}}function M(e){var t=be(e,y.NAME);switch(t.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw we(e,t)}function D(e){return ye(e,y.PAREN_L)?Oe(e,y.PAREN_L,U,y.PAREN_R):[]}function U(e){var t=e.token;return e.options.experimentalVariableDefinitionDirectives?{kind:C.VARIABLE_DEFINITION,variable:q(e),type:(be(e,y.COLON),$(e)),defaultValue:me(e,y.EQUALS)?W(e,!0):void 0,directives:Y(e,!0),loc:ve(e,t)}:{kind:C.VARIABLE_DEFINITION,variable:q(e),type:(be(e,y.COLON),$(e)),defaultValue:me(e,y.EQUALS)?W(e,!0):void 0,loc:ve(e,t)}}function q(e){var t=e.token;return be(e,y.DOLLAR),{kind:C.VARIABLE,name:P(e),loc:ve(e,t)}}function F(e){var t=e.token;return{kind:C.SELECTION_SET,selections:Oe(e,y.BRACE_L,B,y.BRACE_R),loc:ve(e,t)}}function B(e){return ye(e,y.SPREAD)?function(e){var t,r=e.token;if(be(e,y.SPREAD),ye(e,y.NAME)&&"on"!==e.token.value)return{kind:C.FRAGMENT_SPREAD,name:K(e),directives:Y(e,!1),loc:ve(e,r)};"on"===e.token.value&&(e.advance(),t=ee(e));return{kind:C.INLINE_FRAGMENT,typeCondition:t,directives:Y(e,!1),selectionSet:F(e),loc:ve(e,r)}}(e):function(e){var t,r,n=e.token,i=P(e);me(e,y.COLON)?(t=i,r=P(e)):r=i;return{kind:C.FIELD,alias:t,name:r,arguments:z(e,!1),directives:Y(e,!1),selectionSet:ye(e,y.BRACE_L)?F(e):void 0,loc:ve(e,n)}}(e)}function z(e,t){var r=t?H:V;return ye(e,y.PAREN_L)?Oe(e,y.PAREN_L,r,y.PAREN_R):[]}function V(e){var t=e.token;return{kind:C.ARGUMENT,name:P(e),value:(be(e,y.COLON),W(e,!1)),loc:ve(e,t)}}function H(e){var t=e.token;return{kind:C.ARGUMENT,name:P(e),value:(be(e,y.COLON),G(e)),loc:ve(e,t)}}function K(e){if("on"===e.token.value)throw we(e);return P(e)}function W(e,t){var r=e.token;switch(r.kind){case y.BRACKET_L:return function(e,t){var r=e.token,n=t?G:X;return{kind:C.LIST,values:_e(e,y.BRACKET_L,n,y.BRACKET_R),loc:ve(e,r)}}(e,t);case y.BRACE_L:return function(e,t){var r=e.token;be(e,y.BRACE_L);var n=[];for(;!me(e,y.BRACE_R);)n.push(J(e,t));return{kind:C.OBJECT,fields:n,loc:ve(e,r)}}(e,t);case y.INT:return e.advance(),{kind:C.INT,value:r.value,loc:ve(e,r)};case y.FLOAT:return e.advance(),{kind:C.FLOAT,value:r.value,loc:ve(e,r)};case y.STRING:case y.BLOCK_STRING:return Q(e);case y.NAME:return"true"===r.value||"false"===r.value?(e.advance(),{kind:C.BOOLEAN,value:"true"===r.value,loc:ve(e,r)}):"null"===r.value?(e.advance(),{kind:C.NULL,loc:ve(e,r)}):(e.advance(),{kind:C.ENUM,value:r.value,loc:ve(e,r)});case y.DOLLAR:if(!t)return q(e)}throw we(e)}function Q(e){var t=e.token;return e.advance(),{kind:C.STRING,value:t.value,block:t.kind===y.BLOCK_STRING,loc:ve(e,t)}}function G(e){return W(e,!0)}function X(e){return W(e,!1)}function J(e,t){var r=e.token;return{kind:C.OBJECT_FIELD,name:P(e),value:(be(e,y.COLON),W(e,t)),loc:ve(e,r)}}function Y(e,t){for(var r=[];ye(e,y.AT);)r.push(Z(e,t));return r}function Z(e,t){var r=e.token;return be(e,y.AT),{kind:C.DIRECTIVE,name:P(e),arguments:z(e,t),loc:ve(e,r)}}function $(e){var t,r=e.token;return me(e,y.BRACKET_L)?(t=$(e),be(e,y.BRACKET_R),t={kind:C.LIST_TYPE,type:t,loc:ve(e,r)}):t=ee(e),me(e,y.BANG)?{kind:C.NON_NULL_TYPE,type:t,loc:ve(e,r)}:t}function ee(e){var t=e.token;return{kind:C.NAMED_TYPE,name:P(e),loc:ve(e,t)}}function te(e){var t=re(e)?e.lookahead():e.token;if(t.kind===y.NAME)switch(t.value){case"schema":return function(e){var t=e.token;Se(e,"schema");var r=Y(e,!0),n=Oe(e,y.BRACE_L,ie,y.BRACE_R);return{kind:C.SCHEMA_DEFINITION,directives:r,operationTypes:n,loc:ve(e,t)}}(e);case"scalar":return function(e){var t=e.token,r=ne(e);Se(e,"scalar");var n=P(e),i=Y(e,!0);return{kind:C.SCALAR_TYPE_DEFINITION,description:r,name:n,directives:i,loc:ve(e,t)}}(e);case"type":return function(e){var t=e.token,r=ne(e);Se(e,"type");var n=P(e),i=oe(e),o=Y(e,!0),a=ae(e);return{kind:C.OBJECT_TYPE_DEFINITION,description:r,name:n,interfaces:i,directives:o,fields:a,loc:ve(e,t)}}(e);case"interface":return function(e){var t=e.token,r=ne(e);Se(e,"interface");var n=P(e),i=Y(e,!0),o=ae(e);return{kind:C.INTERFACE_TYPE_DEFINITION,description:r,name:n,directives:i,fields:o,loc:ve(e,t)}}(e);case"union":return function(e){var t=e.token,r=ne(e);Se(e,"union");var n=P(e),i=Y(e,!0),o=le(e);return{kind:C.UNION_TYPE_DEFINITION,description:r,name:n,directives:i,types:o,loc:ve(e,t)}}(e);case"enum":return function(e){var t=e.token,r=ne(e);Se(e,"enum");var n=P(e),i=Y(e,!0),o=fe(e);return{kind:C.ENUM_TYPE_DEFINITION,description:r,name:n,directives:i,values:o,loc:ve(e,t)}}(e);case"input":return function(e){var t=e.token,r=ne(e);Se(e,"input");var n=P(e),i=Y(e,!0),o=pe(e);return{kind:C.INPUT_OBJECT_TYPE_DEFINITION,description:r,name:n,directives:i,fields:o,loc:ve(e,t)}}(e);case"directive":return function(e){var t=e.token,r=ne(e);Se(e,"directive"),be(e,y.AT);var n=P(e),i=ue(e);Se(e,"on");var o=function(e){me(e,y.PIPE);var t=[];do{t.push(he(e))}while(me(e,y.PIPE));return t}(e);return{kind:C.DIRECTIVE_DEFINITION,description:r,name:n,arguments:i,locations:o,loc:ve(e,t)}}(e)}throw we(e,t)}function re(e){return ye(e,y.STRING)||ye(e,y.BLOCK_STRING)}function ne(e){if(re(e))return Q(e)}function ie(e){var t=e.token,r=M(e);be(e,y.COLON);var n=ee(e);return{kind:C.OPERATION_TYPE_DEFINITION,operation:r,type:n,loc:ve(e,t)}}function oe(e){var t=[];if("implements"===e.token.value){e.advance(),me(e,y.AMP);do{t.push(ee(e))}while(me(e,y.AMP)||e.options.allowLegacySDLImplementsInterfaces&&ye(e,y.NAME))}return t}function ae(e){return e.options.allowLegacySDLEmptyFields&&ye(e,y.BRACE_L)&&e.lookahead().kind===y.BRACE_R?(e.advance(),e.advance(),[]):ye(e,y.BRACE_L)?Oe(e,y.BRACE_L,se,y.BRACE_R):[]}function se(e){var t=e.token,r=ne(e),n=P(e),i=ue(e);be(e,y.COLON);var o=$(e),a=Y(e,!0);return{kind:C.FIELD_DEFINITION,description:r,name:n,arguments:i,type:o,directives:a,loc:ve(e,t)}}function ue(e){return ye(e,y.PAREN_L)?Oe(e,y.PAREN_L,ce,y.PAREN_R):[]}function ce(e){var t=e.token,r=ne(e),n=P(e);be(e,y.COLON);var i,o=$(e);me(e,y.EQUALS)&&(i=G(e));var a=Y(e,!0);return{kind:C.INPUT_VALUE_DEFINITION,description:r,name:n,type:o,defaultValue:i,directives:a,loc:ve(e,t)}}function le(e){var t=[];if(me(e,y.EQUALS)){me(e,y.PIPE);do{t.push(ee(e))}while(me(e,y.PIPE))}return t}function fe(e){return ye(e,y.BRACE_L)?Oe(e,y.BRACE_L,de,y.BRACE_R):[]}function de(e){var t=e.token,r=ne(e),n=P(e),i=Y(e,!0);return{kind:C.ENUM_VALUE_DEFINITION,description:r,name:n,directives:i,loc:ve(e,t)}}function pe(e){return ye(e,y.BRACE_L)?Oe(e,y.BRACE_L,ce,y.BRACE_R):[]}function he(e){var t=e.token,r=P(e);if(A.hasOwnProperty(r.value))return r;throw we(e,t)}function ve(e,t){if(!e.options.noLocation)return new ge(t,e.lastToken,e.source)}function ge(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}function ye(e,t){return e.token.kind===t}function me(e,t){var r=e.token.kind===t;return r&&e.advance(),r}function be(e,t){var r=e.token;if(r.kind===t)return e.advance(),r;throw l(e.source,r.start,"Expected ".concat(t,", found ").concat(m(r)))}function Se(e,t){var r=e.token;if(r.kind===y.NAME&&r.value===t)return e.advance(),r;throw l(e.source,r.start,'Expected "'.concat(t,'", found ').concat(m(r)))}function we(e,t){var r=t||e.token;return l(e.source,r.start,"Unexpected ".concat(m(r)))}function _e(e,t,r,n){be(e,t);for(var i=[];!me(e,n);)i.push(r(e));return i}function Oe(e,t,r,n){be(e,t);for(var i=[r(e)];!me(e,n);)i.push(r(e));return i}ge.prototype.toJSON=ge.prototype.inspect=function(){return{start:this.start,end:this.end}}},Enk7:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return o}));var n=function(){function e(e){this.statusCode=e.statusCode,this.headers=e.headers||{},this.body=e.body}return e.isInstance=function(e){if(!e)return!1;var t=e;return"number"===typeof t.statusCode&&"object"===typeof t.headers},e}(),i=r("mrSG"),o=function(){function e(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.substr(-1)?e.protocol+":":e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?"/"+e.path:e.path:"/"}return e.isInstance=function(e){if(!e)return!1;var t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"===typeof t.query&&"object"===typeof t.headers},e.prototype.clone=function(){var t,r=new e(Object(i.__assign)(Object(i.__assign)({},this),{headers:Object(i.__assign)({},this.headers)}));return r.query&&(r.query=(t=r.query,Object.keys(t).reduce((function(e,r){var n,o=t[r];return Object(i.__assign)(Object(i.__assign)({},e),((n={})[r]=Array.isArray(o)?Object(i.__spread)(o):o,n))}),{}))),r},e}()},EpBk:function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},EuLz:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("hEW/"),i=function(){function e(e){void 0===e&&(e=1e3),this.maxSize=e,this.cache=new n.LRUCache(e)}return Object.defineProperty(e.prototype,"size",{get:function(){return this.cache.length},enumerable:!0,configurable:!0}),e.prototype.put=function(t,r){var n="string"!==typeof t?e.getKeyString(t):t,i=this.populateValue(r);this.cache.put(n,i)},e.prototype.get=function(t){var r="string"!==typeof t?e.getKeyString(t):t,n=Date.now(),i=this.cache.get(r);if(i){for(var o=i.length-1;o>=0;o--){i[o].Expire604800){throw n.util.error(new Error,{code:"InvalidExpiryTime",message:"Presigning does not support expiry time greater than a week with SigV4 signing.",retryable:!1})}e.httpRequest.headers[o]=t}else{if(r!==n.Signers.S3)throw n.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:!1});var i=e.service?e.service.getSkewCorrectedDate():n.util.date.getDate();e.httpRequest.headers[o]=parseInt(n.util.date.unixTimestamp(i)+t,10).toString()}}function s(e){var t=e.httpRequest.endpoint,r=n.util.urlParse(e.httpRequest.path),i={};r.search&&(i=n.util.queryStringParse(r.search.substr(1)));var a=e.httpRequest.headers.Authorization.split(" ");if("AWS"===a[0])a=a[1].split(":"),i.Signature=a.pop(),i.AWSAccessKeyId=a.join(":"),n.util.each(e.httpRequest.headers,(function(e,t){e===o&&(e="Expires"),0===e.indexOf("x-amz-meta-")&&(delete i[e],e=e.toLowerCase()),i[e]=t})),delete e.httpRequest.headers[o],delete i.Authorization,delete i.Host;else if("AWS4-HMAC-SHA256"===a[0]){a.shift();var s=a.join(" ").match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];i["X-Amz-Signature"]=s,delete i.Expires}t.pathname=r.pathname,t.search=n.util.queryParamsToString(i)}n.Signers.Presign=i({sign:function(e,t,r){if(e.httpRequest.headers[o]=t||3600,e.on("build",a),e.on("sign",s),e.removeListener("afterBuild",n.EventListeners.Core.SET_CONTENT_LENGTH),e.removeListener("afterBuild",n.EventListeners.Core.COMPUTE_SHA256),e.emit("beforePresign",[e]),!r){if(e.build(),e.response.error)throw e.response.error;return n.util.urlFormat(e.httpRequest.endpoint)}e.build((function(){this.response.error?r(this.response.error):r(null,n.util.urlFormat(e.httpRequest.endpoint))}))}}),e.exports=n.Signers.Presign},FGtl:function(e,t,r){var n=r("QsWE"),i={},o=[],a="aws4_request";e.exports={createScope:function(e,t,r){return[e.substr(0,8),t,r,a].join("/")},getSigningKey:function(e,t,r,s,u){var c=[n.util.crypto.hmac(e.secretAccessKey,e.accessKeyId,"base64"),t,r,s].join("_");if((u=!1!==u)&&c in i)return i[c];var l=n.util.crypto.hmac("AWS4"+e.secretAccessKey,t,"buffer"),f=n.util.crypto.hmac(l,r,"buffer"),d=n.util.crypto.hmac(f,s,"buffer"),p=n.util.crypto.hmac(d,a,"buffer");return u&&(i[c]=p,o.push(c),o.length>50&&delete i[o.shift()]),p},emptyCache:function(){i={},o=[]}}},FQVY:function(e){e.exports=JSON.parse('{"acm":{"name":"ACM","cors":true},"apigateway":{"name":"APIGateway","cors":true},"applicationautoscaling":{"prefix":"application-autoscaling","name":"ApplicationAutoScaling","cors":true},"appstream":{"name":"AppStream"},"autoscaling":{"name":"AutoScaling","cors":true},"batch":{"name":"Batch"},"budgets":{"name":"Budgets"},"clouddirectory":{"name":"CloudDirectory","versions":["2016-05-10*"]},"cloudformation":{"name":"CloudFormation","cors":true},"cloudfront":{"name":"CloudFront","versions":["2013-05-12*","2013-11-11*","2014-05-31*","2014-10-21*","2014-11-06*","2015-04-17*","2015-07-27*","2015-09-17*","2016-01-13*","2016-01-28*","2016-08-01*","2016-08-20*","2016-09-07*","2016-09-29*","2016-11-25*","2017-03-25*","2017-10-30*","2018-06-18*","2018-11-05*","2019-03-26*"],"cors":true},"cloudhsm":{"name":"CloudHSM","cors":true},"cloudsearch":{"name":"CloudSearch"},"cloudsearchdomain":{"name":"CloudSearchDomain"},"cloudtrail":{"name":"CloudTrail","cors":true},"cloudwatch":{"prefix":"monitoring","name":"CloudWatch","cors":true},"cloudwatchevents":{"prefix":"events","name":"CloudWatchEvents","versions":["2014-02-03*"],"cors":true},"cloudwatchlogs":{"prefix":"logs","name":"CloudWatchLogs","cors":true},"codebuild":{"name":"CodeBuild","cors":true},"codecommit":{"name":"CodeCommit","cors":true},"codedeploy":{"name":"CodeDeploy","cors":true},"codepipeline":{"name":"CodePipeline","cors":true},"cognitoidentity":{"prefix":"cognito-identity","name":"CognitoIdentity","cors":true},"cognitoidentityserviceprovider":{"prefix":"cognito-idp","name":"CognitoIdentityServiceProvider","cors":true},"cognitosync":{"prefix":"cognito-sync","name":"CognitoSync","cors":true},"configservice":{"prefix":"config","name":"ConfigService","cors":true},"cur":{"name":"CUR","cors":true},"datapipeline":{"name":"DataPipeline"},"devicefarm":{"name":"DeviceFarm","cors":true},"directconnect":{"name":"DirectConnect","cors":true},"directoryservice":{"prefix":"ds","name":"DirectoryService"},"discovery":{"name":"Discovery"},"dms":{"name":"DMS"},"dynamodb":{"name":"DynamoDB","cors":true},"dynamodbstreams":{"prefix":"streams.dynamodb","name":"DynamoDBStreams","cors":true},"ec2":{"name":"EC2","versions":["2013-06-15*","2013-10-15*","2014-02-01*","2014-05-01*","2014-06-15*","2014-09-01*","2014-10-01*","2015-03-01*","2015-04-15*","2015-10-01*","2016-04-01*","2016-09-15*"],"cors":true},"ecr":{"name":"ECR","cors":true},"ecs":{"name":"ECS","cors":true},"efs":{"prefix":"elasticfilesystem","name":"EFS","cors":true},"elasticache":{"name":"ElastiCache","versions":["2012-11-15*","2014-03-24*","2014-07-15*","2014-09-30*"],"cors":true},"elasticbeanstalk":{"name":"ElasticBeanstalk","cors":true},"elb":{"prefix":"elasticloadbalancing","name":"ELB","cors":true},"elbv2":{"prefix":"elasticloadbalancingv2","name":"ELBv2","cors":true},"emr":{"prefix":"elasticmapreduce","name":"EMR","cors":true},"es":{"name":"ES"},"elastictranscoder":{"name":"ElasticTranscoder","cors":true},"firehose":{"name":"Firehose","cors":true},"gamelift":{"name":"GameLift","cors":true},"glacier":{"name":"Glacier"},"health":{"name":"Health"},"iam":{"name":"IAM","cors":true},"importexport":{"name":"ImportExport"},"inspector":{"name":"Inspector","versions":["2015-08-18*"],"cors":true},"iot":{"name":"Iot","cors":true},"iotdata":{"prefix":"iot-data","name":"IotData","cors":true},"kinesis":{"name":"Kinesis","cors":true},"kinesisanalytics":{"name":"KinesisAnalytics"},"kms":{"name":"KMS","cors":true},"lambda":{"name":"Lambda","cors":true},"lexruntime":{"prefix":"runtime.lex","name":"LexRuntime","cors":true},"lightsail":{"name":"Lightsail"},"machinelearning":{"name":"MachineLearning","cors":true},"marketplacecommerceanalytics":{"name":"MarketplaceCommerceAnalytics","cors":true},"marketplacemetering":{"prefix":"meteringmarketplace","name":"MarketplaceMetering"},"mturk":{"prefix":"mturk-requester","name":"MTurk","cors":true},"mobileanalytics":{"name":"MobileAnalytics","cors":true},"opsworks":{"name":"OpsWorks","cors":true},"opsworkscm":{"name":"OpsWorksCM"},"organizations":{"name":"Organizations"},"pinpoint":{"name":"Pinpoint"},"polly":{"name":"Polly","cors":true},"rds":{"name":"RDS","versions":["2014-09-01*"],"cors":true},"redshift":{"name":"Redshift","cors":true},"rekognition":{"name":"Rekognition","cors":true},"resourcegroupstaggingapi":{"name":"ResourceGroupsTaggingAPI"},"route53":{"name":"Route53","cors":true},"route53domains":{"name":"Route53Domains","cors":true},"s3":{"name":"S3","dualstackAvailable":true,"cors":true},"s3control":{"name":"S3Control","dualstackAvailable":true,"xmlNoDefaultLists":true},"servicecatalog":{"name":"ServiceCatalog","cors":true},"ses":{"prefix":"email","name":"SES","cors":true},"shield":{"name":"Shield"},"simpledb":{"prefix":"sdb","name":"SimpleDB"},"sms":{"name":"SMS"},"snowball":{"name":"Snowball"},"sns":{"name":"SNS","cors":true},"sqs":{"name":"SQS","cors":true},"ssm":{"name":"SSM","cors":true},"storagegateway":{"name":"StorageGateway","cors":true},"stepfunctions":{"prefix":"states","name":"StepFunctions"},"sts":{"name":"STS","cors":true},"support":{"name":"Support"},"swf":{"name":"SWF"},"xray":{"name":"XRay","cors":true},"waf":{"name":"WAF","cors":true},"wafregional":{"prefix":"waf-regional","name":"WAFRegional"},"workdocs":{"name":"WorkDocs","cors":true},"workspaces":{"name":"WorkSpaces"},"codestar":{"name":"CodeStar"},"lexmodelbuildingservice":{"prefix":"lex-models","name":"LexModelBuildingService","cors":true},"marketplaceentitlementservice":{"prefix":"entitlement.marketplace","name":"MarketplaceEntitlementService"},"athena":{"name":"Athena","cors":true},"greengrass":{"name":"Greengrass"},"dax":{"name":"DAX"},"migrationhub":{"prefix":"AWSMigrationHub","name":"MigrationHub"},"cloudhsmv2":{"name":"CloudHSMV2","cors":true},"glue":{"name":"Glue"},"mobile":{"name":"Mobile"},"pricing":{"name":"Pricing","cors":true},"costexplorer":{"prefix":"ce","name":"CostExplorer","cors":true},"mediaconvert":{"name":"MediaConvert"},"medialive":{"name":"MediaLive"},"mediapackage":{"name":"MediaPackage"},"mediastore":{"name":"MediaStore"},"mediastoredata":{"prefix":"mediastore-data","name":"MediaStoreData","cors":true},"appsync":{"name":"AppSync"},"guardduty":{"name":"GuardDuty"},"mq":{"name":"MQ"},"comprehend":{"name":"Comprehend","cors":true},"iotjobsdataplane":{"prefix":"iot-jobs-data","name":"IoTJobsDataPlane"},"kinesisvideoarchivedmedia":{"prefix":"kinesis-video-archived-media","name":"KinesisVideoArchivedMedia","cors":true},"kinesisvideomedia":{"prefix":"kinesis-video-media","name":"KinesisVideoMedia","cors":true},"kinesisvideo":{"name":"KinesisVideo","cors":true},"sagemakerruntime":{"prefix":"runtime.sagemaker","name":"SageMakerRuntime"},"sagemaker":{"name":"SageMaker"},"translate":{"name":"Translate","cors":true},"resourcegroups":{"prefix":"resource-groups","name":"ResourceGroups","cors":true},"alexaforbusiness":{"name":"AlexaForBusiness"},"cloud9":{"name":"Cloud9"},"serverlessapplicationrepository":{"prefix":"serverlessrepo","name":"ServerlessApplicationRepository"},"servicediscovery":{"name":"ServiceDiscovery"},"workmail":{"name":"WorkMail"},"autoscalingplans":{"prefix":"autoscaling-plans","name":"AutoScalingPlans"},"transcribeservice":{"prefix":"transcribe","name":"TranscribeService"},"connect":{"name":"Connect","cors":true},"acmpca":{"prefix":"acm-pca","name":"ACMPCA"},"fms":{"name":"FMS"},"secretsmanager":{"name":"SecretsManager","cors":true},"iotanalytics":{"name":"IoTAnalytics","cors":true},"iot1clickdevicesservice":{"prefix":"iot1click-devices","name":"IoT1ClickDevicesService"},"iot1clickprojects":{"prefix":"iot1click-projects","name":"IoT1ClickProjects"},"pi":{"name":"PI"},"neptune":{"name":"Neptune"},"mediatailor":{"name":"MediaTailor"},"eks":{"name":"EKS"},"macie":{"name":"Macie"},"dlm":{"name":"DLM"},"signer":{"name":"Signer"},"chime":{"name":"Chime"},"pinpointemail":{"prefix":"pinpoint-email","name":"PinpointEmail"},"ram":{"name":"RAM"},"route53resolver":{"name":"Route53Resolver"},"pinpointsmsvoice":{"prefix":"sms-voice","name":"PinpointSMSVoice"},"quicksight":{"name":"QuickSight"},"rdsdataservice":{"prefix":"rds-data","name":"RDSDataService"},"amplify":{"name":"Amplify"},"datasync":{"name":"DataSync"},"robomaker":{"name":"RoboMaker"},"transfer":{"name":"Transfer"},"globalaccelerator":{"name":"GlobalAccelerator"},"comprehendmedical":{"name":"ComprehendMedical","cors":true},"kinesisanalyticsv2":{"name":"KinesisAnalyticsV2"},"mediaconnect":{"name":"MediaConnect"},"fsx":{"name":"FSx"},"securityhub":{"name":"SecurityHub"},"appmesh":{"name":"AppMesh","versions":["2018-10-01*"]},"licensemanager":{"prefix":"license-manager","name":"LicenseManager"},"kafka":{"name":"Kafka"},"apigatewaymanagementapi":{"name":"ApiGatewayManagementApi"},"apigatewayv2":{"name":"ApiGatewayV2"},"docdb":{"name":"DocDB"},"backup":{"name":"Backup"},"worklink":{"name":"WorkLink"},"textract":{"name":"Textract"},"managedblockchain":{"name":"ManagedBlockchain"},"mediapackagevod":{"prefix":"mediapackage-vod","name":"MediaPackageVod"},"groundstation":{"name":"GroundStation"},"iotthingsgraph":{"name":"IoTThingsGraph"},"iotevents":{"name":"IoTEvents"},"ioteventsdata":{"prefix":"iotevents-data","name":"IoTEventsData"},"personalize":{"name":"Personalize","cors":true},"personalizeevents":{"prefix":"personalize-events","name":"PersonalizeEvents","cors":true},"personalizeruntime":{"prefix":"personalize-runtime","name":"PersonalizeRuntime","cors":true},"applicationinsights":{"prefix":"application-insights","name":"ApplicationInsights"},"servicequotas":{"prefix":"service-quotas","name":"ServiceQuotas"},"ec2instanceconnect":{"prefix":"ec2-instance-connect","name":"EC2InstanceConnect"},"eventbridge":{"name":"EventBridge"},"lakeformation":{"name":"LakeFormation"},"forecastservice":{"prefix":"forecast","name":"ForecastService","cors":true},"forecastqueryservice":{"prefix":"forecastquery","name":"ForecastQueryService","cors":true},"qldb":{"name":"QLDB"},"qldbsession":{"prefix":"qldb-session","name":"QLDBSession"},"workmailmessageflow":{"name":"WorkMailMessageFlow"},"codestarnotifications":{"prefix":"codestar-notifications","name":"CodeStarNotifications"},"savingsplans":{"name":"SavingsPlans"},"sso":{"name":"SSO"},"ssooidc":{"prefix":"sso-oidc","name":"SSOOIDC"},"marketplacecatalog":{"prefix":"marketplace-catalog","name":"MarketplaceCatalog"},"dataexchange":{"name":"DataExchange"},"sesv2":{"name":"SESV2"},"migrationhubconfig":{"prefix":"migrationhub-config","name":"MigrationHubConfig"},"connectparticipant":{"name":"ConnectParticipant"},"appconfig":{"name":"AppConfig"},"iotsecuretunneling":{"name":"IoTSecureTunneling"},"wafv2":{"name":"WAFV2"},"elasticinference":{"prefix":"elastic-inference","name":"ElasticInference"},"imagebuilder":{"name":"Imagebuilder"},"schemas":{"name":"Schemas"},"accessanalyzer":{"name":"AccessAnalyzer"},"codegurureviewer":{"prefix":"codeguru-reviewer","name":"CodeGuruReviewer"},"codeguruprofiler":{"name":"CodeGuruProfiler"},"computeoptimizer":{"prefix":"compute-optimizer","name":"ComputeOptimizer"},"frauddetector":{"name":"FraudDetector"},"kendra":{"name":"Kendra"},"networkmanager":{"name":"NetworkManager"},"outposts":{"name":"Outposts"},"augmentedairuntime":{"prefix":"sagemaker-a2i-runtime","name":"AugmentedAIRuntime"},"ebs":{"name":"EBS"},"kinesisvideosignalingchannels":{"prefix":"kinesis-video-signaling","name":"KinesisVideoSignalingChannels","cors":true},"detective":{"name":"Detective"},"codestarconnections":{"prefix":"codestar-connections","name":"CodeStarconnections"},"synthetics":{"name":"Synthetics"},"iotsitewise":{"name":"IoTSiteWise"},"macie2":{"name":"Macie2"},"codeartifact":{"name":"CodeArtifact"},"honeycode":{"name":"Honeycode"},"ivs":{"name":"IVS"},"braket":{"name":"Braket"},"identitystore":{"name":"IdentityStore"},"appflow":{"name":"Appflow"},"redshiftdata":{"prefix":"redshift-data","name":"RedshiftData"},"ssoadmin":{"prefix":"sso-admin","name":"SSOAdmin"},"timestreamquery":{"prefix":"timestream-query","name":"TimestreamQuery"},"timestreamwrite":{"prefix":"timestream-write","name":"TimestreamWrite"},"s3outposts":{"name":"S3Outposts"},"databrew":{"name":"DataBrew"},"servicecatalogappregistry":{"prefix":"servicecatalog-appregistry","name":"ServiceCatalogAppRegistry"},"networkfirewall":{"prefix":"network-firewall","name":"NetworkFirewall"},"mwaa":{"name":"MWAA"},"amplifybackend":{"name":"AmplifyBackend"},"appintegrations":{"name":"AppIntegrations"},"connectcontactlens":{"prefix":"connect-contact-lens","name":"ConnectContactLens"},"devopsguru":{"prefix":"devops-guru","name":"DevOpsGuru"},"ecrpublic":{"prefix":"ecr-public","name":"ECRPUBLIC"},"lookoutvision":{"name":"LookoutVision"},"sagemakerfeaturestoreruntime":{"prefix":"sagemaker-featurestore-runtime","name":"SageMakerFeatureStoreRuntime"},"customerprofiles":{"prefix":"customer-profiles","name":"CustomerProfiles"},"auditmanager":{"name":"AuditManager"},"emrcontainers":{"prefix":"emr-containers","name":"EMRcontainers"},"healthlake":{"name":"HealthLake"},"sagemakeredge":{"prefix":"sagemaker-edge","name":"SagemakerEdge"},"amp":{"name":"Amp"},"greengrassv2":{"name":"GreengrassV2"},"iotdeviceadvisor":{"name":"IotDeviceAdvisor"},"iotfleethub":{"name":"IoTFleetHub"},"iotwireless":{"name":"IoTWireless"},"location":{"name":"Location","cors":true},"wellarchitected":{"name":"WellArchitected"},"lexmodelsv2":{"prefix":"models.lex.v2","name":"LexModelsV2"},"lexruntimev2":{"prefix":"runtime.lex.v2","name":"LexRuntimeV2","cors":true},"fis":{"name":"Fis"},"lookoutmetrics":{"name":"LookoutMetrics"},"mgn":{"name":"Mgn"},"lookoutequipment":{"name":"LookoutEquipment"},"nimble":{"name":"Nimble"},"finspace":{"name":"Finspace"},"finspacedata":{"prefix":"finspace-data","name":"Finspacedata"},"ssmcontacts":{"prefix":"ssm-contacts","name":"SSMContacts"},"ssmincidents":{"prefix":"ssm-incidents","name":"SSMIncidents"},"applicationcostprofiler":{"name":"ApplicationCostProfiler"},"apprunner":{"name":"AppRunner"},"proton":{"name":"Proton"}}')},FYa8:function(e,t,r){"use strict";var n;t.__esModule=!0,t.HeadManagerContext=void 0;var i=((n=r("q1tI"))&&n.__esModule?n:{default:n}).default.createContext({});t.HeadManagerContext=i},GDOE:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(e){return"function"===typeof ArrayBuffer&&e instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(e)}},GcxT:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r("1TCz")}])},Gj6d:function(e,t){},GoyQ:function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},"H8+m":function(e,t,r){"use strict";r.d(t,"L",(function(){return o})),r.d(t,"y",(function(){return a})),r.d(t,"x",(function(){return s})),r.d(t,"l",(function(){return l})),r.d(t,"p",(function(){return c})),r.d(t,"o",(function(){return f})),r.d(t,"r",(function(){return k})),r.d(t,"s",(function(){return C})),r.d(t,"n",(function(){return A})),r.d(t,"t",(function(){return x})),r.d(t,"q",(function(){return I})),r.d(t,"m",(function(){return T})),r.d(t,"E",(function(){return h})),r.d(t,"C",(function(){return v})),r.d(t,"z",(function(){return O})),r.d(t,"A",(function(){return E})),r.d(t,"M",(function(){return y})),r.d(t,"e",(function(){return S})),r.d(t,"K",(function(){return w})),r.d(t,"u",(function(){return b})),r.d(t,"v",(function(){return _})),r.d(t,"d",(function(){return D})),r.d(t,"g",(function(){return F})),r.d(t,"J",(function(){return q})),r.d(t,"I",(function(){return B})),r.d(t,"k",(function(){return G})),r.d(t,"c",(function(){return J.a})),r.d(t,"G",(function(){return V})),r.d(t,"H",(function(){return H})),r.d(t,"b",(function(){return Q})),r.d(t,"i",(function(){return Z})),r.d(t,"F",(function(){return $})),r.d(t,"D",(function(){return ee})),r.d(t,"f",(function(){return te})),r.d(t,"a",(function(){return ne})),r.d(t,"B",(function(){return ie})),r.d(t,"w",(function(){return oe})),r.d(t,"h",(function(){return ae})),r.d(t,"j",(function(){return se}));var n=r("L2ys"),i=r("qVdT");function o(e,t){var r=e.directives;return!r||!r.length||function(e){var t=[];e&&e.length&&e.forEach((function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var r=e.arguments;e.name.value;Object(i.b)(r&&1===r.length,39);var n=r[0];Object(i.b)(n.name&&"if"===n.name.value,40);var o=n.value;Object(i.b)(o&&("Variable"===o.kind||"BooleanValue"===o.kind),41),t.push({directive:e,ifArgument:n})}}));return t}(r).every((function(e){var r=e.directive,n=e.ifArgument,o=!1;return"Variable"===n.value.kind?(o=t&&t[n.value.name.value],Object(i.b)(void 0!==o,38)):o=n.value.value,"skip"===r.name.value?!o:o}))}function a(e,t){return function(e){var t=[];return Object(n.b)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function s(e){return e&&a(["client"],e)&&a(["export"],e)}var u=r("mrSG");function c(e,t){var r=t,n=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw new i.a(42);"FragmentDefinition"===e.kind&&n.push(e)})),"undefined"===typeof r&&(Object(i.b)(1===n.length,43),r=n[0].name.value),Object(u.__assign)(Object(u.__assign)({},e),{definitions:Object(u.__spreadArrays)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions)})}function l(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function f(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=t&&t[e.name.value];return Object(i.b)(r,44),r;default:return null}}var d=r("9x6x"),p=r.n(d);function h(e){return{__ref:String(e)}}function v(e){return Boolean(e&&"object"===typeof e&&"string"===typeof e.__ref)}function g(e,t,r,n){if(function(e){return"IntValue"===e.kind}(r)||function(e){return"FloatValue"===e.kind}(r))e[t.value]=Number(r.value);else if(function(e){return"BooleanValue"===e.kind}(r)||function(e){return"StringValue"===e.kind}(r))e[t.value]=r.value;else if(function(e){return"ObjectValue"===e.kind}(r)){var o={};r.fields.map((function(e){return g(o,e.name,e.value,n)})),e[t.value]=o}else if(function(e){return"Variable"===e.kind}(r)){var a=(n||{})[r.name.value];e[t.value]=a}else if(function(e){return"ListValue"===e.kind}(r))e[t.value]=r.values.map((function(e){var r={};return g(r,t,e,n),r[t.value]}));else if(function(e){return"EnumValue"===e.kind}(r))e[t.value]=r.value;else{if(!function(e){return"NullValue"===e.kind}(r))throw new i.a(53);e[t.value]=null}}function y(e,t){var r=null;e.directives&&(r={},e.directives.forEach((function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach((function(n){var i=n.name,o=n.value;return g(r[e.name.value],i,o,t)}))})));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach((function(e){var r=e.name,i=e.value;return g(n,r,i,t)}))),b(e.name.value,n,r)}var m=["connection","include","skip","client","rest","export"];function b(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach((function(e){i[e]=t[e]})),r.connection.key+"("+JSON.stringify(i)+")"}return r.connection.key}var o=e;if(t){var a=p()(t);o+="("+a+")"}return r&&Object.keys(r).forEach((function(e){-1===m.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@"+e+"("+JSON.stringify(r[e])+")":o+="@"+e)})),o}function S(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach((function(e){var n=e.name,i=e.value;return g(r,n,i,t)})),r}return null}function w(e){return e.alias?e.alias.value:e.name.value}function _(e,t,r){if("string"===typeof e.__typename)return e.__typename;for(var n=0,i=t.selections;n1)for(var n=new Q,i=1;i0}function oe(e){return e.errors&&e.errors.length>0||!1}"function"===typeof Symbol&&Symbol.species&&Object.defineProperty(ne,Symbol.species,{value:J.a});var ae="function"===typeof WeakMap&&!("object"===typeof navigator&&"ReactNative"===navigator.product);function se(){for(var e=[],t=0;to?1*n:0})),!0},a=function(e,t){var r=Object.assign({},e);return t&&("string"===typeof t?delete r[t]:t.forEach((function(e){delete r[e]}))),r},s=function(e,t){void 0===t&&(t="application/octet-stream");var r=e.toLowerCase(),i=n.filter((function(e){return r.endsWith("."+e.ext)}));return i.length>0?i[0].type:t},u=function(e){var t=e.toLowerCase();return!!t.startsWith("text/")||("application/json"===t||"application/xml"===t||"application/sh"===t)},c=function(){for(var e="",t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",r=32;r>0;r-=1)e+=t[Math.floor(Math.random()*t.length)];return e},l=function(e){if(e.isResolved)return e;var t=!0,r=!1,n=!1,i=e.then((function(e){return n=!0,t=!1,e}),(function(e){throw r=!0,t=!1,e}));return i.isFullfilled=function(){return n},i.isPending=function(){return t},i.isRejected=function(){return r},i},f=function(){if("undefined"===typeof self)return!1;var e=self;return"undefined"!==typeof e.WorkerGlobalScope&&self instanceof e.WorkerGlobalScope},d=function(){return{isBrowser:"undefined"!==typeof window&&"undefined"!==typeof window.document,isNode:"undefined"!==typeof e&&null!=e.versions&&null!=e.versions.node}},p=function(e,t,r){if(void 0===t&&(t=[]),void 0===r&&(r=[]),!v(e))return e;var n={};for(var i in e){if(e.hasOwnProperty(i))n[t.includes(i)?i:i[0].toLowerCase()+i.slice(1)]=r.includes(i)?e[i]:p(e[i],t,r)}return n},h=function(e,t,r){if(void 0===t&&(t=[]),void 0===r&&(r=[]),!v(e))return e;var n={};for(var i in e){if(e.hasOwnProperty(i))n[t.includes(i)?i:i[0].toUpperCase()+i.slice(1)]=r.includes(i)?e[i]:h(e[i],t,r)}return n},v=function(e){return e instanceof Object&&!(e instanceof Array)&&!(e instanceof Function)&&!(e instanceof Number)&&!(e instanceof String)&&!(e instanceof Boolean)},g=function(){function e(){}return e.isEmpty=i,e.sortByField=o,e.objectLessAttributes=a,e.filenameToContentType=s,e.isTextFile=u,e.generateRandomString=c,e.makeQuerablePromise=l,e.isWebWorker=f,e.browserOrNode=d,e.transferKeyToLowerCase=p,e.transferKeyToUpperCase=h,e.isStrictObject=v,e}()}).call(this,r("8oxB"))},I1T4:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(e,t,r,n,i){this.message=e,this.path=t,this.query=r,this.clientOnly=n,this.variables=i}},IA2x:function(e,t,r){},IFky:function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return o}));function n(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var i=function(){function e(e,t){void 0===t&&(t=[]),this.name=e,this.children=t,this.attributes={}}return e.prototype.withName=function(e){return this.name=e,this},e.prototype.addAttribute=function(e,t){return this.attributes[e]=t,this},e.prototype.addChildNode=function(e){return this.children.push(e),this},e.prototype.removeAttribute=function(e){return delete this.attributes[e],this},e.prototype.toString=function(){var e,t,r=Boolean(this.children.length),i="<"+this.name,o=this.attributes;try{for(var a=n(Object.keys(o)),s=a.next();!s.done;s=a.next()){var u=s.value,c=o[u];"undefined"!==typeof c&&null!==c&&(i+=" "+u+'="'+((""+c).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")+'"'))}}catch(l){e={error:l}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return i+(r?">"+this.children.map((function(e){return e.toString()})).join("")+"":"/>")},e}();var o=function(){function e(e){this.value=e}return e.prototype.toString=function(){return(""+this.value).replace(/&/g,"&").replace(//g,">")},e}()},Iy6Y:function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return m})),r.d(t,"c",(function(){return b})),r.d(t,"d",(function(){return S})),r.d(t,"f",(function(){return w})),r.d(t,"e",(function(){return _}));var n=r("q1tI"),i=r.n(n),o=r("qVdT"),a=r("6CgR");function s(){var e=i.a.useContext(Object(a.c)()).client;return Object(o.b)(e,33),e}var u=r("mrSG"),c=r("qx2n"),l=r("v2L8"),f=function(){function e(e,t){this.isMounted=!1,this.previousOptions={},this.context={},this.options={},this.options=e||{},this.context=t||{}}return e.prototype.getOptions=function(){return this.options},e.prototype.setOptions=function(e,t){void 0===t&&(t=!1),t&&!Object(c.a)(this.options,e)&&(this.previousOptions=this.options),this.options=e},e.prototype.unmount=function(){this.isMounted=!1},e.prototype.refreshClient=function(){var e=this.options&&this.options.client||this.context&&this.context.client;Object(o.b)(!!e,29);var t=!1;return e!==this.client&&(t=!0,this.client=e,this.cleanup()),{client:this.client,isNew:t}},e.prototype.verifyDocumentType=function(e,t){var r=Object(l.c)(e);Object(l.b)(t),Object(l.b)(r.type);Object(o.b)(r.type===t,30)},e}(),d=function(e){function t(t){var r=t.options,n=t.context,i=t.setResult,o=e.call(this,r,n)||this;return o.currentObservable={},o.setResult=i,o.initialize(r),o}return Object(u.__extends)(t,e),t.prototype.execute=function(e){if(!0===this.getOptions().skip)return this.cleanup(),{loading:!1,error:void 0,data:void 0,variables:this.getOptions().variables};var t=e;this.refreshClient().isNew&&(t=this.getLoadingResult());var r=this.getOptions().shouldResubscribe;return"function"===typeof r&&(r=!!r(this.getOptions())),!1!==r&&this.previousOptions&&Object.keys(this.previousOptions).length>0&&(this.previousOptions.subscription!==this.getOptions().subscription||!Object(c.a)(this.previousOptions.variables,this.getOptions().variables)||this.previousOptions.skip!==this.getOptions().skip)&&(this.cleanup(),t=this.getLoadingResult()),this.initialize(this.getOptions()),this.startSubscription(),this.previousOptions=this.getOptions(),Object(u.__assign)(Object(u.__assign)({},t),{variables:this.getOptions().variables})},t.prototype.afterExecute=function(){this.isMounted=!0},t.prototype.cleanup=function(){this.endSubscription(),delete this.currentObservable.query},t.prototype.initialize=function(e){this.currentObservable.query||!0===this.getOptions().skip||(this.currentObservable.query=this.refreshClient().client.subscribe({query:e.subscription,variables:e.variables,fetchPolicy:e.fetchPolicy}))},t.prototype.startSubscription=function(){this.currentObservable.subscription||(this.currentObservable.subscription=this.currentObservable.query.subscribe({next:this.updateCurrentData.bind(this),error:this.updateError.bind(this),complete:this.completeSubscription.bind(this)}))},t.prototype.getLoadingResult=function(){return{loading:!0,error:void 0,data:void 0}},t.prototype.updateResult=function(e){this.isMounted&&this.setResult(e)},t.prototype.updateCurrentData=function(e){var t=this.getOptions().onSubscriptionData;this.updateResult({data:e.data,loading:!1,error:void 0}),t&&t({client:this.refreshClient().client,subscriptionData:e})},t.prototype.updateError=function(e){this.updateResult({error:e,loading:!1})},t.prototype.completeSubscription=function(){var e=this.getOptions().onSubscriptionComplete;e&&e(),this.endSubscription()},t.prototype.endSubscription=function(){this.currentObservable.subscription&&(this.currentObservable.subscription.unsubscribe(),delete this.currentObservable.subscription)},t}(f),p=r("PKC9"),h=r("ALmS"),v=function(e){function t(t){var r=t.options,n=t.context,i=t.result,o=t.setResult,a=e.call(this,r,n)||this;return a.runMutation=function(e){void 0===e&&(e={}),a.onMutationStart();var t=a.generateNewMutationId();return a.mutate(e).then((function(e){return a.onMutationCompleted(e,t),e})).catch((function(e){if(a.onMutationError(e,t),!a.getOptions().onError)throw e}))},a.verifyDocumentType(r.mutation,l.a.Mutation),a.result=i,a.setResult=o,a.mostRecentMutationId=0,a}return Object(u.__extends)(t,e),t.prototype.execute=function(e){return this.isMounted=!0,this.verifyDocumentType(this.getOptions().mutation,l.a.Mutation),[this.runMutation,Object(u.__assign)(Object(u.__assign)({},e),{client:this.refreshClient().client})]},t.prototype.afterExecute=function(){return this.isMounted=!0,this.unmount.bind(this)},t.prototype.cleanup=function(){},t.prototype.mutate=function(e){return this.refreshClient().client.mutate(Object(h.mergeOptions)(this.getOptions(),e))},t.prototype.onMutationStart=function(){this.result.loading||this.getOptions().ignoreResults||this.updateResult({loading:!0,error:void 0,data:void 0,called:!0})},t.prototype.onMutationCompleted=function(e,t){var r=this.getOptions(),n=r.onCompleted,i=r.ignoreResults,o=e.data,a=e.errors,s=a&&a.length>0?new p.a({graphQLErrors:a}):void 0;this.isMostRecentMutation(t)&&!i&&this.updateResult({called:!0,loading:!1,data:o,error:s}),n&&n(o)},t.prototype.onMutationError=function(e,t){var r=this.getOptions().onError;this.isMostRecentMutation(t)&&this.updateResult({loading:!1,error:e,data:void 0,called:!0}),r&&r(e)},t.prototype.generateNewMutationId=function(){return++this.mostRecentMutationId},t.prototype.isMostRecentMutation=function(e){return this.mostRecentMutationId===e},t.prototype.updateResult=function(e){!this.isMounted||this.previousResult&&Object(c.a)(this.previousResult,e)||(this.setResult(e),this.previousResult=e)},t}(f),g=function(e){function t(t){var r=t.options,n=t.context,i=t.onNewData,o=e.call(this,r,n)||this;return o.runLazy=!1,o.previous=Object.create(null),o.runLazyQuery=function(e){o.cleanup(),o.runLazy=!0,o.lazyOptions=e,o.onNewData()},o.getQueryResult=function(){var e=o.observableQueryFields(),t=o.getOptions();if(t.skip)e=Object(u.__assign)(Object(u.__assign)({},e),{data:void 0,error:void 0,loading:!1,called:!0});else if(o.currentObservable){var r=o.currentObservable.getCurrentResult(),n=r.data,i=r.loading,a=r.partial,s=r.networkStatus,c=r.errors,l=r.error;if(c&&c.length>0&&(l=new p.a({graphQLErrors:c})),e=Object(u.__assign)(Object(u.__assign)({},e),{data:n,loading:i,networkStatus:s,error:l,called:!0}),i);else if(l)Object.assign(e,{data:(o.currentObservable.getLastResult()||{}).data});else{var f=o.currentObservable.options.fetchPolicy;if(t.partialRefetch&&a&&(!n||0===Object.keys(n).length)&&"cache-only"!==f)return Object.assign(e,{loading:!0,networkStatus:h.NetworkStatus.loading}),e.refetch(),e}}e.client=o.client,o.setOptions(t,!0);var d=o.previous.result;return o.previous.loading=d&&d.loading||!1,e.previousData=d&&(d.data||d.previousData),o.previous.result=e,o.currentObservable&&o.currentObservable.resetQueryStoreErrors(),e},o.obsRefetch=function(e){var t;return null===(t=o.currentObservable)||void 0===t?void 0:t.refetch(e)},o.obsFetchMore=function(e){return o.currentObservable.fetchMore(e)},o.obsUpdateQuery=function(e){return o.currentObservable.updateQuery(e)},o.obsStartPolling=function(e){var t;null===(t=o.currentObservable)||void 0===t||t.startPolling(e)},o.obsStopPolling=function(){var e;null===(e=o.currentObservable)||void 0===e||e.stopPolling()},o.obsSubscribeToMore=function(e){return o.currentObservable.subscribeToMore(e)},o.onNewData=i,o}return Object(u.__extends)(t,e),t.prototype.execute=function(){this.refreshClient();var e=this.getOptions(),t=e.skip,r=e.query;return(t||r!==this.previous.query)&&(this.removeQuerySubscription(),this.removeObservable(!t),this.previous.query=r),this.updateObservableQuery(),this.isMounted&&this.startQuerySubscription(),this.getExecuteSsrResult()||this.getExecuteResult()},t.prototype.executeLazy=function(){return this.runLazy?[this.runLazyQuery,this.execute()]:[this.runLazyQuery,{loading:!1,networkStatus:h.NetworkStatus.ready,called:!1,data:void 0}]},t.prototype.fetchData=function(){var e=this,t=this.getOptions();return!t.skip&&!1!==t.ssr&&new Promise((function(t){return e.startQuerySubscription(t)}))},t.prototype.afterExecute=function(e){var t=(void 0===e?{}:e).lazy,r=void 0!==t&&t;return this.isMounted=!0,r&&!this.runLazy||this.handleErrorOrCompleted(),this.previousOptions=this.getOptions(),this.unmount.bind(this)},t.prototype.cleanup=function(){this.removeQuerySubscription(),this.removeObservable(!0),delete this.previous.result},t.prototype.getOptions=function(){var t=e.prototype.getOptions.call(this);return this.lazyOptions&&(t.variables=Object(u.__assign)(Object(u.__assign)({},t.variables),this.lazyOptions.variables),t.context=Object(u.__assign)(Object(u.__assign)({},t.context),this.lazyOptions.context)),this.runLazy&&delete t.skip,t},t.prototype.ssrInitiated=function(){return this.context&&this.context.renderPromises},t.prototype.getExecuteResult=function(){var e=this.getQueryResult();return this.startQuerySubscription(),e},t.prototype.getExecuteSsrResult=function(){var e,t=this.getOptions(),r=t.ssr,n=t.skip,i=!1===r||n,o=this.refreshClient().client.disableNetworkFetches,a=Object(u.__assign)({loading:!0,networkStatus:h.NetworkStatus.loading,called:!0,data:void 0,stale:!1,client:this.client},this.observableQueryFields());return i&&(this.ssrInitiated()||o)?(this.previous.result=a,a):(this.ssrInitiated()&&(e=this.context.renderPromises.addQueryPromise(this,this.getQueryResult)||a),e)},t.prototype.prepareObservableQueryOptions=function(){var e=this.getOptions();this.verifyDocumentType(e.query,l.a.Query);var t=e.displayName||"Query";return!this.ssrInitiated()||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e.fetchPolicy="cache-first"),Object(u.__assign)(Object(u.__assign)({},e),{displayName:t,context:e.context})},t.prototype.initializeObservableQuery=function(){if(this.ssrInitiated()&&(this.currentObservable=this.context.renderPromises.getSSRObservable(this.getOptions())),!this.currentObservable){var e=this.prepareObservableQueryOptions();this.previous.observableQueryOptions=Object(u.__assign)(Object(u.__assign)({},e),{children:null}),this.currentObservable=this.refreshClient().client.watchQuery(Object(u.__assign)({},e)),this.ssrInitiated()&&this.context.renderPromises.registerSSRObservable(this.currentObservable,e)}},t.prototype.updateObservableQuery=function(){if(this.currentObservable){if(!this.getOptions().skip){var e=Object(u.__assign)(Object(u.__assign)({},this.prepareObservableQueryOptions()),{children:null});Object(c.a)(e,this.previous.observableQueryOptions)||(this.previous.observableQueryOptions=e,this.currentObservable.setOptions(e).catch((function(){})))}}else this.initializeObservableQuery()},t.prototype.startQuerySubscription=function(e){var t=this;void 0===e&&(e=this.onNewData),this.currentSubscription||this.getOptions().skip||(this.currentSubscription=this.currentObservable.subscribe({next:function(r){var n=r.loading,i=r.networkStatus,o=r.data,a=t.previous.result;a&&a.loading===n&&a.networkStatus===i&&Object(c.a)(a.data,o)||e()},error:function(r){if(t.resubscribeToQuery(),!r.hasOwnProperty("graphQLErrors"))throw r;var n=t.previous.result;(n&&n.loading||!Object(c.a)(r,t.previous.error))&&(t.previous.error=r,e())}}))},t.prototype.resubscribeToQuery=function(){this.removeQuerySubscription();var e=this.currentObservable;if(e){var t=e.getLastError(),r=e.getLastResult();e.resetLastResults(),this.startQuerySubscription(),Object.assign(e,{lastError:t,lastResult:r})}},t.prototype.handleErrorOrCompleted=function(){if(this.currentObservable&&this.previous.result){var e=this.previous.result,t=e.data,r=e.loading,n=e.error;if(!r){var i=this.getOptions(),o=i.query,a=i.variables,s=i.onCompleted,u=i.onError,l=i.skip;if(this.previousOptions&&!this.previous.loading&&Object(c.a)(this.previousOptions.query,o)&&Object(c.a)(this.previousOptions.variables,a))return;!s||n||l?u&&n&&u(n):s(t)}}},t.prototype.removeQuerySubscription=function(){this.currentSubscription&&(this.currentSubscription.unsubscribe(),delete this.currentSubscription)},t.prototype.removeObservable=function(e){this.currentObservable&&(this.currentObservable.tearDownQuery(),e&&delete this.currentObservable)},t.prototype.observableQueryFields=function(){var e;return{variables:null===(e=this.currentObservable)||void 0===e?void 0:e.variables,refetch:this.obsRefetch,fetchMore:this.obsFetchMore,updateQuery:this.obsUpdateQuery,startPolling:this.obsStartPolling,stopPolling:this.obsStopPolling,subscribeToMore:this.obsSubscribeToMore}},t}(f);function y(e,t,r){void 0===r&&(r=!1);var i=Object(n.useContext)(Object(a.c)()),o=Object(n.useReducer)((function(e){return e+1}),0),s=o[0],l=o[1],f=t?Object(u.__assign)(Object(u.__assign)({},t),{query:e}):{query:e},d=Object(n.useRef)(),p=d.current||new g({options:f,context:i,onNewData:function(){p.ssrInitiated()?l():Promise.resolve().then(l)}});p.setOptions(f),p.context=i,p.ssrInitiated()&&!d.current&&(d.current=p);var h=function(e,t){var r=Object(n.useRef)();return r.current&&Object(c.a)(t,r.current.key)||(r.current={key:t,value:e()}),r.current.value}((function(){return r?p.executeLazy():p.execute()}),{options:Object(u.__assign)(Object(u.__assign)({},f),{onError:void 0,onCompleted:void 0}),context:i,tick:s}),v=r?h[1]:h;return Object(n.useEffect)((function(){return d.current||(d.current=p),function(){return p.cleanup()}}),[]),Object(n.useEffect)((function(){return p.afterExecute({lazy:r})}),[v.loading,v.networkStatus,v.error,v.data]),h}function m(e,t){return y(e,t,!0)}function b(e,t){var r=Object(n.useContext)(Object(a.c)()),i=Object(n.useState)({called:!1,loading:!1}),o=i[0],s=i[1],c=t?Object(u.__assign)(Object(u.__assign)({},t),{mutation:e}):{mutation:e},l=Object(n.useRef)();var f=(l.current||(l.current=new v({options:c,context:r,result:o,setResult:s})),l.current);return f.setOptions(c),f.context=r,Object(n.useEffect)((function(){return f.afterExecute()})),f.execute(o)}function S(e,t){return y(e,t,!1)}function w(e,t){var r=Object(n.useContext)(Object(a.c)()),i=t?Object(u.__assign)(Object(u.__assign)({},t),{subscription:e}):{subscription:e},o=Object(n.useState)({loading:!i.skip,error:void 0,data:void 0}),s=o[0],c=o[1],l=Object(n.useRef)();var f=(l.current||(l.current=new d({options:i,context:r,setResult:c})),l.current);return f.setOptions(i,!0),f.context=r,Object(n.useEffect)((function(){return f.afterExecute()})),Object(n.useEffect)((function(){return f.cleanup.bind(f)}),[]),f.execute(s)}function _(e){var t=e(),r=e.onNextChange(Object(n.useState)(t)[1]);return Object(n.useEffect)((function(){return r}),[]),t}},J2eM:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(e){return function(){throw new Error(e)}}},JBVX:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},JEbH:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},JHRd:function(e,t,r){var n=r("Kz5y").Uint8Array;e.exports=n},JHgL:function(e,t,r){var n=r("QkVE");e.exports=function(e){return n(this,e).get(e)}},JSQU:function(e,t,r){var n=r("YESw");e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},JTzB:function(e,t,r){var n=r("NykK"),i=r("ExA7");e.exports=function(e){return i(e)&&"[object Arguments]"==n(e)}},JWCV:function(e,t,r){var n=r("BaN1");function i(){}function o(e,t){if(t&&void 0!==e&&null!==e)switch(t.type){case"structure":return function(e,t){if(t.isDocument)return e;var r={};return n.each(e,(function(e,n){var i=t.members[e];if(i){if("body"!==i.location)return;var a=i.isLocationName?i.name:e,s=o(n,i);void 0!==s&&(r[a]=s)}})),r}(e,t);case"map":return function(e,t){var r={};return n.each(e,(function(e,n){var i=o(n,t.value);void 0!==i&&(r[e]=i)})),r}(e,t);case"list":return function(e,t){var r=[];return n.arrayEach(e,(function(e){var n=o(e,t.member);void 0!==n&&r.push(n)})),r}(e,t);default:return function(e,t){return t.toWireFormat(e)}(e,t)}}i.prototype.build=function(e,t){return JSON.stringify(o(e,t))},e.exports=i},KFai:function(e,t,r){var n=r("BaN1"),i=r("lSFX").populateHostPrefix;function o(e,t,r,i){var o=[e,t].join("/");o=o.replace(/\/+/g,"/");var a={},s=!1;if(n.each(r.members,(function(e,t){var r=i[e];if(null!==r&&void 0!==r)if("uri"===t.location){var u=new RegExp("\\{"+t.name+"(\\+)?\\}");o=o.replace(u,(function(e,t){return(t?n.uriEscapePath:n.uriEscape)(String(r))}))}else"querystring"===t.location&&(s=!0,"list"===t.type?a[t.name]=r.map((function(e){return n.uriEscape(t.member.toWireFormat(e).toString())})):"map"===t.type?n.each(r,(function(e,t){Array.isArray(t)?a[e]=t.map((function(e){return n.uriEscape(String(e))})):a[e]=n.uriEscape(String(t))})):a[t.name]=n.uriEscape(t.toWireFormat(r).toString()))})),s){o+=o.indexOf("?")>=0?"&":"?";var u=[];n.arrayEach(Object.keys(a).sort(),(function(e){Array.isArray(a[e])||(a[e]=[a[e]]);for(var t=0;t=0?"&":"?";this.request.path+=o+n.util.queryParamsToString(i)},authorization:function(e,t){var r=[],n=this.credentialString(t);return r.push(this.algorithm+" Credential="+e.accessKeyId+"/"+n),r.push("SignedHeaders="+this.signedHeaders()),r.push("Signature="+this.signature(e,t)),r.join(", ")},signature:function(e,t){var r=i.getSigningKey(e,t.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return n.util.crypto.hmac(r,this.stringToSign(t),"hex")},stringToSign:function(e){var t=[];return t.push("AWS4-HMAC-SHA256"),t.push(e),t.push(this.credentialString(e)),t.push(this.hexEncodedHash(this.canonicalString())),t.join("\n")},canonicalString:function(){var e=[],t=this.request.pathname();return"s3"!==this.serviceName&&"s3v4"!==this.signatureVersion&&(t=n.util.uriEscapePath(t)),e.push(this.request.method),e.push(t),e.push(this.request.search()),e.push(this.canonicalHeaders()+"\n"),e.push(this.signedHeaders()),e.push(this.hexEncodedBodyHash()),e.join("\n")},canonicalHeaders:function(){var e=[];n.util.each.call(this,this.request.headers,(function(t,r){e.push([t,r])})),e.sort((function(e,t){return e[0].toLowerCase()2&&void 0!==arguments[2]?arguments[2]:n,o=void 0,u=Array.isArray(e),c=[e],l=-1,f=[],d=void 0,p=void 0,h=void 0,v=[],g=[],y=e;do{var m=++l===c.length,b=m&&0!==f.length;if(m){if(p=0===g.length?void 0:v[v.length-1],d=h,h=g.pop(),b){if(u)d=d.slice();else{var S={};for(var w in d)d.hasOwnProperty(w)&&(S[w]=d[w]);d=S}for(var _=0,O=0;O-1?o+1:i.length;t(i.substring(a))},n.onabort=function(){return r(new Error("Read aborted"))},n.onerror=function(){return r(n.error)},n.readAsDataURL(e)}))}},LVIV:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},LXxW:function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r=this.HEADERS_RECEIVED&&!f&&(u.statusCode=l.status,u.headers=a.parseHeaders(l.getAllResponseHeaders()),u.emit("headers",u.statusCode,u.headers,l.statusText),f=!0),this.readyState===this.DONE&&a.finishRequest(l,u)}),!1),l.upload.addEventListener("progress",(function(e){u.emit("sendProgress",e)})),l.addEventListener("progress",(function(e){u.emit("receiveProgress",e)}),!1),l.addEventListener("timeout",(function(){o(n.util.error(new Error("Timeout"),{code:"TimeoutError"}))}),!1),l.addEventListener("error",(function(){o(n.util.error(new Error("Network Failure"),{code:"NetworkingError"}))}),!1),l.addEventListener("abort",(function(){o(n.util.error(new Error("Request aborted"),{code:"RequestAbortedError"}))}),!1),r(u),l.open(e.method,c,!1!==t.xhrAsync),n.util.each(e.headers,(function(e,t){"Content-Length"!==e&&"User-Agent"!==e&&"Host"!==e&&l.setRequestHeader(e,t)})),t.timeout&&!1!==t.xhrAsync&&(l.timeout=t.timeout),t.xhrWithCredentials&&(l.withCredentials=!0);try{l.responseType="arraybuffer"}catch(d){}try{e.body?l.send(e.body):l.send()}catch(p){if(!e.body||"object"!==typeof e.body.buffer)throw p;l.send(e.body.buffer)}return u},parseHeaders:function(e){var t={};return n.util.arrayEach(e.split(/\r?\n/),(function(e){var r=e.split(":",1)[0],n=e.substring(r.length+2);r.length>0&&(t[r.toLowerCase()]=n)})),t},finishRequest:function(e,t){var r;if("arraybuffer"===e.responseType&&e.response){var i=e.response;r=new n.util.Buffer(i.byteLength);for(var o=new Uint8Array(i),a=0;a=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return e}})),u=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),h(r)?n.showHidden=r:r&&t._extend(n,r),m(n.showHidden)&&(n.showHidden=!1),m(n.depth)&&(n.depth=2),m(n.colors)&&(n.colors=!1),m(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),l(n,e,n.depth)}function u(e,t){var r=s.styles[t];return r?"\x1b["+s.colors[r][0]+"m"+e+"\x1b["+s.colors[r][1]+"m":e}function c(e,t){return e}function l(e,r,n){if(e.customInspect&&r&&O(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return y(i)||(i=l(e,i,n)),i}var o=function(e,t){if(m(t))return e.stylize("undefined","undefined");if(y(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(g(t))return e.stylize(""+t,"number");if(h(t))return e.stylize(""+t,"boolean");if(v(t))return e.stylize("null","null")}(e,r);if(o)return o;var a=Object.keys(r),s=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),_(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(r);if(0===a.length){if(O(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(b(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(w(r))return e.stylize(Date.prototype.toString.call(r),"date");if(_(r))return f(r)}var c,S="",E=!1,j=["{","}"];(p(r)&&(E=!0,j=["[","]"]),O(r))&&(S=" [Function"+(r.name?": "+r.name:"")+"]");return b(r)&&(S=" "+RegExp.prototype.toString.call(r)),w(r)&&(S=" "+Date.prototype.toUTCString.call(r)),_(r)&&(S=" "+f(r)),0!==a.length||E&&0!=r.length?n<0?b(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),c=E?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(c,S,j)):j[0]+S+j[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),A(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=v(r)?l(e,u.value,null):l(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),m(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function p(e){return Array.isArray(e)}function h(e){return"boolean"===typeof e}function v(e){return null===e}function g(e){return"number"===typeof e}function y(e){return"string"===typeof e}function m(e){return void 0===e}function b(e){return S(e)&&"[object RegExp]"===E(e)}function S(e){return"object"===typeof e&&null!==e}function w(e){return S(e)&&"[object Date]"===E(e)}function _(e){return S(e)&&("[object Error]"===E(e)||e instanceof Error)}function O(e){return"function"===typeof e}function E(e){return Object.prototype.toString.call(e)}function j(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(r){if(m(o)&&(o=e.env.NODE_DEBUG||""),r=r.toUpperCase(),!a[r])if(new RegExp("\\b"+r+"\\b","i").test(o)){var n=e.pid;a[r]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",r,n,e)}}else a[r]=function(){};return a[r]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=h,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=y,t.isSymbol=function(e){return"symbol"===typeof e},t.isUndefined=m,t.isRegExp=b,t.isObject=S,t.isDate=w,t.isError=_,t.isFunction=O,t.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e},t.isBuffer=r("1gqn");var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C(){var e=new Date,t=[j(e.getHours()),j(e.getMinutes()),j(e.getSeconds())].join(":");return[e.getDate(),k[e.getMonth()],t].join(" ")}function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",C(),t.format.apply(t,arguments))},t.inherits=r("KKCa"),t._extend=function(e,t){if(!t||!S(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var x="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function I(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');if(x&&e[x]){var t;if("function"!==typeof(t=e[x]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,x,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),i=[],o=0;o=0;r--){var n=e.charCodeAt(r);n>127&&n<=2047?t++:n>2047&&n<=65535&&(t+=2)}return t}return"number"===typeof e.byteLength?e.byteLength:"number"===typeof e.size?e.size:void 0}r.d(t,"a",(function(){return n}))},NKxu:function(e,t,r){var n=r("lSCD"),i=r("E2jh"),o=r("GoyQ"),a=r("3Fdi"),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,d=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(n(e)?d:s).test(a(e))}},NODT:function(e,t,r){var n,i,o=r("ZyCK"),a=r("V20V"),s=0,u=0;e.exports=function(e,t,r){var c=t&&r||0,l=t||[],f=(e=e||{}).node||n,d=void 0!==e.clockseq?e.clockseq:i;if(null==f||null==d){var p=o();null==f&&(f=n=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=i=16383&(p[6]<<8|p[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),v=void 0!==e.nsecs?e.nsecs:u+1,g=h-s+(v-u)/1e4;if(g<0&&void 0===e.clockseq&&(d=d+1&16383),(g<0||h>s)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=h,u=v,i=d;var y=(1e4*(268435455&(h+=122192928e5))+v)%4294967296;l[c++]=y>>>24&255,l[c++]=y>>>16&255,l[c++]=y>>>8&255,l[c++]=255&y;var m=h/4294967296*1e4&268435455;l[c++]=m>>>8&255,l[c++]=255&m,l[c++]=m>>>24&15|16,l[c++]=m>>>16&255,l[c++]=d>>>8|128,l[c++]=255&d;for(var b=0;b<6;++b)l[c+b]=f[b];return t||a(l)}},NVWg:function(e,t,r){var n=r("5wkZ").eventMessageChunker,i=r("de4B").parseEvent;e.exports={createEventStream:function(e,t,r){for(var o=n(e),a=[],s=0;s=0&&!o.headers[":authority"]?(delete o.headers.host,o.headers[":authority"]=""):o.headers.host||(o.headers.host=o.hostname),[2,t(r)]):[2,t(r)]}))}))}}}(e),a)}}}},Nlz5:function(e,t,r){"use strict";r.d(t,"b",(function(){return _})),r.d(t,"a",(function(){return O}));var n=r("mrSG"),i=r("qVdT"),o=r("Bdln"),a=r("H8+m"),s=r("Bu0L"),u=r("qx2n"),c=r("PKC9"),l=r("AQry"),f=r("bb5K"),d=r("L2ys"),p=r("Xs4a"),h=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=Object(a.G)(t.resolvers,e)})):this.resolvers=Object(a.G)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,r=e.remoteResult,i=e.context,o=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return Object(n.__awaiter)(this,void 0,void 0,(function(){return Object(n.__generator)(this,(function(e){return t?[2,this.resolveDocument(t,r.data,i,o,this.fragmentMatcher,s).then((function(e){return Object(n.__assign)(Object(n.__assign)({},r),{data:e.result})}))]:[2,r]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return Object(a.y)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return Object(a.I)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return Object(n.__assign)(Object(n.__assign)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),Object(n.__awaiter)(this,void 0,void 0,(function(){return Object(n.__generator)(this,(function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then((function(e){return Object(n.__assign)(Object(n.__assign)({},t),e.exportedVariables)}))]:[2,Object(n.__assign)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return Object(d.b)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return d.a}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Object(a.g)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,r,i,o,s){return void 0===r&&(r={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===s&&(s=!1),Object(n.__awaiter)(this,void 0,void 0,(function(){var u,c,l,f,d,p,h,v,g;return Object(n.__generator)(this,(function(y){return u=Object(a.q)(e),c=Object(a.n)(e),l=Object(a.l)(c),f=u.operation,d=f?f.charAt(0).toUpperCase()+f.slice(1):"Query",h=(p=this).cache,v=p.client,g={fragmentMap:l,context:Object(n.__assign)(Object(n.__assign)({},r),{cache:h,client:v}),variables:i,fragmentMatcher:o,defaultOperationType:d,exportedVariables:{},onlyRunForcedResolvers:s},[2,this.resolveSelectionSet(u.selectionSet,t,g).then((function(e){return{result:e,exportedVariables:g.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,r){return Object(n.__awaiter)(this,void 0,void 0,(function(){var o,s,u,c,l,f=this;return Object(n.__generator)(this,(function(d){return o=r.fragmentMap,s=r.context,u=r.variables,c=[t],l=function(e){return Object(n.__awaiter)(f,void 0,void 0,(function(){var l,f;return Object(n.__generator)(this,(function(n){return Object(a.L)(e,u)?Object(a.z)(e)?[2,this.resolveField(e,t,r).then((function(t){var r;"undefined"!==typeof t&&c.push(((r={})[Object(a.K)(e)]=t,r))}))]:(Object(a.A)(e)?l=e:(l=o[e.name.value],Object(i.b)(l,11)),l&&l.typeCondition&&(f=l.typeCondition.name.value,r.fragmentMatcher(t,f,s))?[2,this.resolveSelectionSet(l.selectionSet,t,r).then((function(e){c.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(l)).then((function(){return Object(a.H)(c)}))]}))}))},e.prototype.resolveField=function(e,t,r){return Object(n.__awaiter)(this,void 0,void 0,(function(){var i,o,s,u,c,l,f,d,h,v=this;return Object(n.__generator)(this,(function(n){return i=r.variables,o=e.name.value,s=Object(a.K)(e),u=o!==s,c=t[s]||t[o],l=Promise.resolve(c),r.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(f=t.__typename||r.defaultOperationType,(d=this.resolvers&&this.resolvers[f])&&(h=d[u?o:s])&&(l=Promise.resolve(p.cacheSlot.withValue(this.cache,h,[t,Object(a.e)(e,i),r.context,{field:e,fragmentMap:r.fragmentMap}])))),[2,l.then((function(t){return void 0===t&&(t=c),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(r.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?v.resolveSubSelectedArray(e,t,r):e.selectionSet?v.resolveSelectionSet(e.selectionSet,t,r):void 0:t}))]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,r){var n=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?n.resolveSubSelectedArray(e,t,r):e.selectionSet?n.resolveSelectionSet(e.selectionSet,t,r):void 0})))},e}(),v=new(a.h?WeakMap:Map);function g(e,t){var r=e[t];"function"===typeof r&&(e[t]=function(){return v.set(e,(v.get(e)+1)%1e15),r.apply(this,arguments)})}function y(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var m=function(){function e(e){this.cache=e,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.diff=null,this.observableQuery=null,v.has(e)||(v.set(e,0),g(e,"evict"),g(e,"modify"),g(e,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||f.a.loading;return this.variables&&this.networkStatus!==f.a.loading&&!Object(u.a)(this.variables,e.variables)&&(t=f.a.setVariables),Object(u.a)(e.variables,this.variables)||(this.diff=null),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.getDiff=function(e){return void 0===e&&(e=this.variables),this.diff&&Object(u.a)(e,this.variables)?this.diff:(this.updateWatch(this.variables=e),this.diff=this.cache.diff({query:this.document,variables:e,returnPartialData:!0,optimistic:!0}))},e.prototype.setDiff=function(e){var t=this,r=this.diff;this.diff=e,this.dirty||(e&&e.result)===(r&&r.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.notify()}),0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():e.reobserve()})):delete this.oqListener)},e.prototype.notify=function(){var e=this;y(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(Object(f.b)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.cancel(),delete this.cancel,this.subscriptions.forEach((function(e){return e.unsubscribe()}));var e=this.observableQuery;e&&e.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;r&&"no-cache"===r.options.fetchPolicy||this.lastWatch&&this.lastWatch.query===this.document&&Object(u.a)(e,this.lastWatch.variables)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch={query:this.document,variables:e,optimistic:!0,callback:function(e){return t.setDiff(e)}}))},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===v.get(this.cache)&&Object(u.a)(t,r.variables)&&Object(u.a)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r){var n=this;this.graphQLErrors=Object(a.B)(e.errors)?e.errors:[],y(this),"no-cache"===t.fetchPolicy?this.diff={result:e.data,complete:!0}:r&&(b(e,t.errorPolicy)?this.cache.performTransaction((function(r){if(n.shouldWrite(e,t.variables))r.writeQuery({query:n.document,data:e.data,variables:t.variables}),n.lastWrite={result:e,variables:t.variables,dmCount:v.get(n.cache)};else if(n.diff&&n.diff.complete)return void(e.data=n.diff.result);var i=r.diff({query:n.document,variables:t.variables,returnPartialData:!0,optimistic:!0});n.stopped||n.updateWatch(t.variables),n.diff=i,i.complete&&(e.data=i.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=f.a.ready},e.prototype.markError=function(e){return this.networkStatus=f.a.error,this.lastWrite=void 0,y(this),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function b(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!Object(a.w)(e);return!n&&r&&e.data&&(n=!0),n}var S=Object.prototype.hasOwnProperty,w=function(){function e(e){var t=e.cache,r=e.link,n=e.queryDeduplication,i=void 0!==n&&n,o=e.onBroadcast,s=e.ssrMode,u=void 0!==s&&s,c=e.clientAwareness,l=void 0===c?{}:c,f=e.localState,d=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(a.h?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=r,this.queryDeduplication=i,this.clientAwareness=l,this.localState=f||new h({cache:t}),this.ssrMode=u,this.assumeImmutableResults=!!d,(this.onBroadcast=o)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,r){e.stopQueryNoBroadcast(r)})),this.cancelPendingFetches(new i.a(12))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t=e.mutation,r=e.variables,o=e.optimisticResponse,s=e.updateQueries,u=e.refetchQueries,l=void 0===u?[]:u,f=e.awaitRefetchQueries,d=void 0!==f&&f,p=e.update,h=e.errorPolicy,v=void 0===h?"none":h,g=e.fetchPolicy,y=e.context,m=void 0===y?{}:y;return Object(n.__awaiter)(this,void 0,void 0,(function(){var e,u,f;return Object(n.__generator)(this,(function(h){switch(h.label){case 0:return Object(i.b)(t,13),Object(i.b)(!g||"no-cache"===g,14),e=this.generateMutationId(),t=this.transform(t).document,r=this.getVariables(t,r),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,r,m)]:[3,2];case 1:r=h.sent(),h.label=2;case 2:return u=this.mutationStore&&(this.mutationStore[e]={mutation:t,variables:r,loading:!0,error:null}),o&&this.markMutationOptimistic(o,{mutationId:e,document:t,variables:r,errorPolicy:v,updateQueries:s,update:p}),this.broadcastQueries(),f=this,[2,new Promise((function(i,h){var y,b;f.getObservableFromLink(t,Object(n.__assign)(Object(n.__assign)({},m),{optimisticResponse:o}),r,!1).subscribe({next:function(n){if(Object(a.w)(n)&&"none"===v)b=new c.a({graphQLErrors:n.errors});else{if(u&&(u.loading=!1,u.error=null),"no-cache"!==g)try{f.markMutationResult({mutationId:e,result:n,document:t,variables:r,errorPolicy:v,updateQueries:s,update:p})}catch(i){return void(b=new c.a({networkError:i}))}y=n}},error:function(t){u&&(u.loading=!1,u.error=t),o&&f.cache.removeOptimistic(e),f.broadcastQueries(),h(new c.a({networkError:t}))},complete:function(){if(b&&u&&(u.loading=!1,u.error=b),o&&f.cache.removeOptimistic(e),f.broadcastQueries(),b)h(b);else{"function"===typeof l&&(l=l(y));var t=[];Object(a.B)(l)&&l.forEach((function(e){if("string"===typeof e)f.queries.forEach((function(r){var n=r.observableQuery;n&&n.queryName===e&&t.push(n.refetch())}));else{var r={query:e.query,variables:e.variables,fetchPolicy:"network-only"};e.context&&(r.context=e.context),t.push(f.query(r))}})),Promise.all(d?t:[]).then((function(){"ignore"===v&&y&&Object(a.w)(y)&&delete y.errors,i(y)}),h)}}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var r=this;if(void 0===t&&(t=this.cache),b(e.result,e.errorPolicy)){var n=[{result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}],i=e.updateQueries;i&&this.queries.forEach((function(o,s){var u=o.observableQuery,c=u&&u.queryName;if(c&&S.call(i,c)){var l=i[c],f=r.queries.get(s),d=f.document,p=f.variables,h=t.diff({query:d,variables:p,returnPartialData:!0,optimistic:!1}),v=h.result;if(h.complete&&v){var g=l(v,{mutationResult:e.result,queryName:d&&Object(a.s)(d)||void 0,queryVariables:p});g&&n.push({result:g,dataId:"ROOT_QUERY",query:d,variables:p})}}})),t.performTransaction((function(t){n.forEach((function(e){return t.write(e)}));var r=e.update;r&&r(t,e.result)}),null)}},e.prototype.markMutationOptimistic=function(e,t){var r=this,i="function"===typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction((function(e){try{r.markMutationResult(Object(n.__assign)(Object(n.__assign)({},t),{result:{data:i}}),e)}catch(o){}}),t.mutationId)},e.prototype.fetchQuery=function(e,t,r){return this.fetchQueryObservable(e,t,r).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var r=this.cache.transformDocument(e),n=Object(a.J)(this.cache.transformForLink(r)),i=this.localState.clientQuery(r),o=n&&this.localState.serverQuery(n),s={document:r,hasClientExports:Object(a.x)(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:i,serverQuery:o,defaultVars:Object(a.m)(Object(a.r)(r))},u=function(e){e&&!t.has(e)&&t.set(e,s)};u(e),u(r),u(i),u(o)}return t.get(e)},e.prototype.getVariables=function(e,t){return Object(n.__assign)(Object(n.__assign)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){"undefined"===typeof(e=Object(n.__assign)(Object(n.__assign)({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new m(this.cache),r=new l.a({queryManager:this,queryInfo:t,options:e});return this.queries.set(r.queryId,t),t.init({document:e.query,observableQuery:r,variables:e.variables}),r},e.prototype.query=function(e){var t=this;Object(i.b)(e.query,15),Object(i.b)("Document"===e.query.kind,16),Object(i.b)(!e.returnPartialData,17),Object(i.b)(!e.pollInterval,18);var r=this.generateQueryId();return this.fetchQuery(r,e).finally((function(){return t.stopQuery(r)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(){return this.cancelPendingFetches(new i.a(19)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=f.a.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset()},e.prototype.resetStore=function(){var e=this;return this.clearStore().then((function(){return e.reFetchObservableQueries()}))},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.queries.forEach((function(n,i){var o=n.observableQuery;if(o&&o.hasObservers()){var a=o.options.fetchPolicy;o.resetLastResults(),"cache-only"===a||!e&&"standby"===a||r.push(o.refetch()),t.getQuery(i).setDiff(null)}})),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.errorPolicy,o=e.variables,s=e.context,u=void 0===s?{}:s;r=this.transform(r).document,o=this.getVariables(r,o);var l=function(e){return t.getObservableFromLink(r,u,e,!1).map((function(o){if("no-cache"!==n&&(b(o,i)&&t.cache.write({query:r,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),Object(a.w)(o))throw new c.a({graphQLErrors:o.errors});return o}))};if(this.transform(r).hasClientExports){var f=this.localState.addExportedVariables(r,o,u).then(l);return new a.c((function(e){var t=null;return f.then((function(r){return t=r.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return l(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.getQuery(e).stop(),this.queries.delete(e)},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,i){var s,u,c=this;void 0===i&&(i=null!==(s=null===t||void 0===t?void 0:t.queryDeduplication)&&void 0!==s?s:this.queryDeduplication);var l=this.transform(e).serverQuery;if(l){var f=this.inFlightLinkObservables,d=this.link,p={query:l,variables:r,operationName:Object(a.s)(l)||void 0,context:this.prepareContext(Object(n.__assign)(Object(n.__assign)({},t),{forceFetch:!i}))};if(t=p.context,i){var h=f.get(l)||new Map;f.set(l,h);var v=JSON.stringify(r);if(!(u=h.get(v))){var g=new a.a([Object(o.execute)(d,p)]);h.set(v,u=g),g.cleanup((function(){h.delete(v)&&h.size<1&&f.delete(l)}))}}else u=new a.a([Object(o.execute)(d,p)])}else u=new a.a([a.c.of({data:{}})]),t=this.prepareContext(t);var y=this.transform(e).clientQuery;return y&&(u=Object(a.f)(u,(function(e){return c.localState.runResolvers({document:y,remoteResult:e,context:t,variables:r})}))),u},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId;return Object(a.f)(this.getObservableFromLink(e.document,r.context,r.variables),(function(i){var o=Object(a.B)(i.errors);if(n>=e.lastRequestId){if(o&&"none"===r.errorPolicy)throw e.markError(new c.a({graphQLErrors:i.errors}));e.markResult(i,r,t),e.markReady()}var s={data:i.data,loading:!1,networkStatus:e.networkStatus||f.a.ready};return o&&"ignore"!==r.errorPolicy&&(s.errors=i.errors),s}),(function(t){var r=Object(c.b)(t)?t:new c.a({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r}))},e.prototype.fetchQueryObservable=function(e,t,r){var n=this;void 0===r&&(r=f.a.loading);var i=this.transform(t.query).document,o=this.getVariables(i,t.variables),s=this.getQuery(e),u=s.networkStatus,c=t.fetchPolicy,l=void 0===c?"cache-first":c,d=t.errorPolicy,p=void 0===d?"none":d,h=t.returnPartialData,v=void 0!==h&&h,g=t.notifyOnNetworkStatusChange,y=void 0!==g&&g,m=t.context,b=void 0===m?{}:m;("cache-first"===l||"cache-and-network"===l||"network-only"===l||"no-cache"===l)&&y&&"number"===typeof u&&u!==r&&Object(f.b)(r)&&("cache-first"!==l&&(l="cache-and-network"),v=!0);var S=Object.assign({},t,{query:i,variables:o,fetchPolicy:l,errorPolicy:p,returnPartialData:v,notifyOnNetworkStatusChange:y,context:b}),w=function(e){return S.variables=e,n.fetchQueryByPolicy(s,S,r)};this.fetchCancelFns.set(e,(function(e){Promise.resolve().then((function(){return _.cancel(e)}))}));var _=new a.a(this.transform(S.query).hasClientExports?this.localState.addExportedVariables(S.query,S.variables,S.context).then(w):w(S.variables));return _.cleanup((function(){n.fetchCancelFns.delete(e);var r=t.nextFetchPolicy;r&&(t.nextFetchPolicy=void 0,t.fetchPolicy="function"===typeof r?r.call(t,t.fetchPolicy||"cache-first"):r)})),_},e.prototype.fetchQueryByPolicy=function(e,t,r){var i=this,o=t.query,s=t.variables,u=t.fetchPolicy,c=t.errorPolicy,l=t.returnPartialData,d=t.context;e.init({document:o,variables:s,lastRequestId:this.generateRequestId(),networkStatus:r});var p=function(){return e.getDiff(s)},h=function(t,r){void 0===r&&(r=e.networkStatus||f.a.loading);var u=t.result;var c=function(e){return a.c.of(Object(n.__assign)({data:e,loading:Object(f.b)(r),networkStatus:r},t.complete?null:{partial:!0}))};return i.transform(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:u},context:d,variables:s,onlyRunForcedResolvers:!0}).then((function(e){return c(e.data)})):c(u)},v=function(t){return i.getResultsFromLink(e,t,{variables:s,context:d,fetchPolicy:u,errorPolicy:c})};switch(u){default:case"cache-first":return(g=p()).complete?[h(g,e.markReady())]:l?[h(g),v(!0)]:[v(!0)];case"cache-and-network":var g;return(g=p()).complete||l?[h(g),v(!0)]:[v(!0)];case"cache-only":return[h(p(),e.markReady())];case"network-only":return[v(!0)];case"no-cache":return[v(!1)];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new m(this.cache)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return Object(n.__assign)(Object(n.__assign)({},t),{clientAwareness:this.clientAwareness})},e}();function _(e,t){return Object(a.j)(e,t,t.variables&&{variables:Object(n.__assign)(Object(n.__assign)({},e.variables),t.variables)})}var O=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=e.uri,n=e.credentials,a=e.headers,u=e.cache,c=e.ssrMode,l=void 0!==c&&c,f=e.ssrForceFetchDelay,d=void 0===f?0:f,p=e.connectToDevTools,v=void 0===p?"object"===typeof window&&!window.__APOLLO_CLIENT__&&!1:p,g=e.queryDeduplication,y=void 0===g||g,m=e.defaultOptions,b=e.assumeImmutableResults,S=void 0!==b&&b,_=e.resolvers,O=e.typeDefs,E=e.fragmentMatcher,j=e.name,k=e.version,C=e.link;if(C||(C=r?new s.a({uri:r,credentials:n,headers:a}):o.ApolloLink.empty()),!u)throw new i.a(9);this.link=C,this.cache=u,this.disableNetworkFetches=l||d>0,this.queryDeduplication=y,this.defaultOptions=m||{},this.typeDefs=O,d&&setTimeout((function(){return t.disableNetworkFetches=!1}),d),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),v&&"object"===typeof window&&(window.__APOLLO_CLIENT__=this),this.version="3.3.6",this.localState=new h({cache:u,client:this,resolvers:_,fragmentMatcher:E}),this.queryManager=new w({cache:this.cache,link:this.link,queryDeduplication:y,ssrMode:l,clientAwareness:{name:j,version:k},localState:this.localState,assumeImmutableResults:S,onBroadcast:v?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=_(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=Object(n.__assign)(Object(n.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=_(this.defaultOptions.query,e)),Object(i.b)("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=Object(n.__assign)(Object(n.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=_(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return Object(o.execute)(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}()},Npjl:function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},Nt7R:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=function(e,t){var r="function"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=function(){for(var e=[],t=0;t=a){var u=console.log.bind(console);"ERROR"===t&&console.error&&(u=console.error.bind(console)),"WARN"===t&&console.warn&&(u=console.warn.bind(console));var c="["+t+"] "+this._ts()+" "+this.name;if(1===r.length&&"string"===typeof r[0])u(c+" - "+r[0]);else if(1===r.length)u(c,r[0]);else if("string"===typeof r[0]){var l=r.slice(1);1===l.length&&(l=l[0]),u(c+" - "+r[0],l)}else u(c,r)}},e.prototype.log=function(){for(var e=[],t=0;t256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()})).join("")}catch(e){return t}}))}(f.pathname):f.pathname),"about:"===S.protocol&&"blank"===S.pathname&&(S.protocol="",S.pathname=""),w&&"/"!==e[0]&&(S.pathname=S.pathname.substr(1)),l&&!h.test(l)&&"/"!==e.slice(-1)&&"/"===S.pathname&&(S.pathname=""),S.path=S.pathname+S.search,S.auth=[f.username,f.password].map(decodeURIComponent).filter(Boolean).join(":"),S.port=f.port,b&&!S.host.endsWith(b)&&(S.host+=b,S.port=b.slice(1)),S.href=_?""+S.pathname+S.search+S.hash:a(S);var E=/^(file)/.test(S.href)?["host","hostname"]:[];return Object.keys(S).forEach((function(e){~E.indexOf(e)||(S[e]=S[e]||null)})),S}t.parse=b,t.format=a,t.resolve=d,t.resolveObject=function(e,t){return b(d(e,t))},t.Url=p},QoRX:function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r0)&&!(n=o.next()).done;)a.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},a=function(){for(var e=[],t=0;t-1)&&(n===u||s.warn("WARNING: "+e+" is protected and dispatching on it can have unintended consequences"));var o={channel:e,payload:i({},t),source:r,patternInfo:[]};try{this._toListeners(o)}catch(a){s.error(a)}},e.prototype.listen=function(e,t,r){var n,i=this;if(void 0===r&&(r="noname"),function(e){return void 0!==e.onHubCapsule}(t))s.warn("WARNING onHubCapsule is Deprecated. Please pass in a callback."),n=t.onHubCapsule.bind(t);else{if("function"!==typeof t)throw new Error("No callback supplied to Hub");n=t}if(e instanceof RegExp)this.patterns.push({pattern:e,callback:n});else{var o=this.listeners[e];o||(o=[],this.listeners[e]=o),o.push({name:r,callback:n})}return function(){i.remove(e,n)}},e.prototype._toListeners=function(e){var t=e.channel,r=e.payload,n=this.listeners[t];if(n&&n.forEach((function(n){s.debug("Dispatching to "+t+" with ",r);try{n.callback(e)}catch(i){s.error(i)}})),this.patterns.length>0){if(!r.message)return void s.warn("Cannot perform pattern matching without a message key");var a=r.message;this.patterns.forEach((function(t){var r=a.match(t.pattern);if(r){var n=o(r).slice(1),u=i(i({},e),{patternInfo:n});try{t.callback(u)}catch(c){s.error(c)}}}))}},e}())("__default__")},R10A:function(e,t,r){"use strict";r.d(t,"a",(function(){return bt}));var n=r("Nt7R"),i=r("2Lx6"),o=r("HzrR"),a=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(t){o(t)}}function s(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},u=function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(n=o.next()).done;)a.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},l=function(){for(var e=[],t=0;te)&&r}}(r))},ye=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(t){o(t)}}function s(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},me=function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1](new Date).getTime()?(mt.debug("token not expired"),this._setCredentialsFromFederation({provider:t,token:n,user:r,identity_id:i,expires_at:o})):this._refreshHandlers[t]&&"function"===typeof this._refreshHandlers[t]?(mt.debug("getting refreshed jwt token from federation provider"),this._providerRefreshWithRetry({refreshHandler:this._refreshHandlers[t],provider:t,user:r})):(mt.debug("no refresh handler for provider:",t),this.clear(),Promise.reject("no refresh handler for provider"))},e.prototype._providerRefreshWithRetry=function(e){var t=this,r=e.refreshHandler,n=e.provider,i=e.user;return ge(r,[],1e4).then((function(e){return mt.debug("refresh federated token sucessfully",e),t._setCredentialsFromFederation({provider:n,token:e.token,user:i,identity_id:e.identity_id,expires_at:e.expires_at})})).catch((function(e){return"string"===typeof e&&0===e.toLowerCase().lastIndexOf("network error",e.length)||t.clear(),mt.debug("refresh federated token failed",e),Promise.reject("refreshing federation token failed: "+e)}))},e.prototype._isExpired=function(e){if(!e)return mt.debug("no credentials for expiration check"),!0;mt.debug("are these credentials expired?",e);var t=Date.now();return e.expiration.getTime()<=t},e.prototype._isPastTTL=function(){return this._nextCredentialsRefresh<=Date.now()},e.prototype._setCredentialsForGuest=function(){return gt(this,void 0,void 0,(function(){var e,t,r,n,i,o,a,s=this;return yt(this,(function(u){switch(u.label){case 0:if(mt.debug("setting credentials for guest"),e=this._config,t=e.identityPoolId,r=e.region,e.mandatorySignIn)return[2,Promise.reject("cannot get guest credentials when mandatory signin enabled")];if(!t)return mt.debug("No Cognito Identity pool provided for unauthenticated access"),[2,Promise.reject("No Cognito Identity pool provided for unauthenticated access")];if(!r)return mt.debug("region is not configured for getting the credentials"),[2,Promise.reject("region is not configured for getting the credentials")];n=void 0,u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this._storageSync];case 2:return u.sent(),n=this._storage.getItem("CognitoIdentityId-"+t),this._identityId=n,[3,4];case 3:return i=u.sent(),mt.debug("Failed to get the cached identityId",i),[3,4];case 4:return o=new ht({region:r,customUserAgent:Object(xe.b)()}),a=void 0,a=n?qe({identityId:n,client:o})():function(){return gt(s,void 0,void 0,(function(){var e;return yt(this,(function(r){switch(r.label){case 0:return[4,o.send(new Fe({IdentityPoolId:t}))];case 1:return e=r.sent().IdentityId,this._identityId=e,[2,qe({client:o,identityId:e})()]}}))}))}().catch((function(e){return gt(s,void 0,void 0,(function(){return yt(this,(function(t){throw e}))}))})),[2,this._loadCredentials(a,"guest",!1,null).then((function(e){return e})).catch((function(e){return gt(s,void 0,void 0,(function(){var r=this;return yt(this,(function(i){return"ResourceNotFoundException"===e.name&&e.message==="Identity '"+n+"' not found."?(mt.debug("Failed to load guest credentials"),this._storage.removeItem("CognitoIdentityId-"+t),a=function(){return gt(r,void 0,void 0,(function(){var e;return yt(this,(function(r){switch(r.label){case 0:return[4,o.send(new Fe({IdentityPoolId:t}))];case 1:return e=r.sent().IdentityId,this._identityId=e,[2,qe({client:o,identityId:e})()]}}))}))}().catch((function(e){return gt(r,void 0,void 0,(function(){return yt(this,(function(t){throw e}))}))})),[2,this._loadCredentials(a,"guest",!1,null)]):[2,e]}))}))}))]}}))}))},e.prototype._setCredentialsFromFederation=function(e){var t=e.provider,r=e.token,n=e.identity_id,i={google:"accounts.google.com",facebook:"graph.facebook.com",amazon:"www.amazon.com",developer:"cognito-identity.amazonaws.com"}[t]||t;if(!i)return Promise.reject("You must specify a federated provider");var o={};o[i]=r;var a=this._config,s=a.identityPoolId,u=a.region;if(!s)return mt.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!u)return mt.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var c=new ht({region:u,customUserAgent:Object(xe.b)()}),l=void 0;n?l=qe({identityId:n,logins:o,client:c})():l=Ve({logins:o,identityPoolId:s,client:c})();return this._loadCredentials(l,"federated",!0,e)},e.prototype._setCredentialsFromSession=function(e){var t=this;mt.debug("set credentials from session");var r=e.getIdToken().getJwtToken(),n=this._config,i=n.region,o=n.userPoolId,a=n.identityPoolId;if(!a)return mt.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!i)return mt.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var s={};s["cognito-idp."+i+".amazonaws.com/"+o]=r;var u=new ht({region:i,customUserAgent:Object(xe.b)()}),c=gt(t,void 0,void 0,(function(){var e;return yt(this,(function(t){switch(t.label){case 0:return[4,u.send(new Fe({IdentityPoolId:a,Logins:s}))];case 1:return e=t.sent().IdentityId,this._identityId=e,[2,qe({client:u,logins:s,identityId:e})()]}}))})).catch((function(e){return gt(t,void 0,void 0,(function(){return yt(this,(function(t){throw e}))}))}));return this._loadCredentials(c,"userPool",!0,null)},e.prototype._loadCredentials=function(e,t,r,n){var i=this,o=this,a=this._config.identityPoolId;return new Promise((function(s,u){e.then((function(e){return gt(i,void 0,void 0,(function(){var i,u,c,l,f,d;return yt(this,(function(p){switch(p.label){case 0:if(mt.debug("Load credentials successfully",e),this._identityId&&!e.identityId&&(e.identityId=this._identityId),o._credentials=e,o._credentials.authenticated=r,o._credentials_source=t,o._nextCredentialsRefresh=(new Date).getTime()+3e6,"federated"===t){i=Object.assign({id:this._credentials.identityId},n.user),u=n.provider,c=n.token,l=n.expires_at,f=n.identity_id;try{this._storage.setItem("aws-amplify-federatedInfo",JSON.stringify({provider:u,token:c,user:i,expires_at:l,identity_id:f}))}catch(h){mt.debug("Failed to put federated info into auth storage",h)}}if("guest"!==t)return[3,4];p.label=1;case 1:return p.trys.push([1,3,,4]),[4,this._storageSync];case 2:return p.sent(),this._storage.setItem("CognitoIdentityId-"+a,e.identityId),[3,4];case 3:return d=p.sent(),mt.debug("Failed to cache identityId",d),[3,4];case 4:return s(o._credentials),[2]}}))}))})).catch((function(t){if(t)return mt.debug("Failed to load credentials",e),mt.debug("Error loading credentials",t),void u(t)}))}))},e.prototype.set=function(e,t){return"session"===t?this._setCredentialsFromSession(e):"federation"===t?this._setCredentialsFromFederation(e):"guest"===t?this._setCredentialsForGuest():(mt.debug("no source specified for setting credentials"),Promise.reject("invalid source"))},e.prototype.clear=function(){return gt(this,void 0,void 0,(function(){return yt(this,(function(e){return this._credentials=null,this._credentials_source=null,mt.debug("removing aws-amplify-federatedInfo from storage"),this._storage.removeItem("aws-amplify-federatedInfo"),[2]}))}))},e.prototype.shear=function(e){return{accessKeyId:e.accessKeyId,sessionToken:e.sessionToken,secretAccessKey:e.secretAccessKey,identityId:e.identityId,authenticated:e.authenticated}},e}())(null);Ie.a.register(bt)},Rkej:function(e,t,r){},S3Uu:function(e,t,r){"use strict";r.d(t,"a",(function(){return l})),r.d(t,"b",(function(){return f}));for(var n={},i=new Array(64),o=0,a="A".charCodeAt(0),s="Z".charCodeAt(0);o+a<=s;o++){var u=String.fromCharCode(o+a);n[u]=o,i[o]=u}for(o=0,a="a".charCodeAt(0),s="z".charCodeAt(0);o+a<=s;o++){u=String.fromCharCode(o+a);var c=o+26;n[u]=c,i[c]=u}for(o=0;o<10;o++){n[o.toString(10)]=o+52;u=o.toString(10),c=o+52;n[u]=c,i[c]=u}n["+"]=62,i[62]="+",n["/"]=63,i[63]="/";function l(e){var t=e.length/4*3;"=="===e.substr(-2)?t-=2:"="===e.substr(-1)&&t--;for(var r=new ArrayBuffer(t),i=new DataView(r),o=0;o>=6;var l=o/4*3;a>>=s%8;for(var f=Math.floor(s/8),d=0;d>p)}}return new Uint8Array(r)}function f(e){for(var t="",r=0;r>l]}t+="==".slice(0,4-u)}return t}},S6rO:function(e,t,r){var n=r("QsWE"),i=r("6Yqx");n.TemporaryCredentials=n.util.inherit(n.Credentials,{constructor:function(e,t){n.Credentials.call(this),this.loadMasterCredentials(t),this.expired=!0,this.params=e||{},this.params.RoleArn&&(this.params.RoleSessionName=this.params.RoleSessionName||"temporary-credentials")},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.masterCredentials.get((function(){t.service.config.credentials=t.masterCredentials,(t.params.RoleArn?t.service.assumeRole:t.service.getSessionToken).call(t.service,(function(r,n){r||t.service.credentialsFrom(n,t),e(r)}))}))},loadMasterCredentials:function(e){for(this.masterCredentials=e||n.config.credentials;this.masterCredentials.masterCredentials;)this.masterCredentials=this.masterCredentials.masterCredentials;"function"!==typeof this.masterCredentials.get&&(this.masterCredentials=new n.Credentials(this.masterCredentials))},createClients:function(){this.service=this.service||new i({params:this.params})}})},SLVX:function(e,t,r){"use strict";function n(e){var t,r=e.Symbol;if("function"===typeof r)if(r.observable)t=r.observable;else{t=r.for("https://github.com/benlesh/symbol-observable");try{r.observable=t}catch(n){}}else t="@@observable";return t}r.d(t,"a",(function(){return n}))},SfRM:function(e,t,r){var n=r("YESw");e.exports=function(){this.__data__=n?n(null):{},this.size=0}},Sl41:function(e,t){e.exports={escapeElement:function(e){return e.replace(/&/g,"&").replace(//g,">").replace(/\r/g," ").replace(/\n/g," ").replace(/\u0085/g,"…").replace(/\u2028/,"
")}}},Svzd:function(e,t,r){"use strict";r.d(t,"c",(function(){return i})),r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return a})),r.d(t,"d",(function(){return s}));var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1){var i=this.errors.join("\n* ");throw i="There were "+this.errors.length+" validation errors:\n* "+i,n.util.error(new Error(i),{code:"MultipleValidationErrors",errors:this.errors})}if(1===this.errors.length)throw this.errors[0];return!0},fail:function(e,t){this.errors.push(n.util.error(new Error(t),{code:e}))},validateStructure:function(e,t,r){var n;this.validateType(t,r,["object"],"structure");for(var i=0;e.required&&i= 1, but found "'+t+'" for '+r)},validatePattern:function(e,t,r){this.validation.pattern&&void 0!==e.pattern&&(new RegExp(e.pattern).test(t)||this.fail("PatternMatchError",'Provided value "'+t+'" does not match regex pattern /'+e.pattern+"/ for "+r))},validateRange:function(e,t,r,n){this.validation.min&&void 0!==e.min&&t= "+e.min+", but found "+t+" for "+r),this.validation.max&&void 0!==e.max&&t>e.max&&this.fail("MaxRangeError","Expected "+n+" <= "+e.max+", but found "+t+" for "+r)},validateEnum:function(e,t,r){this.validation.enum&&void 0!==e.enum&&-1===e.enum.indexOf(t)&&this.fail("EnumError","Found string value of "+t+", but expected "+e.enum.join("|")+" for "+r)},validateType:function(e,t,r,i){if(null===e||void 0===e)return!1;for(var o=!1,a=0;a0&&i.arrayEach(n.required,(function(i){var o=n.members[i];if(!0===o.endpointDiscoveryId){var a=o.isLocationName?o.name:i;t[a]=String(r[i])}else e(t,r[i],o)}))}(r,e.params,t),r}function u(e){var t=e.service,r=t.api,o=r.operations?r.operations[e.operation]:void 0,u=s(e,o?o.input:void 0),c=a(e);Object.keys(u).length>0&&(c=i.update(c,u),o&&(c.operation=o.name));var l=n.endpointCache.get(c);if(!l||1!==l.length||""!==l[0].Address)if(l&&l.length>0)e.httpRequest.updateEndpoint(l[0].Address);else{var d=t.makeRequest(r.endpointOperation,{Operation:o.name,Identifiers:u});f(d),d.removeListener("validate",n.EventListeners.Core.VALIDATE_PARAMETERS),d.removeListener("retry",n.EventListeners.Core.RETRY_CHECK),n.endpointCache.put(c,[{Address:"",CachePeriodInMinutes:1}]),d.send((function(e,t){t&&t.Endpoints?n.endpointCache.put(c,t.Endpoints):e&&n.endpointCache.put(c,[{Address:"",CachePeriodInMinutes:1}])}))}}var c={};function l(e,t){var r=e.service,o=r.api,u=o.operations?o.operations[e.operation]:void 0,l=u?u.input:void 0,d=s(e,l),p=a(e);Object.keys(d).length>0&&(p=i.update(p,d),u&&(p.operation=u.name));var h=n.EndpointCache.getKeyString(p),v=n.endpointCache.get(h);if(v&&1===v.length&&""===v[0].Address)return c[h]||(c[h]=[]),void c[h].push({request:e,callback:t});if(v&&v.length>0)e.httpRequest.updateEndpoint(v[0].Address),t();else{var g=r.makeRequest(o.endpointOperation,{Operation:u.name,Identifiers:d});g.removeListener("validate",n.EventListeners.Core.VALIDATE_PARAMETERS),f(g),n.endpointCache.put(h,[{Address:"",CachePeriodInMinutes:60}]),g.send((function(r,o){if(r){if(e.response.error=i.error(r,{retryable:!1}),n.endpointCache.remove(p),c[h]){var a=c[h];i.arrayEach(a,(function(e){e.request.response.error=i.error(r,{retryable:!1}),e.callback()})),delete c[h]}}else if(o&&(n.endpointCache.put(h,o.Endpoints),e.httpRequest.updateEndpoint(o.Endpoints[0].Address),c[h])){a=c[h];i.arrayEach(a,(function(e){e.request.httpRequest.updateEndpoint(o.Endpoints[0].Address),e.callback()})),delete c[h]}t()}))}}function f(e){var t=e.service.api.apiVersion;t&&!e.httpRequest.headers["x-amz-api-version"]&&(e.httpRequest.headers["x-amz-api-version"]=t)}function d(e){var t=e.error,r=e.httpResponse;if(t&&("InvalidEndpointException"===t.code||421===r.statusCode)){var o=e.request,u=o.service.api.operations||{},c=s(o,u[o.operation]?u[o.operation].input:void 0),l=a(o);Object.keys(c).length>0&&(l=i.update(l,c),u[o.operation]&&(l.operation=u[o.operation].name)),n.endpointCache.remove(l)}}function p(e){return["false","0"].indexOf(e)>=0}e.exports={discoverEndpoint:function(e,r){var a=e.service||{};if(function(e){if(e._originalConfig&&e._originalConfig.endpoint&&!0===e._originalConfig.endpointDiscoveryEnabled)throw i.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."});var t=n.config[e.serviceIdentifier]||{};return Boolean(n.config.endpoint||t.endpoint||e._originalConfig&&e._originalConfig.endpoint)}(a)||e.isPresigned())return r();var s=(a.api.operations||{})[e.operation],c=s?s.endpointDiscoveryRequired:"NULL",f=function(e){var r=e.service||{};if(void 0!==r.config.endpointDiscoveryEnabled)return r.config.endpointDiscoveryEnabled;if(!i.isBrowser()){for(var a=0;a>6|192,63&i|128);else if(r+1>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)},i=function(e){return"function"===typeof TextDecoder?function(e){return new TextDecoder("utf-8").decode(e)}(e):function(e){for(var t="",r=0,n=e.length;r=10.0.0"},"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","homepage":"https://github.com/aws/aws-sdk-js-v3/tree/master/clients/client-s3","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-s3"}}')},Z0cm:function(e,t){var r=Array.isArray;e.exports=r},Z8oC:function(e,t,r){var n=r("y1pI");e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},ZHa6:function(e,t,r){(function(t){var n=r("QsWE");function i(e,t){if("string"===typeof e){if(["legacy","regional"].indexOf(e.toLowerCase())>=0)return e.toLowerCase();throw n.util.error(new Error,t)}}e.exports=function(e,r){var o;if((e=e||{})[r.clientConfig]&&(o=i(e[r.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+r.clientConfig+'" configuration. Expect "legacy" or "regional". Got "'+e[r.clientConfig]+'".'})))return o;if(!n.util.isNode())return o;if(Object.prototype.hasOwnProperty.call(t.env,r.env)&&(o=i(t.env[r.env],{code:"InvalidEnvironmentalVariable",message:"invalid "+r.env+' environmental variable. Expect "legacy" or "regional". Got "'+t.env[r.env]+'".'})))return o;var a={};try{a=n.util.getProfilesFromSharedConfig(n.util.iniLoader)[t.env.AWS_PROFILE||n.util.defaultProfile]}catch(s){}return a&&Object.prototype.hasOwnProperty.call(a,r.sharedConfig)&&(o=i(a[r.sharedConfig],{code:"InvalidConfiguration",message:"invalid "+r.sharedConfig+' profile config. Expect "legacy" or "regional". Got "'+a[r.sharedConfig]+'".'})),o}}).call(this,r("8oxB"))},ZIxo:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var n=r("dFEU"),i=r("b4Ml"),o=r("xxdO"),a=r("bVud"),s=r("YX4P"),u=r("tlIM"),c=function(){function e(e){a.supportsWebCrypto(u.locateWindow())?this.hash=new i.Sha256(e):s.isMsWindow(u.locateWindow())?this.hash=new n.Sha256(e):this.hash=new o.Sha256(e)}return e.prototype.update=function(e,t){this.hash.update(e,t)},e.prototype.digest=function(){return this.hash.digest()},e}();t.Sha256=c},ZJYt:function(e,t,r){var n=r("m5lJ").escapeAttribute;function i(e,t){void 0===t&&(t=[]),this.name=e,this.children=t,this.attributes={}}i.prototype.addAttribute=function(e,t){return this.attributes[e]=t,this},i.prototype.addChildNode=function(e){return this.children.push(e),this},i.prototype.removeAttribute=function(e){return delete this.attributes[e],this},i.prototype.toString=function(){for(var e=Boolean(this.children.length),t="<"+this.name,r=this.attributes,i=0,o=Object.keys(r);i"+this.children.map((function(e){return e.toString()})).join("")+"":"/>")},e.exports={XmlNode:i}},ZONe:function(e,t,r){var n=r("QsWE"),i=n.util.inherit,o=r("CNpV");n.Response=i({constructor:function(e){this.request=e,this.data=null,this.error=null,this.retryCount=0,this.redirectCount=0,this.httpResponse=new n.HttpResponse,e&&(this.maxRetries=e.service.numRetries(),this.maxRedirects=e.service.config.maxRedirects)},nextPage:function(e){var t,r=this.request.service,i=this.request.operation;try{t=r.paginationConfig(i,!0)}catch(u){this.error=u}if(!this.hasNextPage()){if(e)e(this.error,null);else if(this.error)throw this.error;return null}var o=n.util.copy(this.request.params);if(this.nextPageTokens){var a=t.inputToken;"string"===typeof a&&(a=[a]);for(var s=0;s>>((3&t)<<3)&255;return i}}},a3WO:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r5&&"xml"===n)return d("InvalidXml","XML declaration allowed only at the start of the document.",h(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}}return t}function s(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let r=1;for(t+=8;t"===e[t]&&(r--,0===r))break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t"===e[t+2]){t+=2;break}return t}t.validate=function(e,t){t=n.buildOptions(t,i,o);const r=[];let c=!1,p=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(let i=0;i"!==e[i]&&" "!==e[i]&&"\t"!==e[i]&&"\n"!==e[i]&&"\r"!==e[i];i++)g+=e[i];if(g=g.trim(),"/"===g[g.length-1]&&(g=g.substring(0,g.length-1),i--),v=g,!n.isName(v)){let t;return t=0===g.trim().length?"There is an unnecessary space between tag name and backward slash '0)return d("InvalidTag","Closing tag '"+g+"' can't have attributes or invalid starting.",h(e,i));{const t=r.pop();if(g!==t)return d("InvalidTag","Closing tag '"+t+"' is expected inplace of '"+g+"'.",h(e,i));0==r.length&&(p=!0)}}else{const n=l(m,t);if(!0!==n)return d(n.err.code,n.err.msg,h(e,i-m.length+n.err.line));if(!0===p)return d("InvalidXml","Multiple possible root nodes found.",h(e,i));r.push(g),c=!0}for(i++;i0)||d("InvalidXml","Invalid '"+JSON.stringify(r,null,4).replace(/\r?\n/g,"")+"' found.",1):d("InvalidXml","Start tag expected.",1)};function u(e,t){let r="",n="",i=!1;for(;t"===e[t]&&""===n){i=!0;break}r+=e[t]}return""===n&&{value:r,index:t,tagClosed:i}}const c=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function l(e,t){const r=n.getAllMatches(e,c),i={};for(let n=0;nn.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,this.bufferLength===n.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(t.setUint8(this.bufferLength++,128),r%n.BLOCK_SIZE>=n.BLOCK_SIZE-8){for(var i=this.bufferLength;i>>24&255,o[4*i+1]=this.state[i]>>>16&255,o[4*i+2]=this.state[i]>>>8&255,o[4*i+3]=this.state[i]>>>0&255;return o},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],c=t[6],l=t[7],f=0;f>>17|d<<15)^(d>>>19|d<<13)^d>>>10,h=((d=this.temp[f-15])>>>7|d<<25)^(d>>>18|d<<14)^d>>>3;this.temp[f]=(p+this.temp[f-7]|0)+(h+this.temp[f-16]|0)}var v=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&u^~s&c)|0)+(l+(n.KEY[f]+this.temp[f]|0)|0)|0,g=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&o^i&o)|0;l=c,c=u,u=s,s=a+v|0,a=o,o=i,i=r,r=v+g|0}t[0]+=r,t[1]+=i,t[2]+=o,t[3]+=a,t[4]+=s,t[5]+=u,t[6]+=c,t[7]+=l},e}();t.RawSha256=i},dD9F:function(e,t,r){var n=r("NykK"),i=r("shjB"),o=r("ExA7"),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[n(e)]}},dFEU:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var n=r("kQNw"),i=r("p72H"),o=r("XWO8"),a=r("tlIM"),s=function(){function e(e){e?(this.operation=function(e){return new Promise((function(t,r){var n=a.locateWindow().msCrypto.subtle.importKey("raw",u(e),i.SHA_256_HMAC_ALGO,!1,["sign"]);n.oncomplete=function(){n.result&&t(n.result),r("ImportKey completed without importing key.")},n.onerror=function(){r("ImportKey failed to import key.")}}))}(e).then((function(e){return a.locateWindow().msCrypto.subtle.sign(i.SHA_256_HMAC_ALGO,e)})),this.operation.catch((function(){}))):this.operation=Promise.resolve(a.locateWindow().msCrypto.subtle.digest("SHA-256"))}return e.prototype.update=function(e){var t=this;n.isEmptyData(e)||(this.operation=this.operation.then((function(r){return r.onerror=function(){t.operation=Promise.reject(new Error("Error encountered updating hash"))},r.process(u(e)),r})),this.operation.catch((function(){})))},e.prototype.digest=function(){return this.operation.then((function(e){return new Promise((function(t,r){e.onerror=function(){r("Error encountered finalizing hash")},e.oncomplete=function(){e.result&&t(new Uint8Array(e.result)),r("Error encountered finalizing hash")},e.finish()}))}))},e}();function u(e){return"string"===typeof e?o.fromUtf8(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}t.Sha256=s},dGo6:function(e,t,r){"use strict";(function(e){}).call(this,r("8oxB"))},dQau:function(e,t,r){"use strict";r.r(t),r.d(t,"print",(function(){return i}));var n=r("L2ys");function i(e){return Object(n.b)(e,{leave:o})}var o={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return s(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,r=e.name,n=c("(",s(e.variableDefinitions,", "),")"),i=s(e.directives," "),o=e.selectionSet;return r||i||n||"query"!==t?s([t,s([r,n]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,r=e.type,n=e.defaultValue,i=e.directives;return t+": "+r+c(" = ",n)+c(" ",s(i," "))},SelectionSet:function(e){return u(e.selections)},Field:function(e){var t=e.alias,r=e.name,n=e.arguments,i=e.directives,o=e.selectionSet;return s([c("",t,": ")+r+c("(",s(n,", "),")"),s(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+c(" ",s(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,r=e.directives,n=e.selectionSet;return s(["...",c("on ",t),s(r," "),n]," ")},FragmentDefinition:function(e){var t=e.name,r=e.typeCondition,n=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(c("(",s(n,", "),")")," ")+"on ".concat(r," ").concat(c("",s(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var r=e.value;return e.block?function(e,t){var r=e.replace(/"""/g,'\\"""');return" "!==e[0]&&"\t"!==e[0]||-1!==e.indexOf("\n")?'"""\n'.concat(t?r:l(r),'\n"""'):'"""'.concat(r.replace(/"$/,'"\n'),'"""')}(r,"description"===t):JSON.stringify(r)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+s(e.values,", ")+"]"},ObjectValue:function(e){return"{"+s(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+c("(",s(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:function(e){var t=e.directives,r=e.operationTypes;return s(["schema",s(t," "),u(r)]," ")},OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:a((function(e){return s(["scalar",e.name,s(e.directives," ")]," ")})),ObjectTypeDefinition:a((function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return s(["type",t,c("implements ",s(r," & ")),s(n," "),u(i)]," ")})),FieldDefinition:a((function(e){var t=e.name,r=e.arguments,n=e.type,i=e.directives;return t+(r.every((function(e){return-1===e.indexOf("\n")}))?c("(",s(r,", "),")"):c("(\n",l(s(r,"\n")),"\n)"))+": "+n+c(" ",s(i," "))})),InputValueDefinition:a((function(e){var t=e.name,r=e.type,n=e.defaultValue,i=e.directives;return s([t+": "+r,c("= ",n),s(i," ")]," ")})),InterfaceTypeDefinition:a((function(e){var t=e.name,r=e.directives,n=e.fields;return s(["interface",t,s(r," "),u(n)]," ")})),UnionTypeDefinition:a((function(e){var t=e.name,r=e.directives,n=e.types;return s(["union",t,s(r," "),n&&0!==n.length?"= "+s(n," | "):""]," ")})),EnumTypeDefinition:a((function(e){var t=e.name,r=e.directives,n=e.values;return s(["enum",t,s(r," "),u(n)]," ")})),EnumValueDefinition:a((function(e){return s([e.name,s(e.directives," ")]," ")})),InputObjectTypeDefinition:a((function(e){var t=e.name,r=e.directives,n=e.fields;return s(["input",t,s(r," "),u(n)]," ")})),DirectiveDefinition:a((function(e){var t=e.name,r=e.arguments,n=e.locations;return"directive @"+t+(r.every((function(e){return-1===e.indexOf("\n")}))?c("(",s(r,", "),")"):c("(\n",l(s(r,"\n")),"\n)"))+" on "+s(n," | ")})),SchemaExtension:function(e){var t=e.directives,r=e.operationTypes;return s(["extend schema",s(t," "),u(r)]," ")},ScalarTypeExtension:function(e){return s(["extend scalar",e.name,s(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return s(["extend type",t,c("implements ",s(r," & ")),s(n," "),u(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,r=e.directives,n=e.fields;return s(["extend interface",t,s(r," "),u(n)]," ")},UnionTypeExtension:function(e){var t=e.name,r=e.directives,n=e.types;return s(["extend union",t,s(r," "),n&&0!==n.length?"= "+s(n," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,r=e.directives,n=e.values;return s(["extend enum",t,s(r," "),u(n)]," ")},InputObjectTypeExtension:function(e){var t=e.name,r=e.directives,n=e.fields;return s(["extend input",t,s(r," "),u(n)]," ")}};function a(e){return function(t){return s([t.description,e(t)],"\n")}}function s(e,t){return e?e.filter((function(e){return e})).join(t||""):""}function u(e){return e&&0!==e.length?"{\n"+l(s(e,"\n"))+"\n}":""}function c(e,t,r){return t?e+t+(r||""):""}function l(e){return e&&" "+e.replace(/\n/g,"\n ")}},"dWS+":function(e,t,r){"use strict";function n(e,t){for(var r,n=/\r\n|[\n\r]/g,i=1,o=t+1;(r=n.exec(e.body))&&r.index0){var f=(t=new n.XML.Parser).parse(a.toString(),u);i.update(e.data,f)}}}},eLAQ:function(e,t,r){var n=r("QsWE");n.SequentialExecutor=n.util.inherit({constructor:function(){this._events={}},listeners:function(e){return this._events[e]?this._events[e].slice(0):[]},on:function(e,t,r){return this._events[e]?r?this._events[e].unshift(t):this._events[e].push(t):this._events[e]=[t],this},onAsync:function(e,t,r){return t._isAsync=!0,this.on(e,t,r)},removeListener:function(e,t){var r=this._events[e];if(r){for(var n=r.length,i=-1,o=0;o-1&&r.splice(i,1)}return this},removeAllListeners:function(e){return e?delete this._events[e]:this._events={},this},emit:function(e,t,r){r||(r=function(){});var n=this.listeners(e),i=n.length;return this.callListeners(n,t,r),i>0},callListeners:function(e,t,r,i){var o=this,a=i||null;function s(i){if(i&&(a=n.util.error(a||new Error,i),o._haltHandlersOnError))return r.call(o,a);o.callListeners(e,t,r,a)}for(;e.length>0;){var u=e.shift();if(u._isAsync)return void u.apply(o,t.concat([s]));try{u.apply(o,t)}catch(c){a=n.util.error(a||new Error,c)}if(a&&o._haltHandlersOnError)return void r.call(o,a)}r.call(o,a)},addListeners:function(e){var t=this;return e._events&&(e=e._events),n.util.each(e,(function(e,r){"function"===typeof r&&(r=[r]),n.util.arrayEach(r,(function(r){t.on(e,r)}))})),t},addNamedListener:function(e,t,r,n){return this[e]=r,this.addListener(t,r,n),this},addNamedAsyncListener:function(e,t,r,n){return r._isAsync=!0,this.addNamedListener(e,t,r,n)},addNamedListeners:function(e){var t=this;return e((function(){t.addNamedListener.apply(t,arguments)}),(function(){t.addNamedAsyncListener.apply(t,arguments)})),this}}),n.SequentialExecutor.prototype.addListener=n.SequentialExecutor.prototype.on,e.exports=n.SequentialExecutor},ebwN:function(e,t,r){var n=r("Cwc5")(r("Kz5y"),"Map");e.exports=n},ekgI:function(e,t,r){var n=r("YESw"),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:i.call(t,e)}},elGS:function(e,t,r){"use strict";const n=r("j/LU"),i=r("E1E9"),o=r("E1E9"),a=r("4abu").buildOptions,s=r("cIfH");t.parse=function(e,t,r){if(r){!0===r&&(r={});const t=s.validate(e,r);if(!0!==t)throw Error(t.err.msg)}t=a(t,o.defaultOptions,o.props);const u=i.getTraversalObj(e,t);return n.convertToJson(u,t)},t.convertTonimn=r("vtNb").convert2nimn,t.getTraversalObj=i.getTraversalObj,t.convertToJson=n.convertToJson,t.convertToJsonString=r("t6xR").convertToJsonString,t.validate=s.validate,t.j2xParser=r("p1mf"),t.parseToNimn=function(e,r,n){return t.convertTonimn(t.getTraversalObj(e,n),r,n)}},fGT3:function(e,t,r){var n=r("4kuk"),i=r("Xi7e"),o=r("ebwN");e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},fQM2:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r("Nt7R"),i=function(e,t){var r="function"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},o=new n.a("Amplify"),a=new(function(){function e(){this._components=[],this._config={},this._modules={},this.Auth=null,this.Analytics=null,this.API=null,this.Credentials=null,this.Storage=null,this.I18n=null,this.Cache=null,this.PubSub=null,this.Interactions=null,this.Pushnotification=null,this.UI=null,this.XR=null,this.Predictions=null,this.DataStore=null,this.Logger=n.a,this.ServiceWorker=null}return e.prototype.register=function(e){o.debug("component registered in amplify",e),this._components.push(e),"function"===typeof e.getModuleName?(this._modules[e.getModuleName()]=e,this[e.getModuleName()]=e):o.debug("no getModuleName method for component",e),e.configure(this._config)},e.prototype.configure=function(e){var t=this;return e?(this._config=Object.assign(this._config,e),o.debug("amplify config",this._config),Object.entries(this._modules).forEach((function(e){var r=i(e,2),n=(r[0],r[1]);Object.keys(n).forEach((function(e){t._modules[e]&&(n[e]=t._modules[e])}))})),this._components.map((function(e){e.configure(t._config)})),this._config):this._config},e.prototype.addPluggable=function(e){e&&e.getCategory&&"function"===typeof e.getCategory&&this._components.map((function(t){t.addPluggable&&"function"===typeof t.addPluggable&&t.addPluggable(e)}))},e}())},"fR/l":function(e,t,r){var n=r("CH3K"),i=r("Z0cm");e.exports=function(e,t,r){var o=t(e);return i(e)?o:n(o,r(e))}},fmRc:function(e,t,r){var n=r("Xi7e"),i=r("77Zs"),o=r("L8xA"),a=r("gCq4"),s=r("VaNO"),u=r("0Cz8");function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,e.exports=c},ftKO:function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},gCq4:function(e,t){e.exports=function(e){return this.__data__.get(e)}},gaZ0:function(e,t,r){var n=r("BaN1");function i(){}function o(e){return e.isQueryName||"ec2"!==e.api.protocol?e.name:e.name[0].toUpperCase()+e.name.substr(1)}function a(e,t,r,i){n.each(r.members,(function(r,n){var a=t[r];if(null!==a&&void 0!==a){var u=o(n);s(u=e?e+"."+u:u,a,n,i)}}))}function s(e,t,r,i){null!==t&&void 0!==t&&("structure"===r.type?a(e,t,r,i):"list"===r.type?function(e,t,r,i){var a=r.member||{};0!==t.length?n.arrayEach(t,(function(t,n){var u="."+(n+1);if("ec2"===r.api.protocol)u+="";else if(r.flattened){if(a.name){var c=e.split(".");c.pop(),c.push(o(a)),e=c.join(".")}}else u="."+(a.name?a.name:"member")+u;s(e+u,t,a,i)})):i.call(this,e,null)}(e,t,r,i):"map"===r.type?function(e,t,r,i){var o=1;n.each(t,(function(t,n){var a=(r.flattened?".":".entry.")+o+++".",u=a+(r.key.name||"key"),c=a+(r.value.name||"value");s(e+u,t,r.key,i),s(e+c,n,r.value,i)}))}(e,t,r,i):i(e,r.toWireFormat(t).toString()))}i.prototype.serialize=function(e,t,r){a("",e,t,r)},e.exports=i},"gi+x":function(e,t,r){"use strict";r.d(t,"c",(function(){return i})),r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return a})),r.d(t,"d",(function(){return s})),r.d(t,"e",(function(){return u}));var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(n=o.next()).done;)a.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}Object.create},"gr/K":function(e,t,r){"use strict";var n=r("fQM2"),i={keyPrefix:"aws-amplify-cache",capacityInBytes:1048576,itemMaxSize:21e4,defaultTTL:2592e5,defaultPriority:5,warningThreshold:.8,storage:(new(r("2Lx6").a)).getStorage()};function o(e){var t=0;t=e.length;for(var r=e.length;r>=0;r-=1){var n=e.charCodeAt(r);n>127&&n<=2047?t+=1:n>2047&&n<=65535&&(t+=2),n>=56320&&n<=57343&&(r-=1)}return t}function a(){return(new Date).getTime()}function s(e){return Number.isInteger?Number.isInteger(e):function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e}(e)}var u={},c=(function(){function e(){}e.clear=function(){u={}},e.getItem=function(e){return u[e]||null},e.setItem=function(e,t){u[e]=t},e.removeItem=function(e){delete u[e]}}(),r("Nt7R")),l=new c.a("StorageCache"),f=function(){function e(e){this.config=Object.assign({},e),this.cacheCurSizeKey=this.config.keyPrefix+"CurSize",this.checkConfig()}return e.prototype.getModuleName=function(){return"Cache"},e.prototype.checkConfig=function(){s(this.config.capacityInBytes)||(l.error("Invalid parameter: capacityInBytes. It should be an Integer. Setting back to default."),this.config.capacityInBytes=i.capacityInBytes),s(this.config.itemMaxSize)||(l.error("Invalid parameter: itemMaxSize. It should be an Integer. Setting back to default."),this.config.itemMaxSize=i.itemMaxSize),s(this.config.defaultTTL)||(l.error("Invalid parameter: defaultTTL. It should be an Integer. Setting back to default."),this.config.defaultTTL=i.defaultTTL),s(this.config.defaultPriority)||(l.error("Invalid parameter: defaultPriority. It should be an Integer. Setting back to default."),this.config.defaultPriority=i.defaultPriority),this.config.itemMaxSize>this.config.capacityInBytes&&(l.error("Invalid parameter: itemMaxSize. It should be smaller than capacityInBytes. Setting back to default."),this.config.itemMaxSize=i.itemMaxSize),(this.config.defaultPriority>5||this.config.defaultPriority<1)&&(l.error("Invalid parameter: defaultPriority. It should be between 1 and 5. Setting back to default."),this.config.defaultPriority=i.defaultPriority),(Number(this.config.warningThreshold)>1||Number(this.config.warningThreshold)<0)&&(l.error("Invalid parameter: warningThreshold. It should be between 0 and 1. Setting back to default."),this.config.warningThreshold=i.warningThreshold);this.config.capacityInBytes>5242880&&(l.error("Cache Capacity should be less than 5MB. Setting back to default. Setting back to default."),this.config.capacityInBytes=i.capacityInBytes)},e.prototype.fillCacheItem=function(e,t,r){var n={key:e,data:t,timestamp:a(),visitedTime:a(),priority:r.priority,expires:r.expires,type:typeof t,byteSize:0};return n.byteSize=o(JSON.stringify(n)),n.byteSize=o(JSON.stringify(n)),n},e.prototype.configure=function(e){return e?(e.keyPrefix&&l.warn("Don't try to configure keyPrefix!"),this.config=Object.assign({},this.config,e,e.Cache),this.checkConfig(),this.config):this.config},e}(),d=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),p=new c.a("Cache"),h=new(function(e){function t(t){var r=this,n=t?Object.assign({},i,t):i;return(r=e.call(this,n)||this).config.storage=n.storage,r.getItem=r.getItem.bind(r),r.setItem=r.setItem.bind(r),r.removeItem=r.removeItem.bind(r),r}return d(t,e),t.prototype._decreaseCurSizeInBytes=function(e){var t=this.getCacheCurSize();this.config.storage.setItem(this.cacheCurSizeKey,(t-e).toString())},t.prototype._increaseCurSizeInBytes=function(e){var t=this.getCacheCurSize();this.config.storage.setItem(this.cacheCurSizeKey,(t+e).toString())},t.prototype._refreshItem=function(e,t){return e.visitedTime=a(),this.config.storage.setItem(t,JSON.stringify(e)),e},t.prototype._isExpired=function(e){var t=this.config.storage.getItem(e),r=JSON.parse(t);return a()>=r.expires},t.prototype._removeItem=function(e,t){var r=t||JSON.parse(this.config.storage.getItem(e)).byteSize;this._decreaseCurSizeInBytes(r),this.config.storage.removeItem(e)},t.prototype._setItem=function(e,t){this._increaseCurSizeInBytes(t.byteSize);try{this.config.storage.setItem(e,JSON.stringify(t))}catch(r){this._decreaseCurSizeInBytes(t.byteSize),p.error("Failed to set item "+r)}},t.prototype._sizeToPop=function(e){var t=this.getCacheCurSize()+e-this.config.capacityInBytes,r=(1-this.config.warningThreshold)*this.config.capacityInBytes;return t>r?t:r},t.prototype._isCacheFull=function(e){return e+this.getCacheCurSize()>this.config.capacityInBytes},t.prototype._findValidKeys=function(){for(var e=[],t=[],r=0;rt.priority?-1:e.priority5)p.warn("Invalid parameter: priority due to out or range. It should be within 1 and 5.");else{var o=this.fillCacheItem(n,t,i);if(o.byteSize>this.config.itemMaxSize)p.warn("Item with key: "+e+" you are trying to put into is too big!");else try{var s=this.config.storage.getItem(n);if(s&&this._removeItem(n,JSON.parse(s).byteSize),this._isCacheFull(o.byteSize)){var u=this._findValidKeys();if(this._isCacheFull(o.byteSize)){var c=this._sizeToPop(o.byteSize);this._popOutItems(u,c)}}this._setItem(n,o)}catch(l){p.warn("setItem failed! "+l)}}}else p.warn("The value of item should not be undefined!");else p.warn("Invalid key: should not be empty or 'CurSize'")},t.prototype.getItem=function(e,t){p.log("Get item: key is "+e+" with options "+t);var r=null,n=this.config.keyPrefix+e;if(n===this.config.keyPrefix||n===this.cacheCurSizeKey)return p.warn("Invalid key: should not be empty or 'CurSize'"),null;try{if(null!=(r=this.config.storage.getItem(n))){if(!this._isExpired(n)){var i=JSON.parse(r);return(i=this._refreshItem(i,n)).data}this._removeItem(n,JSON.parse(r).byteSize),r=null}if(t&&void 0!==t.callback){var o=t.callback();return null!==o&&this.setItem(e,o,t),o}return null}catch(a){return p.warn("getItem failed! "+a),null}},t.prototype.removeItem=function(e){p.log("Remove item: key is "+e);var t=this.config.keyPrefix+e;if(t!==this.config.keyPrefix&&t!==this.cacheCurSizeKey)try{var r=this.config.storage.getItem(t);r&&this._removeItem(t,JSON.parse(r).byteSize)}catch(n){p.warn("removeItem failed! "+n)}},t.prototype.clear=function(){p.log("Clear Cache");for(var e=[],t=0;t=0){u=!0;var c=0}var l=function(){u&&c!==s?i.emit("error",t.util.error(new Error("Stream content length mismatch. Received "+c+" of "+s+" bytes."),{code:"StreamContentLengthMismatch"})):2===t.HttpClient.streamsApiVersion?i.end():i.emit("end")},f=a.httpResponse.createUnbufferedStream();if(2===t.HttpClient.streamsApiVersion)if(u){var d=new r.PassThrough;d._write=function(e){return e&&e.length&&(c+=e.length),r.PassThrough.prototype._write.apply(this,arguments)},d.on("end",l),i.on("error",(function(e){u=!1,f.unpipe(d),d.emit("end"),d.end()})),f.pipe(d).pipe(i,{end:!1})}else f.pipe(i);else u&&f.on("data",(function(e){e&&e.length&&(c+=e.length)})),f.on("data",(function(e){i.emit("data",e)})),f.on("end",l);f.on("error",(function(e){u=!1,i.emit("error",e)}))}})),i},emitEvent:function(e,r,n){"function"===typeof r&&(n=r,r=null),n||(n=function(){}),r||(r=this.eventParameters(e,this.response)),t.SequentialExecutor.prototype.emit.call(this,e,r,(function(e){e&&(this.response.error=e),n.call(this,e)}))},eventParameters:function(e){switch(e){case"restart":case"validate":case"sign":case"build":case"afterValidate":case"afterBuild":return[this];case"error":return[this.response.error,this.response];default:return[this.response]}},presign:function(e,r){return r||"function"!==typeof e||(r=e,e=null),(new t.Signers.Presign).sign(this.toGet(),e,r)},isPresigned:function(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function(){return this._unAuthenticated=!0,this.removeListener("validate",t.EventListeners.Core.VALIDATE_CREDENTIALS),this.removeListener("sign",t.EventListeners.Core.SIGN),this},toGet:function(){return"query"!==this.service.api.protocol&&"ec2"!==this.service.api.protocol||(this.removeListener("build",this.buildAsGet),this.addListener("build",this.buildAsGet)),this},buildAsGet:function(e){e.httpRequest.method="GET",e.httpRequest.path=e.service.endpoint.path+"?"+e.httpRequest.body,e.httpRequest.body="",delete e.httpRequest.headers["Content-Length"],delete e.httpRequest.headers["Content-Type"]},haltHandlersOnError:function(){this._haltHandlersOnError=!0}}),t.Request.addPromisesToClass=function(e){this.prototype.promise=function(){var t=this;return this.httpRequest.appendToUserAgent("promise"),new e((function(e,r){t.on("complete",(function(t){t.error?r(t.error):e(Object.defineProperty(t.data||{},"$response",{value:t}))})),t.runTo()}))}},t.Request.deletePromisesFromClass=function(){delete this.prototype.promise},t.util.addPromises(t.Request),t.util.mixin(t.Request,t.SequentialExecutor)}).call(this,r("8oxB"))},h4VS:function(e,t,r){"use strict";function n(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}r.d(t,"a",(function(){return n}))},hDgs:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=null,i={},o=1,a=Array,s=a["@wry/context:Slot"]||function(){var e=function(){function e(){this.id=["slot",o++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=n;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===i)break;return e!==n&&(n.slots[this.id]=t),!0}return n&&(n.slots[this.id]=i),!1},e.prototype.getValue=function(){if(this.hasValue())return n.slots[this.id]},e.prototype.withValue=function(e,t,r,i){var o,a=((o={__proto__:null})[this.id]=e,o),s=n;n={parent:s,slots:a};try{return t.apply(i,r)}finally{n=s}},e.bind=function(e){var t=n;return function(){var r=n;try{return n=t,e.apply(this,arguments)}finally{n=r}}},e.noContext=function(e,t,r){if(!n)return e.apply(r,t);var i=n;try{return n=null,e.apply(r,t)}finally{n=i}},e}();try{Object.defineProperty(a,"@wry/context:Slot",{value:a["@wry/context:Slot"]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();s.bind,s.noContext},"hEW/":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){this.key=e,this.value=t},i=function(){function e(e){if(this.nodeMap={},this.size=0,"number"!==typeof e||e<1)throw new Error("Cache size can only be positive number");this.sizeLimit=e}return Object.defineProperty(e.prototype,"length",{get:function(){return this.size},enumerable:!0,configurable:!0}),e.prototype.prependToList=function(e){this.headerNode?(this.headerNode.prev=e,e.next=this.headerNode):this.tailNode=e,this.headerNode=e,this.size++},e.prototype.removeFromTail=function(){if(this.tailNode){var e=this.tailNode,t=e.prev;return t&&(t.next=void 0),e.prev=void 0,this.tailNode=t,this.size--,e}},e.prototype.detachFromList=function(e){this.headerNode===e&&(this.headerNode=e.next),this.tailNode===e&&(this.tailNode=e.prev),e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.next=void 0,e.prev=void 0,this.size--},e.prototype.get=function(e){if(this.nodeMap[e]){var t=this.nodeMap[e];return this.detachFromList(t),this.prependToList(t),t.value}},e.prototype.remove=function(e){if(this.nodeMap[e]){var t=this.nodeMap[e];this.detachFromList(t),delete this.nodeMap[e]}},e.prototype.put=function(e,t){if(this.nodeMap[e])this.remove(e);else if(this.size===this.sizeLimit){var r=this.removeFromTail().key;delete this.nodeMap[r]}var i=new n(e,t);this.nodeMap[e]=i,this.prependToList(i)},e.prototype.empty=function(){for(var e=Object.keys(this.nodeMap),t=0;t1){o[u]=[];for(let r in e.child[u])e.child[u].hasOwnProperty(r)&&o[u].push(i(e.child[u][r],t,u))}else{const a=i(e.child[u][0],t,u),s=!0===t.arrayMode&&"object"===typeof a||n.isTagNameInArrayMode(u,t.arrayMode,r);o[u]=s?[a]:a}}return o};t.convertToJson=i},jNZN:function(e,t,r){(function(t){var n=r("QsWE"),i=r("5wOx"),o=r("3uhI"),a=n.util.inherit,s=0;n.Service=a({constructor:function(e){if(!this.loadServiceClass)throw n.util.error(new Error,"Service must be constructed with `new' operator");var t=this.loadServiceClass(e||{});if(t){var r=n.util.copy(e),i=new t(e);return Object.defineProperty(i,"_originalConfig",{get:function(){return r},enumerable:!1,configurable:!0}),i._clientId=++s,i}this.initialize(e)},initialize:function(e){var r=n.config[this.serviceIdentifier];if(this.config=new n.Config(n.config),r&&this.config.update(r,!0),e&&this.config.update(e,!0),this.validateService(),this.config.endpoint||o.configureEndpoint(this),this.config.endpoint=this.endpointFromTemplate(this.config.endpoint),this.setEndpoint(this.config.endpoint),n.SequentialExecutor.call(this),n.Service.addDefaultMonitoringListeners(this),(this.config.clientSideMonitoring||n.Service._clientSideMonitoring)&&this.publisher){var i=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",(function(e){t.nextTick((function(){i.eventHandler(e)}))})),this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",(function(e){t.nextTick((function(){i.eventHandler(e)}))}))}},validateService:function(){},loadServiceClass:function(e){var t=e;if(n.util.isEmpty(this.api)){if(t.apiConfig)return n.Service.defineServiceApi(this.constructor,t.apiConfig);if(this.constructor.services){(t=new n.Config(n.config)).update(e,!0);var r=t.apiVersions[this.constructor.serviceIdentifier];return r=r||t.apiVersion,this.getLatestServiceClass(r)}return null}return null},getLatestServiceClass:function(e){return e=this.getLatestServiceVersion(e),null===this.constructor.services[e]&&n.Service.defineServiceApi(this.constructor,e),this.constructor.services[e]},getLatestServiceVersion:function(e){if(!this.constructor.services||0===this.constructor.services.length)throw new Error("No services defined on "+this.constructor.serviceIdentifier);if(e?n.util.isType(e,Date)&&(e=n.util.date.iso8601(e).split("T")[0]):e="latest",Object.hasOwnProperty(this.constructor.services,e))return e;for(var t=Object.keys(this.constructor.services).sort(),r=null,i=t.length-1;i>=0;i--)if("*"!==t[i][t[i].length-1]&&(r=t[i]),t[i].substr(0,10)<=e)return r;throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+e+"'")},api:{},defaultRetryCount:3,customizeRequests:function(e){if(e){if("function"!==typeof e)throw new Error("Invalid callback type '"+typeof e+"' provided in customizeRequests");this.customRequestHandler=e}else this.customRequestHandler=null},makeRequest:function(e,t,r){if("function"===typeof t&&(r=t,t=null),t=t||{},this.config.params){var i=this.api.operations[e];i&&(t=n.util.copy(t),n.util.each(this.config.params,(function(e,r){i.input.members[e]&&(void 0!==t[e]&&null!==t[e]||(t[e]=r))})))}var o=new n.Request(this,e,t);return this.addAllRequestListeners(o),this.attachMonitoringEmitter(o),r&&o.send(r),o},makeUnauthenticatedRequest:function(e,t,r){"function"===typeof t&&(r=t,t={});var n=this.makeRequest(e,t).toUnauthenticated();return r?n.send(r):n},waitFor:function(e,t,r){return new n.ResourceWaiter(this,e).wait(t,r)},addAllRequestListeners:function(e){for(var t=[n.events,n.EventListeners.Core,this.serviceInterface(),n.EventListeners.CorePost],r=0;r299?(i.code&&(r.FinalAwsException=i.code),i.message&&(r.FinalAwsExceptionMessage=i.message)):((i.code||i.name)&&(r.FinalSdkException=i.code||i.name),i.message&&(r.FinalSdkExceptionMessage=i.message))}return r},apiAttemptEvent:function(e){var t=e.service.api.operations[e.operation],r={Type:"ApiCallAttempt",Api:t?t.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Fqdn:e.httpRequest.endpoint.hostname,UserAgent:e.httpRequest.getUserAgent()},n=e.response;return n.httpResponse.statusCode&&(r.HttpStatusCode=n.httpResponse.statusCode),!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId&&(r.AccessKey=e.service.config.credentials.accessKeyId),n.httpResponse.headers?(e.httpRequest.headers["x-amz-security-token"]&&(r.SessionToken=e.httpRequest.headers["x-amz-security-token"]),n.httpResponse.headers["x-amzn-requestid"]&&(r.XAmznRequestId=n.httpResponse.headers["x-amzn-requestid"]),n.httpResponse.headers["x-amz-request-id"]&&(r.XAmzRequestId=n.httpResponse.headers["x-amz-request-id"]),n.httpResponse.headers["x-amz-id-2"]&&(r.XAmzId2=n.httpResponse.headers["x-amz-id-2"]),r):r},attemptFailEvent:function(e){var t=this.apiAttemptEvent(e),r=e.response,n=r.error;return r.httpResponse.statusCode>299?(n.code&&(t.AwsException=n.code),n.message&&(t.AwsExceptionMessage=n.message)):((n.code||n.name)&&(t.SdkException=n.code||n.name),n.message&&(t.SdkExceptionMessage=n.message)),t},attachMonitoringEmitter:function(e){var t,r,i,o,a,s,u=0,c=this;e.on("validate",(function(){o=n.util.realClock.now(),s=Date.now()}),true),e.on("sign",(function(){r=n.util.realClock.now(),t=Date.now(),a=e.httpRequest.region,u++}),true),e.on("validateResponse",(function(){i=Math.round(n.util.realClock.now()-r)})),e.addNamedListener("API_CALL_ATTEMPT","success",(function(){var r=c.apiAttemptEvent(e);r.Timestamp=t,r.AttemptLatency=i>=0?i:0,r.Region=a,c.emit("apiCallAttempt",[r])})),e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",(function(){var o=c.attemptFailEvent(e);o.Timestamp=t,i=i||Math.round(n.util.realClock.now()-r),o.AttemptLatency=i>=0?i:0,o.Region=a,c.emit("apiCallAttempt",[o])})),e.addNamedListener("API_CALL","complete",(function(){var t=c.apiCallEvent(e);if(t.AttemptCount=u,!(t.AttemptCount<=0)){t.Timestamp=s;var r=Math.round(n.util.realClock.now()-o);t.Latency=r>=0?r:0;var i=e.response;i.error&&i.error.retryable&&"number"===typeof i.retryCount&&"number"===typeof i.maxRetries&&i.retryCount>=i.maxRetries&&(t.MaxRetriesExceeded=1),c.emit("apiCall",[t])}}))},setupRequestListeners:function(e){},getSigningName:function(){return this.api.signingName||this.api.endpointPrefix},getSignerClass:function(e){var t,r=null,i="";e&&(i=(r=(e.service.api.operations||{})[e.operation]||null)?r.authtype:"");return t=this.config.signatureVersion?this.config.signatureVersion:"v4"===i||"v4-unsigned-body"===i?"v4":this.api.signatureVersion,n.Signers.RequestSigner.getVersion(t)},serviceInterface:function(){switch(this.api.protocol){case"ec2":case"query":return n.EventListeners.Query;case"json":return n.EventListeners.Json;case"rest-json":return n.EventListeners.RestJson;case"rest-xml":return n.EventListeners.RestXml}if(this.api.protocol)throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")},successfulResponse:function(e){return e.httpResponse.statusCode<300},numRetries:function(){return void 0!==this.config.maxRetries?this.config.maxRetries:this.defaultRetryCount},retryDelays:function(e,t){return n.util.calculateRetryDelay(e,this.config.retryDelayOptions,t)},retryableError:function(e){return!!this.timeoutError(e)||(!!this.networkingError(e)||(!!this.expiredCredentialsError(e)||(!!this.throttledError(e)||e.statusCode>=500)))},networkingError:function(e){return"NetworkingError"===e.code},timeoutError:function(e){return"TimeoutError"===e.code},expiredCredentialsError:function(e){return"ExpiredTokenException"===e.code},clockSkewError:function(e){switch(e.code){case"RequestTimeTooSkewed":case"RequestExpired":case"InvalidSignatureException":case"SignatureDoesNotMatch":case"AuthFailure":case"RequestInTheFuture":return!0;default:return!1}},getSkewCorrectedDate:function(){return new Date(Date.now()+this.config.systemClockOffset)},applyClockOffset:function(e){e&&(this.config.systemClockOffset=e-Date.now())},isClockSkewed:function(e){if(e)return Math.abs(this.getSkewCorrectedDate().getTime()-e)>=3e5},throttledError:function(e){if(429===e.statusCode)return!0;switch(e.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":case"RequestThrottledException":case"TooManyRequestsException":case"TransactionInProgressException":case"EC2ThrottledException":return!0;default:return!1}},endpointFromTemplate:function(e){if("string"!==typeof e)return e;var t=e;return t=(t=(t=t.replace(/\{service\}/g,this.api.endpointPrefix)).replace(/\{region\}/g,this.config.region)).replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http")},setEndpoint:function(e){this.endpoint=new n.Endpoint(e,this.config)},paginationConfig:function(e,t){var r=this.api.operations[e].paginator;if(!r){if(t){var i=new Error;throw n.util.error(i,"No pagination configuration for "+e)}return null}return r}}),n.util.update(n.Service,{defineMethods:function(e){n.util.each(e.prototype.api.operations,(function(t){e.prototype[t]||("none"===e.prototype.api.operations[t].authtype?e.prototype[t]=function(e,r){return this.makeUnauthenticatedRequest(t,e,r)}:e.prototype[t]=function(e,r){return this.makeRequest(t,e,r)})}))},defineService:function(e,t,r){n.Service._serviceMap[e]=!0,Array.isArray(t)||(r=t,t=[]);var i=a(n.Service,r||{});if("string"===typeof e){n.Service.addVersions(i,t);var o=i.serviceIdentifier||e;i.serviceIdentifier=o}else i.prototype.api=e,n.Service.defineMethods(i);if(n.SequentialExecutor.call(this.prototype),!this.prototype.publisher&&n.util.clientSideMonitoring){var s=n.util.clientSideMonitoring.Publisher,u=(0,n.util.clientSideMonitoring.configProvider)();this.prototype.publisher=new s(u),u.enabled&&(n.Service._clientSideMonitoring=!0)}return n.SequentialExecutor.call(i.prototype),n.Service.addDefaultMonitoringListeners(i.prototype),i},addVersions:function(e,t){Array.isArray(t)||(t=[t]),e.services=e.services||{};for(var r=0;ri.BLOCK_SIZE){var r=new o.RawSha256;r.update(t),t=r.digest()}var n=new Uint8Array(i.BLOCK_SIZE);return n.set(t),n}(e),r=new Uint8Array(i.BLOCK_SIZE);r.set(t);for(var n=0;n0&&c>u&&(c=u);for(var l=0;l=0?(f=v.substr(0,g),d=v.substr(g+1)):(f=v,d=""),p=decodeURIComponent(f),h=decodeURIComponent(d),n(a,p)?i(a[p])?a[p].push(h):a[p]=[a[p],h]:a[p]=h}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},kekF:function(e,t){e.exports=function(e,t){return function(r){return e(t(r))}}},"ko+D":function(e,t,r){"use strict";r.d(t,"a",(function(){return E}));var n=r("mrSG"),i="X-Amz-Date".toLowerCase(),o=["authorization",i,"date"],a="X-Amz-Signature".toLowerCase(),s="X-Amz-Security-Token".toLowerCase(),u={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},c=/^proxy-/,l=/^sec-/,f="AWS4-HMAC-SHA256-PAYLOAD",d={},p=[];function h(e,t,r){return e+"/"+t+"/"+r+"/aws4_request"}var v=r("7Z+r");function g(e,t,r){var i,o,a=e.headers,s={};try{for(var f=Object(n.__values)(Object.keys(a).sort()),d=f.next();!d.done;d=f.next()){var p=d.value,h=p.toLowerCase();(h in u||(null===t||void 0===t?void 0:t.has(h))||c.test(h)||l.test(h))&&(!r||r&&!r.has(h))||(s[h]=a[p].trim().replace(/\s+/g," "))}}catch(v){i={error:v}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}return s}var y=r("TARy");var m=r("GDOE");function b(e,t){var r=e.headers,i=e.body;return Object(n.__awaiter)(this,void 0,void 0,(function(){var e,o,a,s,u,c,l;return Object(n.__generator)(this,(function(f){switch(f.label){case 0:try{for(e=Object(n.__values)(Object.keys(r)),o=e.next();!o.done;o=e.next())if("x-amz-content-sha256"===(a=o.value).toLowerCase())return[2,r[a]]}catch(d){c={error:d}}finally{try{o&&!o.done&&(l=e.return)&&l.call(e)}finally{if(c)throw c.error}}return void 0!=i?[3,1]:[2,"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"];case 1:return"string"===typeof i||ArrayBuffer.isView(i)||Object(m.a)(i)?((s=new t).update(i),u=v.b,[4,s.digest()]):[3,3];case 2:return[2,u.apply(void 0,[f.sent()])];case 3:return[2,"UNSIGNED-PAYLOAD"]}}))}))}function S(e){var t=e.headers,r=e.query,i=Object(n.__rest)(e,["headers","query"]);return Object(n.__assign)(Object(n.__assign)({},i),{headers:Object(n.__assign)({},t),query:r?w(r):void 0})}function w(e){return Object.keys(e).reduce((function(t,r){var i,o=e[r];return Object(n.__assign)(Object(n.__assign)({},t),((i={})[r]=Array.isArray(o)?Object(n.__spread)(o):o,i))}),{})}function _(e){var t,r;e="function"===typeof e.clone?e.clone():S(e);try{for(var i=Object(n.__values)(Object.keys(e.headers)),a=i.next();!a.done;a=i.next()){var s=a.value;o.indexOf(s.toLowerCase())>-1&&delete e.headers[s]}}catch(u){t={error:u}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return e}function O(e){return function(e){if("number"===typeof e)return new Date(1e3*e);if("string"===typeof e)return Number(e)?new Date(1e3*Number(e)):new Date(e);return e}(e).toISOString().replace(/\.\d{3}Z$/,"Z")}var E=function(){function e(e){var t=e.applyChecksum,r=e.credentials,n=e.region,i=e.service,o=e.sha256,a=e.uriEscapePath,s=void 0===a||a;this.service=i,this.sha256=o,this.uriEscapePath=s,this.applyChecksum="boolean"!==typeof t||t,this.regionProvider=C(n),this.credentialProvider=A(r)}return e.prototype.presign=function(e,t){return void 0===t&&(t={}),Object(n.__awaiter)(this,void 0,void 0,(function(){var r,i,o,a,s,u,c,l,f,d,p,v,y,m,w,O,E,C,A,x,I,T,P;return Object(n.__generator)(this,(function(R){switch(R.label){case 0:return r=t.signingDate,i=void 0===r?new Date:r,o=t.expiresIn,a=void 0===o?3600:o,s=t.unsignableHeaders,u=t.signableHeaders,c=t.signingRegion,l=t.signingService,[4,this.credentialProvider()];case 1:return f=R.sent(),null===c||void 0===c?[3,2]:(p=c,[3,4]);case 2:return[4,this.regionProvider()];case 3:p=R.sent(),R.label=4;case 4:return d=p,v=j(i),y=v.longDate,m=v.shortDate,a>604800?[2,Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future")]:(w=h(m,d,null!==l&&void 0!==l?l:this.service),O=function(e){var t,r,i="function"===typeof e.clone?e.clone():S(e),o=i.headers,a=i.query,s=void 0===a?{}:a;try{for(var u=Object(n.__values)(Object.keys(o)),c=u.next();!c.done;c=u.next()){var l=c.value;"x-amz-"===l.toLowerCase().substr(0,6)&&(s[l]=o[l],delete o[l])}}catch(f){t={error:f}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}return Object(n.__assign)(Object(n.__assign)({},e),{headers:o,query:s})}(_(e)),f.sessionToken&&(O.query["X-Amz-Security-Token"]=f.sessionToken),O.query["X-Amz-Algorithm"]="AWS4-HMAC-SHA256",O.query["X-Amz-Credential"]=f.accessKeyId+"/"+w,O.query["X-Amz-Date"]=y,O.query["X-Amz-Expires"]=a.toString(10),E=g(O,s,u),O.query["X-Amz-SignedHeaders"]=k(E),C=O.query,A="X-Amz-Signature",x=this.getSignature,I=[y,w,this.getSigningKey(f,d,m,l)],T=this.createCanonicalRequest,P=[O,E],[4,b(e,this.sha256)]);case 5:return[4,x.apply(this,I.concat([T.apply(this,P.concat([R.sent()]))]))];case 6:return C[A]=R.sent(),[2,O]}}))}))},e.prototype.sign=function(e,t){return Object(n.__awaiter)(this,void 0,void 0,(function(){return Object(n.__generator)(this,(function(r){return"string"===typeof e?[2,this.signString(e,t)]:e.headers&&e.payload?[2,this.signEvent(e,t)]:[2,this.signRequest(e,t)]}))}))},e.prototype.signEvent=function(e,t){var r=e.headers,i=e.payload,o=t.signingDate,a=void 0===o?new Date:o,s=t.priorSignature,u=t.signingRegion,c=t.signingService;return Object(n.__awaiter)(this,void 0,void 0,(function(){var e,t,o,l,d,p,g,y,m,S,w;return Object(n.__generator)(this,(function(n){switch(n.label){case 0:return null===u||void 0===u?[3,1]:(t=u,[3,3]);case 1:return[4,this.regionProvider()];case 2:t=n.sent(),n.label=3;case 3:return e=t,o=j(a),l=o.shortDate,d=o.longDate,p=h(l,e,null!==c&&void 0!==c?c:this.service),[4,b({headers:{},body:i},this.sha256)];case 4:return g=n.sent(),(y=new this.sha256).update(r),S=v.b,[4,y.digest()];case 5:return m=S.apply(void 0,[n.sent()]),w=[f,d,p,s,m,g].join("\n"),[2,this.signString(w,{signingDate:a,signingRegion:e,signingService:c})]}}))}))},e.prototype.signString=function(e,t){var r=void 0===t?{}:t,i=r.signingDate,o=void 0===i?new Date:i,a=r.signingRegion,s=r.signingService;return Object(n.__awaiter)(this,void 0,void 0,(function(){var t,r,i,u,c,l,f,d;return Object(n.__generator)(this,(function(n){switch(n.label){case 0:return[4,this.credentialProvider()];case 1:return t=n.sent(),null===a||void 0===a?[3,2]:(i=a,[3,4]);case 2:return[4,this.regionProvider()];case 3:i=n.sent(),n.label=4;case 4:return r=i,u=j(o).shortDate,f=(l=this.sha256).bind,[4,this.getSigningKey(t,r,u,s)];case 5:return(c=new(f.apply(l,[void 0,n.sent()]))).update(e),d=v.b,[4,c.digest()];case 6:return[2,d.apply(void 0,[n.sent()])]}}))}))},e.prototype.signRequest=function(e,t){var r=void 0===t?{}:t,o=r.signingDate,a=void 0===o?new Date:o,u=r.signableHeaders,c=r.unsignableHeaders,l=r.signingRegion,f=r.signingService;return Object(n.__awaiter)(this,void 0,void 0,(function(){var t,r,o,d,p,v,y,m,S,w,O;return Object(n.__generator)(this,(function(E){switch(E.label){case 0:return[4,this.credentialProvider()];case 1:return t=E.sent(),null===l||void 0===l?[3,2]:(o=l,[3,4]);case 2:return[4,this.regionProvider()];case 3:o=E.sent(),E.label=4;case 4:return r=o,d=_(e),p=j(a),v=p.longDate,y=p.shortDate,m=h(y,r,null!==f&&void 0!==f?f:this.service),d.headers[i]=v,t.sessionToken&&(d.headers[s]=t.sessionToken),[4,b(d,this.sha256)];case 5:return S=E.sent(),!function(e,t){var r,i;e=e.toLowerCase();try{for(var o=Object(n.__values)(Object.keys(t)),a=o.next();!a.done;a=o.next())if(e===a.value.toLowerCase())return!0}catch(s){r={error:s}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return!1}("x-amz-content-sha256",d.headers)&&this.applyChecksum&&(d.headers["x-amz-content-sha256"]=S),w=g(d,c,u),[4,this.getSignature(v,m,this.getSigningKey(t,r,y,f),this.createCanonicalRequest(d,w,S))];case 6:return O=E.sent(),d.headers.authorization="AWS4-HMAC-SHA256 Credential="+t.accessKeyId+"/"+m+", SignedHeaders="+k(w)+", Signature="+O,[2,d]}}))}))},e.prototype.createCanonicalRequest=function(e,t,r){var i=Object.keys(t).sort();return e.method+"\n"+this.getCanonicalPath(e)+"\n"+function(e){var t,r,i=e.query,o=void 0===i?{}:i,s=[],u={},c=function(e){if(e.toLowerCase()===a)return"continue";s.push(e);var t=o[e];"string"===typeof t?u[e]=Object(y.a)(e)+"="+Object(y.a)(t):Array.isArray(t)&&(u[e]=t.slice(0).sort().reduce((function(t,r){return t.concat([Object(y.a)(e)+"="+Object(y.a)(r)])}),[]).join("&"))};try{for(var l=Object(n.__values)(Object.keys(o).sort()),f=l.next();!f.done;f=l.next())c(f.value)}catch(d){t={error:d}}finally{try{f&&!f.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}return s.map((function(e){return u[e]})).filter((function(e){return e})).join("&")}(e)+"\n"+i.map((function(e){return e+":"+t[e]})).join("\n")+"\n\n"+i.join(";")+"\n"+r},e.prototype.createStringToSign=function(e,t,r){return Object(n.__awaiter)(this,void 0,void 0,(function(){var i,o;return Object(n.__generator)(this,(function(n){switch(n.label){case 0:return(i=new this.sha256).update(r),[4,i.digest()];case 1:return o=n.sent(),[2,"AWS4-HMAC-SHA256\n"+e+"\n"+t+"\n"+Object(v.b)(o)]}}))}))},e.prototype.getCanonicalPath=function(e){var t=e.path;return this.uriEscapePath?"/"+encodeURIComponent(t.replace(/^\//,"")).replace(/%2F/g,"/"):t},e.prototype.getSignature=function(e,t,r,i){return Object(n.__awaiter)(this,void 0,void 0,(function(){var o,a,s,u,c;return Object(n.__generator)(this,(function(n){switch(n.label){case 0:return[4,this.createStringToSign(e,t,i)];case 1:return o=n.sent(),u=(s=this.sha256).bind,[4,r];case 2:return(a=new(u.apply(s,[void 0,n.sent()]))).update(o),c=v.b,[4,a.digest()];case 3:return[2,c.apply(void 0,[n.sent()])]}}))}))},e.prototype.getSigningKey=function(e,t,r,i){return function(e,t,r,i,o){var a=r+":"+i+":"+o+":"+t.accessKeyId+":"+t.sessionToken;if(a in d)return d[a];for(p.push(a);p.length>50;)delete d[p.shift()];return d[a]=new Promise((function(s,u){var c,l,f=Promise.resolve("AWS4"+t.secretAccessKey),p=function(t){(f=f.then((function(r){return function(e,t,r){var n=new e(t);return n.update(r),n.digest()}(e,r,t)}))).catch((function(){}))};try{for(var h=Object(n.__values)([r,i,o,"aws4_request"]),v=h.next();!v.done;v=h.next())p(v.value)}catch(g){c={error:g}}finally{try{v&&!v.done&&(l=h.return)&&l.call(h)}finally{if(c)throw c.error}}f.then(s,(function(e){delete d[a],u(e)}))}))}(this.sha256,e,r,t,i||this.service)},e}(),j=function(e){var t=O(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.substr(0,8)}},k=function(e){return Object.keys(e).sort().join(";")},C=function(e){if("string"===typeof e){var t=Promise.resolve(e);return function(){return t}}return e},A=function(e){if("object"===typeof e){var t=Promise.resolve(e);return function(){return t}}return e}},l1VB:function(e,t,r){"use strict";var n,i,o,a,s,u,c,l,f,d,p,h,v,g,y,m,b,S,w,_,O,E,j,k,C,A,x,I,T,P,R,N,L,M,D,U,q,F,B,z,V,H,K,W,Q,G,X,J,Y,Z,$,ee,te,re,ne,ie,oe,ae,se,ue,ce,le,fe,de,pe,he,ve,ge,ye,me,be,Se,we,_e,Oe,Ee,je,ke,Ce,Ae,xe,Ie,Te,Pe,Re,Ne,Le,Me,De,Ue,qe,Fe,Be,ze,Ve,He,Ke,We,Qe,Ge,Xe,Je,Ye,Ze,$e,et,tt,rt,nt,it,ot,at,st,ut,ct,lt,ft,dt,pt,ht,vt,gt,yt,mt,bt,St,wt,_t,Ot,Et,jt,kt,Ct,At,xt,It,Tt,Pt,Rt,Nt,Lt,Mt,Dt,Ut,qt,Ft,Bt,zt,Vt,Ht,Kt,Wt,Qt,Gt,Xt,Jt,Yt,Zt,$t,er,tr,rr,nr,ir,or,ar,sr,ur,cr,lr,fr,dr,pr,hr,vr,gr,yr,mr,br,Sr,wr,_r,Or,Er,jr,kr,Cr,Ar,xr,Ir,Tr,Pr,Rr,Nr,Lr,Mr,Dr,Ur,qr,Fr,Br,zr,Vr,Hr,Kr,Wr,Qr,Gr,Xr,Jr,Yr,Zr,$r,en,tn,rn,nn,on,an,sn,un,cn,ln,fn,dn,pn,hn,vn,gn,yn,mn,bn,Sn,wn,_n,On,En,jn,kn,Cn,An,xn,In,Tn,Pn,Rn,Nn,Ln,Mn,Dn,Un,qn,Fn,Bn=r("Nt7R"),zn=r("QuJe"),Vn=r("Qycn"),Hn=r("R10A"),Kn=r("+rSW"),Wn=r("Svzd"),Qn=r("EI00");(n||(n={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(i||(i={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(o||(o={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(a||(a={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(s||(s={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(u||(u={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(c||(c={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(l||(l={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(f||(f={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(d||(d={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(p||(p={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:Qn.c})},(h||(h={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(v||(v={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(g||(g={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(y||(y={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(m||(m={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)(Object(Wn.a)({},e),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Qn.c}),e.SSEKMSKeyId&&{SSEKMSKeyId:Qn.c})},(b||(b={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)(Object(Wn.a)(Object(Wn.a)(Object(Wn.a)({},e),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Qn.c}),e.SSECustomerKey&&{SSECustomerKey:Qn.c}),e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:Qn.c}),e.SSEKMSKeyId&&{SSEKMSKeyId:Qn.c})},(S||(S={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(w||(w={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(_||(_={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(O||(O={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(E||(E={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(j||(j={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(k||(k={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)(Object(Wn.a)({},e),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Qn.c}),e.SSEKMSKeyId&&{SSEKMSKeyId:Qn.c})},(C||(C={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)(Object(Wn.a)(Object(Wn.a)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:Qn.c}),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Qn.c}),e.SSECustomerKey&&{SSECustomerKey:Qn.c})},(A||(A={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(x||(x={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(I||(I={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(T||(T={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(P||(P={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(R||(R={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(N||(N={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(L||(L={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(M||(M={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(D||(D={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(U||(U={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(q||(q={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(F||(F={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(B||(B={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(z||(z={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(V||(V={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(H||(H={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(K||(K={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(W||(W={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Q||(Q={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(G||(G={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(X||(X={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(J||(J={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Y||(Y={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Z||(Z={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},($||($={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(ee||(ee={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(te||(te={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(re||(re={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(ne||(ne={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(ie||(ie={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(oe||(oe={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(ae||(ae={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(se||(se={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(ue||(ue={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(ce||(ce={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(le||(le={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(fe||(fe={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(de||(de={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(pe||(pe={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(he||(he={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)({},e),e.KMSMasterKeyID&&{KMSMasterKeyID:Qn.c})},(ve||(ve={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)({},e),e.ApplyServerSideEncryptionByDefault&&{ApplyServerSideEncryptionByDefault:he.filterSensitiveLog(e.ApplyServerSideEncryptionByDefault)})},(ge||(ge={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)({},e),e.Rules&&{Rules:e.Rules.map((function(e){return ve.filterSensitiveLog(e)}))})},(ye||(ye={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)({},e),e.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:ge.filterSensitiveLog(e.ServerSideEncryptionConfiguration)})},(me||(me={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(be||(be={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)({},e),e.KeyId&&{KeyId:Qn.c})},(Se||(Se={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(we||(we={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)({},e),e.SSEKMS&&{SSEKMS:be.filterSensitiveLog(e.SSEKMS)})},(_e||(_e={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)({},e),e.Encryption&&{Encryption:we.filterSensitiveLog(e.Encryption)})},(Oe||(Oe={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)({},e),e.S3BucketDestination&&{S3BucketDestination:_e.filterSensitiveLog(e.S3BucketDestination)})},(Ee||(Ee={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(je||(je={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(ke||(ke={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)({},e),e.Destination&&{Destination:Oe.filterSensitiveLog(e.Destination)})},(Ce||(Ce={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)({},e),e.InventoryConfiguration&&{InventoryConfiguration:ke.filterSensitiveLog(e.InventoryConfiguration)})},(Ae||(Ae={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(xe||(xe={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Ie||(Ie={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Te||(Te={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Pe||(Pe={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Re||(Re={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Ne||(Ne={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Le||(Le={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Me||(Me={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(De||(De={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Ue||(Ue={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(qe||(qe={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Fe||(Fe={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Be||(Be={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(ze||(ze={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Ve||(Ve={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(He||(He={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Ke||(Ke={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(We||(We={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Qe||(Qe={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Ge||(Ge={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Xe||(Xe={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Je||(Je={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Ye||(Ye={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Ze||(Ze={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},($e||($e={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(et||(et={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(tt||(tt={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(rt||(rt={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(nt||(nt={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(it||(it={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(ot||(ot={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(at||(at={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(st||(st={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(ut||(ut={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(ct||(ct={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(lt||(lt={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(ft||(ft={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(dt||(dt={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(pt||(pt={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(ht||(ht={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(vt||(vt={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(gt||(gt={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(yt||(yt={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(mt||(mt={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(bt||(bt={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(St||(St={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(wt||(wt={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(_t||(_t={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Ot||(Ot={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Et||(Et={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(jt||(jt={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(kt||(kt={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Ct||(Ct={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(At||(At={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(xt||(xt={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(It||(It={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Tt||(Tt={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Pt||(Pt={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Rt||(Rt={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Nt||(Nt={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Lt||(Lt={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Mt||(Mt={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Dt||(Dt={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Ut||(Ut={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(qt||(qt={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Ft||(Ft={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Bt||(Bt={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:Qn.c})},(zt||(zt={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)({},e),e.SSECustomerKey&&{SSECustomerKey:Qn.c})},(Vt||(Vt={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Ht||(Ht={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Kt||(Kt={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Wt||(Wt={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Qt||(Qt={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Gt||(Gt={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Xt||(Xt={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Jt||(Jt={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Yt||(Yt={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Zt||(Zt={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},($t||($t={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(er||(er={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(tr||(tr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(rr||(rr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(nr||(nr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(ir||(ir={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(or||(or={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(ar||(ar={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(sr||(sr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(ur||(ur={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(cr||(cr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(lr||(lr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(fr||(fr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(dr||(dr={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:Qn.c})},(pr||(pr={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)({},e),e.SSECustomerKey&&{SSECustomerKey:Qn.c})},(hr||(hr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(vr||(vr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(gr||(gr={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)({},e),e.InventoryConfigurationList&&{InventoryConfigurationList:e.InventoryConfigurationList.map((function(e){return ke.filterSensitiveLog(e)}))})},(yr||(yr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(mr||(mr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(br||(br={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Sr||(Sr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(wr||(wr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(_r||(_r={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Or||(Or={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Er||(Er={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(jr||(jr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(kr||(kr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Cr||(Cr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Ar||(Ar={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(xr||(xr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Ir||(Ir={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Tr||(Tr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Pr||(Pr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Rr||(Rr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Nr||(Nr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Lr||(Lr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Mr||(Mr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Dr||(Dr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Ur||(Ur={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(qr||(qr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Fr||(Fr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Br||(Br={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(zr||(zr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Vr||(Vr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Hr||(Hr={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)({},e),e.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:ge.filterSensitiveLog(e.ServerSideEncryptionConfiguration)})},(Kr||(Kr={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)({},e),e.InventoryConfiguration&&{InventoryConfiguration:ke.filterSensitiveLog(e.InventoryConfiguration)})},(Wr||(Wr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Qr||(Qr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Gr||(Gr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Xr||(Xr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Jr||(Jr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Yr||(Yr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Zr||(Zr={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},($r||($r={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(en||(en={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(tn||(tn={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(rn||(rn={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(nn||(nn={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(on||(on={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(an||(an={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(sn||(sn={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(un||(un={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(cn||(cn={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(ln||(ln={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)(Object(Wn.a)({},e),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Qn.c}),e.SSEKMSKeyId&&{SSEKMSKeyId:Qn.c})},(fn||(fn={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)(Object(Wn.a)(Object(Wn.a)({},e),e.SSECustomerKey&&{SSECustomerKey:Qn.c}),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Qn.c}),e.SSEKMSKeyId&&{SSEKMSKeyId:Qn.c})},(dn||(dn={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(pn||(pn={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(hn||(hn={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(vn||(vn={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(gn||(gn={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(yn||(yn={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(mn||(mn={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(bn||(bn={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Sn||(Sn={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(wn||(wn={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(_n||(_n={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(On||(On={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(En||(En={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(jn||(jn={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(kn||(kn={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)({},e),e.KMSKeyId&&{KMSKeyId:Qn.c})},(Cn||(Cn={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(An||(An={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)({},e),e.Encryption&&{Encryption:kn.filterSensitiveLog(e.Encryption)})},(xn||(xn={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)({},e),e.S3&&{S3:An.filterSensitiveLog(e.S3)})},function(e){e.IGNORE="IGNORE",e.NONE="NONE",e.USE="USE"}(In||(In={})),(Tn||(Tn={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},function(e){e.DOCUMENT="DOCUMENT",e.LINES="LINES"}(Pn||(Pn={})),(Rn||(Rn={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Nn||(Nn={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Ln||(Ln={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},function(e){e.ALWAYS="ALWAYS",e.ASNEEDED="ASNEEDED"}(Mn||(Mn={})),(Dn||(Dn={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Un||(Un={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(qn||(qn={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(Fn||(Fn={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)};var Gn=r("QmnM");var Xn=function(){return(Xn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(n=o.next()).done;)a.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}var $n=r("Enk7");function ei(e,t){var r="function"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}var ti=function(e){return"string"===typeof e&&0===e.indexOf("arn:")&&e.split(":").length>=6},ri=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,ni=/(\d+\.){3}\d+/,ii=/\.\./,oi=/\./,ai=/^(.+\.)?s3[.-]([a-z0-9-]+)\./,si=/^s3(-external-1)?\.amazonaws\.com$/,ui=function(e){return li(e)?e.replace(/fips-|-fips/,""):e},ci=function(e){var t=e.match(ai);return[t[2],e.replace(new RegExp("^"+t[0]),"")]},li=function(e){return e.startsWith("fips-")||e.endsWith("-fips")},fi=function(e,t){return e===t||ui(e)===t||e===ui(t)},di=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?void 0:t.tlsCompatible)&&oi.test(e))throw new Error("Invalid DNS label "+e)},pi=function(e){var t=e.baseHostname;return ai.test(t)?function(e){return"string"===typeof e.bucketName}(e)?vi(e):hi(e):{bucketEndpoint:!1,hostname:t}},hi=function(e){var t,r=Zn((t=e.baseHostname,si.test(t)?[t.replace(".amazonaws.com",""),"amazonaws.com"]:ci(t)),2),n=r[0],i=r[1],o=e.pathStyleEndpoint,a=e.dualstackEndpoint,s=void 0!==a&&a,u=e.accelerateEndpoint,c=void 0!==u&&u,l=e.tlsCompatible,f=void 0===l||l,d=e.useArnRegion,p=e.bucketName,h=e.clientPartition,v=void 0===h?"aws":h,g=e.clientSigningRegion,y=void 0===g?n:g;!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:o,accelerateEndpoint:c,tlsCompatible:f});var m=p.service,b=p.partition,S=p.accountId,w=p.region,_=p.resource;!function(e){if("s3"!==e&&"s3-outposts"!==e)throw new Error("Expect 's3' or 's3-outposts' in ARN service component")}(m),function(e,t){if(e!==t.clientPartition)throw new Error('Partition in ARN is incompatible, got "'+e+'" but expected "'+t.clientPartition+'"')}(b,{clientPartition:v}),function(e){if(!/[0-9]{12}/.exec(e))throw new Error("Access point ARN accountID does not match regex '[0-9]{12}'")}(S),function(e,t){if(""===e)throw new Error("ARN region is empty");if(!t.useArnRegion&&!fi(e,t.clientRegion)&&!fi(e,t.clientSigningRegion))throw new Error("Region in ARN is incompatible, got "+e+" but expected "+t.clientRegion);if(t.useArnRegion&&li(e))throw new Error("Endpoint does not support FIPS region")}(w,{useArnRegion:d,clientRegion:n,clientSigningRegion:y});var O=function(e){var t=e.includes(":")?":":"/",r=Zn(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=Zn(i,3),a=o[0];return o[1],{outpostId:a,accesspointName:o[2]}}throw new Error("ARN resource should begin with 'accesspoint"+t+"' or 'outpost"+t+"'")}(_),E=O.accesspointName,j=O.outpostId;di(E+"-"+S,{tlsCompatible:f});var k=d?w:n,C=d?w:y;return j?(function(e){if("s3-outposts"!==e)throw new Error("Expect 's3-posts' in Outpost ARN service component")}(m),di(j,{tlsCompatible:f}),function(e){if(e)throw new Error("Dualstack endpoint is not supported with Outpost")}(s),function(e){if(li(null!==e&&void 0!==e?e:""))throw new Error("FIPS region is not supported with Outpost, got "+e)}(k),{bucketEndpoint:!0,hostname:E+"-"+S+"."+j+".s3-outposts."+k+"."+i,signingRegion:C,signingService:"s3-outposts"}):(function(e){if("s3"!==e)throw new Error("Expect 's3' in Accesspoint ARN service component")}(m),{bucketEndpoint:!0,hostname:E+"-"+S+".s3-accesspoint"+(s?".dualstack":"")+"."+k+"."+i,signingRegion:C})},vi=function(e){var t,r=e.accelerateEndpoint,n=void 0!==r&&r,i=e.baseHostname,o=e.bucketName,a=e.dualstackEndpoint,s=void 0!==a&&a,u=e.pathStyleEndpoint,c=void 0!==u&&u,l=e.tlsCompatible,f=void 0===l||l,d=Zn((t=i,si.test(t)?["us-east-1","amazonaws.com"]:ci(t)),2),p=d[0],h=d[1];return c||!function(e){return ri.test(e)&&!ni.test(e)&&!ii.test(e)}(o)||f&&oi.test(o)?{bucketEndpoint:!1,hostname:s?"s3.dualstack."+p+"."+h:i}:(n?i="s3-accelerate"+(s?".dualstack":"")+"."+h:s&&(i="s3.dualstack."+p+"."+h),{bucketEndpoint:!0,hostname:o+"."+i})},gi=function(e){return function(t,r){return function(n){return Jn(void 0,void 0,void 0,(function(){var i,o,a,s,u,c,l,f,d,p,h,v,g,y,m,b,S;return Yn(this,(function(w){switch(w.label){case 0:return i=n.input.Bucket,o=e.bucketEndpoint,a=n.request,$n.a.isInstance(a)?e.bucketEndpoint?(a.hostname=i,[3,6]):[3,1]:[3,7];case 1:return ti(i)?(s=function(e){var t=e.split(":");if(t.length<6||"arn"!==t[0])throw new Error("Malformed ARN");var r=ei(t);return{partition:r[1],service:r[2],region:r[3],accountId:r[4],resource:r.slice(5).join(":")}}(i),c=ui,[4,e.region()]):[3,5];case 2:return u=c.apply(void 0,[w.sent()]),[4,e.regionInfoProvider(u)];case 3:return l=w.sent()||{},f=l.partition,d=l.signingRegion,p=void 0===d?u:d,[4,e.useArnRegion()];case 4:return h=w.sent(),v=pi({bucketName:s,baseHostname:a.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:e.useDualstackEndpoint,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:"https:"===a.protocol,useArnRegion:h,clientPartition:f,clientSigningRegion:p}),b=v.hostname,S=v.bucketEndpoint,g=v.signingRegion,y=v.signingService,g&&g!==p&&(r.signing_region=g),y&&"s3"!==y&&(r.signing_service=y),a.hostname=b,o=S,[3,6];case 5:m=pi({bucketName:i,baseHostname:a.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:e.useDualstackEndpoint,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:"https:"===a.protocol}),b=m.hostname,S=m.bucketEndpoint,a.hostname=b,o=S,w.label=6;case 6:o&&(a.path=a.path.replace(/^(\/)?[^\/]+/,""),""===a.path&&(a.path="/")),w.label=7;case 7:return[2,t(Xn(Xn({},n),{request:a}))]}}))}))}}},yi={tags:["BUCKET_ENDPOINT"],name:"bucketEndpointMiddleware",relation:"before",toMiddleware:"hostHeaderMiddleware"},mi=function(e){return{applyToStack:function(t){t.addRelativeTo(gi(e),yi)}}};var bi=r("mRvm");var Si=function(){return(Si=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var Ei={name:"ssecMiddleware",step:"initialize",tags:["SSE"]},ji=function(e){return{applyToStack:function(t){t.add(function(e){var t=this;return function(r){return function(n){return wi(t,void 0,void 0,(function(){var t,i,o,a,s,u,c,l,f,d,p,h,v,g,y,m,b;return _i(this,(function(S){switch(S.label){case 0:t=Si({},n.input),i=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}],S.label=1;case 1:S.trys.push([1,6,7,8]),o=Oi(i),a=o.next(),S.label=2;case 2:return a.done?[3,5]:(s=a.value,(u=t[s.target])?(c=ArrayBuffer.isView(u)?new Uint8Array(u.buffer,u.byteOffset,u.byteLength):"string"===typeof u?e.utf8Decoder(u):new Uint8Array(u),l=e.base64Encoder(c),(f=new e.md5).update(c),d=[Si({},t)],(b={})[s.target]=l,p=s.hash,v=(h=e).base64Encoder,[4,f.digest()]):[3,4]);case 3:t=Si.apply(void 0,d.concat([(b[p]=v.apply(h,[S.sent()]),b)])),S.label=4;case 4:return a=o.next(),[3,2];case 5:return[3,8];case 6:return g=S.sent(),y={error:g},[3,8];case 7:try{a&&!a.done&&(m=o.return)&&m.call(o)}finally{if(y)throw y.error}return[7];case 8:return[2,r(Si(Si({},n),{input:t}))]}}))}))}}}(e),Ei)}}},ki=function(e){function t(t){var r=e.call(this)||this;return r.input=t,r}return Object(Wn.c)(t,e),t.prototype.resolveMiddleware=function(e,t,r){this.middlewareStack.use(Object(bi.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ji(t)),this.middlewareStack.use(mi(t));var n=e.concat(this.middlewareStack),i=t.logger,o={logger:i,clientName:"S3Client",commandName:"GetObjectCommand",inputFilterSensitiveLog:zt.filterSensitiveLog,outputFilterSensitiveLog:Bt.filterSensitiveLog};"function"===typeof i.info&&i.info({clientName:"S3Client",commandName:"GetObjectCommand"});var a=t.requestHandler;return n.resolve((function(e){return a.handle(e.request,r||{})}),o)},t.prototype.serialize=function(e,t){return Object(Gn.n)(e,t)},t.prototype.deserialize=function(e,t){return Object(Gn.e)(e,t)},t}(Qn.b),Ci=function(e){function t(t){var r=e.call(this)||this;return r.input=t,r}return Object(Wn.c)(t,e),t.prototype.resolveMiddleware=function(e,t,r){this.middlewareStack.use(Object(bi.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(mi(t));var n=e.concat(this.middlewareStack),i=t.logger,o={logger:i,clientName:"S3Client",commandName:"DeleteObjectCommand",inputFilterSensitiveLog:B.filterSensitiveLog,outputFilterSensitiveLog:F.filterSensitiveLog};"function"===typeof i.info&&i.info({clientName:"S3Client",commandName:"DeleteObjectCommand"});var a=t.requestHandler;return n.resolve((function(e){return a.handle(e.request,r||{})}),o)},t.prototype.serialize=function(e,t){return Object(Gn.m)(e,t)},t.prototype.deserialize=function(e,t){return Object(Gn.d)(e,t)},t}(Qn.b),Ai=function(e){function t(t){var r=e.call(this)||this;return r.input=t,r}return Object(Wn.c)(t,e),t.prototype.resolveMiddleware=function(e,t,r){this.middlewareStack.use(Object(bi.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(mi(t));var n=e.concat(this.middlewareStack),i=t.logger,o={logger:i,clientName:"S3Client",commandName:"ListObjectsCommand",inputFilterSensitiveLog:xr.filterSensitiveLog,outputFilterSensitiveLog:Ar.filterSensitiveLog};"function"===typeof i.info&&i.info({clientName:"S3Client",commandName:"ListObjectsCommand"});var a=t.requestHandler;return n.resolve((function(e){return a.handle(e.request,r||{})}),o)},t.prototype.serialize=function(e,t){return Object(Gn.o)(e,t)},t.prototype.deserialize=function(e,t){return Object(Gn.f)(e,t)},t}(Qn.b),xi=r("Ybjl"),Ii=r("viNG"),Ti=r("mX1g"),Pi=r("mrSG"),Ri=r("7Z+r"),Ni=function(){function e(e){if(this.bytes=e,8!==e.byteLength)throw new Error("Int64 buffers must be exactly 8 bytes")}return e.fromNumber=function(t){if(t>0x8000000000000000||t<-0x8000000000000000)throw new Error(t+" is too large (or, if negative, too small) to represent as an Int64");for(var r=new Uint8Array(8),n=7,i=Math.abs(Math.round(t));n>-1&&i>0;n--,i/=256)r[n]=i;return t<0&&Li(r),new e(r)},e.prototype.valueOf=function(){var e=this.bytes.slice(0),t=128&e[0];return t&&Li(e),parseInt(Object(Ri.b)(e),16)*(t?-1:1)},e.prototype.toString=function(){return String(this.valueOf())},e}();function Li(e){for(var t=0;t<8;t++)e[t]^=255;for(t=7;t>-1&&(e[t]++,0===e[t]);t--);}var Mi,Di=function(){function e(e,t){this.toUtf8=e,this.fromUtf8=t}return e.prototype.format=function(e){var t,r,n,i,o=[];try{for(var a=Object(Pi.__values)(Object.keys(e)),s=a.next();!s.done;s=a.next()){var u=s.value,c=this.fromUtf8(u);o.push(Uint8Array.from([c.byteLength]),c,this.formatHeaderValue(e[u]))}}catch(v){t={error:v}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}var l=new Uint8Array(o.reduce((function(e,t){return e+t.byteLength}),0)),f=0;try{for(var d=Object(Pi.__values)(o),p=d.next();!p.done;p=d.next()){var h=p.value;l.set(h,f),f+=h.byteLength}}catch(g){n={error:g}}finally{try{p&&!p.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}return l},e.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 a=this.fromUtf8(e.value),s=new DataView(new ArrayBuffer(3+a.byteLength));s.setUint8(0,7),s.setUint16(1,a.byteLength,!1);var u=new Uint8Array(s.buffer);return u.set(a,3),u;case"timestamp":var c=new Uint8Array(9);return c[0]=8,c.set(Ni.fromNumber(e.value.valueOf()).bytes,1),c;case"uuid":if(!Qi.test(e.value))throw new Error("Invalid UUID received: "+e.value);var l=new Uint8Array(17);return l[0]=9,l.set(Object(Ri.a)(e.value.replace(/\-/g,"")),1),l}},e.prototype.parse=function(e){for(var t={},r=0;r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=a?n():o.readAsArrayBuffer(e.slice(s,Math.min(a,s+r)))}o.addEventListener("load",(function(e){var r=e.target.result;t(new Uint8Array(r)),s+=r.byteLength,u()})),u()}))}var ro=r("J2eM");function no(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(t){o(t)}}function s(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))}function io(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0;)this.buffer.setUint8(this.bufferLength++,t[r++]),n--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0)}},e.prototype.digest=function(){return no(this,void 0,void 0,(function(){var e,t,r,n,i,o,a;return io(this,(function(s){if(!this.finished){if(t=(e=this).buffer,r=e.bufferLength,n=e.bytesHashed,i=8*n,t.setUint8(this.bufferLength++,128),r%64>=56){for(a=this.bufferLength;a<64;a++)t.setUint8(a,0);this.hashBuffer(),this.bufferLength=0}for(a=this.bufferLength;a<56;a++)t.setUint8(a,0);t.setUint32(56,i>>>0,!0),t.setUint32(60,Math.floor(i/4294967296),!0),this.hashBuffer(),this.finished=!0}for(o=new DataView(new ArrayBuffer(16)),a=0;a<4;a++)o.setUint32(4*a,this.state[a],!0);return[2,new Uint8Array(o.buffer,o.byteOffset,o.byteLength)]}))}))},e.prototype.hashBuffer=function(){var e=this.buffer,t=this.state,r=t[0],n=t[1],i=t[2],o=t[3];r=co(r,n,i,o,e.getUint32(0,!0),7,3614090360),o=co(o,r,n,i,e.getUint32(4,!0),12,3905402710),i=co(i,o,r,n,e.getUint32(8,!0),17,606105819),n=co(n,i,o,r,e.getUint32(12,!0),22,3250441966),r=co(r,n,i,o,e.getUint32(16,!0),7,4118548399),o=co(o,r,n,i,e.getUint32(20,!0),12,1200080426),i=co(i,o,r,n,e.getUint32(24,!0),17,2821735955),n=co(n,i,o,r,e.getUint32(28,!0),22,4249261313),r=co(r,n,i,o,e.getUint32(32,!0),7,1770035416),o=co(o,r,n,i,e.getUint32(36,!0),12,2336552879),i=co(i,o,r,n,e.getUint32(40,!0),17,4294925233),n=co(n,i,o,r,e.getUint32(44,!0),22,2304563134),r=co(r,n,i,o,e.getUint32(48,!0),7,1804603682),o=co(o,r,n,i,e.getUint32(52,!0),12,4254626195),i=co(i,o,r,n,e.getUint32(56,!0),17,2792965006),r=lo(r,n=co(n,i,o,r,e.getUint32(60,!0),22,1236535329),i,o,e.getUint32(4,!0),5,4129170786),o=lo(o,r,n,i,e.getUint32(24,!0),9,3225465664),i=lo(i,o,r,n,e.getUint32(44,!0),14,643717713),n=lo(n,i,o,r,e.getUint32(0,!0),20,3921069994),r=lo(r,n,i,o,e.getUint32(20,!0),5,3593408605),o=lo(o,r,n,i,e.getUint32(40,!0),9,38016083),i=lo(i,o,r,n,e.getUint32(60,!0),14,3634488961),n=lo(n,i,o,r,e.getUint32(16,!0),20,3889429448),r=lo(r,n,i,o,e.getUint32(36,!0),5,568446438),o=lo(o,r,n,i,e.getUint32(56,!0),9,3275163606),i=lo(i,o,r,n,e.getUint32(12,!0),14,4107603335),n=lo(n,i,o,r,e.getUint32(32,!0),20,1163531501),r=lo(r,n,i,o,e.getUint32(52,!0),5,2850285829),o=lo(o,r,n,i,e.getUint32(8,!0),9,4243563512),i=lo(i,o,r,n,e.getUint32(28,!0),14,1735328473),r=fo(r,n=lo(n,i,o,r,e.getUint32(48,!0),20,2368359562),i,o,e.getUint32(20,!0),4,4294588738),o=fo(o,r,n,i,e.getUint32(32,!0),11,2272392833),i=fo(i,o,r,n,e.getUint32(44,!0),16,1839030562),n=fo(n,i,o,r,e.getUint32(56,!0),23,4259657740),r=fo(r,n,i,o,e.getUint32(4,!0),4,2763975236),o=fo(o,r,n,i,e.getUint32(16,!0),11,1272893353),i=fo(i,o,r,n,e.getUint32(28,!0),16,4139469664),n=fo(n,i,o,r,e.getUint32(40,!0),23,3200236656),r=fo(r,n,i,o,e.getUint32(52,!0),4,681279174),o=fo(o,r,n,i,e.getUint32(0,!0),11,3936430074),i=fo(i,o,r,n,e.getUint32(12,!0),16,3572445317),n=fo(n,i,o,r,e.getUint32(24,!0),23,76029189),r=fo(r,n,i,o,e.getUint32(36,!0),4,3654602809),o=fo(o,r,n,i,e.getUint32(48,!0),11,3873151461),i=fo(i,o,r,n,e.getUint32(60,!0),16,530742520),r=po(r,n=fo(n,i,o,r,e.getUint32(8,!0),23,3299628645),i,o,e.getUint32(0,!0),6,4096336452),o=po(o,r,n,i,e.getUint32(28,!0),10,1126891415),i=po(i,o,r,n,e.getUint32(56,!0),15,2878612391),n=po(n,i,o,r,e.getUint32(20,!0),21,4237533241),r=po(r,n,i,o,e.getUint32(48,!0),6,1700485571),o=po(o,r,n,i,e.getUint32(12,!0),10,2399980690),i=po(i,o,r,n,e.getUint32(40,!0),15,4293915773),n=po(n,i,o,r,e.getUint32(4,!0),21,2240044497),r=po(r,n,i,o,e.getUint32(32,!0),6,1873313359),o=po(o,r,n,i,e.getUint32(60,!0),10,4264355552),i=po(i,o,r,n,e.getUint32(24,!0),15,2734768916),n=po(n,i,o,r,e.getUint32(52,!0),21,1309151649),r=po(r,n,i,o,e.getUint32(16,!0),6,4149444226),o=po(o,r,n,i,e.getUint32(44,!0),10,3174756917),i=po(i,o,r,n,e.getUint32(8,!0),15,718787259),n=po(n,i,o,r,e.getUint32(36,!0),21,3951481745),t[0]=r+t[0]&4294967295,t[1]=n+t[1]&4294967295,t[2]=i+t[2]&4294967295,t[3]=o+t[3]&4294967295},e}();function uo(e,t,r,n,i,o){return((t=(t+e&4294967295)+(n+o&4294967295)&4294967295)<>>32-i)+r&4294967295}function co(e,t,r,n,i,o,a){return uo(t&r|~t&n,e,t,i,o,a)}function lo(e,t,r,n,i,o,a){return uo(t&n|r&~n,e,t,i,o,a)}function fo(e,t,r,n,i,o,a){return uo(t^r^n,e,t,i,o,a)}function po(e,t,r,n,i,o,a){return uo(r^(t|~n),e,t,i,o,a)}var ho=r("UMev"),vo=r("c14h"),go=r("S3Uu"),yo=r("N9sX"),mo=r("wU8f"),bo=new Set(["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-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"]),So=new Set(["cn-north-1","cn-northwest-1"]),wo=new Set(["us-iso-east-1"]),_o=new Set(["us-isob-east-1"]),Oo=new Set(["us-gov-east-1","us-gov-west-1"]),Eo={apiVersion:"2006-03-01",disableHostPrefix:!1,logger:{},regionInfoProvider:function(e,t){var r=void 0;switch(e){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"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-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.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:bo.has(e)&&(r={hostname:"s3.{region}.amazonaws.com".replace("{region}",e),partition:"aws"}),So.has(e)&&(r={hostname:"s3.{region}.amazonaws.com.cn".replace("{region}",e),partition:"aws-cn"}),wo.has(e)&&(r={hostname:"s3.{region}.c2s.ic.gov".replace("{region}",e),partition:"aws-iso"}),_o.has(e)&&(r={hostname:"s3.{region}.sc2s.sgov.gov".replace("{region}",e),partition:"aws-iso-b"}),Oo.has(e)&&(r={hostname:"s3.{region}.amazonaws.com".replace("{region}",e),partition:"aws-us-gov"}),void 0===r&&(r={hostname:"s3.{region}.amazonaws.com".replace("{region}",e),partition:"aws"})}return Promise.resolve(r)},signingEscapePath:!1,signingName:"s3",useArnRegion:!1},jo=Object(Wn.a)(Object(Wn.a)({},Eo),{runtime:"browser",base64Decoder:go.a,base64Encoder:go.b,bodyLengthChecker:yo.a,credentialDefaultProvider:Object(ro.a)("Credential is missing"),defaultUserAgent:Object(mo.a)(xi.name,xi.version),eventStreamSerdeProvider:function(e){return new Ji(e)},maxAttempts:ho.a,md5:so,region:Object(ro.a)("Region is missing"),requestHandler:new Zi.a,sha256:Ii.Sha256,streamCollector:Zi.b,streamHasher:function(e,t){return $i(this,void 0,void 0,(function(){var r;return eo(this,(function(n){switch(n.label){case 0:return r=new e,[4,to(t,(function(e){r.update(e)}))];case 1:return n.sent(),[2,r.digest()]}}))}))},urlParser:vo.a,utf8Decoder:oo.fromUtf8,utf8Encoder:oo.toUtf8}),ko=r("NtRE"),Co=r("naxo");var Ao=function(){return(Ao=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0)throw(n=new Error("Bucket name shouldn't contain '/', received '"+e+"'")).name="InvalidBucketName",n;return[2,t(Lo({},r))]}))}))}}}(),Uo)}}},Fo={step:"build",tags:["USE_REGIONAL_ENDPOINT","S3"],name:"useRegionalEndpointMiddleware"},Bo=function(e){return{applyToStack:function(t){t.add(function(e){return function(t){return function(r){return Mo(void 0,void 0,void 0,(function(){var n,i;return Do(this,(function(o){switch(o.label){case 0:return n=r.request,!$n.a.isInstance(n)||e.isCustomEndpoint?[2,t(Lo({},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(Lo({},r))]}}))}))}}}(e),Fo)}}},zo=r("qcsT"),Vo=r("87YT"),Ho=function(e){function t(t){var r,n=this,i=Object(Wn.a)(Object(Wn.a)({},jo),t),o=Object(ko.b)(i),a=Object(ko.a)(o),s=Object(zo.b)(a),u=Object(ho.c)(s),c=function(e){var t=e.bucketEndpoint,r=void 0!==t&&t,n=e.forcePathStyle,i=void 0!==n&&n,o=e.useAccelerateEndpoint,a=void 0!==o&&o,s=e.useDualstackEndpoint,u=void 0!==s&&s,c=e.useArnRegion,l=void 0!==c&&c;return Xn(Xn({},e),{bucketEndpoint:r,forcePathStyle:i,useAccelerateEndpoint:a,useDualstackEndpoint:u,useArnRegion:"function"===typeof l?l:function(){return Promise.resolve(l)}})}(Object(Vo.b)(u)),l=Object(Ro.b)(c),f=(r=l,Object(Pi.__assign)(Object(Pi.__assign)({},r),{eventStreamMarshaller:r.eventStreamSerdeProvider(r)}));return(n=e.call(this,f)||this).config=f,n.middlewareStack.use(Object(zo.a)(n.config)),n.middlewareStack.use(Object(ho.b)(n.config)),n.middlewareStack.use(Object(Vo.a)(n.config)),n.middlewareStack.use(Object(Co.a)(n.config)),n.middlewareStack.use(qo(n.config)),n.middlewareStack.use(Bo(n.config)),n.middlewareStack.use(Po(n.config)),n.middlewareStack.use(Object(Ro.a)(n.config)),n.middlewareStack.use(Object(No.a)(n.config)),n}return Object(Wn.c)(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(Qn.a),Ko=r("3tHY");function Wo(e){var t=e.port,r=e.query,n=e.protocol,i=e.path,o=e.hostname;n&&":"!==n.substr(-1)&&(n+=":"),t&&(o+=":"+t),i&&"/"!==i.charAt(0)&&(i="/"+i);var a=r?Object(Ko.a)(r):"";return a&&"?"!==a[0]&&(a="?"+a),n+"//"+o+i+a}function Qo(e,t){return Object(Pi.__awaiter)(this,void 0,void 0,(function(){var r,n,i=this;return Object(Pi.__generator)(this,(function(o){switch(o.label){case 0:return r=function(e){return function(e){return Object(Pi.__awaiter)(i,void 0,void 0,(function(){return Object(Pi.__generator)(this,(function(t){return[2,{output:{request:e.request},response:void 0}]}))}))}},(n=e.middlewareStack.clone()).add(r,{step:"build",priority:"low"}),[4,t.resolveMiddleware(n,e.config,void 0)(t).then((function(e){return e.output.request}))];case 1:return[2,o.sent()]}}))}))}var Go=r("ko+D"),Xo=function(){function e(e){var t=Object(Pi.__assign)({service:e.signingName||e.service||"s3",uriEscapePath:e.uriEscapePath||!1},e);this.signer=new Go.a(t)}return e.prototype.presign=function(e,t){void 0===t&&(t={});var r=t.unsignableHeaders,n=void 0===r?new Set:r,i=Object(Pi.__rest)(t,["unsignableHeaders"]);return Object(Pi.__awaiter)(this,void 0,void 0,(function(){return Object(Pi.__generator)(this,(function(t){return n.add("content-type"),e.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",[2,this.signer.presign(e,Object(Pi.__assign)({expiresIn:900,unsignableHeaders:n},i))]}))}))},e}(),Jo=r("vDqi"),Yo=r.n(Jo),Zo=new Bn.a("axios-http-handler"),$o=function(){function e(e,t){void 0===e&&(e={}),this.httpOptions=e,this.emitter=t}return e.prototype.destroy=function(){},e.prototype.handle=function(e,t){var r=this.httpOptions.requestTimeout,n=this.emitter,i=e.path;if(e.query){var o=Object(Ko.a)(e.query);o&&(i+="?"+o)}var a=e.port,s=e.protocol+"//"+e.hostname+(a?":"+a:"")+i,u={};u.url=s,u.method=e.method,u.headers=e.headers,delete u.headers.host,e.body?u.data=e.body:u.headers["Content-Type"]&&(u.data=null),n&&(u.onUploadProgress=function(e){n.emit("sendProgress",e),Zo.debug(e)}),u.responseType="blob";var c=[Yo.a.request(u).then((function(e){return{response:new $n.b({headers:e.headers,statusCode:e.status,body:e.data})}})).catch((function(e){throw Zo.error(e),e})),ea(r)];return Promise.race(c)},e}();function ea(e){return void 0===e&&(e=0),new Promise((function(t,r){e&&setTimeout((function(){var t=new Error("Request did not complete within "+e+" ms");t.name="TimeoutError",r(t)}),e)}))}var ta,ra,na,ia,oa,aa,sa,ua,ca,la,fa,da,pa,ha,va,ga,ya,ma,ba,Sa,wa=function(e){function t(t){var r=e.call(this)||this;return r.input=t,r}return Object(Wn.c)(t,e),t.prototype.resolveMiddleware=function(e,t,r){this.middlewareStack.use(Object(bi.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ji(t)),this.middlewareStack.use(mi(t));var n=e.concat(this.middlewareStack),i=t.logger,o={logger:i,clientName:"S3Client",commandName:"PutObjectCommand",inputFilterSensitiveLog:fn.filterSensitiveLog,outputFilterSensitiveLog:ln.filterSensitiveLog};"function"===typeof i.info&&i.info({clientName:"S3Client",commandName:"PutObjectCommand"});var a=t.requestHandler;return n.resolve((function(e){return a.handle(e.request,r||{})}),o)},t.prototype.serialize=function(e,t){return Object(Gn.q)(e,t)},t.prototype.deserialize=function(e,t){return Object(Gn.h)(e,t)},t}(Qn.b),_a=function(e){function t(t){var r=e.call(this)||this;return r.input=t,r}return Object(Wn.c)(t,e),t.prototype.resolveMiddleware=function(e,t,r){this.middlewareStack.use(Object(bi.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ji(t)),this.middlewareStack.use(mi(t));var n=e.concat(this.middlewareStack),i=t.logger,o={logger:i,clientName:"S3Client",commandName:"CreateMultipartUploadCommand",inputFilterSensitiveLog:C.filterSensitiveLog,outputFilterSensitiveLog:k.filterSensitiveLog};"function"===typeof i.info&&i.info({clientName:"S3Client",commandName:"CreateMultipartUploadCommand"});var a=t.requestHandler;return n.resolve((function(e){return a.handle(e.request,r||{})}),o)},t.prototype.serialize=function(e,t){return Object(Gn.l)(e,t)},t.prototype.deserialize=function(e,t){return Object(Gn.c)(e,t)},t}(Qn.b);!function(e){e.SELECT="SELECT"}(ta||(ta={})),(ra||(ra={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)({},e),e.OutputLocation&&{OutputLocation:xn.filterSensitiveLog(e.OutputLocation)})},(na||(na={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)({},e),e.RestoreRequest&&{RestoreRequest:ra.filterSensitiveLog(e.RestoreRequest)})},(ia||(ia={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(oa||(oa={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(aa||(aa={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(sa||(sa={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(ua||(ua={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(ca||(ca={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(la||(la={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},function(e){e.visit=function(e,t){return void 0!==e.Cont?t.Cont(e.Cont):void 0!==e.Progress?t.Progress(e.Progress):void 0!==e.Stats?t.Stats(e.Stats):void 0!==e.End?t.End(e.End):void 0!==e.Records?t.Records(e.Records):t._(e.$unknown[0],e.$unknown[1])},e.filterSensitiveLog=function(e){var t;return void 0!==e.Cont?{Cont:ia.filterSensitiveLog(e.Cont)}:void 0!==e.Progress?{Progress:sa.filterSensitiveLog(e.Progress)}:void 0!==e.Stats?{Stats:la.filterSensitiveLog(e.Stats)}:void 0!==e.End?{End:oa.filterSensitiveLog(e.End)}:void 0!==e.Records?{Records:ua.filterSensitiveLog(e.Records)}:void 0!==e.$unknown?((t={})[e.$unknown[0]]="UNKNOWN",t):void 0}}(fa||(fa={})),(da||(da={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)({},e),e.Payload&&{Payload:"STREAMING_CONTENT"})},(pa||(pa={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(ha||(ha={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(va||(va={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)({},e),e.SSECustomerKey&&{SSECustomerKey:Qn.c})},(ga||(ga={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:Qn.c})},(ya||(ya={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)({},e),e.SSECustomerKey&&{SSECustomerKey:Qn.c})},(ma||(ma={})).filterSensitiveLog=function(e){return Object(Wn.a)({},e)},(ba||(ba={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:Qn.c})},(Sa||(Sa={})).filterSensitiveLog=function(e){return Object(Wn.a)(Object(Wn.a)(Object(Wn.a)({},e),e.SSECustomerKey&&{SSECustomerKey:Qn.c}),e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:Qn.c})};var Oa=function(e){function t(t){var r=e.call(this)||this;return r.input=t,r}return Object(Wn.c)(t,e),t.prototype.resolveMiddleware=function(e,t,r){this.middlewareStack.use(Object(bi.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ji(t)),this.middlewareStack.use(mi(t));var n=e.concat(this.middlewareStack),i=t.logger,o={logger:i,clientName:"S3Client",commandName:"UploadPartCommand",inputFilterSensitiveLog:ya.filterSensitiveLog,outputFilterSensitiveLog:ga.filterSensitiveLog};"function"===typeof i.info&&i.info({clientName:"S3Client",commandName:"UploadPartCommand"});var a=t.requestHandler;return n.resolve((function(e){return a.handle(e.request,r||{})}),o)},t.prototype.serialize=function(e,t){return Object(Gn.r)(e,t)},t.prototype.deserialize=function(e,t){return Object(Gn.i)(e,t)},t}(Qn.b),Ea=function(e){function t(t){var r=e.call(this)||this;return r.input=t,r}return Object(Wn.c)(t,e),t.prototype.resolveMiddleware=function(e,t,r){this.middlewareStack.use(Object(bi.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(mi(t));var n=e.concat(this.middlewareStack),i=t.logger,o={logger:i,clientName:"S3Client",commandName:"CompleteMultipartUploadCommand",inputFilterSensitiveLog:g.filterSensitiveLog,outputFilterSensitiveLog:p.filterSensitiveLog};"function"===typeof i.info&&i.info({clientName:"S3Client",commandName:"CompleteMultipartUploadCommand"});var a=t.requestHandler;return n.resolve((function(e){return a.handle(e.request,r||{})}),o)},t.prototype.serialize=function(e,t){return Object(Gn.k)(e,t)},t.prototype.deserialize=function(e,t){return Object(Gn.b)(e,t)},t}(Qn.b),ja=function(e){function t(t){var r=e.call(this)||this;return r.input=t,r}return Object(Wn.c)(t,e),t.prototype.resolveMiddleware=function(e,t,r){this.middlewareStack.use(Object(bi.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(mi(t));var n=e.concat(this.middlewareStack),a=t.logger,s={logger:a,clientName:"S3Client",commandName:"AbortMultipartUploadCommand",inputFilterSensitiveLog:o.filterSensitiveLog,outputFilterSensitiveLog:i.filterSensitiveLog};"function"===typeof a.info&&a.info({clientName:"S3Client",commandName:"AbortMultipartUploadCommand"});var u=t.requestHandler;return n.resolve((function(e){return u.handle(e.request,r||{})}),s)},t.prototype.serialize=function(e,t){return Object(Gn.j)(e,t)},t.prototype.deserialize=function(e,t){return Object(Gn.a)(e,t)},t}(Qn.b),ka=function(e){function t(t){var r=e.call(this)||this;return r.input=t,r}return Object(Wn.c)(t,e),t.prototype.resolveMiddleware=function(e,t,r){this.middlewareStack.use(Object(bi.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(mi(t));var n=e.concat(this.middlewareStack),i=t.logger,o={logger:i,clientName:"S3Client",commandName:"ListPartsCommand",inputFilterSensitiveLog:Ur.filterSensitiveLog,outputFilterSensitiveLog:Dr.filterSensitiveLog};"function"===typeof i.info&&i.info({clientName:"S3Client",commandName:"ListPartsCommand"});var a=t.requestHandler;return n.resolve((function(e){return a.handle(e.request,r||{})}),o)},t.prototype.serialize=function(e,t){return Object(Gn.p)(e,t)},t.prototype.deserialize=function(e,t){return Object(Gn.g)(e,t)},t}(Qn.b),Ca=r("+qE3"),Aa=r("2XnK"),xa=r("QmWs"),Ia=function(e){var t,r=Object(xa.parse)(e),n=r.hostname,i=void 0===n?"localhost":n,o=r.pathname,a=void 0===o?"/":o,s=r.port,u=r.protocol,c=void 0===u?"https:":u,l=r.search;return l&&(t=Object(Aa.a)(l)),{hostname:i,port:s?parseInt(s):void 0,protocol:c,path:a,query:t}},Ta=function(){return(Ta=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},La=new Bn.a("AWSS3ProviderManagedUpload"),Ma=function(){function e(e,t,r){this.minPartSize=5242880,this.queueSize=4,this.body=null,this.params=null,this.opts=null,this.multiPartMap=[],this.cancel=!1,this.bytesUploaded=0,this.totalBytesToUpload=0,this.emitter=null,this.params=e,this.opts=t,this.emitter=r}return e.prototype.upload=function(){return Pa(this,void 0,void 0,(function(){var e,t,r,n,i,o;return Ra(this,(function(a){switch(a.label){case 0:return e=this,[4,this.validateAndSanitizeBody(this.params.Body)];case 1:return e.body=a.sent(),this.totalBytesToUpload=this.byteLength(this.body),this.totalBytesToUpload<=this.minPartSize?(this.params.Body=this.body,t=new wa(this.params),[4,this._createNewS3Client(this.opts,this.emitter)]):[3,3];case 2:return[2,a.sent().send(t)];case 3:return[4,this.createMultiPartUpload()];case 4:r=a.sent(),n=Math.ceil(this.totalBytesToUpload/this.minPartSize),i=0,a.label=5;case 5:return i0)throw new Error("Multi Part upload clean up failed");return[2]}}))}))},e.prototype.setupEventListener=function(e){var t=this;e.emitter.on("sendProgress",(function(r){t.progressChanged(e.partNumber,r.loaded-e._lastUploadedBytes),e._lastUploadedBytes=r.loaded}))},e.prototype.progressChanged=function(e,t){this.bytesUploaded+=t,this.emitter.emit("sendProgress",{loaded:this.bytesUploaded,total:this.totalBytesToUpload,part:e,key:this.params.Key})},e.prototype.byteLength=function(e){if(null===e||void 0===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)},e.prototype.validateAndSanitizeBody=function(e){return Pa(this,void 0,void 0,(function(){return Ra(this,(function(t){switch(t.label){case 0:return this.isGenericObject(e)?[2,JSON.stringify(e)]:[3,1];case 1:return this.isBlob(e)?Kn.a.isReactNative?[4,Object(Zi.b)(e)]:[3,3]:[3,4];case 2:return[2,t.sent()];case 3:case 4:return[2,e]}}))}))},e.prototype.isBlob=function(e){return"undefined"!==typeof Blob&&e instanceof Blob},e.prototype.isGenericObject=function(e){if(null!==e&&"object"===typeof e)try{return!(this.byteLength(e)>=0)}catch(t){return!0}return!1},e.prototype._createNewS3Client=function(e,t){return Pa(this,void 0,void 0,(function(){var r,n,i,o,a;return Ra(this,(function(s){switch(s.label){case 0:return[4,this._getCredentials()];case 1:return r=s.sent(),n=e.region,i=e.dangerouslyConnectToHttpEndpointForTesting,o={},i&&(o={endpoint:"http://localhost:20005",tls:!1,bucketEndpoint:!1,forcePathStyle:!0}),(a=new Ho(Ta(Ta({region:n,credentials:r},o),{requestHandler:new $o({},t),customUserAgent:Object(Kn.b)(),urlParser:Ia}))).middlewareStack.remove("contentLengthMiddleware"),[2,a]}}))}))},e.prototype._getCredentials=function(){return Hn.a.get().then((function(e){if(!e)return!1;var t=Hn.a.shear(e);return La.debug("set credentials for storage",t),t})).catch((function(e){return La.warn("ensure credentials error",e),!1}))},e}(),Da=function(){return(Da=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(n=o.next()).done;)a.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},Ga=new Bn.a("StorageClass"),Xa=function(){function e(){this._config={},this._pluggables=[],Ga.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 e.prototype.getModuleName=function(){return"Storage"},e.prototype.addPluggable=function(e){if(e&&"Storage"===e.getCategory()){this._pluggables.push(e);return e.configure(this._config[e.getProviderName()])}},e.prototype.getPluggable=function(e){var t=this._pluggables.find((function(t){return t.getProviderName()===e}));return void 0===t?(Ga.debug("No plugin found with providerName",e),null):t},e.prototype.removePluggable=function(e){this._pluggables=this._pluggables.filter((function(t){return t.getProviderName()!==e}))},e.prototype.configure=function(e){var t=this;if(Ga.debug("configure Storage"),!e)return this._config;var r=zn.a.parseMobilehubConfig(e),n=Object.keys(r.Storage),i=["bucket","region","level","track","customPrefix","serverSideEncryption","SSECustomerAlgorithm","SSECustomerKey","SSECustomerKeyMD5","SSEKMSKeyId"],o=function(e){return i.some((function(t){return t===e}))};return n&&n.find((function(e){return o(e)}))&&!r.Storage.AWSS3&&(r.Storage.AWSS3={}),Object.entries(r.Storage).map((function(e){var t=Qa(e,2),n=t[0],i=t[1];n&&o(n)&&void 0!==i&&(r.Storage.AWSS3[n]=i,delete r.Storage[n])})),Object.keys(r.Storage).forEach((function(e){"string"!==typeof r.Storage[e]&&(t._config[e]=Ha(Ha({},t._config[e]),r.Storage[e]))})),this._pluggables.forEach((function(e){e.configure(t._config[e.getProviderName()])})),0===this._pluggables.length&&this.addPluggable(new Va),this._config},e.prototype.get=function(e,t){return Ka(this,void 0,void 0,(function(){var r,n,i;return Wa(this,(function(o){return r=(t||{}).provider,n=void 0===r?"AWSS3":r,void 0===(i=this._pluggables.find((function(e){return e.getProviderName()===n})))&&(Ga.debug("No plugin found with providerName",n),Promise.reject("No plugin found in Storage for the provider")),[2,i.get(e,t)]}))}))},e.prototype.put=function(e,t,r){return Ka(this,void 0,void 0,(function(){var n,i,o;return Wa(this,(function(a){return n=(r||{}).provider,i=void 0===n?"AWSS3":n,void 0===(o=this._pluggables.find((function(e){return e.getProviderName()===i})))&&(Ga.debug("No plugin found with providerName",i),Promise.reject("No plugin found in Storage for the provider")),[2,o.put(e,t,r)]}))}))},e.prototype.remove=function(e,t){return Ka(this,void 0,void 0,(function(){var r,n,i;return Wa(this,(function(o){return r=(t||{}).provider,n=void 0===r?"AWSS3":r,void 0===(i=this._pluggables.find((function(e){return e.getProviderName()===n})))&&(Ga.debug("No plugin found with providerName",n),Promise.reject("No plugin found in Storage for the provider")),[2,i.remove(e,t)]}))}))},e.prototype.list=function(e,t){return Ka(this,void 0,void 0,(function(){var r,n,i;return Wa(this,(function(o){return r=(t||{}).provider,n=void 0===r?"AWSS3":r,void 0===(i=this._pluggables.find((function(e){return e.getProviderName()===n})))&&(Ga.debug("No plugin found with providerName",n),Promise.reject("No plugin found in Storage for the provider")),[2,i.list(e,t)]}))}))},e}(),Ja=r("fQM2"),Ya=function(){return(Ya=Object.assign||function(e){for(var t,r=1,n=arguments.length;r63)throw n.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."});if(!r.test(e))throw i.util.error(new Error,{code:"ValidationError",message:e+" is not hostname compatible."})}))}(e.httpRequest.endpoint.hostname)}return e}}},lTCR:function(e,t,r){var n=r("EMzn").parse;function i(e){return e.replace(/[\s,]+/g," ").trim()}var o={},a={};var s=!0;var u=!1;function c(e){var t=i(e);if(o[t])return o[t];var r=n(e,{experimentalFragmentVariables:u});if(!r||"Document"!==r.kind)throw new Error("Not a valid GraphQL document.");return r=function e(t,r){var n=Object.prototype.toString.call(t);if("[object Array]"===n)return t.map((function(t){return e(t,r)}));if("[object Object]"!==n)throw new Error("Unexpected input.");r&&t.loc&&delete t.loc,t.loc&&(delete t.loc.startToken,delete t.loc.endToken);var i,o,a,s=Object.keys(t);for(i in s)s.hasOwnProperty(i)&&(o=t[s[i]],"[object Object]"!==(a=Object.prototype.toString.call(o))&&"[object Array]"!==a||(t[s[i]]=e(o,!0)));return t}(r=function(e){for(var t,r={},n=[],o=0;o0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof y?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach((function(n){l.c.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])}));var n=Object.keys(r);if(n.length){for(var i=this;i instanceof y;)i=i.parent;n.forEach((function(e){return i.delete(e)}))}return n},e.prototype.findChildRefIds=function(e){if(!l.c.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=new Set([this.data[e]]),n=function(e){return null!==e&&"object"===typeof e};r.forEach((function(e){Object(s.C)(e)?t[e.__ref]=!0:n(e)&&Object.values(e).filter(n).forEach(r.add,r)}))}return this.refs[e]},e.prototype.makeCacheKey=function(){for(var e=[],t=0;t0;if(d&&!c)throw f.missing[0];return{result:f.result,missing:f.missing,complete:!d}},e.prototype.isFresh=function(e,t,r,n){if(b(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n);if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,r=e.selectionSet,n=e.objectOrReference,i=e.context;if(Object(s.C)(n)&&!i.policies.rootTypenamesById[n.__ref]&&!i.store.has(n.__ref))return{result:{},missing:[S(new u.a(4),i)]};var o=i.variables,a=i.policies,c=i.store,l=[],f={result:null},d=c.getFieldValue(n,"__typename");function p(){return f.missing||(f.missing=[])}function h(e){var t;return e.missing&&(t=p()).push.apply(t,e.missing),e.result}this.config.addTypename&&"string"===typeof d&&!a.rootIdsByTypename[d]&&l.push({__typename:d});var v=new Set(r.selections);return v.forEach((function(e){var r;if(Object(s.L)(e,o))if(Object(s.z)(e)){var c=a.readField({fieldName:e.name.value,field:e,variables:i.variables,from:n},i),f=Object(s.K)(e);i.path.push(f);var g=i.clientOnly;i.clientOnly=g||!(!e.directives||!e.directives.some((function(e){return"client"===e.name.value}))),void 0===c?s.d.added(e)||p().push(S(new u.a(5),i)):Array.isArray(c)?c=h(t.executeSubSelectedArray({field:e,array:c,context:i})):e.selectionSet&&null!=c&&(c=h(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:c,context:i}))),void 0!==c&&l.push(((r={})[f]=c,r)),i.clientOnly=g,Object(u.b)(i.path.pop()===f)}else{var y=Object(s.o)(e,i.fragmentMap);y&&a.fragmentMatches(y,d)&&y.selectionSet.selections.forEach(v.add,v)}})),f.result=Object(s.H)(l),this.knownResults.set(f.result,r),f},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,o=e.context;function a(e,r){return e.missing&&(t=t||[]).push.apply(t,e.missing),Object(u.b)(o.path.pop()===r),e.result}return n.selectionSet&&(i=i.filter(o.store.canRead)),{result:i=i.map((function(e,t){return null===e?null:(o.path.push(t),Array.isArray(e)?a(r.executeSubSelectedArray({field:n,array:e,context:o}),t):n.selectionSet?a(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,context:o}),t):(Object(u.b)(o.path.pop()===t),e))})),missing:t}},e}();var _=function(){function e(e,t){this.cache=e,this.reader=t}return e.prototype.writeToStore=function(e){var t=e.query,r=e.result,i=e.dataId,o=e.store,a=e.variables,c=Object(s.r)(t),f=Object(l.d)();a=Object(n.__assign)(Object(n.__assign)({},Object(s.m)(c)),a);var d=this.processSelectionSet({result:r||Object.create(null),dataId:i,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:{store:o,written:Object.create(null),merge:function(e,t){return f.merge(e,t)},variables:a,varString:JSON.stringify(a),fragmentMap:Object(s.l)(Object(s.n)(t))}});if(!Object(s.C)(d))throw new u.a(7);return o.retain(d.__ref),d},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,i=e.selectionSet,o=e.context,a=e.mergeTree,c=this.cache.policies,l=c.identify(n,i,o.fragmentMap),f=l[0],d=l[1];if("string"===typeof(r=r||f)){var p=o.written[r]||(o.written[r]=[]),h=Object(s.E)(r);if(p.indexOf(i)>=0)return h;if(p.push(i),this.reader&&this.reader.isFresh(n,h,i,o))return h}var v=Object.create(null);d&&(v=o.merge(v,d));var g=r&&c.rootTypenamesById[r]||Object(s.v)(n,i,o.fragmentMap)||r&&o.store.get(r,"__typename");"string"===typeof g&&(v.__typename=g);var y=new Set(i.selections);if(y.forEach((function(e){var r;if(Object(s.L)(e,o.variables))if(Object(s.z)(e)){var i=Object(s.K)(e),l=n[i];if("undefined"!==typeof l){var f=c.getStoreFieldName({typename:g,fieldName:e.name.value,field:e,variables:o.variables}),d=E(a,f),p=t.processFieldValue(l,e,o,d),h=e.selectionSet&&o.store.getFieldValue(p,"__typename")||void 0,m=c.getMergeFunction(g,e.name.value,h);m?d.info={field:e,typename:g,merge:m}:j(a,f),v=o.merge(v,((r={})[f]=p,r))}else if(c.usingPossibleTypes&&!Object(s.y)(["defer","client"],e))throw new u.a(8)}else{var b=Object(s.o)(e,o.fragmentMap);b&&c.fragmentMatches(b,g,n,o.variables)&&b.selectionSet.selections.forEach(y.add,y)}})),"string"===typeof r){var m=Object(s.E)(r);return a.map.size&&(v=this.applyMerges(a,m,v,o)),o.store.merge(r,v),m}return v},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?Array.isArray(e)?e.map((function(e,o){var a=i.processFieldValue(e,t,r,E(n,o));return j(n,o),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):e},e.prototype.applyMerges=function(e,t,r,i,o){var a,c=this;if(e.map.size&&!Object(s.C)(r)){var f,d=Array.isArray(r)||!Object(s.C)(t)&&!Object(l.f)(t)?void 0:t,p=r;d&&!o&&(o=[Object(s.C)(d)?d.__ref:d]);var h=function(e,t){return Array.isArray(e)?"number"===typeof t?e[t]:void 0:i.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){o&&o.push(t);var r=h(d,t),n=h(p,t),a=c.applyMerges(e,r,n,i,o);a!==n&&(f=f||new Map).set(t,a),o&&Object(u.b)(o.pop()===t)})),f&&(r=Array.isArray(p)?p.slice(0):Object(n.__assign)({},p),f.forEach((function(e,t){r[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,i,o&&(a=i.store).getStorage.apply(a,o)):r},e}(),O=[];function E(e,t){var r=e.map;return r.has(t)||r.set(t,O.pop()||{map:new Map}),r.get(t)}function j(e,t){var r=e.map,n=r.get(t);!n||n.info||n.map.size||(O.push(n),r.delete(t))}new Set;var k=r("uiNf"),C=r("M2J/"),A={dataIdFromObject:C.b,addTypename:!0,resultCaching:!0,typePolicies:{}},x=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.typenameDocumentCache=new Map,r.makeVar=k.c,r.txCount=0,r.maybeBroadcastWatch=Object(i.c)((function(e,t){return r.broadcastWatch.call(r,e,!!t)}),{makeCacheKey:function(e){var t=e.optimistic?r.optimisticData:r.data;if(b(t)){var n=e.optimistic,i=e.rootId,o=e.variables;return t.makeCacheKey(e.query,e.callback,JSON.stringify({optimistic:n,rootId:i,variables:o}))}}}),r.watchDep=Object(i.b)(),r.config=Object(n.__assign)(Object(n.__assign)({},A),t),r.addTypename=!!r.config.addTypename,r.policies=new C.a({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.data=new h.Root({policies:r.policies,resultCaching:r.config.resultCaching}),r.optimisticData=r.data,r.storeWriter=new _(r,r.storeReader=new w({cache:r,addTypename:r.addTypename})),r}return Object(n.__extends)(t,e),t.prototype.restore=function(e){return e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,r=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,query:e.query,variables:e.variables,rootId:e.rootId,config:this.config,returnPartialData:r}).result||null}catch(n){if(n instanceof a.a)return null;throw n}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore({store:this.data,query:e.query,result:e.result,dataId:e.dataId,variables:e.variables})}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(l.c.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",query:e.query,variables:e.variables,returnPartialData:e.returnPartialData,config:this.config})},t.prototype.watch=function(e){var t=this;return this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&Object(k.b)(t),t.watchDep.dirty(e),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(){return this.optimisticData.gc()},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){return Object(s.C)(e)?e.__ref:this.policies.identify(e)[0]},t.prototype.evict=function(e){if(!e.id){if(l.c.call(e,"id"))return!1;e=Object(n.__assign)(Object(n.__assign)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(){return this.data.clear(),this.optimisticData=this.data,this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.performTransaction=function(e,t){var r=this,n=function(t){var n=r,i=n.data,o=n.optimisticData;++r.txCount,t&&(r.data=r.optimisticData=t);try{e(r)}finally{--r.txCount,r.data=i,r.optimisticData=o}},i=!1;"string"===typeof t?(this.optimisticData=this.optimisticData.addLayer(t,n),i=!0):null===t?n(this.data):n(),this.broadcastWatches(i)},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Object(s.d)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(r){return t.maybeBroadcastWatch(r,e)}))},t.prototype.broadcastWatch=function(e,t){this.watchDep.dirty(e),this.watchDep(e);var r=this.diff({query:e.query,variables:e.variables,optimistic:e.optimistic});e.optimistic&&t&&(r.fromOptimisticTransaction=!0),e.callback(r)},t}(o.a)},ljhN:function(e,t){e.exports=function(e,t){return e===t||e!==e&&t!==t}},lwAK:function(e,t,r){"use strict";var n;t.__esModule=!0,t.AmpStateContext=void 0;var i=((n=r("q1tI"))&&n.__esModule?n:{default:n}).default.createContext({});t.AmpStateContext=i},lwRX:function(e,t){},m2wi:function(e,t,r){var n=r("QsWE").util,i=n.buffer.toBuffer;e.exports={splitMessage:function(e){if(n.Buffer.isBuffer(e)||(e=i(e)),e.length<16)throw new Error("Provided message too short to accommodate event stream message overhead");if(e.length!==e.readUInt32BE(0))throw new Error("Reported message length does not match received message length");var t=e.readUInt32BE(8);if(t!==n.crypto.crc32(e.slice(0,8)))throw new Error("The prelude checksum specified in the message ("+t+") does not match the calculated CRC32 checksum.");var r=e.readUInt32BE(e.length-4);if(r!==n.crypto.crc32(e.slice(0,e.length-4)))throw new Error("The message checksum did not match the expected value of "+r);var o=12+e.readUInt32BE(4);return{headers:e.slice(12,o),body:e.slice(o,e.length-4)}}}},m5lJ:function(e,t){e.exports={escapeAttribute:function(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(//g,">").replace(/"/g,""")}}},mPvQ:function(e,t,r){var n=r("5fIB"),i=r("rlHP"),o=r("KckH"),a=r("kG2m");e.exports=function(e){return n(e)||i(e)||o(e)||a()}},mRvm:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r("mrSG"),i={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"]},o={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"]};function a(e,t,r){return{applyToStack:function(a){a.add(function(e,t){return function(r,i){return function(o){return Object(n.__awaiter)(void 0,void 0,void 0,(function(){var a,s,u,c,l;return Object(n.__generator)(this,(function(f){switch(f.label){case 0:return a=i.logger,s=i.outputFilterSensitiveLog,[4,r(o)];case 1:return u=f.sent().response,"function"===typeof(null===a||void 0===a?void 0:a.debug)&&a.debug({httpResponse:u}),[4,t(u,e)];case 2:return(c=f.sent()).$metadata,l=Object(n.__rest)(c,["$metadata"]),"function"===typeof(null===a||void 0===a?void 0:a.info)&&a.info({output:s(l)}),[2,{response:u,output:c}]}}))}))}}}(e,r),i),a.add(function(e,t){return function(r,i){return function(o){return Object(n.__awaiter)(void 0,void 0,void 0,(function(){var a,s,u;return Object(n.__generator)(this,(function(c){switch(c.label){case 0:return a=i.logger,s=i.inputFilterSensitiveLog,"function"===typeof(null===a||void 0===a?void 0:a.info)&&a.info({input:s(o.input)}),[4,t(o.input,e)];case 1:return u=c.sent(),"function"===typeof(null===a||void 0===a?void 0:a.debug)&&a.debug({httpRequest:u}),[2,r(Object(n.__assign)(Object(n.__assign)({},o),{request:u}))]}}))}))}}}(e,t),o)}}}},mX1g:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Crc32=t.crc32=void 0;var n=r("mrSG");t.crc32=function(e){return(new i).update(e).digest()};var i=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,r;try{for(var i=n.__values(e),a=i.next();!a.done;a=i.next()){var s=a.value;this.checksum=this.checksum>>>8^o[255&(this.checksum^s)]}}catch(u){t={error:u}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}();t.Crc32=i;var o=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])},md97:function(e,t,r){var n=r("BaN1");n.crypto.lib=r("4woR"),n.Buffer=r("tjlA").Buffer,n.url=r("QmWs"),n.querystring=r("s4NR"),n.realClock=r("3FsZ"),n.environment="js",n.createEventStream=r("NVWg").createEventStream,n.isBrowser=function(){return!0},n.isNode=function(){return!1};var i=r("QsWE");if(e.exports=i,r("8loY"),r("u8bp"),r("S6rO"),r("tVRC"),r("Vz+1"),r("iYq/"),r("vFq9"),i.XML.Parser=r("CFft"),r("Lh65"),"undefined"===typeof o)var o={browser:!0}},mdPL:function(e,t,r){(function(e){var n=r("WFqU"),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i&&n.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s}).call(this,r("YuTi")(e))},mnkm:function(e,t,r){},mrSG:function(e,t,r){"use strict";r.r(t),r.d(t,"__extends",(function(){return i})),r.d(t,"__assign",(function(){return o})),r.d(t,"__rest",(function(){return a})),r.d(t,"__decorate",(function(){return s})),r.d(t,"__param",(function(){return u})),r.d(t,"__metadata",(function(){return c})),r.d(t,"__awaiter",(function(){return l})),r.d(t,"__generator",(function(){return f})),r.d(t,"__createBinding",(function(){return d})),r.d(t,"__exportStar",(function(){return p})),r.d(t,"__values",(function(){return h})),r.d(t,"__read",(function(){return v})),r.d(t,"__spread",(function(){return g})),r.d(t,"__spreadArrays",(function(){return y})),r.d(t,"__await",(function(){return m})),r.d(t,"__asyncGenerator",(function(){return b})),r.d(t,"__asyncDelegator",(function(){return S})),r.d(t,"__asyncValues",(function(){return w})),r.d(t,"__makeTemplateObject",(function(){return _})),r.d(t,"__importStar",(function(){return O})),r.d(t,"__importDefault",(function(){return E})),r.d(t,"__classPrivateFieldGet",(function(){return j})),r.d(t,"__classPrivateFieldSet",(function(){return k}));var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function u(e,t){return function(r,n){t(r,n,e)}}function c(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(t){o(t)}}function s(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))}function f(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var r="function"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function g(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(r=i[e](t)).value instanceof m?Promise.resolve(r.value.v).then(u,c):l(o[0][2],r)}catch(n){l(o[0][3],n)}var r}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function S(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:m(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=h(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,i,(t=e[r](t)).done,t.value)}))}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function O(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}function j(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function k(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},n4Yq:function(e,t,r){var n=r("QsWE").util,i=n.buffer.toBuffer;function o(e){if(8!==e.length)throw new Error("Int64 buffers must be exactly 8 bytes");n.Buffer.isBuffer(e)||(e=i(e)),this.bytes=e}function a(e){for(var t=0;t<8;t++)e[t]^=255;for(t=7;t>-1&&(e[t]++,0===e[t]);t--);}o.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&&a(t),new o(t)},o.prototype.valueOf=function(){var e=this.bytes.slice(0),t=128&e[0];return t&&a(e),parseInt(e.toString("hex"),16)*(t?-1:1)},o.prototype.toString=function(){return String(this.valueOf())},e.exports={Int64:o}},nXTE:function(e,t,r){var n=r("NODT"),i=r("sImd"),o=i;o.v1=n,o.v4=i,e.exports=o},naxo:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r("mrSG"),i=r("Enk7");var o={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware"},a=function(e){return{applyToStack:function(t){t.add(function(e){var t=this;return function(r){return function(o){return Object(n.__awaiter)(t,void 0,void 0,(function(){var t,a,s,u,c;return Object(n.__generator)(this,(function(l){return t=o.request,i.a.isInstance(t)&&(a=t.body,s=t.headers,a&&-1===Object.keys(s).map((function(e){return e.toLowerCase()})).indexOf("content-length")&&void 0!==(u=e(a))&&(t.headers=Object(n.__assign)(Object(n.__assign)({},t.headers),((c={})["content-length"]=String(u),c)))),[2,r(Object(n.__assign)(Object(n.__assign)({},o),{request:t}))]}))}))}}}(e.bodyLengthChecker),o)}}}},nmnc:function(e,t,r){var n=r("Kz5y").Symbol;e.exports=n},ntEb:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.supportsZeroByteGCM=t.supportsSubtleCrypto=t.supportsSecureRandom=t.supportsWebCrypto=void 0;var n=r("mrSG"),i=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function o(e){return"object"===typeof e&&"object"===typeof e.crypto&&"function"===typeof e.crypto.getRandomValues}function a(e){return e&&i.every((function(t){return"function"===typeof e[t]}))}t.supportsWebCrypto=function(e){return!(!o(e)||"object"!==typeof e.crypto.subtle)&&a(e.crypto.subtle)},t.supportsSecureRandom=o,t.supportsSubtleCrypto=a,t.supportsZeroByteGCM=function(e){return n.__awaiter(this,void 0,void 0,(function(){var t;return n.__generator(this,(function(r){switch(r.label){case 0:if(!a(e))return[2,!1];r.label=1;case 1:return r.trys.push([1,4,,5]),[4,e.generateKey({name:"AES-GCM",length:128},!1,["encrypt"])];case 2:return t=r.sent(),[4,e.encrypt({name:"AES-GCM",iv:new Uint8Array(Array(12)),additionalData:new Uint8Array(Array(16)),tagLength:128},t,new Uint8Array(0))];case 3:return[2,16===r.sent().byteLength];case 4:return r.sent(),[2,!1];case 5:return[2]}}))}))}},nyFZ:function(e,t,r){var n=r("T0AB"),i=r("BaN1");function o(e,t,r){null!==r&&void 0!==r&&i.property.apply(this,arguments)}function a(e,t){e.constructor.prototype[t]||i.memoizedProperty.apply(this,arguments)}function s(e,t,r){t=t||{},o(this,"shape",e.shape),o(this,"api",t.api,!1),o(this,"type",e.type),o(this,"enum",e.enum),o(this,"min",e.min),o(this,"max",e.max),o(this,"pattern",e.pattern),o(this,"location",e.location||this.location||"body"),o(this,"name",this.name||e.xmlName||e.queryName||e.locationName||r),o(this,"isStreaming",e.streaming||this.isStreaming||!1),o(this,"requiresLength",e.requiresLength,!1),o(this,"isComposite",e.isComposite||!1),o(this,"isShape",!0,!1),o(this,"isQueryName",Boolean(e.queryName),!1),o(this,"isLocationName",Boolean(e.locationName),!1),o(this,"isIdempotent",!0===e.idempotencyToken),o(this,"isJsonValue",!0===e.jsonvalue),o(this,"isSensitive",!0===e.sensitive||e.prototype&&!0===e.prototype.sensitive),o(this,"isEventStream",Boolean(e.eventstream),!1),o(this,"isEvent",Boolean(e.event),!1),o(this,"isEventPayload",Boolean(e.eventpayload),!1),o(this,"isEventHeader",Boolean(e.eventheader),!1),o(this,"isTimestampFormatSet",Boolean(e.timestampFormat)||e.prototype&&!0===e.prototype.isTimestampFormatSet,!1),o(this,"endpointDiscoveryId",Boolean(e.endpointdiscoveryid),!1),o(this,"hostLabel",Boolean(e.hostLabel),!1),t.documentation&&(o(this,"documentation",e.documentation),o(this,"documentationUrl",e.documentationUrl)),e.xmlAttribute&&o(this,"isXmlAttribute",e.xmlAttribute||!1),o(this,"defaultValue",null),this.toWireFormat=function(e){return null===e||void 0===e?"":e},this.toType=function(e){return e}}function u(e){s.apply(this,arguments),o(this,"isComposite",!0),e.flattened&&o(this,"flattened",e.flattened||!1)}function c(e,t){var r=this,i=null,c=!this.isShape;u.apply(this,arguments),c&&(o(this,"defaultValue",(function(){return{}})),o(this,"members",{}),o(this,"memberNames",[]),o(this,"required",[]),o(this,"isRequired",(function(){return!1})),o(this,"isDocument",Boolean(e.document))),e.members&&(o(this,"members",new n(e.members,t,(function(e,r){return s.create(r,t,e)}))),a(this,"memberNames",(function(){return e.xmlOrder||Object.keys(e.members)})),e.event&&(a(this,"eventPayloadMemberName",(function(){for(var e=r.members,t=r.memberNames,n=0,i=t.length;n-1?t||"":t,this.isJsonValue?JSON.parse(t):t&&"function"===typeof t.toString?t.toString():t},this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function p(){s.apply(this,arguments),this.toType=function(e){var t=i.base64.decode(e);if(this.isSensitive&&i.isNode()&&"function"===typeof i.Buffer.alloc){var r=i.Buffer.alloc(t.length,t);t.fill(0),t=r}return t},this.toWireFormat=i.base64.encode}function h(){p.apply(this,arguments)}function v(){s.apply(this,arguments),this.toType=function(e){return"boolean"===typeof e?e:null===e||void 0===e?null:"true"===e}}s.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},s.types={structure:c,list:l,map:f,boolean:v,timestamp:function(e){var t=this;if(s.apply(this,arguments),e.timestampFormat)o(this,"timestampFormat",e.timestampFormat);else if(t.isTimestampFormatSet&&this.timestampFormat)o(this,"timestampFormat",this.timestampFormat);else if("header"===this.location)o(this,"timestampFormat","rfc822");else if("querystring"===this.location)o(this,"timestampFormat","iso8601");else if(this.api)switch(this.api.protocol){case"json":case"rest-json":o(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":o(this,"timestampFormat","iso8601")}this.toType=function(e){return null===e||void 0===e?null:"function"===typeof e.toUTCString?e:"string"===typeof e||"number"===typeof e?i.date.parseTimestamp(e):null},this.toWireFormat=function(e){return i.date.format(e,t.timestampFormat)}},float:function(){s.apply(this,arguments),this.toType=function(e){return null===e||void 0===e?null:parseFloat(e)},this.toWireFormat=this.toType},integer:function(){s.apply(this,arguments),this.toType=function(e){return null===e||void 0===e?null:parseInt(e,10)},this.toWireFormat=this.toType},string:d,base64:h,binary:p},s.resolve=function(e,t){if(e.shape){var r=t.api.shapes[e.shape];if(!r)throw new Error("Cannot find shape reference: "+e.shape);return r}return null},s.create=function(e,t,r){if(e.isShape)return e;var n=s.resolve(e,t);if(n){var i=Object.keys(e);t.documentation||(i=i.filter((function(e){return!e.match(/documentation/)})));var o=function(){n.constructor.call(this,e,t,r)};return o.prototype=n,new o}e.type||(e.members?e.type="structure":e.member?e.type="list":e.key?e.type="map":e.type="string");var a=e.type;if(s.normalizedTypes[e.type]&&(e.type=s.normalizedTypes[e.type]),s.types[e.type])return new s.types[e.type](e,t,r);throw new Error("Unrecognized shape type: "+a)},s.shapes={StructureShape:c,ListShape:l,MapShape:f,StringShape:d,BooleanShape:v,Base64Shape:h},e.exports=s},o0o1:function(e,t,r){e.exports=r("ls82")},oGmC:function(e,t,r){var n=r("tjlA").Buffer;"undefined"!==typeof ArrayBuffer&&"undefined"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView=function(e){return i.indexOf(Object.prototype.toString.call(e))>-1});var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];e.exports={isEmptyData:function(e){return"string"===typeof e?0===e.length:0===e.byteLength},convertToBuffer:function(e){return"string"===typeof e&&(e=new n(e,"utf8")),ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}}},oI91:function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},or5M:function(e,t,r){var n=r("1hJj"),i=r("QoRX"),o=r("xYSL");e.exports=function(e,t,r,a,s,u){var c=1&r,l=e.length,f=t.length;if(l!=f&&!(c&&f>l))return!1;var d=u.get(e),p=u.get(t);if(d&&p)return d==t&&p==e;var h=-1,v=!0,g=2&r?new n:void 0;for(u.set(e,t),u.set(t,e);++h\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""),this.options.supressEmptyNode?(this.buildTextNode=d,this.buildObjNode=l):(this.buildTextNode=f,this.buildObjNode=c),this.buildTextValNode=f,this.buildObjectNode=c}function s(e,t){return e=this.options.tagValueProcessor(""+e),""===this.options.cdataPositionChar||""===e?e+"");return e+this.newLine}function c(e,t,r,n){return r&&!e.includes("<")?this.indentate(n)+"<"+t+r+">"+e+""+this.options.tagValueProcessor(e)+"1,i=!1,o=arguments[1],a=o;return new r((function(r){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||n)try{a=e(a,t)}catch(s){return r.error(s)}else a=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(new TypeError("Cannot reduce an empty sequence"));r.next(a),r.complete()}})}))}},{key:"concat",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){n.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))}},{key:l,value:function(){return this}}],[{key:"from",value:function(t){var r="function"===typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var n=d(t,l);if(n){var i=n.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return h(i)&&i.constructor===r?i:new r((function(e){return i.subscribe(e)}))}if(s("iterator")&&(n=d(t,c)))return new r((function(e){g((function(){if(!e.closed){var r=!0,i=!1,o=void 0;try{for(var a,s=n.call(t)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value;if(e.next(u),e.closed)return}}catch(c){i=!0,o=c}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}e.complete()}}))}));if(Array.isArray(t))return new r((function(e){g((function(){if(!e.closed){for(var r=0;r=l)return console[e].apply(console,arguments)}}function d(e){var t=c[l];return l=Math.max(0,c.indexOf(e)),t}!function(e){e.log=f("log"),e.warn=f("warn"),e.error=f("error")}(u||(u={}));var p=i.process||{env:{}};if(!i.process)try{Object.defineProperty(i,"process",{value:p})}catch(h){}},qXWd:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},qZTm:function(e,t,r){var n=r("fR/l"),i=r("MvSz"),o=r("7GkX");e.exports=function(e){return n(e,o,i)}},qcsT:function(e,t,r){"use strict";r.d(t,"b",(function(){return o})),r.d(t,"a",(function(){return f}));var n=r("mrSG"),i=r("ko+D");function o(e){var t,r=this,o=a(e.credentials||e.credentialDefaultProvider(e)),s=e.signingEscapePath,u=void 0===s||s,c=e.systemClockOffset,l=void 0===c?e.systemClockOffset||0:c,f=e.sha256;return t=e.signer?a(e.signer):function(){return a(e.region)().then((function(t){return Object(n.__awaiter)(r,void 0,void 0,(function(){return Object(n.__generator)(this,(function(r){switch(r.label){case 0:return[4,e.regionInfoProvider(t)];case 1:return[2,[r.sent()||{},t]]}}))}))})).then((function(t){var r=Object(n.__read)(t,2),a=r[0],s=r[1],c=a.signingRegion,l=void 0===c?e.signingRegion:c,d=a.signingService,p=void 0===d?e.signingName:d;return e.signingRegion=e.signingRegion||l||s,e.signingName=e.signingName||p,new i.a({credentials:o,region:e.signingRegion,service:e.signingName,sha256:f,uriEscapePath:u})}))},Object(n.__assign)(Object(n.__assign)({},e),{systemClockOffset:l,signingEscapePath:u,credentials:o,signer:t})}function a(e){if("object"===typeof e){var t=Promise.resolve(e);return function(){return t}}return e}var s=r("Enk7"),u=function(e){return new Date(Date.now()+e)};function c(e){return function(t,r){return function(i){return Object(n.__awaiter)(this,void 0,void 0,(function(){var o,a,c,l,f,d,p,h,v;return Object(n.__generator)(this,(function(g){switch(g.label){case 0:return s.a.isInstance(i.request)?"function"!==typeof e.signer?[3,2]:[4,e.signer()]:[2,t(i)];case 1:return a=g.sent(),[3,3];case 2:a=e.signer,g.label=3;case 3:return o=a,l=t,f=[Object(n.__assign)({},i)],v={},[4,o.sign(i.request,{signingDate:new Date(Date.now()+e.systemClockOffset),signingRegion:r.signing_region,signingService:r.signing_service})];case 4:return[4,l.apply(void 0,[n.__assign.apply(void 0,f.concat([(v.request=g.sent(),v)]))])];case 5:return c=g.sent(),d=c.response.headers,(p=d&&(d.date||d.Date))&&(h=Date.parse(p),y=h,m=e.systemClockOffset,Math.abs(u(m).getTime()-y)>=3e5&&(e.systemClockOffset=h-Date.now())),[2,c]}var y,m}))}))}}}var l={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware"},f=function(e){return{applyToStack:function(t){t.addRelativeTo(c(e),l)}}}},qmwo:function(e,t){},qx2n:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=Object.prototype,i=n.toString,o=n.hasOwnProperty,a=Function.prototype.toString,s=new Map;function u(e,t){try{return function e(t,r){if(t===r)return!0;var n=i.call(t),s=i.call(r);if(n!==s)return!1;switch(n){case"[object Array]":if(t.length!==r.length)return!1;case"[object Object]":if(d(t,r))return!0;var u=c(t),l=c(r),p=u.length;if(p!==l.length)return!1;for(var h=0;h=0&&e.indexOf(t,r)===r}(_,f)}return!1}(e,t)}finally{s.clear()}}function c(e){return Object.keys(e).filter(l,e)}function l(e){return void 0!==this[e]}var f="{ [native code] }";function d(e,t){var r=s.get(e);if(r){if(r.has(t))return!0}else s.set(e,r=new Set);return r.add(t),!1}},rEGp:function(e,t){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},rRc3:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=r("3S/s").a.from},rU8T:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},rePB:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},rlHP:function(e,t){e.exports=function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},rt19:function(e,t,r){var n=r("QsWE"),i=n.util.inherit,o=r("CNpV");function a(e){var t=e.request._waiter,r=t.config.acceptors,n=!1,i="retry";r.forEach((function(r){if(!n){var o=t.matchers[r.matcher];o&&o(e,r.expected,r.argument)&&(n=!0,i=r.state)}})),!n&&e.error&&(i="failure"),"success"===i?t.setSuccess(e):t.setError(e,"retry"===i)}n.ResourceWaiter=i({constructor:function(e,t){this.service=e,this.state=t,this.loadWaiterConfig(this.state)},service:null,state:null,config:null,matchers:{path:function(e,t,r){try{var n=o.search(e.data,r)}catch(i){return!1}return o.strictDeepEqual(n,t)},pathAll:function(e,t,r){try{var n=o.search(e.data,r)}catch(s){return!1}Array.isArray(n)||(n=[n]);var i=n.length;if(!i)return!1;for(var a=0;a-1&&e%1==0&&e<=9007199254740991}},t6tr:function(e,t,r){var n=r("QsWE"),i=r("eLAQ"),o=r("VT+K").discoverEndpoint;n.EventListeners={Core:{}},n.EventListeners={Core:(new i).addNamedListeners((function(e,t){t("VALIDATE_CREDENTIALS","validate",(function(e,t){if(!e.service.api.signatureVersion&&!e.service.config.signatureVersion)return t();e.service.config.getCredentials((function(r){r&&(e.response.error=n.util.error(r,{code:"CredentialsError",message:"Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1"})),t()}))})),e("VALIDATE_REGION","validate",(function(e){if(!e.service.isGlobalEndpoint){var t=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);e.service.config.region?t.test(e.service.config.region)||(e.response.error=n.util.error(new Error,{code:"ConfigError",message:"Invalid region in config"})):e.response.error=n.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}})),e("BUILD_IDEMPOTENCY_TOKENS","validate",(function(e){if(e.service.api.operations){var t=e.service.api.operations[e.operation];if(t){var r=t.idempotentMembers;if(r.length){for(var i=n.util.copy(e.params),o=0,a=r.length;o=0)return e.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",t();n.util.computeSha256(o,(function(r,n){r?t(r):(e.httpRequest.headers["X-Amz-Content-Sha256"]=n,t())}))}else t()}})),e("SET_CONTENT_LENGTH","afterBuild",(function(e){var t=function(e){if(!e.service.api.operations)return"";var t=e.service.api.operations[e.operation];return t?t.authtype:""}(e),r=n.util.getRequestPayloadShape(e);if(void 0===e.httpRequest.headers["Content-Length"])try{var i=n.util.string.byteLength(e.httpRequest.body);e.httpRequest.headers["Content-Length"]=i}catch(o){if(r&&r.isStreaming){if(r.requiresLength)throw o;if(t.indexOf("unsigned-body")>=0)return void(e.httpRequest.headers["Transfer-Encoding"]="chunked");throw o}throw o}})),e("SET_HTTP_HOST","afterBuild",(function(e){e.httpRequest.headers.Host=e.httpRequest.endpoint.host})),e("RESTART","restart",(function(){var e=this.response.error;e&&e.retryable&&(this.httpRequest=new n.HttpRequest(this.service.endpoint,this.service.region),this.response.retryCount=600?this.emit("sign",[this],(function(e){e?t(e):o()})):o()})),e("HTTP_HEADERS","httpHeaders",(function(e,t,r,i){r.httpResponse.statusCode=e,r.httpResponse.statusMessage=i,r.httpResponse.headers=t,r.httpResponse.body=n.util.buffer.toBuffer(""),r.httpResponse.buffers=[],r.httpResponse.numBytes=0;var o=t.date||t.Date,a=r.request.service;if(o){var s=Date.parse(o);a.config.correctClockSkew&&a.isClockSkewed(s)&&a.applyClockOffset(s)}})),e("HTTP_DATA","httpData",(function(e,t){if(e){if(n.util.isNode()){t.httpResponse.numBytes+=e.length;var r=t.httpResponse.headers["content-length"],i={loaded:t.httpResponse.numBytes,total:r};t.request.emit("httpDownloadProgress",[i,t])}t.httpResponse.buffers.push(n.util.buffer.toBuffer(e))}})),e("HTTP_DONE","httpDone",(function(e){if(e.httpResponse.buffers&&e.httpResponse.buffers.length>0){var t=n.util.buffer.concat(e.httpResponse.buffers);e.httpResponse.body=t}delete e.httpResponse.numBytes,delete e.httpResponse.buffers})),e("FINALIZE_ERROR","retry",(function(e){e.httpResponse.statusCode&&(e.error.statusCode=e.httpResponse.statusCode,void 0===e.error.retryable&&(e.error.retryable=this.service.retryableError(e.error,this)))})),e("INVALIDATE_CREDENTIALS","retry",(function(e){if(e.error)switch(e.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":e.error.retryable=!0,e.request.service.config.credentials.expired=!0}})),e("EXPIRED_SIGNATURE","retry",(function(e){var t=e.error;t&&"string"===typeof t.code&&"string"===typeof t.message&&t.code.match(/Signature/)&&t.message.match(/expired/)&&(e.error.retryable=!0)})),e("CLOCK_SKEWED","retry",(function(e){e.error&&this.service.clockSkewError(e.error)&&this.service.config.correctClockSkew&&(e.error.retryable=!0)})),e("REDIRECT","retry",(function(e){e.error&&e.error.statusCode>=300&&e.error.statusCode<400&&e.httpResponse.headers.location&&(this.httpRequest.endpoint=new n.Endpoint(e.httpResponse.headers.location),this.httpRequest.headers.Host=this.httpRequest.endpoint.host,e.error.redirect=!0,e.error.retryable=!0)})),e("RETRY_CHECK","retry",(function(e){e.error&&(e.error.redirect&&e.redirectCount=0?(e.error=null,setTimeout(t,r)):t()}))})),CorePost:(new i).addNamedListeners((function(e){e("EXTRACT_REQUEST_ID","extractData",n.util.extractRequestId),e("EXTRACT_REQUEST_ID","extractError",n.util.extractRequestId),e("ENOTFOUND_ERROR","httpError",(function(e){if("NetworkingError"===e.code&&function(e){return"ENOTFOUND"===e.errno||"number"===typeof e.errno&&"function"===typeof n.util.getSystemErrorName&&["EAI_NONAME","EAI_NODATA"].indexOf(n.util.getSystemErrorName(e.errno)>=0)}(e)){var t="Inaccessible host: `"+e.hostname+"'. This service may not be available in the `"+e.region+"' region.";this.response.error=n.util.error(new Error(t),{code:"UnknownEndpoint",region:e.region,hostname:e.hostname,retryable:!0,originalError:e})}}))})),Logger:(new i).addNamedListeners((function(e){e("LOG_REQUEST","complete",(function(e){var t=e.request,i=t.service.config.logger;if(i){var o=function(){var o=(e.request.service.getSkewCorrectedDate().getTime()-t.startTime.getTime())/1e3,a=!!i.isTTY,s=e.httpResponse.statusCode,u=t.params;t.service.api.operations&&t.service.api.operations[t.operation]&&t.service.api.operations[t.operation].input&&(u=function e(t,r){if(!r)return r;if(t.isSensitive)return"***SensitiveInformation***";switch(t.type){case"structure":var i={};return n.util.each(r,(function(r,n){Object.prototype.hasOwnProperty.call(t.members,r)?i[r]=e(t.members[r],n):i[r]=n})),i;case"list":var o=[];return n.util.arrayEach(r,(function(r,n){o.push(e(t.member,r))})),o;case"map":var a={};return n.util.each(r,(function(r,n){a[r]=e(t.value,n)})),a;default:return r}}(t.service.api.operations[t.operation].input,t.params));var c=r("MCLT").inspect(u,!0,null),l="";return a&&(l+="\x1b[33m"),l+="[AWS "+t.service.serviceIdentifier+" "+s,l+=" "+o.toString()+"s "+e.retryCount+" retries]",a&&(l+="\x1b[0;1m"),l+=" "+n.util.string.lowerFirst(t.operation),l+="("+c+")",a&&(l+="\x1b[0m"),l}();"function"===typeof i.log?i.log(o):"function"===typeof i.write&&i.write(o+"\n")}}))})),Json:(new i).addNamedListeners((function(e){var t=r("BGYI");e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)})),Rest:(new i).addNamedListeners((function(e){var t=r("KFai");e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)})),RestJson:(new i).addNamedListeners((function(e){var t=r("9Gqe");e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)})),RestXml:(new i).addNamedListeners((function(e){var t=r("eFjS");e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)})),Query:(new i).addNamedListeners((function(e){var t=r("zfQR");e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)}))}},t6xR:function(e,t,r){"use strict";const n=r("4abu"),i=r("4abu").buildOptions,o=r("E1E9"),a=function(e,t,r){let i="{";const o=Object.keys(e.child);for(let n=0;n1){for(var u in i+='"'+s+'" : [ ',e.child[s])i+=a(e.child[s][u],t)+" , ";i=i.substr(0,i.length-1)+" ] "}else i+='"'+s+'" : '+a(e.child[s][0],t)+" ,"}return n.merge(i,e.attrsMap),n.isEmptyObject(i)?n.isExist(e.val)?e.val:"":(n.isExist(e.val)&&("string"!==typeof e.val||""!==e.val&&e.val!==t.cdataPositionChar)&&(i+='"'+t.textNodeName+'" : '+(!0!==(c=e.val)&&!1!==c&&isNaN(c)?'"'+c+'"':c)),","===i[i.length-1]&&(i=i.substr(0,i.length-2)),i+"}");var c};t.convertToJsonString=function(e,t){return(t=i(t,o.defaultOptions,o.props)).indentBy=t.indentBy||"",a(e,t,0)}},tCBg:function(e,t,r){var n=r("C+bE"),i=r("qXWd");e.exports=function(e,t){return!t||"object"!==n(t)&&"function"!==typeof t?i(e):t}},tMB7:function(e,t,r){var n=r("y1pI");e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},tVRC:function(e,t,r){var n=r("QsWE"),i=r("6Yqx");n.ChainableTemporaryCredentials=n.util.inherit(n.Credentials,{constructor:function(e){n.Credentials.call(this),e=e||{},this.errorCode="ChainableTemporaryCredentialsProviderFailure",this.expired=!0,this.tokenCodeFn=null;var t=n.util.copy(e.params)||{};if(t.RoleArn&&(t.RoleSessionName=t.RoleSessionName||"temporary-credentials"),t.SerialNumber){if(!e.tokenCodeFn||"function"!==typeof e.tokenCodeFn)throw new n.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode});this.tokenCodeFn=e.tokenCodeFn}var r=n.util.merge({params:t,credentials:e.masterCredentials||n.config.credentials},e.stsConfig||{});this.service=new i(r)},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this,r=t.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode((function(n,i){var o={};n?e(n):(i&&(o.TokenCode=i),t.service[r](o,(function(r,n){r||t.service.credentialsFrom(n,t),e(r)})))}))},getTokenCode:function(e){var t=this;this.tokenCodeFn?this.tokenCodeFn(this.service.config.params.SerialNumber,(function(r,i){if(r){var o=r;return r instanceof Error&&(o=r.message),void e(n.util.error(new Error("Error fetching MFA token: "+o),{code:t.errorCode}))}e(null,i)})):e(null)}})},tadb:function(e,t,r){var n=r("Cwc5")(r("Kz5y"),"DataView");e.exports=n},tlIM:function(e,t,r){"use strict";r.r(t),r.d(t,"locateWindow",(function(){return i}));var n={};function i(){return"undefined"!==typeof window?window:"undefined"!==typeof self?self:n}},u8Dt:function(e,t,r){var n=r("YESw"),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(t,e)?t[e]:void 0}},u8bp:function(e,t,r){var n=r("QsWE");n.CredentialProviderChain=n.util.inherit(n.Credentials,{constructor:function(e){this.providers=e||n.CredentialProviderChain.defaultProviders.slice(0),this.resolveCallbacks=[]},resolve:function(e){var t=this;if(0===t.providers.length)return e(new Error("No providers")),t;if(1===t.resolveCallbacks.push(e)){var r=0,i=t.providers.slice(0);!function e(o,a){if(!o&&a||r===i.length)return n.util.arrayEach(t.resolveCallbacks,(function(e){e(o,a)})),void(t.resolveCallbacks.length=0);var s=i[r++];(a="function"===typeof s?s.call():s).get?a.get((function(t){e(t,t?null:a)})):e(null,a)}()}return t}}),n.CredentialProviderChain.defaultProviders=[],n.CredentialProviderChain.addPromisesToClass=function(e){this.prototype.resolvePromise=n.util.promisifyMethod("resolve",e)},n.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},n.util.addPromises(n.CredentialProviderChain)},uJQa:function(e,t,r){"use strict";t.parse=function(e,t){if("string"!==typeof e)throw new TypeError("argument str must be a string");for(var r={},i=t||{},a=e.split(o),u=i.decode||n,c=0;c0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)e!==u&&(e=u,o.dirty(n),t.forEach(f),s(r,(function(t){return t(e)})));else{var c=a.getValue();c&&i(c),o(n)}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var i=n.attachCache=function(e){t.add(e);var r=u.get(e);return r||u.set(e,r=new Set),r.add(n),n};return n.forgetCache=function(e){var r=t.delete(e);if(r){var i=u.get(e);i&&i.delete(n)}return r},n}function f(e){e.broadcastWatches&&e.broadcastWatches()}},v2L8:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return s}));var n,i=r("qVdT");!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(n||(n={}));var o=new Map;function a(e){var t;switch(e){case n.Query:t="Query";break;case n.Mutation:t="Mutation";break;case n.Subscription:t="Subscription"}return t}function s(e){var t,r,a=o.get(e);if(a)return a;Object(i.b)(!!e&&!!e.kind,34);var s=e.definitions.filter((function(e){return"FragmentDefinition"===e.kind})),u=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"query"===e.operation})),c=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})),l=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"subscription"===e.operation}));Object(i.b)(!s.length||u.length||c.length||l.length,35),Object(i.b)(u.length+c.length+l.length<=1,36),r=u.length?n.Query:n.Mutation,u.length||c.length||(r=n.Subscription);var f=u.length?u:c.length?c:l;Object(i.b)(1===f.length,37);var d=f[0];t=d.variableDefinitions||[];var p={name:d.name&&"Name"===d.name.kind?d.name.value:"data",type:r,variables:t};return o.set(e,p),p}},v4IS:function(e,t,r){"use strict";var n,i;function o(e){return e&&!!["provider"].find((function(t){return e.hasOwnProperty(t)}))}function a(e){return void 0!==e.redirectSignIn}r.d(t,"a",(function(){return G})),function(e){e.Cognito="COGNITO",e.Google="Google",e.Facebook="Facebook",e.Amazon="LoginWithAmazon",e.Apple="SignInWithApple"}(n||(n={})),function(e){e.NoConfig="noConfig",e.MissingAuthConfig="missingAuthConfig",e.EmptyUsername="emptyUsername",e.InvalidUsername="invalidUsername",e.EmptyPassword="emptyPassword",e.EmptyCode="emptyCode",e.SignUpError="signUpError",e.NoMFA="noMFA",e.InvalidMFA="invalidMFA",e.EmptyChallengeResponse="emptyChallengeResponse",e.NoUserSession="noUserSession",e.Default="default"}(i||(i={}));var s=r("Nt7R"),u=r("Qycn"),c=r("R10A"),l=r("QuJe"),f=r("uJQa");function d(e,t){void 0===t&&(t={});var r=function(e){if(e&&"j"===e[0]&&":"===e[1])return e.substr(2);return e}(e);if(function(e,t){return"undefined"===typeof t&&(t=!e||"{"!==e[0]&&"["!==e[0]&&'"'!==e[0]),!t}(r,t.doNotParse))try{return JSON.parse(r)}catch(n){}return e}var p=function(){return(p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0&&this.changeListeners.splice(t,1)},e}(),v=r("HzrR"),g=Object(v.b)().isBrowser,y=function(){function e(e){void 0===e&&(e={}),this.cookies=new h,this.store=g?window.localStorage:Object.create(null),this.cookies=e.req?new h(e.req.headers.cookie):new h,Object.assign(this.store,this.cookies.getAll())}return Object.defineProperty(e.prototype,"length",{get:function(){return Object.entries(this.store).length},enumerable:!0,configurable:!0}),e.prototype.clear=function(){var e=this;Array.from(new Array(this.length)).map((function(t,r){return e.key(r)})).forEach((function(t){return e.removeItem(t)}))},e.prototype.getItem=function(e){return this.getLocalItem(e)},e.prototype.getLocalItem=function(e){return Object.prototype.hasOwnProperty.call(this.store,e)?this.store[e]:null},e.prototype.getUniversalItem=function(e){return this.cookies.get(e)},e.prototype.key=function(e){return Object.keys(this.store)[e]},e.prototype.removeItem=function(e){this.removeLocalItem(e),this.removeUniversalItem(e)},e.prototype.removeLocalItem=function(e){delete this.store[e]},e.prototype.removeUniversalItem=function(e){this.cookies.remove(e,{path:"/"})},e.prototype.setItem=function(e,t){switch(this.setLocalItem(e,t),e.split(".").pop()){case"LastAuthUser":case"accessToken":case"idToken":this.setUniversalItem(e,t)}},e.prototype.setLocalItem=function(e,t){this.store[e]=t},e.prototype.setUniversalItem=function(e,t){this.cookies.set(e,t,{path:"/",sameSite:!0,secure:"localhost"!==window.location.hostname})},e}(),m=r("2Lx6");var b,S=r("fQM2"),w=r("TESy"),_=r("QmWs"),O=function(e){var t=window.open(e,"_self");return t?Promise.resolve(t):Promise.reject()},E=r("lPiR"),j=r.n(E),k=r("ETIr"),C=r.n(k),A=function(){return(A=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(n=o.next()).done;)a.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},P="undefined"!==typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",R=function(e,t,r){u.a.dispatch("auth",{event:e,data:t,message:r},"Auth",P)},N=new s.a("OAuth"),L=function(){function e(e){var t=e.config,r=e.cognitoClientId,n=e.scopes,i=void 0===n?[]:n;if(this._urlOpener=t.urlOpener||O,this._config=t,this._cognitoClientId=r,!this.isValidScopes(i))throw Error("scopes must be a String Array");this._scopes=i}return e.prototype.isValidScopes=function(e){return Array.isArray(e)&&e.every((function(e){return"string"===typeof e}))},e.prototype.oauthSignIn=function(e,t,r,i,o,a){void 0===e&&(e="code"),void 0===o&&(o=n.Cognito);var s=this._generateState(32),u=a?s+"-"+a.split("").map((function(e){return e.charCodeAt(0).toString(16).padStart(2,"0")})).join(""):s;!function(e){window.sessionStorage.setItem("oauth_state",e)}(u);var c,l=this._generateRandom(128);c=l,window.sessionStorage.setItem("ouath_pkce_key",c);var f=this._generateChallenge(l),d=this._scopes.join(" "),p="https://"+t+"/oauth2/authorize?"+Object.entries(A(A({redirect_uri:r,response_type:e,client_id:i,identity_provider:o,scope:d,state:u},"code"===e?{code_challenge:f}:{}),"code"===e?{code_challenge_method:"S256"}:{})).map((function(e){var t=T(e,2),r=t[0],n=t[1];return encodeURIComponent(r)+"="+encodeURIComponent(n)})).join("&");N.debug("Redirecting to "+p),this._urlOpener(p,r)},e.prototype._handleCodeFlow=function(e){return x(this,void 0,void 0,(function(){var t,r,n,i,o,s,u,c,l,f,d,p;return I(this,(function(h){switch(h.label){case 0:return(t=(Object(_.parse)(e).query||"").split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var r,n=T(t,2),i=n[0],o=n[1];return A(A({},e),((r={})[i]=o,r))}),{code:void 0}).code)&&Object(_.parse)(e).pathname===Object(_.parse)(this._config.redirectSignIn).pathname?(r="https://"+this._config.domain+"/oauth2/token",R("codeFlow",{},"Retrieving tokens from "+r),n=a(this._config)?this._cognitoClientId:this._config.clientID,i=a(this._config)?this._config.redirectSignIn:this._config.redirectUri,o=function(){var e=window.sessionStorage.getItem("ouath_pkce_key");return window.sessionStorage.removeItem("ouath_pkce_key"),e}(),s=A({grant_type:"authorization_code",code:t,client_id:n,redirect_uri:i},o?{code_verifier:o}:{}),N.debug("Calling token endpoint: "+r+" with",s),u=Object.entries(s).map((function(e){var t=T(e,2),r=t[0],n=t[1];return encodeURIComponent(r)+"="+encodeURIComponent(n)})).join("&"),[4,fetch(r,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:u})]):[2];case 1:return[4,h.sent().json()];case 2:if(c=h.sent(),l=c.access_token,f=c.refresh_token,d=c.id_token,p=c.error)throw new Error(p);return[2,{accessToken:l,refreshToken:f,idToken:d}]}}))}))},e.prototype._handleImplicitFlow=function(e){return x(this,void 0,void 0,(function(){var t,r,n;return I(this,(function(i){return t=(Object(_.parse)(e).hash||"#").substr(1).split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var r,n=T(t,2),i=n[0],o=n[1];return A(A({},e),((r={})[i]=o,r))}),{id_token:void 0,access_token:void 0}),r=t.id_token,n=t.access_token,R("implicitFlow",{},"Got tokens from "+e),N.debug("Retrieving implicit tokens from "+e+" with"),[2,{accessToken:n,idToken:r,refreshToken:null}]}))}))},e.prototype.handleAuthResponse=function(e){return x(this,void 0,void 0,(function(){var t,r,n,i,o,a,s;return I(this,(function(u){switch(u.label){case 0:if(u.trys.push([0,5,,6]),t=e?A(A({},(Object(_.parse)(e).hash||"#").substr(1).split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var r=T(t,2),n=r[0],i=r[1];return e[n]=i,e}),{})),(Object(_.parse)(e).query||"").split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var r=T(t,2),n=r[0],i=r[1];return e[n]=i,e}),{})):{},r=t.error,n=t.error_description,r)throw new Error(n);return i=this._validateState(t),N.debug("Starting "+this._config.responseType+" flow with "+e),"code"!==this._config.responseType?[3,2]:(o=[{}],[4,this._handleCodeFlow(e)]);case 1:return[2,A.apply(void 0,[A.apply(void 0,o.concat([u.sent()])),{state:i}])];case 2:return a=[{}],[4,this._handleImplicitFlow(e)];case 3:return[2,A.apply(void 0,[A.apply(void 0,a.concat([u.sent()])),{state:i}])];case 4:return[3,6];case 5:throw s=u.sent(),N.error("Error handling auth response.",s),s;case 6:return[2]}}))}))},e.prototype._validateState=function(e){if(e){var t=function(){var e=window.sessionStorage.getItem("oauth_state");return window.sessionStorage.removeItem("oauth_state"),e}(),r=e.state;if(t&&t!==r)throw new Error("Invalid state in OAuth flow");return r}},e.prototype.signOut=function(){return x(this,void 0,void 0,(function(){var e,t,r;return I(this,(function(n){return e="https://"+this._config.domain+"/logout?",t=a(this._config)?this._cognitoClientId:this._config.oauth.clientID,r=a(this._config)?this._config.redirectSignOut:this._config.returnTo,e+=Object.entries({client_id:t,logout_uri:encodeURIComponent(r)}).map((function(e){var t=T(e,2);return t[0]+"="+t[1]})).join("&"),R("oAuthSignOut",{oAuth:"signOut"},"Signing out from "+e),N.debug("Signing out from "+e),[2,this._urlOpener(e)]}))}))},e.prototype._generateState=function(e){for(var t="",r=e,n="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";r>0;--r)t+=n[Math.round(Math.random()*(n.length-1))];return t},e.prototype._generateChallenge=function(e){return this._base64URL(j()(e))},e.prototype._base64URL=function(e){return e.toString(C.a).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},e.prototype._generateRandom=function(e){var t=new Uint8Array(e);if("undefined"!==typeof window&&window.crypto)window.crypto.getRandomValues(t);else for(var r=0;r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(n=o.next()).done;)a.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},K=new s.a("AuthClass"),W="undefined"!==typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",Q=function(e,t,r){u.a.dispatch("auth",{event:e,data:t,message:r},"Auth",W)},G=new(function(){function e(e){var t=this;this.userPool=null,this.user=null,this.oAuthFlowInProgress=!1,this.Credentials=c.a,this.wrapRefreshSessionCallback=function(e){return function(t,r){return r?Q("tokenRefresh",void 0,"New token retrieved"):Q("tokenRefresh_failure",t,"Failed to retrieve new token"),e(t,r)}},this.configure(e),this.currentCredentials=this.currentCredentials.bind(this),this.currentUserCredentials=this.currentUserCredentials.bind(this),u.a.listen("auth",(function(e){switch(e.payload.event){case"signIn":t._storage.setItem("amplify-signin-with-hostedUI","false");break;case"signOut":t._storage.removeItem("amplify-signin-with-hostedUI");break;case"cognitoHostedUI":t._storage.setItem("amplify-signin-with-hostedUI","true")}}))}return e.prototype.getModuleName=function(){return"Auth"},e.prototype.configure=function(e){var t=this;if(!e)return this._config||{};K.debug("configure Auth");var r=Object.assign({},this._config,l.a.parseMobilehubConfig(e).Auth,e);this._config=r;var n=this._config,i=n.userPoolId,o=n.userPoolWebClientId,s=n.cookieStorage,u=n.oauth,c=n.region,f=n.identityPoolId,d=n.mandatorySignIn,p=n.refreshHandlers,h=n.identityPoolRegion,g=n.clientMetadata,b=n.endpoint;if(this._config.storage){if(!this._isValidAuthStorage(this._config.storage))throw K.error("The storage in the Auth config is not valid!"),new Error("Empty storage object");this._storage=this._config.storage}else this._storage=s?new w.i(s):e.ssr?new y:(new m.a).getStorage();if(this._storageSync=Promise.resolve(),"function"===typeof this._storage.sync&&(this._storageSync=this._storage.sync()),i){var S={UserPoolId:i,ClientId:o,endpoint:b};S.Storage=this._storage,this.userPool=new w.g(S,this.wrapRefreshSessionCallback)}this.Credentials.configure({mandatorySignIn:d,region:h||c,userPoolId:i,identityPoolId:f,refreshHandlers:p,storage:this._storage});var _=u?a(this._config.oauth)?u:u.awsCognito:void 0;if(_){var O=Object.assign({cognitoClientId:o,UserPoolId:i,domain:_.domain,scopes:_.scope,redirectSignIn:_.redirectSignIn,redirectSignOut:_.redirectSignOut,responseType:_.responseType,Storage:this._storage,urlOpener:_.urlOpener,clientMetadata:g},_.options);this._oAuthHandler=new L({scopes:O.scopes,config:O,cognitoClientId:O.cognitoClientId});var E={};!function(e){if(v.a.browserOrNode().isBrowser&&window.location)e({url:window.location.href});else if(!v.a.browserOrNode().isNode)throw new Error("Not supported")}((function(e){var r=e.url;E[r]||(E[r]=!0,t._handleAuthResponse(r))}))}return Q("configured",null,"The Auth category has been configured successfully"),this._config},e.prototype.signUp=function(e){for(var t=this,r=[],n=1;n14||14===this.offset&&this.shift<24)&&this.processBlock(),this.offset=14,this.shift=24,this.write(0),this.write(0),this.write(this.totalLength>0xffffffffff?this.totalLength/1099511627776:0),this.write(this.totalLength>4294967295?this.totalLength/4294967296:0);for(var t=24;t>=0;t-=8)this.write(this.totalLength>>t);var r=new n(20),i=new DataView(r.buffer);return i.setUint32(0,this.h0,!1),i.setUint32(4,this.h1,!1),i.setUint32(8,this.h2,!1),i.setUint32(12,this.h3,!1),i.setUint32(16,this.h4,!1),e?r.toString(e):r},o.prototype.processBlock=function(){for(var e=16;e<80;e++){var t=this.block[e-3]^this.block[e-8]^this.block[e-14]^this.block[e-16];this.block[e]=t<<1|t>>>31}var r,n,i=this.h0,o=this.h1,a=this.h2,s=this.h3,u=this.h4;for(e=0;e<80;e++){e<20?(r=s^o&(a^s),n=1518500249):e<40?(r=o^a^s,n=1859775393):e<60?(r=o&a|s&(o|a),n=2400959708):(r=o^a^s,n=3395469782);var c=(i<<5|i>>>27)+r+u+n+(0|this.block[e]);u=s,s=a,a=o<<30|o>>>2,o=i,i=c}for(this.h0=this.h0+i|0,this.h1=this.h1+o|0,this.h2=this.h2+a|0,this.h3=this.h3+s|0,this.h4=this.h4+u|0,this.offset=0,e=0;e<16;e++)this.block[e]=0}},w9ET:function(e,t,r){"use strict";t.a={aws_appsync_graphqlEndpoint:"https://ytxpe6oqrjcvhjhq3vkonmtteu.appsync-api.us-east-1.amazonaws.com/graphql",aws_appsync_region:"us-east-1",aws_appsync_authenticationType:"AMAZON_COGNITO_USER_POOLS"}},"wF/u":function(e,t,r){var n=r("e5cp"),i=r("ExA7");e.exports=function e(t,r,o,a,s){return t===r||(null==t||null==r||!i(t)&&!i(r)?t!==t&&r!==r:n(t,r,o,a,e,s))}},"wJ8+":function(e,t,r){},wJg7:function(e,t){var r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e0||n?o.toString():""},e.exports=a},xWJi:function(e,t,r){"use strict";r.r(t),r.d(t,"fromUtf8",(function(){return n})),r.d(t,"toUtf8",(function(){return i}));var n=function(e){return"function"===typeof TextEncoder?function(e){return(new TextEncoder).encode(e)}(e):function(e){for(var t=[],r=0,n=e.length;r>6|192,63&i|128);else if(r+1>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)},i=function(e){return"function"===typeof TextDecoder?function(e){return new TextDecoder("utf-8").decode(e)}(e):function(e){for(var t="",r=0,n=e.length;r>>32-i)+r&4294967295}function s(e,t,r,n,i,o,s){return a(t&r|~t&n,e,t,i,o,s)}function u(e,t,r,n,i,o,s){return a(t&n|r&~n,e,t,i,o,s)}function c(e,t,r,n,i,o,s){return a(t^r^n,e,t,i,o,s)}function l(e,t,r,n,i,o,s){return a(r^(t|~n),e,t,i,o,s)}e.exports=o,o.BLOCK_SIZE=64,o.prototype.update=function(e){if(n.isEmptyData(e))return this;if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=n.convertToBuffer(e),r=0,i=t.byteLength;for(this.bytesHashed+=i;i>0;)this.buffer.setUint8(this.bufferLength++,t[r++]),i--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},o.prototype.digest=function(e){if(!this.finished){var t=this.buffer,r=this.bufferLength,n=8*this.bytesHashed;if(t.setUint8(this.bufferLength++,128),r%64>=56){for(var 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,n>>>0,!0),t.setUint32(60,Math.floor(n/4294967296),!0),this.hashBuffer(),this.finished=!0}var a=new DataView(new ArrayBuffer(16));for(o=0;o<4;o++)a.setUint32(4*o,this.state[o],!0);var s=new i(a.buffer,a.byteOffset,a.byteLength);return e?s.toString(e):s},o.prototype.hashBuffer=function(){var e=this.buffer,t=this.state,r=t[0],n=t[1],i=t[2],o=t[3];r=s(r,n,i,o,e.getUint32(0,!0),7,3614090360),o=s(o,r,n,i,e.getUint32(4,!0),12,3905402710),i=s(i,o,r,n,e.getUint32(8,!0),17,606105819),n=s(n,i,o,r,e.getUint32(12,!0),22,3250441966),r=s(r,n,i,o,e.getUint32(16,!0),7,4118548399),o=s(o,r,n,i,e.getUint32(20,!0),12,1200080426),i=s(i,o,r,n,e.getUint32(24,!0),17,2821735955),n=s(n,i,o,r,e.getUint32(28,!0),22,4249261313),r=s(r,n,i,o,e.getUint32(32,!0),7,1770035416),o=s(o,r,n,i,e.getUint32(36,!0),12,2336552879),i=s(i,o,r,n,e.getUint32(40,!0),17,4294925233),n=s(n,i,o,r,e.getUint32(44,!0),22,2304563134),r=s(r,n,i,o,e.getUint32(48,!0),7,1804603682),o=s(o,r,n,i,e.getUint32(52,!0),12,4254626195),i=s(i,o,r,n,e.getUint32(56,!0),17,2792965006),r=u(r,n=s(n,i,o,r,e.getUint32(60,!0),22,1236535329),i,o,e.getUint32(4,!0),5,4129170786),o=u(o,r,n,i,e.getUint32(24,!0),9,3225465664),i=u(i,o,r,n,e.getUint32(44,!0),14,643717713),n=u(n,i,o,r,e.getUint32(0,!0),20,3921069994),r=u(r,n,i,o,e.getUint32(20,!0),5,3593408605),o=u(o,r,n,i,e.getUint32(40,!0),9,38016083),i=u(i,o,r,n,e.getUint32(60,!0),14,3634488961),n=u(n,i,o,r,e.getUint32(16,!0),20,3889429448),r=u(r,n,i,o,e.getUint32(36,!0),5,568446438),o=u(o,r,n,i,e.getUint32(56,!0),9,3275163606),i=u(i,o,r,n,e.getUint32(12,!0),14,4107603335),n=u(n,i,o,r,e.getUint32(32,!0),20,1163531501),r=u(r,n,i,o,e.getUint32(52,!0),5,2850285829),o=u(o,r,n,i,e.getUint32(8,!0),9,4243563512),i=u(i,o,r,n,e.getUint32(28,!0),14,1735328473),r=c(r,n=u(n,i,o,r,e.getUint32(48,!0),20,2368359562),i,o,e.getUint32(20,!0),4,4294588738),o=c(o,r,n,i,e.getUint32(32,!0),11,2272392833),i=c(i,o,r,n,e.getUint32(44,!0),16,1839030562),n=c(n,i,o,r,e.getUint32(56,!0),23,4259657740),r=c(r,n,i,o,e.getUint32(4,!0),4,2763975236),o=c(o,r,n,i,e.getUint32(16,!0),11,1272893353),i=c(i,o,r,n,e.getUint32(28,!0),16,4139469664),n=c(n,i,o,r,e.getUint32(40,!0),23,3200236656),r=c(r,n,i,o,e.getUint32(52,!0),4,681279174),o=c(o,r,n,i,e.getUint32(0,!0),11,3936430074),i=c(i,o,r,n,e.getUint32(12,!0),16,3572445317),n=c(n,i,o,r,e.getUint32(24,!0),23,76029189),r=c(r,n,i,o,e.getUint32(36,!0),4,3654602809),o=c(o,r,n,i,e.getUint32(48,!0),11,3873151461),i=c(i,o,r,n,e.getUint32(60,!0),16,530742520),r=l(r,n=c(n,i,o,r,e.getUint32(8,!0),23,3299628645),i,o,e.getUint32(0,!0),6,4096336452),o=l(o,r,n,i,e.getUint32(28,!0),10,1126891415),i=l(i,o,r,n,e.getUint32(56,!0),15,2878612391),n=l(n,i,o,r,e.getUint32(20,!0),21,4237533241),r=l(r,n,i,o,e.getUint32(48,!0),6,1700485571),o=l(o,r,n,i,e.getUint32(12,!0),10,2399980690),i=l(i,o,r,n,e.getUint32(40,!0),15,4293915773),n=l(n,i,o,r,e.getUint32(4,!0),21,2240044497),r=l(r,n,i,o,e.getUint32(32,!0),6,1873313359),o=l(o,r,n,i,e.getUint32(60,!0),10,4264355552),i=l(i,o,r,n,e.getUint32(24,!0),15,2734768916),n=l(n,i,o,r,e.getUint32(52,!0),21,1309151649),r=l(r,n,i,o,e.getUint32(16,!0),6,4149444226),o=l(o,r,n,i,e.getUint32(44,!0),10,3174756917),i=l(i,o,r,n,e.getUint32(8,!0),15,718787259),n=l(n,i,o,r,e.getUint32(36,!0),21,3951481745),t[0]=r+t[0]&4294967295,t[1]=n+t[1]&4294967295,t[2]=i+t[2]&4294967295,t[3]=o+t[3]&4294967295}},xYSL:function(e,t){e.exports=function(e,t){return e.has(t)}},"xn+8":function(e,t,r){var n=r("QsWE"),i=r("ZHa6");n.util.update(n.STS.prototype,{credentialsFrom:function(e,t){return e?(t||(t=new n.TemporaryCredentials),t.expired=!1,t.accessKeyId=e.Credentials.AccessKeyId,t.secretAccessKey=e.Credentials.SecretAccessKey,t.sessionToken=e.Credentials.SessionToken,t.expireTime=e.Credentials.Expiration,t):null},assumeRoleWithWebIdentity:function(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithWebIdentity",e,t)},assumeRoleWithSAML:function(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithSAML",e,t)},setupRequestListeners:function(e){e.addListener("validate",this.optInRegionalEndpoint,!0)},optInRegionalEndpoint:function(e){var t=e.service,r=t.config;if(r.stsRegionalEndpoints=i(t._originalConfig,{env:"AWS_STS_REGIONAL_ENDPOINTS",sharedConfig:"sts_regional_endpoints",clientConfig:"stsRegionalEndpoints"}),"regional"===r.stsRegionalEndpoints&&t.isGlobalEndpoint){if(!r.region)throw n.util.error(new Error,{code:"ConfigError",message:"Missing region in config"});var o=r.endpoint.indexOf(".amazonaws.com"),a=r.endpoint.substring(0,o)+"."+r.region+r.endpoint.substring(o);e.httpRequest.updateEndpoint(a),e.httpRequest.region=r.region}}})},xxdO:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r("mrSG").__exportStar(r("je3o"),t)},y1pI:function(e,t,r){var n=r("ljhN");e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},yGk4:function(e,t,r){var n=r("Cwc5")(r("Kz5y"),"Set");e.exports=n},ynUr:function(e,t,r){var n=r("tjlA").Buffer,i=r("oGmC"),o=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),a=Math.pow(2,53)-1;function s(){this.state=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}e.exports=s,s.BLOCK_SIZE=64,s.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(i.isEmptyData(e))return this;var t=0,r=(e=i.convertToBuffer(e)).byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>a)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},s.prototype.digest=function(e){if(!this.finished){var t=8*this.bytesHashed,r=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),i=this.bufferLength;if(r.setUint8(this.bufferLength++,128),i%64>=56){for(var o=this.bufferLength;o<64;o++)r.setUint8(o,0);this.hashBuffer(),this.bufferLength=0}for(o=this.bufferLength;o<56;o++)r.setUint8(o,0);r.setUint32(56,Math.floor(t/4294967296),!0),r.setUint32(60,t),this.hashBuffer(),this.finished=!0}var a=new n(32);for(o=0;o<8;o++)a[4*o]=this.state[o]>>>24&255,a[4*o+1]=this.state[o]>>>16&255,a[4*o+2]=this.state[o]>>>8&255,a[4*o+3]=this.state[o]>>>0&255;return e?a.toString(e):a},s.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,r=t[0],n=t[1],i=t[2],a=t[3],s=t[4],u=t[5],c=t[6],l=t[7],f=0;f<64;f++){if(f<16)this.temp[f]=(255&e[4*f])<<24|(255&e[4*f+1])<<16|(255&e[4*f+2])<<8|255&e[4*f+3];else{var d=this.temp[f-2],p=(d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10,h=((d=this.temp[f-15])>>>7|d<<25)^(d>>>18|d<<14)^d>>>3;this.temp[f]=(p+this.temp[f-7]|0)+(h+this.temp[f-16]|0)}var v=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&u^~s&c)|0)+(l+(o[f]+this.temp[f]|0)|0)|0,g=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&n^r&i^n&i)|0;l=c,c=u,u=s,s=a+v|0,a=i,i=n,n=r,r=v+g|0}t[0]+=r,t[1]+=n,t[2]+=i,t[3]+=a,t[4]+=s,t[5]+=u,t[6]+=c,t[7]+=l}},zPlV:function(e,t,r){},zfQR:function(e,t,r){var n=r("QsWE"),i=r("BaN1"),o=r("gaZ0"),a=r("nyFZ"),s=r("lSFX").populateHostPrefix;e.exports={buildRequest:function(e){var t=e.service.api.operations[e.operation],r=e.httpRequest;r.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",r.params={Version:e.service.api.apiVersion,Action:t.name},(new o).serialize(e.params,t.input,(function(e,t){r.params[e]=t})),r.body=i.queryParamsToString(r.params),s(e)},extractError:function(e){var t,r=e.httpResponse.body.toString();if(r.match("